home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pdflb302.zip / pdf / pdflib-3.0.2 / configure next >
Text File  |  2000-08-21  |  114KB  |  3,876 lines

  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:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-libname=name     set file name of generated library [default=pdf]"
  16. ac_help="$ac_help
  17.   --with-libm=name        set math library option [default on most platforms=-lm]"
  18. ac_help="$ac_help
  19.   --enable-debug          turn on debugging (implies --disable-shared-pdflib)"
  20. ac_help="$ac_help
  21.   --enable-shared-pdflib  Generate the PDFlib core library as a shared library.
  22.                           This is only required for C and C++ language clients
  23.                           which prefer a shared PDFlib over a static one, and
  24.                           disables all other language bindings [default=no]."
  25. ac_help="$ac_help
  26.   --enable-shared[=PKGS]  build shared libraries [default=yes]"
  27. ac_help="$ac_help
  28.   --enable-static[=PKGS]  build static libraries [default=yes]"
  29. ac_help="$ac_help
  30.   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
  31. ac_help="$ac_help
  32.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  33. ac_help="$ac_help
  34.   --disable-libtool-lock  avoid locking (might break parallel builds)"
  35. ac_help="$ac_help
  36.   --enable-cxx            enable C++ language binding [default=no]"
  37. ac_help="$ac_help
  38.   --with-java=path        full path of Java Developers Kit, or no"
  39. ac_help="$ac_help
  40.   --with-perl=path        full path of Perl executable, or no"
  41. ac_help="$ac_help
  42.   --with-perlincl=path    full path of Perl include directory"
  43. ac_help="$ac_help
  44.   --with-py=path          full path of Python root directory, or no"
  45. ac_help="$ac_help
  46.   --with-pyincl=path      full path of Python include directory"
  47. ac_help="$ac_help
  48.   --with-tcl=path         full path of Tcl executable, or no"
  49. ac_help="$ac_help
  50.   --with-tclpkg=path      full path of Tcl package install directory"
  51. ac_help="$ac_help
  52.   --with-tclincl=path     full path of Tcl include directory"
  53. ac_help="$ac_help
  54.   --with-tiffauxlib=libs  set auxiliary libs required for libtiff, e.g. '-ljpeg'"
  55. ac_help="$ac_help
  56.   --with-tifflib=path     full path of TIFFlib directory, or no"
  57. ac_help="$ac_help
  58.   --with-zlib=path        full path of Zlib directory, or no"
  59. ac_help="$ac_help
  60.   --with-pnglib=path      full path of libpng directory, or no"
  61.  
  62. # Initialize some variables set by options.
  63. # The variables have the same names as the options, with
  64. # dashes changed to underlines.
  65. build=NONE
  66. cache_file=./config.cache
  67. exec_prefix=NONE
  68. host=NONE
  69. no_create=
  70. nonopt=NONE
  71. no_recursion=
  72. prefix=NONE
  73. program_prefix=NONE
  74. program_suffix=NONE
  75. program_transform_name=s,x,x,
  76. silent=
  77. site=
  78. srcdir=
  79. target=NONE
  80. verbose=
  81. x_includes=NONE
  82. x_libraries=NONE
  83. bindir='${exec_prefix}/bin'
  84. sbindir='${exec_prefix}/sbin'
  85. libexecdir='${exec_prefix}/libexec'
  86. datadir='${prefix}/share'
  87. sysconfdir='${prefix}/etc'
  88. sharedstatedir='${prefix}/com'
  89. localstatedir='${prefix}/var'
  90. libdir='${exec_prefix}/lib'
  91. includedir='${prefix}/include'
  92. oldincludedir='/usr/include'
  93. infodir='${prefix}/info'
  94. mandir='${prefix}/man'
  95.  
  96. # Initialize some other variables.
  97. subdirs=
  98. MFLAGS= MAKEFLAGS=
  99. SHELL=${CONFIG_SHELL-/bin/sh}
  100. # Maximum number of lines to put in a shell here document.
  101. ac_max_here_lines=12
  102.  
  103. ac_prev=
  104. for ac_option
  105. do
  106.  
  107.   # If the previous option needs an argument, assign it.
  108.   if test -n "$ac_prev"; then
  109.     eval "$ac_prev=\$ac_option"
  110.     ac_prev=
  111.     continue
  112.   fi
  113.  
  114.   case "$ac_option" in
  115.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  116.   *) ac_optarg= ;;
  117.   esac
  118.  
  119.   # Accept the important Cygnus configure options, so we can diagnose typos.
  120.  
  121.   case "$ac_option" in
  122.  
  123.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  124.     ac_prev=bindir ;;
  125.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  126.     bindir="$ac_optarg" ;;
  127.  
  128.   -build | --build | --buil | --bui | --bu)
  129.     ac_prev=build ;;
  130.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  131.     build="$ac_optarg" ;;
  132.  
  133.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  134.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  135.     ac_prev=cache_file ;;
  136.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  137.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  138.     cache_file="$ac_optarg" ;;
  139.  
  140.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  141.     ac_prev=datadir ;;
  142.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  143.   | --da=*)
  144.     datadir="$ac_optarg" ;;
  145.  
  146.   -disable-* | --disable-*)
  147.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  148.     # Reject names that are not valid shell variable names.
  149.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  150.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  151.     fi
  152.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  153.     eval "enable_${ac_feature}=no" ;;
  154.  
  155.   -enable-* | --enable-*)
  156.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  157.     # Reject names that are not valid shell variable names.
  158.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  159.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  160.     fi
  161.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  162.     case "$ac_option" in
  163.       *=*) ;;
  164.       *) ac_optarg=yes ;;
  165.     esac
  166.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  167.  
  168.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  169.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  170.   | --exec | --exe | --ex)
  171.     ac_prev=exec_prefix ;;
  172.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  173.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  174.   | --exec=* | --exe=* | --ex=*)
  175.     exec_prefix="$ac_optarg" ;;
  176.  
  177.   -gas | --gas | --ga | --g)
  178.     # Obsolete; use --with-gas.
  179.     with_gas=yes ;;
  180.  
  181.   -help | --help | --hel | --he)
  182.     # Omit some internal or obsolete options to make the list less imposing.
  183.     # This message is too long to be a string in the A/UX 3.1 sh.
  184.     cat << EOF
  185. Usage: configure [options] [host]
  186. Options: [defaults in brackets after descriptions]
  187. Configuration:
  188.   --cache-file=FILE       cache test results in FILE
  189.   --help                  print this message
  190.   --no-create             do not create output files
  191.   --quiet, --silent       do not print \`checking...' messages
  192.   --version               print the version of autoconf that created configure
  193. Directory and file names:
  194.   --prefix=PREFIX         install architecture-independent files in PREFIX
  195.                           [$ac_default_prefix]
  196.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  197.                           [same as prefix]
  198.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  199.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  200.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  201.   --datadir=DIR           read-only architecture-independent data in DIR
  202.                           [PREFIX/share]
  203.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  204.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  205.                           [PREFIX/com]
  206.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  207.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  208.   --includedir=DIR        C header files in DIR [PREFIX/include]
  209.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  210.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  211.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  212.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  213.   --program-prefix=PREFIX prepend PREFIX to installed program names
  214.   --program-suffix=SUFFIX append SUFFIX to installed program names
  215.   --program-transform-name=PROGRAM
  216.                           run sed PROGRAM on installed program names
  217. EOF
  218.     cat << EOF
  219. Host type:
  220.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  221.   --host=HOST             configure for HOST [guessed]
  222.   --target=TARGET         configure for TARGET [TARGET=HOST]
  223. Features and packages:
  224.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  225.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  226.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  227.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  228.   --x-includes=DIR        X include files are in DIR
  229.   --x-libraries=DIR       X library files are in DIR
  230. EOF
  231.     if test -n "$ac_help"; then
  232.       echo "--enable and --with options recognized:$ac_help"
  233.     fi
  234.     exit 0 ;;
  235.  
  236.   -host | --host | --hos | --ho)
  237.     ac_prev=host ;;
  238.   -host=* | --host=* | --hos=* | --ho=*)
  239.     host="$ac_optarg" ;;
  240.  
  241.   -includedir | --includedir | --includedi | --included | --include \
  242.   | --includ | --inclu | --incl | --inc)
  243.     ac_prev=includedir ;;
  244.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  245.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  246.     includedir="$ac_optarg" ;;
  247.  
  248.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  249.     ac_prev=infodir ;;
  250.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  251.     infodir="$ac_optarg" ;;
  252.  
  253.   -libdir | --libdir | --libdi | --libd)
  254.     ac_prev=libdir ;;
  255.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  256.     libdir="$ac_optarg" ;;
  257.  
  258.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  259.   | --libexe | --libex | --libe)
  260.     ac_prev=libexecdir ;;
  261.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  262.   | --libexe=* | --libex=* | --libe=*)
  263.     libexecdir="$ac_optarg" ;;
  264.  
  265.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  266.   | --localstate | --localstat | --localsta | --localst \
  267.   | --locals | --local | --loca | --loc | --lo)
  268.     ac_prev=localstatedir ;;
  269.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  270.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  271.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  272.     localstatedir="$ac_optarg" ;;
  273.  
  274.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  275.     ac_prev=mandir ;;
  276.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  277.     mandir="$ac_optarg" ;;
  278.  
  279.   -nfp | --nfp | --nf)
  280.     # Obsolete; use --without-fp.
  281.     with_fp=no ;;
  282.  
  283.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  284.   | --no-cr | --no-c)
  285.     no_create=yes ;;
  286.  
  287.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  288.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  289.     no_recursion=yes ;;
  290.  
  291.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  292.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  293.   | --oldin | --oldi | --old | --ol | --o)
  294.     ac_prev=oldincludedir ;;
  295.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  296.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  297.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  298.     oldincludedir="$ac_optarg" ;;
  299.  
  300.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  301.     ac_prev=prefix ;;
  302.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  303.     prefix="$ac_optarg" ;;
  304.  
  305.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  306.   | --program-pre | --program-pr | --program-p)
  307.     ac_prev=program_prefix ;;
  308.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  309.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  310.     program_prefix="$ac_optarg" ;;
  311.  
  312.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  313.   | --program-suf | --program-su | --program-s)
  314.     ac_prev=program_suffix ;;
  315.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  316.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  317.     program_suffix="$ac_optarg" ;;
  318.  
  319.   -program-transform-name | --program-transform-name \
  320.   | --program-transform-nam | --program-transform-na \
  321.   | --program-transform-n | --program-transform- \
  322.   | --program-transform | --program-transfor \
  323.   | --program-transfo | --program-transf \
  324.   | --program-trans | --program-tran \
  325.   | --progr-tra | --program-tr | --program-t)
  326.     ac_prev=program_transform_name ;;
  327.   -program-transform-name=* | --program-transform-name=* \
  328.   | --program-transform-nam=* | --program-transform-na=* \
  329.   | --program-transform-n=* | --program-transform-=* \
  330.   | --program-transform=* | --program-transfor=* \
  331.   | --program-transfo=* | --program-transf=* \
  332.   | --program-trans=* | --program-tran=* \
  333.   | --progr-tra=* | --program-tr=* | --program-t=*)
  334.     program_transform_name="$ac_optarg" ;;
  335.  
  336.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  337.   | -silent | --silent | --silen | --sile | --sil)
  338.     silent=yes ;;
  339.  
  340.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  341.     ac_prev=sbindir ;;
  342.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  343.   | --sbi=* | --sb=*)
  344.     sbindir="$ac_optarg" ;;
  345.  
  346.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  347.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  348.   | --sharedst | --shareds | --shared | --share | --shar \
  349.   | --sha | --sh)
  350.     ac_prev=sharedstatedir ;;
  351.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  352.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  353.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  354.   | --sha=* | --sh=*)
  355.     sharedstatedir="$ac_optarg" ;;
  356.  
  357.   -site | --site | --sit)
  358.     ac_prev=site ;;
  359.   -site=* | --site=* | --sit=*)
  360.     site="$ac_optarg" ;;
  361.  
  362.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  363.     ac_prev=srcdir ;;
  364.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  365.     srcdir="$ac_optarg" ;;
  366.  
  367.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  368.   | --syscon | --sysco | --sysc | --sys | --sy)
  369.     ac_prev=sysconfdir ;;
  370.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  371.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  372.     sysconfdir="$ac_optarg" ;;
  373.  
  374.   -target | --target | --targe | --targ | --tar | --ta | --t)
  375.     ac_prev=target ;;
  376.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  377.     target="$ac_optarg" ;;
  378.  
  379.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  380.     verbose=yes ;;
  381.  
  382.   -version | --version | --versio | --versi | --vers)
  383.     echo "configure generated by autoconf version 2.13"
  384.     exit 0 ;;
  385.  
  386.   -with-* | --with-*)
  387.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  388.     # Reject names that are not valid shell variable names.
  389.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  390.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  391.     fi
  392.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  393.     case "$ac_option" in
  394.       *=*) ;;
  395.       *) ac_optarg=yes ;;
  396.     esac
  397.     eval "with_${ac_package}='$ac_optarg'" ;;
  398.  
  399.   -without-* | --without-*)
  400.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  401.     # Reject names that are not valid shell variable names.
  402.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  403.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  404.     fi
  405.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  406.     eval "with_${ac_package}=no" ;;
  407.  
  408.   --x)
  409.     # Obsolete; use --with-x.
  410.     with_x=yes ;;
  411.  
  412.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  413.   | --x-incl | --x-inc | --x-in | --x-i)
  414.     ac_prev=x_includes ;;
  415.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  416.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  417.     x_includes="$ac_optarg" ;;
  418.  
  419.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  420.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  421.     ac_prev=x_libraries ;;
  422.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  423.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  424.     x_libraries="$ac_optarg" ;;
  425.  
  426.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  427.     ;;
  428.  
  429.   *)
  430.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  431.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  432.     fi
  433.     if test "x$nonopt" != xNONE; then
  434.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  435.     fi
  436.     nonopt="$ac_option"
  437.     ;;
  438.  
  439.   esac
  440. done
  441.  
  442. if test -n "$ac_prev"; then
  443.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  444. fi
  445.  
  446. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  447.  
  448. # File descriptor usage:
  449. # 0 standard input
  450. # 1 file creation
  451. # 2 errors and warnings
  452. # 3 some systems may open it to /dev/tty
  453. # 4 used on the Kubota Titan
  454. # 6 checking for... messages and results
  455. # 5 compiler messages saved in config.log
  456. if test "$silent" = yes; then
  457.   exec 6>/dev/null
  458. else
  459.   exec 6>&1
  460. fi
  461. exec 5>./config.log
  462.  
  463. echo "\
  464. This file contains any messages produced by compilers while
  465. running configure, to aid debugging if configure makes a mistake.
  466. " 1>&5
  467.  
  468. # Strip out --no-create and --no-recursion so they do not pile up.
  469. # Also quote any args containing shell metacharacters.
  470. ac_configure_args=
  471. for ac_arg
  472. do
  473.   case "$ac_arg" in
  474.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  475.   | --no-cr | --no-c) ;;
  476.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  477.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  478.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  479.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  480.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  481.   esac
  482. done
  483.  
  484. # NLS nuisances.
  485. # Only set these to C if already set.  These must not be set unconditionally
  486. # because not all systems understand e.g. LANG=C (notably SCO).
  487. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  488. # Non-C LC_CTYPE values break the ctype check.
  489. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  490. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  491. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  492. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  493.  
  494. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  495. rm -rf conftest* confdefs.h
  496. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  497. echo > confdefs.h
  498.  
  499. # A filename unique to this package, relative to the directory that
  500. # configure is in, which we can look for to find out if srcdir is correct.
  501. ac_unique_file=pdflib/pdflib.h
  502.  
  503. # Find the source files, if location was not specified.
  504. if test -z "$srcdir"; then
  505.   ac_srcdir_defaulted=yes
  506.   # Try the directory containing this script, then its parent.
  507.   ac_prog=$0
  508.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  509.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  510.   srcdir=$ac_confdir
  511.   if test ! -r $srcdir/$ac_unique_file; then
  512.     srcdir=..
  513.   fi
  514. else
  515.   ac_srcdir_defaulted=no
  516. fi
  517. if test ! -r $srcdir/$ac_unique_file; then
  518.   if test "$ac_srcdir_defaulted" = yes; then
  519.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  520.   else
  521.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  522.   fi
  523. fi
  524. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  525.  
  526. # Prefer explicitly selected file to automatically selected ones.
  527. if test -z "$CONFIG_SITE"; then
  528.   if test "x$prefix" != xNONE; then
  529.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  530.   else
  531.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  532.   fi
  533. fi
  534. for ac_site_file in $CONFIG_SITE; do
  535.   if test -r "$ac_site_file"; then
  536.     echo "loading site script $ac_site_file"
  537.     . "$ac_site_file"
  538.   fi
  539. done
  540.  
  541. if test -r "$cache_file"; then
  542.   echo "loading cache $cache_file"
  543.   . $cache_file
  544. else
  545.   echo "creating cache $cache_file"
  546.   > $cache_file
  547. fi
  548.  
  549. ac_ext=c
  550. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  551. ac_cpp='$CPP $CPPFLAGS'
  552. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  553. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  554. cross_compiling=$ac_cv_prog_cc_cross
  555.  
  556. ac_exeext=
  557. ac_objext=o
  558. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  559.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  560.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  561.     ac_n= ac_c='
  562. ' ac_t='    '
  563.   else
  564.     ac_n=-n ac_c= ac_t=
  565.   fi
  566. else
  567.   ac_n= ac_c='\c' ac_t=
  568. fi
  569.  
  570.  
  571.  
  572. VERSION="3.02"
  573.  
  574. PDFLIB_MAJOR=3
  575. PDFLIB_MINOR=02
  576.  
  577.  
  578.  
  579.  
  580.  
  581. PDFLIB_CURRENT=1
  582. PDFLIB_REVISION=0
  583. PDFLIB_AGE=0
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590. PDFLIBNAME=pdf
  591. MATHLIB="-lm"
  592.  
  593. # Check whether --with-libname or --without-libname was given.
  594. if test "${with_libname+set}" = set; then
  595.   withval="$with_libname"
  596.   PDFLIBNAME="$withval"
  597. fi
  598.  
  599.  
  600. # Check whether --with-libm or --without-libm was given.
  601. if test "${with_libm+set}" = set; then
  602.   withval="$with_libm"
  603.   MATHLIB="$withval"
  604. fi
  605.  
  606.  
  607.  
  608.  
  609. ac_aux_dir=
  610. for ac_dir in config $srcdir/config; do
  611.   if test -f $ac_dir/install-sh; then
  612.     ac_aux_dir=$ac_dir
  613.     ac_install_sh="$ac_aux_dir/install-sh -c"
  614.     break
  615.   elif test -f $ac_dir/install.sh; then
  616.     ac_aux_dir=$ac_dir
  617.     ac_install_sh="$ac_aux_dir/install.sh -c"
  618.     break
  619.   fi
  620. done
  621. if test -z "$ac_aux_dir"; then
  622.   { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
  623. fi
  624. ac_config_guess=$ac_aux_dir/config.guess
  625. ac_config_sub=$ac_aux_dir/config.sub
  626. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  627.  
  628.  
  629. ## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
  630. ## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
  631. ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  632. ##
  633. ## This program is free software; you can redistribute it and/or modify
  634. ## it under the terms of the GNU General Public License as published by
  635. ## the Free Software Foundation; either version 2 of the License, or
  636. ## (at your option) any later version.
  637. ##
  638. ## This program is distributed in the hope that it will be useful, but
  639. ## WITHOUT ANY WARRANTY; without even the implied warranty of
  640. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  641. ## General Public License for more details.
  642. ##
  643. ## You should have received a copy of the GNU General Public License
  644. ## along with this program; if not, write to the Free Software
  645. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  646. ##
  647. ## As a special exception to the GNU General Public License, if you
  648. ## distribute this file as part of a program that contains a
  649. ## configuration script generated by Autoconf, you may include it under
  650. ## the same distribution terms that you use for the rest of that program.
  651.  
  652. # serial 40 AC_PROG_LIBTOOL
  653.  
  654.  
  655.  
  656.  
  657. # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  658.  
  659.  
  660. # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  661.  
  662.  
  663. # AC_ENABLE_SHARED - implement the --enable-shared flag
  664. # Usage: AC_ENABLE_SHARED[(DEFAULT)]
  665. #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  666. #   `yes'.
  667.  
  668.  
  669. # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  670.  
  671.  
  672. # AC_ENABLE_STATIC - implement the --enable-static flag
  673. # Usage: AC_ENABLE_STATIC[(DEFAULT)]
  674. #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  675. #   `yes'.
  676.  
  677.  
  678. # AC_DISABLE_STATIC - set the default static flag to --disable-static
  679.  
  680.  
  681.  
  682. # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  683. # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  684. #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  685. #   `yes'.
  686.  
  687.  
  688. # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
  689.  
  690.  
  691. # AC_PROG_LD - find the path to the GNU or non-GNU linker
  692.  
  693.  
  694.  
  695.  
  696. # AC_PROG_NM - find the path to a BSD-compatible name lister
  697.  
  698.  
  699. # AC_CHECK_LIBM - check for math library
  700.  
  701.  
  702. # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  703. # the libltdl convenience library and INCLTDL to the include flags for
  704. # the libltdl header and adds --enable-ltdl-convenience to the
  705. # configure arguments.  Note that LIBLTDL and INCLTDL are not
  706. # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
  707. # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
  708. # with '${top_builddir}/' and INCLTDL will be prefixed with
  709. # '${top_srcdir}/' (note the single quotes!).  If your package is not
  710. # flat and you're not using automake, define top_builddir and
  711. # top_srcdir appropriately in the Makefiles.
  712.  
  713.  
  714. # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  715. # the libltdl installable library and INCLTDL to the include flags for
  716. # the libltdl header and adds --enable-ltdl-install to the configure
  717. # arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
  718. # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
  719. # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
  720. # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
  721. # with '${top_srcdir}/' (note the single quotes!).  If your package is
  722. # not flat and you're not using automake, define top_builddir and
  723. # top_srcdir appropriately in the Makefiles.
  724. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. # Make sure we can run config.sub.
  732. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  733. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  734. fi
  735.  
  736. echo $ac_n "checking host system type""... $ac_c" 1>&6
  737. echo "configure:738: checking host system type" >&5
  738.  
  739. host_alias=$host
  740. case "$host_alias" in
  741. NONE)
  742.   case $nonopt in
  743.   NONE)
  744.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  745.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  746.     fi ;;
  747.   *) host_alias=$nonopt ;;
  748.   esac ;;
  749. esac
  750.  
  751. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  752. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  753. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  754. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  755. echo "$ac_t""$host" 1>&6
  756.  
  757.  
  758. echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
  759. echo "configure:760: checking MACHDEP" >&5
  760. if test -z "$MACHDEP"
  761. then
  762.     if test -f /usr/lib/NextStep/software_version; then
  763.     set X `hostinfo | grep 'NeXT Mach.*:' | \
  764.         sed -e 's/://' -e 's/\./_/'` && \
  765.     ac_sys_system=next && ac_sys_release=$4
  766.     MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
  767.     else
  768.     ac_sys_system=`uname -s`
  769.     if test "$ac_sys_system" = "AIX" ; then
  770.         ac_sys_release=`uname -v`
  771.     else
  772.         ac_sys_release=`uname -r`
  773.     fi
  774.     ac_md_system=`echo $ac_sys_system |
  775.                tr -d '/ ' | tr '[A-Z]' '[a-z]'`
  776.     ac_md_release=`echo $ac_sys_release |
  777.                tr -d '/ ' | sed 's/\..*//'`
  778.     MACHDEP="$ac_md_system$ac_md_release"
  779.     fi
  780.     case MACHDEP in
  781.     '')    MACHDEP=unknown;;
  782.     esac
  783. fi
  784.  
  785. echo "$ac_t""$MACHDEP" 1>&6
  786. PLATFORM="-DPDF_PLATFORM=\\\"\"$ac_sys_system $ac_sys_release\"\\\""
  787.  
  788. SHELL="/bin/sh"
  789. RM="rm -rf"
  790.  
  791. WITH_DEBUG=no
  792. WITH_SHARED=yes
  793.  
  794. SHARED_PDFLIB=no
  795.  
  796. # Check whether --enable-debug or --disable-debug was given.
  797. if test "${enable_debug+set}" = set; then
  798.   enableval="$enable_debug"
  799.   if test "$enable_debug" = "yes" ; then
  800.     WITH_DEBUG=yes
  801.     WITH_SHARED=no
  802.     SHARED_PDFLIB=no
  803. fi
  804. fi
  805.  
  806.  
  807. # Check whether --enable-shared-pdflib or --disable-shared-pdflib was given.
  808. if test "${enable_shared_pdflib+set}" = set; then
  809.   enableval="$enable_shared_pdflib"
  810.   SHARED_PDFLIB=yes
  811. else
  812.   SHARED_PDFLIB=no
  813. fi
  814.  
  815.  
  816. # Extract the first word of "gcc", so it can be a program name with args.
  817. set dummy gcc; ac_word=$2
  818. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  819. echo "configure:820: checking for $ac_word" >&5
  820. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  821.   echo $ac_n "(cached) $ac_c" 1>&6
  822. else
  823.   if test -n "$CC"; then
  824.   ac_cv_prog_CC="$CC" # Let the user override the test.
  825. else
  826.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  827.   ac_dummy="$PATH"
  828.   for ac_dir in $ac_dummy; do
  829.     test -z "$ac_dir" && ac_dir=.
  830.     if test -f $ac_dir/$ac_word; then
  831.       ac_cv_prog_CC="gcc"
  832.       break
  833.     fi
  834.   done
  835.   IFS="$ac_save_ifs"
  836. fi
  837. fi
  838. CC="$ac_cv_prog_CC"
  839. if test -n "$CC"; then
  840.   echo "$ac_t""$CC" 1>&6
  841. else
  842.   echo "$ac_t""no" 1>&6
  843. fi
  844.  
  845. if test -z "$CC"; then
  846.   # Extract the first word of "cc", so it can be a program name with args.
  847. set dummy cc; ac_word=$2
  848. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  849. echo "configure:850: checking for $ac_word" >&5
  850. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  851.   echo $ac_n "(cached) $ac_c" 1>&6
  852. else
  853.   if test -n "$CC"; then
  854.   ac_cv_prog_CC="$CC" # Let the user override the test.
  855. else
  856.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  857.   ac_prog_rejected=no
  858.   ac_dummy="$PATH"
  859.   for ac_dir in $ac_dummy; do
  860.     test -z "$ac_dir" && ac_dir=.
  861.     if test -f $ac_dir/$ac_word; then
  862.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  863.         ac_prog_rejected=yes
  864.     continue
  865.       fi
  866.       ac_cv_prog_CC="cc"
  867.       break
  868.     fi
  869.   done
  870.   IFS="$ac_save_ifs"
  871. if test $ac_prog_rejected = yes; then
  872.   # We found a bogon in the path, so make sure we never use it.
  873.   set dummy $ac_cv_prog_CC
  874.   shift
  875.   if test $# -gt 0; then
  876.     # We chose a different compiler from the bogus one.
  877.     # However, it has the same basename, so the bogon will be chosen
  878.     # first if we set CC to just the basename; use the full file name.
  879.     shift
  880.     set dummy "$ac_dir/$ac_word" "$@"
  881.     shift
  882.     ac_cv_prog_CC="$@"
  883.   fi
  884. fi
  885. fi
  886. fi
  887. CC="$ac_cv_prog_CC"
  888. if test -n "$CC"; then
  889.   echo "$ac_t""$CC" 1>&6
  890. else
  891.   echo "$ac_t""no" 1>&6
  892. fi
  893.  
  894.   if test -z "$CC"; then
  895.     case "`uname -s`" in
  896.     *win32* | *WIN32*)
  897.       # Extract the first word of "cl", so it can be a program name with args.
  898. set dummy cl; ac_word=$2
  899. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  900. echo "configure:901: checking for $ac_word" >&5
  901. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  902.   echo $ac_n "(cached) $ac_c" 1>&6
  903. else
  904.   if test -n "$CC"; then
  905.   ac_cv_prog_CC="$CC" # Let the user override the test.
  906. else
  907.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  908.   ac_dummy="$PATH"
  909.   for ac_dir in $ac_dummy; do
  910.     test -z "$ac_dir" && ac_dir=.
  911.     if test -f $ac_dir/$ac_word; then
  912.       ac_cv_prog_CC="cl"
  913.       break
  914.     fi
  915.   done
  916.   IFS="$ac_save_ifs"
  917. fi
  918. fi
  919. CC="$ac_cv_prog_CC"
  920. if test -n "$CC"; then
  921.   echo "$ac_t""$CC" 1>&6
  922. else
  923.   echo "$ac_t""no" 1>&6
  924. fi
  925.  ;;
  926.     esac
  927.   fi
  928.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  929. fi
  930.  
  931. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  932. echo "configure:933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  933.  
  934. ac_ext=c
  935. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  936. ac_cpp='$CPP $CPPFLAGS'
  937. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  938. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  939. cross_compiling=$ac_cv_prog_cc_cross
  940.  
  941. cat > conftest.$ac_ext << EOF
  942.  
  943. #line 944 "configure"
  944. #include "confdefs.h"
  945.  
  946. main(){return(0);}
  947. EOF
  948. if { (eval echo configure:949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  949.   ac_cv_prog_cc_works=yes
  950.   # If we can't run a trivial program, we are probably using a cross compiler.
  951.   if (./conftest; exit) 2>/dev/null; then
  952.     ac_cv_prog_cc_cross=no
  953.   else
  954.     ac_cv_prog_cc_cross=yes
  955.   fi
  956. else
  957.   echo "configure: failed program was:" >&5
  958.   cat conftest.$ac_ext >&5
  959.   ac_cv_prog_cc_works=no
  960. fi
  961. rm -fr conftest*
  962. ac_ext=c
  963. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  964. ac_cpp='$CPP $CPPFLAGS'
  965. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  966. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  967. cross_compiling=$ac_cv_prog_cc_cross
  968.  
  969. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  970. if test $ac_cv_prog_cc_works = no; then
  971.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  972. fi
  973. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  974. echo "configure:975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  975. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  976. cross_compiling=$ac_cv_prog_cc_cross
  977.  
  978. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  979. echo "configure:980: checking whether we are using GNU C" >&5
  980. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  981.   echo $ac_n "(cached) $ac_c" 1>&6
  982. else
  983.   cat > conftest.c <<EOF
  984. #ifdef __GNUC__
  985.   yes;
  986. #endif
  987. EOF
  988. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  989.   ac_cv_prog_gcc=yes
  990. else
  991.   ac_cv_prog_gcc=no
  992. fi
  993. fi
  994.  
  995. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  996.  
  997. if test $ac_cv_prog_gcc = yes; then
  998.   GCC=yes
  999. else
  1000.   GCC=
  1001. fi
  1002.  
  1003. ac_test_CFLAGS="${CFLAGS+set}"
  1004. ac_save_CFLAGS="$CFLAGS"
  1005. CFLAGS=
  1006. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1007. echo "configure:1008: checking whether ${CC-cc} accepts -g" >&5
  1008. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1009.   echo $ac_n "(cached) $ac_c" 1>&6
  1010. else
  1011.   echo 'void f(){}' > conftest.c
  1012. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1013.   ac_cv_prog_cc_g=yes
  1014. else
  1015.   ac_cv_prog_cc_g=no
  1016. fi
  1017. rm -f conftest*
  1018.  
  1019. fi
  1020.  
  1021. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1022. if test "$ac_test_CFLAGS" = set; then
  1023.   CFLAGS="$ac_save_CFLAGS"
  1024. elif test $ac_cv_prog_cc_g = yes; then
  1025.   if test "$GCC" = yes; then
  1026.     CFLAGS="-g -O2"
  1027.   else
  1028.     CFLAGS="-g"
  1029.   fi
  1030. else
  1031.   if test "$GCC" = yes; then
  1032.     CFLAGS="-O2"
  1033.   else
  1034.     CFLAGS=
  1035.   fi
  1036. fi
  1037.  
  1038. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1039. echo "configure:1040: checking how to run the C preprocessor" >&5
  1040. # On Suns, sometimes $CPP names a directory.
  1041. if test -n "$CPP" && test -d "$CPP"; then
  1042.   CPP=
  1043. fi
  1044. if test -z "$CPP"; then
  1045. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1046.   echo $ac_n "(cached) $ac_c" 1>&6
  1047. else
  1048.     # This must be in double quotes, not single quotes, because CPP may get
  1049.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1050.   CPP="${CC-cc} -E"
  1051.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1052.   # not just through cpp.
  1053.   cat > conftest.$ac_ext <<EOF
  1054. #line 1055 "configure"
  1055. #include "confdefs.h"
  1056. #include <assert.h>
  1057. Syntax Error
  1058. EOF
  1059. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1060. { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1061. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1062. if test -z "$ac_err"; then
  1063.   :
  1064. else
  1065.   echo "$ac_err" >&5
  1066.   echo "configure: failed program was:" >&5
  1067.   cat conftest.$ac_ext >&5
  1068.   rm -rf conftest*
  1069.   CPP="${CC-cc} -E -traditional-cpp"
  1070.   cat > conftest.$ac_ext <<EOF
  1071. #line 1072 "configure"
  1072. #include "confdefs.h"
  1073. #include <assert.h>
  1074. Syntax Error
  1075. EOF
  1076. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1077. { (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1078. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1079. if test -z "$ac_err"; then
  1080.   :
  1081. else
  1082.   echo "$ac_err" >&5
  1083.   echo "configure: failed program was:" >&5
  1084.   cat conftest.$ac_ext >&5
  1085.   rm -rf conftest*
  1086.   CPP="${CC-cc} -nologo -E"
  1087.   cat > conftest.$ac_ext <<EOF
  1088. #line 1089 "configure"
  1089. #include "confdefs.h"
  1090. #include <assert.h>
  1091. Syntax Error
  1092. EOF
  1093. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1094. { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1095. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1096. if test -z "$ac_err"; then
  1097.   :
  1098. else
  1099.   echo "$ac_err" >&5
  1100.   echo "configure: failed program was:" >&5
  1101.   cat conftest.$ac_ext >&5
  1102.   rm -rf conftest*
  1103.   CPP=/lib/cpp
  1104. fi
  1105. rm -f conftest*
  1106. fi
  1107. rm -f conftest*
  1108. fi
  1109. rm -f conftest*
  1110.   ac_cv_prog_CPP="$CPP"
  1111. fi
  1112.   CPP="$ac_cv_prog_CPP"
  1113. else
  1114.   ac_cv_prog_CPP="$CPP"
  1115. fi
  1116. echo "$ac_t""$CPP" 1>&6
  1117.  
  1118. # Find a good install program.  We prefer a C program (faster),
  1119. # so one script is as good as another.  But avoid the broken or
  1120. # incompatible versions:
  1121. # SysV /etc/install, /usr/sbin/install
  1122. # SunOS /usr/etc/install
  1123. # IRIX /sbin/install
  1124. # AIX /bin/install
  1125. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1126. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1127. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1128. # ./install, which can be erroneously created by make from ./install.sh.
  1129. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1130. echo "configure:1131: checking for a BSD compatible install" >&5
  1131. if test -z "$INSTALL"; then
  1132. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1133.   echo $ac_n "(cached) $ac_c" 1>&6
  1134. else
  1135.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  1136.   for ac_dir in $PATH; do
  1137.     # Account for people who put trailing slashes in PATH elements.
  1138.     case "$ac_dir/" in
  1139.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1140.     *)
  1141.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1142.       # Don't use installbsd from OSF since it installs stuff as root
  1143.       # by default.
  1144.       for ac_prog in ginstall scoinst install; do
  1145.         if test -f $ac_dir/$ac_prog; then
  1146.       if test $ac_prog = install &&
  1147.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1148.         # AIX install.  It has an incompatible calling convention.
  1149.         :
  1150.       else
  1151.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1152.         break 2
  1153.       fi
  1154.     fi
  1155.       done
  1156.       ;;
  1157.     esac
  1158.   done
  1159.   IFS="$ac_save_IFS"
  1160.  
  1161. fi
  1162.   if test "${ac_cv_path_install+set}" = set; then
  1163.     INSTALL="$ac_cv_path_install"
  1164.   else
  1165.     # As a last resort, use the slow shell script.  We don't cache a
  1166.     # path for INSTALL within a source directory, because that will
  1167.     # break other packages using the cache if that directory is
  1168.     # removed, or if the path is relative.
  1169.     INSTALL="$ac_install_sh"
  1170.   fi
  1171. fi
  1172. echo "$ac_t""$INSTALL" 1>&6
  1173.  
  1174. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1175. # It thinks the first close brace ends the variable substitution.
  1176. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1177.  
  1178. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1179.  
  1180. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1181.  
  1182. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1183. echo "configure:1184: checking for Cygwin environment" >&5
  1184. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1185.   echo $ac_n "(cached) $ac_c" 1>&6
  1186. else
  1187.   cat > conftest.$ac_ext <<EOF
  1188. #line 1189 "configure"
  1189. #include "confdefs.h"
  1190.  
  1191. int main() {
  1192.  
  1193. #ifndef __CYGWIN__
  1194. #define __CYGWIN__ __CYGWIN32__
  1195. #endif
  1196. return __CYGWIN__;
  1197. ; return 0; }
  1198. EOF
  1199. if { (eval echo configure:1200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1200.   rm -rf conftest*
  1201.   ac_cv_cygwin=yes
  1202. else
  1203.   echo "configure: failed program was:" >&5
  1204.   cat conftest.$ac_ext >&5
  1205.   rm -rf conftest*
  1206.   ac_cv_cygwin=no
  1207. fi
  1208. rm -f conftest*
  1209. rm -f conftest*
  1210. fi
  1211.  
  1212. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1213. CYGWIN=
  1214. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1215. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1216. echo "configure:1217: checking for mingw32 environment" >&5
  1217. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1218.   echo $ac_n "(cached) $ac_c" 1>&6
  1219. else
  1220.   cat > conftest.$ac_ext <<EOF
  1221. #line 1222 "configure"
  1222. #include "confdefs.h"
  1223.  
  1224. int main() {
  1225. return __MINGW32__;
  1226. ; return 0; }
  1227. EOF
  1228. if { (eval echo configure:1229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1229.   rm -rf conftest*
  1230.   ac_cv_mingw32=yes
  1231. else
  1232.   echo "configure: failed program was:" >&5
  1233.   cat conftest.$ac_ext >&5
  1234.   rm -rf conftest*
  1235.   ac_cv_mingw32=no
  1236. fi
  1237. rm -f conftest*
  1238. rm -f conftest*
  1239. fi
  1240.  
  1241. echo "$ac_t""$ac_cv_mingw32" 1>&6
  1242. MINGW32=
  1243. test "$ac_cv_mingw32" = yes && MINGW32=yes
  1244.  
  1245.  
  1246. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1247. echo "configure:1248: checking for executable suffix" >&5
  1248. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1249.   echo $ac_n "(cached) $ac_c" 1>&6
  1250. else
  1251.   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  1252.   ac_cv_exeext=.exe
  1253. else
  1254.   rm -f conftest*
  1255.   echo 'int main () { return 0; }' > conftest.$ac_ext
  1256.   ac_cv_exeext=
  1257.   if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1258.     for file in conftest.*; do
  1259.       case $file in
  1260.       *.c | *.o | *.obj) ;;
  1261.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1262.       esac
  1263.     done
  1264.   else
  1265.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1266.   fi
  1267.   rm -f conftest*
  1268.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1269. fi
  1270. fi
  1271.  
  1272. EXEEXT=""
  1273. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1274. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1275. ac_exeext=$EXEEXT
  1276.  
  1277. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  1278. echo "configure:1279: checking for object suffix" >&5
  1279. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  1280.   echo $ac_n "(cached) $ac_c" 1>&6
  1281. else
  1282.   rm -f conftest*
  1283. echo 'int i = 1;' > conftest.$ac_ext
  1284. if { (eval echo configure:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1285.   for ac_file in conftest.*; do
  1286.     case $ac_file in
  1287.     *.c) ;;
  1288.     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  1289.     esac
  1290.   done
  1291. else
  1292.   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  1293. fi
  1294. rm -f conftest*
  1295. fi
  1296.  
  1297. echo "$ac_t""$ac_cv_objext" 1>&6
  1298. OBJEXT=$ac_cv_objext
  1299. ac_objext=$ac_cv_objext
  1300.  
  1301.  
  1302.  
  1303. if test "$WITH_SHARED" = "no"; then
  1304.     enable_shared=no
  1305. fi
  1306.  
  1307.  
  1308.  
  1309.  
  1310. # Check whether --enable-shared or --disable-shared was given.
  1311. if test "${enable_shared+set}" = set; then
  1312.   enableval="$enable_shared"
  1313.   p=${PACKAGE-default}
  1314. case "$enableval" in
  1315. yes) enable_shared=yes ;;
  1316. no) enable_shared=no ;;
  1317. *)
  1318.   enable_shared=no
  1319.   # Look at the argument we got.  We use all the common list separators.
  1320.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1321.   for pkg in $enableval; do
  1322.     if test "X$pkg" = "X$p"; then
  1323.       enable_shared=yes
  1324.     fi
  1325.   done
  1326.   IFS="$ac_save_ifs"
  1327.   ;;
  1328. esac
  1329. else
  1330.   enable_shared=yes
  1331. fi
  1332.  
  1333. # Check whether --enable-static or --disable-static was given.
  1334. if test "${enable_static+set}" = set; then
  1335.   enableval="$enable_static"
  1336.   p=${PACKAGE-default}
  1337. case "$enableval" in
  1338. yes) enable_static=yes ;;
  1339. no) enable_static=no ;;
  1340. *)
  1341.   enable_static=no
  1342.   # Look at the argument we got.  We use all the common list separators.
  1343.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1344.   for pkg in $enableval; do
  1345.     if test "X$pkg" = "X$p"; then
  1346.       enable_static=yes
  1347.     fi
  1348.   done
  1349.   IFS="$ac_save_ifs"
  1350.   ;;
  1351. esac
  1352. else
  1353.   enable_static=yes
  1354. fi
  1355.  
  1356. # Check whether --enable-fast-install or --disable-fast-install was given.
  1357. if test "${enable_fast_install+set}" = set; then
  1358.   enableval="$enable_fast_install"
  1359.   p=${PACKAGE-default}
  1360. case "$enableval" in
  1361. yes) enable_fast_install=yes ;;
  1362. no) enable_fast_install=no ;;
  1363. *)
  1364.   enable_fast_install=no
  1365.   # Look at the argument we got.  We use all the common list separators.
  1366.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1367.   for pkg in $enableval; do
  1368.     if test "X$pkg" = "X$p"; then
  1369.       enable_fast_install=yes
  1370.     fi
  1371.   done
  1372.   IFS="$ac_save_ifs"
  1373.   ;;
  1374. esac
  1375. else
  1376.   enable_fast_install=yes
  1377. fi
  1378.  
  1379. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1380. echo "configure:1381: checking build system type" >&5
  1381.  
  1382. build_alias=$build
  1383. case "$build_alias" in
  1384. NONE)
  1385.   case $nonopt in
  1386.   NONE) build_alias=$host_alias ;;
  1387.   *) build_alias=$nonopt ;;
  1388.   esac ;;
  1389. esac
  1390.  
  1391. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1392. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1393. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1394. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1395. echo "$ac_t""$build" 1>&6
  1396.  
  1397. # Extract the first word of "ranlib", so it can be a program name with args.
  1398. set dummy ranlib; ac_word=$2
  1399. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1400. echo "configure:1401: checking for $ac_word" >&5
  1401. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1402.   echo $ac_n "(cached) $ac_c" 1>&6
  1403. else
  1404.   if test -n "$RANLIB"; then
  1405.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1406. else
  1407.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1408.   ac_dummy="$PATH"
  1409.   for ac_dir in $ac_dummy; do
  1410.     test -z "$ac_dir" && ac_dir=.
  1411.     if test -f $ac_dir/$ac_word; then
  1412.       ac_cv_prog_RANLIB="ranlib"
  1413.       break
  1414.     fi
  1415.   done
  1416.   IFS="$ac_save_ifs"
  1417.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1418. fi
  1419. fi
  1420. RANLIB="$ac_cv_prog_RANLIB"
  1421. if test -n "$RANLIB"; then
  1422.   echo "$ac_t""$RANLIB" 1>&6
  1423. else
  1424.   echo "$ac_t""no" 1>&6
  1425. fi
  1426.  
  1427. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1428. if test "${with_gnu_ld+set}" = set; then
  1429.   withval="$with_gnu_ld"
  1430.   test "$withval" = no || with_gnu_ld=yes
  1431. else
  1432.   with_gnu_ld=no
  1433. fi
  1434.  
  1435. ac_prog=ld
  1436. if test "$ac_cv_prog_gcc" = yes; then
  1437.   # Check if gcc -print-prog-name=ld gives a path.
  1438.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1439. echo "configure:1440: checking for ld used by GCC" >&5
  1440.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1441.   case "$ac_prog" in
  1442.     # Accept absolute paths.
  1443.     [\\/]* | [A-Za-z]:[\\/]*)
  1444.       re_direlt='/[^/][^/]*/\.\./'
  1445.       # Canonicalize the path of ld
  1446.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1447.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1448.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1449.       done
  1450.       test -z "$LD" && LD="$ac_prog"
  1451.       ;;
  1452.   "")
  1453.     # If it fails, then pretend we aren't using GCC.
  1454.     ac_prog=ld
  1455.     ;;
  1456.   *)
  1457.     # If it is relative, then search for the first ld in PATH.
  1458.     with_gnu_ld=unknown
  1459.     ;;
  1460.   esac
  1461. elif test "$with_gnu_ld" = yes; then
  1462.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1463. echo "configure:1464: checking for GNU ld" >&5
  1464. else
  1465.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1466. echo "configure:1467: checking for non-GNU ld" >&5
  1467. fi
  1468. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1469.   echo $ac_n "(cached) $ac_c" 1>&6
  1470. else
  1471.   if test -z "$LD"; then
  1472.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1473.   for ac_dir in $PATH; do
  1474.     test -z "$ac_dir" && ac_dir=.
  1475.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1476.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1477.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1478.       # but apparently some GNU ld's only accept -v.
  1479.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1480.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1481.     test "$with_gnu_ld" != no && break
  1482.       else
  1483.     test "$with_gnu_ld" != yes && break
  1484.       fi
  1485.     fi
  1486.   done
  1487.   IFS="$ac_save_ifs"
  1488. else
  1489.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1490. fi
  1491. fi
  1492.  
  1493. LD="$ac_cv_path_LD"
  1494. if test -n "$LD"; then
  1495.   echo "$ac_t""$LD" 1>&6
  1496. else
  1497.   echo "$ac_t""no" 1>&6
  1498. fi
  1499. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1500. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1501. echo "configure:1502: checking if the linker ($LD) is GNU ld" >&5
  1502. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1503.   echo $ac_n "(cached) $ac_c" 1>&6
  1504. else
  1505.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1506. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1507.   ac_cv_prog_gnu_ld=yes
  1508. else
  1509.   ac_cv_prog_gnu_ld=no
  1510. fi
  1511. fi
  1512.  
  1513. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1514.  
  1515.  
  1516. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1517. echo "configure:1518: checking for BSD-compatible nm" >&5
  1518. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1519.   echo $ac_n "(cached) $ac_c" 1>&6
  1520. else
  1521.   if test -n "$NM"; then
  1522.   # Let the user override the test.
  1523.   ac_cv_path_NM="$NM"
  1524. else
  1525.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1526.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1527.     test -z "$ac_dir" && ac_dir=.
  1528.     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  1529.       # Check to see if the nm accepts a BSD-compat flag.
  1530.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1531.       #   nm: unknown option "B" ignored
  1532.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1533.     ac_cv_path_NM="$ac_dir/nm -B"
  1534.     break
  1535.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1536.     ac_cv_path_NM="$ac_dir/nm -p"
  1537.     break
  1538.       else
  1539.     ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1540.     continue # so that we can try to find one that supports BSD flags
  1541.       fi
  1542.     fi
  1543.   done
  1544.   IFS="$ac_save_ifs"
  1545.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1546. fi
  1547. fi
  1548.  
  1549. NM="$ac_cv_path_NM"
  1550. echo "$ac_t""$NM" 1>&6
  1551.  
  1552. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1553. echo "configure:1554: checking whether ln -s works" >&5
  1554. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1555.   echo $ac_n "(cached) $ac_c" 1>&6
  1556. else
  1557.   rm -f conftestdata
  1558. if ln -s X conftestdata 2>/dev/null
  1559. then
  1560.   rm -f conftestdata
  1561.   ac_cv_prog_LN_S="ln -s"
  1562. else
  1563.   ac_cv_prog_LN_S=ln
  1564. fi
  1565. fi
  1566. LN_S="$ac_cv_prog_LN_S"
  1567. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1568.   echo "$ac_t""yes" 1>&6
  1569. else
  1570.   echo "$ac_t""no" 1>&6
  1571. fi
  1572.  
  1573. if test $host != $build; then
  1574.   ac_tool_prefix=${host_alias}-
  1575. else
  1576.   ac_tool_prefix=
  1577. fi
  1578.  
  1579.  
  1580. case "$target" in
  1581. NONE) lt_target="$host" ;;
  1582. *) lt_target="$target" ;;
  1583. esac
  1584.  
  1585. # Check for any special flags to pass to ltconfig.
  1586. libtool_flags="--cache-file=$cache_file"
  1587. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1588. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1589. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1590. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1591. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1592. libtool_flags="$libtool_flags --enable-dlopen"
  1593. libtool_flags="$libtool_flags --enable-win32-dll"
  1594. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1595. if test "${enable_libtool_lock+set}" = set; then
  1596.   enableval="$enable_libtool_lock"
  1597.   :
  1598. fi
  1599.  
  1600. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  1601. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  1602.  
  1603. # Some flags need to be propagated to the compiler or linker for good
  1604. # libtool support.
  1605. case "$lt_target" in
  1606. *-*-irix6*)
  1607.   # Find out which ABI we are using.
  1608.   echo '#line 1609 "configure"' > conftest.$ac_ext
  1609.   if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1610.     case "`/usr/bin/file conftest.o`" in
  1611.     *32-bit*)
  1612.       LD="${LD-ld} -32"
  1613.       ;;
  1614.     *N32*)
  1615.       LD="${LD-ld} -n32"
  1616.       ;;
  1617.     *64-bit*)
  1618.       LD="${LD-ld} -64"
  1619.       ;;
  1620.     esac
  1621.   fi
  1622.   rm -rf conftest*
  1623.   ;;
  1624.  
  1625. *-*-sco3.2v5*)
  1626.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1627.   SAVE_CFLAGS="$CFLAGS"
  1628.   CFLAGS="$CFLAGS -belf"
  1629.   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1630. echo "configure:1631: checking whether the C compiler needs -belf" >&5
  1631. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1632.   echo $ac_n "(cached) $ac_c" 1>&6
  1633. else
  1634.   cat > conftest.$ac_ext <<EOF
  1635. #line 1636 "configure"
  1636. #include "confdefs.h"
  1637.  
  1638. int main() {
  1639.  
  1640. ; return 0; }
  1641. EOF
  1642. if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1643.   rm -rf conftest*
  1644.   lt_cv_cc_needs_belf=yes
  1645. else
  1646.   echo "configure: failed program was:" >&5
  1647.   cat conftest.$ac_ext >&5
  1648.   rm -rf conftest*
  1649.   lt_cv_cc_needs_belf=no
  1650. fi
  1651. rm -f conftest*
  1652. fi
  1653.  
  1654. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1655.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1656.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1657.     CFLAGS="$SAVE_CFLAGS"
  1658.   fi
  1659.   ;;
  1660.  
  1661. *-*-cygwin* | *-*-mingw*)
  1662.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  1663. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  1664. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1665. echo "configure:1666: checking for $ac_word" >&5
  1666. if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1667.   echo $ac_n "(cached) $ac_c" 1>&6
  1668. else
  1669.   if test -n "$DLLTOOL"; then
  1670.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1671. else
  1672.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1673.   ac_dummy="$PATH"
  1674.   for ac_dir in $ac_dummy; do
  1675.     test -z "$ac_dir" && ac_dir=.
  1676.     if test -f $ac_dir/$ac_word; then
  1677.       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  1678.       break
  1679.     fi
  1680.   done
  1681.   IFS="$ac_save_ifs"
  1682. fi
  1683. fi
  1684. DLLTOOL="$ac_cv_prog_DLLTOOL"
  1685. if test -n "$DLLTOOL"; then
  1686.   echo "$ac_t""$DLLTOOL" 1>&6
  1687. else
  1688.   echo "$ac_t""no" 1>&6
  1689. fi
  1690.  
  1691.  
  1692. if test -z "$ac_cv_prog_DLLTOOL"; then
  1693. if test -n "$ac_tool_prefix"; then
  1694.   # Extract the first word of "dlltool", so it can be a program name with args.
  1695. set dummy dlltool; ac_word=$2
  1696. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1697. echo "configure:1698: checking for $ac_word" >&5
  1698. if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1699.   echo $ac_n "(cached) $ac_c" 1>&6
  1700. else
  1701.   if test -n "$DLLTOOL"; then
  1702.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1703. else
  1704.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1705.   ac_dummy="$PATH"
  1706.   for ac_dir in $ac_dummy; do
  1707.     test -z "$ac_dir" && ac_dir=.
  1708.     if test -f $ac_dir/$ac_word; then
  1709.       ac_cv_prog_DLLTOOL="dlltool"
  1710.       break
  1711.     fi
  1712.   done
  1713.   IFS="$ac_save_ifs"
  1714.   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
  1715. fi
  1716. fi
  1717. DLLTOOL="$ac_cv_prog_DLLTOOL"
  1718. if test -n "$DLLTOOL"; then
  1719.   echo "$ac_t""$DLLTOOL" 1>&6
  1720. else
  1721.   echo "$ac_t""no" 1>&6
  1722. fi
  1723.  
  1724. else
  1725.   DLLTOOL="false"
  1726. fi
  1727. fi
  1728.  
  1729.   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  1730. set dummy ${ac_tool_prefix}as; ac_word=$2
  1731. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1732. echo "configure:1733: checking for $ac_word" >&5
  1733. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1734.   echo $ac_n "(cached) $ac_c" 1>&6
  1735. else
  1736.   if test -n "$AS"; then
  1737.   ac_cv_prog_AS="$AS" # Let the user override the test.
  1738. else
  1739.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1740.   ac_dummy="$PATH"
  1741.   for ac_dir in $ac_dummy; do
  1742.     test -z "$ac_dir" && ac_dir=.
  1743.     if test -f $ac_dir/$ac_word; then
  1744.       ac_cv_prog_AS="${ac_tool_prefix}as"
  1745.       break
  1746.     fi
  1747.   done
  1748.   IFS="$ac_save_ifs"
  1749. fi
  1750. fi
  1751. AS="$ac_cv_prog_AS"
  1752. if test -n "$AS"; then
  1753.   echo "$ac_t""$AS" 1>&6
  1754. else
  1755.   echo "$ac_t""no" 1>&6
  1756. fi
  1757.  
  1758.  
  1759. if test -z "$ac_cv_prog_AS"; then
  1760. if test -n "$ac_tool_prefix"; then
  1761.   # Extract the first word of "as", so it can be a program name with args.
  1762. set dummy as; ac_word=$2
  1763. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1764. echo "configure:1765: checking for $ac_word" >&5
  1765. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1766.   echo $ac_n "(cached) $ac_c" 1>&6
  1767. else
  1768.   if test -n "$AS"; then
  1769.   ac_cv_prog_AS="$AS" # Let the user override the test.
  1770. else
  1771.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1772.   ac_dummy="$PATH"
  1773.   for ac_dir in $ac_dummy; do
  1774.     test -z "$ac_dir" && ac_dir=.
  1775.     if test -f $ac_dir/$ac_word; then
  1776.       ac_cv_prog_AS="as"
  1777.       break
  1778.     fi
  1779.   done
  1780.   IFS="$ac_save_ifs"
  1781.   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
  1782. fi
  1783. fi
  1784. AS="$ac_cv_prog_AS"
  1785. if test -n "$AS"; then
  1786.   echo "$ac_t""$AS" 1>&6
  1787. else
  1788.   echo "$ac_t""no" 1>&6
  1789. fi
  1790.  
  1791. else
  1792.   AS="false"
  1793. fi
  1794. fi
  1795.  
  1796.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  1797. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  1798. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1799. echo "configure:1800: checking for $ac_word" >&5
  1800. if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1801.   echo $ac_n "(cached) $ac_c" 1>&6
  1802. else
  1803.   if test -n "$OBJDUMP"; then
  1804.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1805. else
  1806.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1807.   ac_dummy="$PATH"
  1808.   for ac_dir in $ac_dummy; do
  1809.     test -z "$ac_dir" && ac_dir=.
  1810.     if test -f $ac_dir/$ac_word; then
  1811.       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  1812.       break
  1813.     fi
  1814.   done
  1815.   IFS="$ac_save_ifs"
  1816. fi
  1817. fi
  1818. OBJDUMP="$ac_cv_prog_OBJDUMP"
  1819. if test -n "$OBJDUMP"; then
  1820.   echo "$ac_t""$OBJDUMP" 1>&6
  1821. else
  1822.   echo "$ac_t""no" 1>&6
  1823. fi
  1824.  
  1825.  
  1826. if test -z "$ac_cv_prog_OBJDUMP"; then
  1827. if test -n "$ac_tool_prefix"; then
  1828.   # Extract the first word of "objdump", so it can be a program name with args.
  1829. set dummy objdump; ac_word=$2
  1830. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1831. echo "configure:1832: checking for $ac_word" >&5
  1832. if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  1833.   echo $ac_n "(cached) $ac_c" 1>&6
  1834. else
  1835.   if test -n "$OBJDUMP"; then
  1836.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1837. else
  1838.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1839.   ac_dummy="$PATH"
  1840.   for ac_dir in $ac_dummy; do
  1841.     test -z "$ac_dir" && ac_dir=.
  1842.     if test -f $ac_dir/$ac_word; then
  1843.       ac_cv_prog_OBJDUMP="objdump"
  1844.       break
  1845.     fi
  1846.   done
  1847.   IFS="$ac_save_ifs"
  1848.   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
  1849. fi
  1850. fi
  1851. OBJDUMP="$ac_cv_prog_OBJDUMP"
  1852. if test -n "$OBJDUMP"; then
  1853.   echo "$ac_t""$OBJDUMP" 1>&6
  1854. else
  1855.   echo "$ac_t""no" 1>&6
  1856. fi
  1857.  
  1858. else
  1859.   OBJDUMP="false"
  1860. fi
  1861. fi
  1862.  
  1863.   ;;
  1864.  
  1865. esac
  1866.  
  1867.  
  1868. # Save cache, so that ltconfig can load it
  1869. cat > confcache <<\EOF
  1870. # This file is a shell script that caches the results of configure
  1871. # tests run on this system so they can be shared between configure
  1872. # scripts and configure runs.  It is not useful on other systems.
  1873. # If it contains results you don't want to keep, you may remove or edit it.
  1874. #
  1875. # By default, configure uses ./config.cache as the cache file,
  1876. # creating it if it does not exist already.  You can give configure
  1877. # the --cache-file=FILE option to use a different cache file; that is
  1878. # what configure does when it calls configure scripts in
  1879. # subdirectories, so they share the cache.
  1880. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1881. # config.status only pays attention to the cache file if you give it the
  1882. # --recheck option to rerun configure.
  1883. #
  1884. EOF
  1885. # The following way of writing the cache mishandles newlines in values,
  1886. # but we know of no workaround that is simple, portable, and efficient.
  1887. # So, don't put newlines in cache variables' values.
  1888. # Ultrix sh set writes to stderr and can't be redirected directly,
  1889. # and sets the high bit in the cache file unless we assign to the vars.
  1890. (set) 2>&1 |
  1891.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1892.   *ac_space=\ *)
  1893.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1894.     # turns \\\\ into \\, and sed turns \\ into \).
  1895.     sed -n \
  1896.       -e "s/'/'\\\\''/g" \
  1897.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1898.     ;;
  1899.   *)
  1900.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1901.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1902.     ;;
  1903.   esac >> confcache
  1904. if cmp -s $cache_file confcache; then
  1905.   :
  1906. else
  1907.   if test -w $cache_file; then
  1908.     echo "updating cache $cache_file"
  1909.     cat confcache > $cache_file
  1910.   else
  1911.     echo "not updating unwritable cache $cache_file"
  1912.   fi
  1913. fi
  1914. rm -f confcache
  1915.  
  1916.  
  1917. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1918. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1919. LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  1920. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  1921. DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  1922. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1923. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  1924. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1925.  
  1926. # Reload cache, that may have been modified by ltconfig
  1927. if test -r "$cache_file"; then
  1928.   echo "loading cache $cache_file"
  1929.   . $cache_file
  1930. else
  1931.   echo "creating cache $cache_file"
  1932.   > $cache_file
  1933. fi
  1934.  
  1935.  
  1936. # This can be used to rebuild libtool when needed
  1937. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  1938.  
  1939. # Always use our own libtool.
  1940. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1941.  
  1942. # Redirect the config.log output again, so that the ltconfig log is not
  1943. # clobbered by the next message.
  1944. exec 5>>./config.log
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958. INCLUDES=
  1959.  
  1960. case $ac_sys_system in
  1961.     cyg*|CYG*) DEFINES="$DEFINES -U_WIN32 -UWIN32 -U__WIN32__ -U_Windows";;
  1962.  
  1963.         hp*|HP*)
  1964.     if test "$GCC" = ""; then 
  1965.         DEFINES="$DEFINES -Aa"
  1966.     fi;;
  1967.  
  1968.         osf1*|OSF1*) DEFINES="$DEFINES -pthread";;
  1969.  
  1970.         darwin|Darwin*)
  1971.     MATHLIB="";;
  1972.  
  1973.     *)    ;;
  1974. esac
  1975.  
  1976. # --------------------------------------------------------------------
  1977. #     PDFlib C++ language binding
  1978. # --------------------------------------------------------------------
  1979.  
  1980.  
  1981. WITH_CXX=no
  1982. STDCPP="-lstdc++"
  1983.  
  1984. # Check whether --enable-cxx or --disable-cxx was given.
  1985. if test "${enable_cxx+set}" = set; then
  1986.   enableval="$enable_cxx"
  1987.   WITH_CXX=yes
  1988. else
  1989.   WITH_CXX=no
  1990. fi
  1991.  
  1992.  
  1993. if test "$WITH_CXX" = "yes"; then
  1994.     ac_ext=C
  1995. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1996. ac_cpp='$CXXCPP $CPPFLAGS'
  1997. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1998. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1999. cross_compiling=$ac_cv_prog_cxx_cross
  2000.  
  2001.     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  2002. do
  2003. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2004. set dummy $ac_prog; ac_word=$2
  2005. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2006. echo "configure:2007: checking for $ac_word" >&5
  2007. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  2008.   echo $ac_n "(cached) $ac_c" 1>&6
  2009. else
  2010.   if test -n "$CXX"; then
  2011.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2012. else
  2013.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2014.   ac_dummy="$PATH"
  2015.   for ac_dir in $ac_dummy; do
  2016.     test -z "$ac_dir" && ac_dir=.
  2017.     if test -f $ac_dir/$ac_word; then
  2018.       ac_cv_prog_CXX="$ac_prog"
  2019.       break
  2020.     fi
  2021.   done
  2022.   IFS="$ac_save_ifs"
  2023. fi
  2024. fi
  2025. CXX="$ac_cv_prog_CXX"
  2026. if test -n "$CXX"; then
  2027.   echo "$ac_t""$CXX" 1>&6
  2028. else
  2029.   echo "$ac_t""no" 1>&6
  2030. fi
  2031.  
  2032. test -n "$CXX" && break
  2033. done
  2034. test -n "$CXX" || CXX="gcc"
  2035.  
  2036.  
  2037. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2038. echo "configure:2039: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  2039.  
  2040. ac_ext=C
  2041. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2042. ac_cpp='$CXXCPP $CPPFLAGS'
  2043. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2044. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2045. cross_compiling=$ac_cv_prog_cxx_cross
  2046.  
  2047. cat > conftest.$ac_ext << EOF
  2048.  
  2049. #line 2050 "configure"
  2050. #include "confdefs.h"
  2051.  
  2052. int main(){return(0);}
  2053. EOF
  2054. if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2055.   ac_cv_prog_cxx_works=yes
  2056.   # If we can't run a trivial program, we are probably using a cross compiler.
  2057.   if (./conftest; exit) 2>/dev/null; then
  2058.     ac_cv_prog_cxx_cross=no
  2059.   else
  2060.     ac_cv_prog_cxx_cross=yes
  2061.   fi
  2062. else
  2063.   echo "configure: failed program was:" >&5
  2064.   cat conftest.$ac_ext >&5
  2065.   ac_cv_prog_cxx_works=no
  2066. fi
  2067. rm -fr conftest*
  2068. ac_ext=C
  2069. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2070. ac_cpp='$CXXCPP $CPPFLAGS'
  2071. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2072. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2073. cross_compiling=$ac_cv_prog_cxx_cross
  2074.  
  2075. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  2076. if test $ac_cv_prog_cxx_works = no; then
  2077.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  2078. fi
  2079. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2080. echo "configure:2081: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  2081. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  2082. cross_compiling=$ac_cv_prog_cxx_cross
  2083.  
  2084. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  2085. echo "configure:2086: checking whether we are using GNU C++" >&5
  2086. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  2087.   echo $ac_n "(cached) $ac_c" 1>&6
  2088. else
  2089.   cat > conftest.C <<EOF
  2090. #ifdef __GNUC__
  2091.   yes;
  2092. #endif
  2093. EOF
  2094. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2095.   ac_cv_prog_gxx=yes
  2096. else
  2097.   ac_cv_prog_gxx=no
  2098. fi
  2099. fi
  2100.  
  2101. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  2102.  
  2103. if test $ac_cv_prog_gxx = yes; then
  2104.   GXX=yes
  2105. else
  2106.   GXX=
  2107. fi
  2108.  
  2109. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  2110. ac_save_CXXFLAGS="$CXXFLAGS"
  2111. CXXFLAGS=
  2112. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  2113. echo "configure:2114: checking whether ${CXX-g++} accepts -g" >&5
  2114. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  2115.   echo $ac_n "(cached) $ac_c" 1>&6
  2116. else
  2117.   echo 'void f(){}' > conftest.cc
  2118. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  2119.   ac_cv_prog_cxx_g=yes
  2120. else
  2121.   ac_cv_prog_cxx_g=no
  2122. fi
  2123. rm -f conftest*
  2124.  
  2125. fi
  2126.  
  2127. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  2128. if test "$ac_test_CXXFLAGS" = set; then
  2129.   CXXFLAGS="$ac_save_CXXFLAGS"
  2130. elif test $ac_cv_prog_cxx_g = yes; then
  2131.   if test "$GXX" = yes; then
  2132.     CXXFLAGS="-g -O2"
  2133.   else
  2134.     CXXFLAGS="-g"
  2135.   fi
  2136. else
  2137.   if test "$GXX" = yes; then
  2138.     CXXFLAGS="-O2"
  2139.   else
  2140.     CXXFLAGS=
  2141.   fi
  2142. fi
  2143.  
  2144.     echo $ac_n "checking whether the previously found C++ compiler works""... $ac_c" 1>&6
  2145. echo "configure:2146: checking whether the previously found C++ compiler works" >&5
  2146.     cat > conftest.$ac_ext <<EOF
  2147. #line 2148 "configure"
  2148. #include "confdefs.h"
  2149.  
  2150. int main() {
  2151. class a { int b; } 
  2152. ; return 0; }
  2153. EOF
  2154. if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2155.   rm -rf conftest*
  2156.   WITH_CXX=yes
  2157. else
  2158.   echo "configure: failed program was:" >&5
  2159.   cat conftest.$ac_ext >&5
  2160.   rm -rf conftest*
  2161.   WITH_CXX=no
  2162. fi
  2163. rm -f conftest*
  2164.     ac_ext=c
  2165. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2166. ac_cpp='$CPP $CPPFLAGS'
  2167. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2168. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2169. cross_compiling=$ac_cv_prog_cc_cross
  2170.  
  2171.  
  2172.                         
  2173.     case $ac_sys_system/$ac_sys_release in
  2174.         NeXT|next/3*) WITH_CXX="no";;
  2175.         NeXT|next/4*) WITH_CXX="no";;
  2176.  
  2177.         osf1*|OSF1*) STDCPP="";;
  2178.  
  2179.         *)                ;;
  2180.     esac
  2181.  
  2182.     if test "$WITH_CXX" = "yes"; then
  2183.     
  2184.     
  2185.     echo "$ac_t""yes" 1>&6
  2186.     else
  2187.     echo "$ac_t""no" 1>&6
  2188.     fi
  2189. fi
  2190.  
  2191. # --------------------------------------------------------------------
  2192. #     PDFlib Java binding (JNI)
  2193. # --------------------------------------------------------------------
  2194.  
  2195. WITH_JAVA=yes
  2196. JAVAINCLUDE=""
  2197. JAVAPACKAGE=""
  2198.  
  2199. # Check whether --with-java or --without-java was given.
  2200. if test "${with_java+set}" = set; then
  2201.   withval="$with_java"
  2202.   
  2203. case $withval in
  2204.     no) WITH_JAVA=no ;;
  2205.     yes) WITH_JAVA=yes ;;
  2206.     *) JAVAPACKAGE=$withval 
  2207.     ;;
  2208. esac
  2209.  
  2210. fi
  2211.  
  2212.  
  2213. if test "$WITH_JAVA" != "no" ; then
  2214.     WITH_JAVA=no
  2215.     echo $ac_n "checking for Java header files""... $ac_c" 1>&6
  2216. echo "configure:2217: checking for Java header files" >&5
  2217.  
  2218.     # try without any precautions
  2219.     cat > conftest.$ac_ext <<EOF
  2220. #line 2221 "configure"
  2221. #include "confdefs.h"
  2222. #include <jni.h>
  2223. EOF
  2224. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2225. { (eval echo configure:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2226. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2227. if test -z "$ac_err"; then
  2228.   rm -rf conftest*
  2229.   WITH_JAVA=yes
  2230. else
  2231.   echo "$ac_err" >&5
  2232.   echo "configure: failed program was:" >&5
  2233.   cat conftest.$ac_ext >&5
  2234.   rm -rf conftest*
  2235.    dirs="$prefix /usr/lib/java /usr/java /usr/include/java /usr/local/java /usr/local/include/kaffe /usr/lib/jdk1.3 /usr/lib/jdk1.2.2 /usr/lib/jdk1.2.1 /usr/jdk122 /usr/lib/jdk122 /usr/lib/jdk1.2.1 /usr/lib/jdk1.1.8 /usr/jdk118 /usr/lib/jdk118 /usr /opt/local /jdk1.3 /jdk1.2.3 /jdk1.2.2 /jdk1.2.1"
  2236.  
  2237.     if test "$JAVAPACKAGE" != ""; then
  2238.         dirs="$JAVAPACKAGE $dirs"
  2239.     fi
  2240.  
  2241.     # now try to find jni.h
  2242.     for i in $dirs ; do
  2243.         if test -r $i/jni.h; then
  2244.         JAVAINCLUDE="$i"
  2245.         break
  2246.         elif test -r $i/include/jni.h; then
  2247.         JAVAINCLUDE="$i/include"
  2248.         break
  2249.         fi
  2250.     done
  2251.     
  2252. fi
  2253. rm -f conftest*
  2254.  
  2255.     # now try with an include path
  2256.     if test "$JAVAINCLUDE" != ""; then
  2257.     OCPPFLAGS="$CPPFLAGS"
  2258.     CPPFLAGS="-I$JAVAINCLUDE $OCPPFLAGS"
  2259.     cat > conftest.$ac_ext <<EOF
  2260. #line 2261 "configure"
  2261. #include "confdefs.h"
  2262. #include <jni.h>
  2263. EOF
  2264. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2265. { (eval echo configure:2266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2266. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2267. if test -z "$ac_err"; then
  2268.   rm -rf conftest*
  2269.   
  2270.         WITH_JAVA=yes
  2271.         JAVAINCLUDE="-I$JAVAINCLUDE"
  2272.     
  2273. else
  2274.   echo "$ac_err" >&5
  2275.   echo "configure: failed program was:" >&5
  2276.   cat conftest.$ac_ext >&5
  2277. fi
  2278. rm -f conftest*
  2279.     CPPFLAGS="$OCPPFLAGS"
  2280.     fi
  2281.  
  2282.     # if the above didn't work probably jni_md.h is missing
  2283.     if test "WITH_JAVA" != "yes" ; then
  2284.     if test "$JAVAINCLUDE" != ""; then
  2285.         subdirs="$JAVAINCLUDE $JAVAINCLUDE/$MACHDEP $JAVAINCLUDE/$ac_md_system $JAVAINCLUDE/solaris $JAVAINCLUDE/genunix $JAVAINCLUDE/alpha $JAVAINCLUDE/win32"
  2286.         for i in $subdirs ; do
  2287.         if test -r $i/jni_md.h; then
  2288.             JAVAINCLUDE="-I$JAVAINCLUDE -I$i"
  2289.             WITH_JAVA=yes
  2290.             break
  2291.         fi
  2292.         done
  2293.     fi
  2294.     fi
  2295.  
  2296.     if test "$WITH_JAVA" = "no"; then
  2297.     echo "$ac_t""not found" 1>&6
  2298.     else
  2299.     echo "$ac_t""$JAVAINCLUDE" 1>&6
  2300.     
  2301.     fi
  2302.  
  2303. fi
  2304.  
  2305. # ----------------------------------------------------------------
  2306. #  PDFlib Perl binding
  2307. # ----------------------------------------------------------------
  2308.  
  2309. WITH_PERL=yes
  2310. PERLBIN=nope
  2311. PERLINCLUDE=nope
  2312.  
  2313. # Check whether --with-perl or --without-perl was given.
  2314. if test "${with_perl+set}" = set; then
  2315.   withval="$with_perl"
  2316.   PERLBIN="$withval"
  2317. else
  2318.   PERLBIN=nope
  2319. fi
  2320.  
  2321.  
  2322. if test "$PERLBIN" = "no" ; then
  2323.     WITH_PERL=no
  2324. fi
  2325.  
  2326. # Check whether --with-perlincl or --without-perlincl was given.
  2327. if test "${with_perlincl+set}" = set; then
  2328.   withval="$with_perlincl"
  2329.   PERLINCLUDE="$withval"
  2330. else
  2331.   PERLINCLUDE=nope
  2332. fi
  2333.  
  2334.  
  2335. if test "$WITH_PERL" = "yes" ; then
  2336.  
  2337.     WITH_PERL=no
  2338.         if test "$PERLBIN" = "nope"; then
  2339.     for ac_prog in perl perl5.6.0 perl5.005 perl5.004 perl5.003 perl5.002 perl5.001 perl5
  2340. do
  2341. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2342. set dummy $ac_prog; ac_word=$2
  2343. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2344. echo "configure:2345: checking for $ac_word" >&5
  2345. if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
  2346.   echo $ac_n "(cached) $ac_c" 1>&6
  2347. else
  2348.   if test -n "$PERL"; then
  2349.   ac_cv_prog_PERL="$PERL" # Let the user override the test.
  2350. else
  2351.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2352.   ac_dummy="$PATH"
  2353.   for ac_dir in $ac_dummy; do
  2354.     test -z "$ac_dir" && ac_dir=.
  2355.     if test -f $ac_dir/$ac_word; then
  2356.       ac_cv_prog_PERL="$ac_prog"
  2357.       break
  2358.     fi
  2359.   done
  2360.   IFS="$ac_save_ifs"
  2361. fi
  2362. fi
  2363. PERL="$ac_cv_prog_PERL"
  2364. if test -n "$PERL"; then
  2365.   echo "$ac_t""$PERL" 1>&6
  2366. else
  2367.   echo "$ac_t""no" 1>&6
  2368. fi
  2369.  
  2370. test -n "$PERL" && break
  2371. done
  2372. test -n "$PERL" || PERL="nope"
  2373.  
  2374.     else
  2375.     PERL="$PERLBIN"
  2376.     fi
  2377.     echo $ac_n "checking for Perl header file""... $ac_c" 1>&6
  2378. echo "configure:2379: checking for Perl header file" >&5
  2379.     if test "$PERL" != "nope"; then
  2380.     PERL5DIR=`($PERL -e 'use Config; print $Config{archlib};') 2>/dev/null`
  2381.     if test "$PERL5DIR" != ""; then
  2382.         if test "$PERLINCLUDE" = "nope"; then
  2383.         if test -r "$PERL5DIR/perl.h"; then
  2384.             echo "$ac_t""PERL5DIR/perl.h" 1>&6
  2385.             WITH_PERL=yes
  2386.             PERLINCLUDE="$PERL5DIR"
  2387.         elif test -r "$PERL5DIR/CORE/perl.h"; then
  2388.             echo "$ac_t""$PERL5DIR/CORE/perl.h" 1>&6
  2389.             WITH_PERL=yes
  2390.             PERLINCLUDE="$PERL5DIR/CORE"
  2391.         fi
  2392.         else
  2393.         WITH_PERL=yes
  2394.         echo "$ac_t""$PERLINCLUDE" 1>&6
  2395.         fi
  2396.         if test "$PERLINCLUDE" = "nope"; then
  2397.         echo "$ac_t""could not locate perl.h..." 1>&6
  2398.         WITH_PERL=no
  2399.         fi    
  2400.     else
  2401.         echo "$ac_t""unable to determine perl configuration" 1>&6
  2402.         WITH_PERL=no
  2403.     fi
  2404.  
  2405.     PERLLIBDIR=`($PERL -e 'use Config; print $Config{sitearchexp};') 2>/dev/null`
  2406.     if test -z "$PERLLIBDIR" -o ! -d "$PERLLIBDIR"; then
  2407.         echo "$ac_t""unable to determine perl shared library directory" 1>&6
  2408.     fi
  2409.  
  2410.     PERLMODDIR=`($PERL -e 'use Config; print $Config{sitelib};') 2>/dev/null`
  2411.     if test -z "$PERLMODDIR" -o ! -d "$PERLMODDIR"; then
  2412.         echo "$ac_t""unable to determine perl module directory" 1>&6
  2413.         PERLMODDIR="/usr/local/lib/perl5/site_perl/5.6.0"
  2414.     fi
  2415.     else
  2416.     echo "$ac_t""could not figure out how to run perl" 1>&6
  2417.     PERLINCLUDE="/usr/local/lib/perl5/5.6.0/archname/CORE"
  2418.     fi
  2419.  
  2420.         
  2421.     case $ac_sys_system in
  2422.         NeXT|next) PERLBOOLDEF="";;
  2423.         *)    PERLBOOLDEF="-Dbool=char -DHAS_BOOL";;
  2424.     esac
  2425.  
  2426.                 
  2427.     case $ac_sys_system/$ac_sys_release in
  2428.     cyg*|CYG*) PERLLINK="-L$PERLINCLUDE -lperl";;
  2429.     aix*|AIX*) PERLLINK="-L$PERLINCLUDE -lperl";;
  2430.     osf1*|OSF1*) PERLLINK="-L$PERLINCLUDE -lperl";;
  2431.     *)    PERLLINK="";;
  2432.     esac
  2433.  
  2434.     PERLINCLUDE="-I$PERLINCLUDE"
  2435.     
  2436.     
  2437.     
  2438.     
  2439.     
  2440.     
  2441. fi
  2442.  
  2443. # ----------------------------------------------------------------
  2444. #  PDFlib Python binding
  2445. # ----------------------------------------------------------------
  2446.  
  2447. WITH_PYTHON=yes
  2448. PYINCLUDE=nope
  2449. PYPACKAGE=nope
  2450.  
  2451. # Check whether --with-py or --without-py was given.
  2452. if test "${with_py+set}" = set; then
  2453.   withval="$with_py"
  2454.   PYPACKAGE="$withval"
  2455. else
  2456.   PYPACKAGE=nope
  2457. fi
  2458.  
  2459.  
  2460. if test "$PYPACKAGE" = "no" ; then
  2461.     WITH_PYTHON=no
  2462. fi
  2463.  
  2464. # Check whether --with-pyincl or --without-pyincl was given.
  2465. if test "${with_pyincl+set}" = set; then
  2466.   withval="$with_pyincl"
  2467.   PYINCLUDE="$withval"
  2468. else
  2469.   PYINCLUDE=nope
  2470. fi
  2471.  
  2472.  
  2473. if test "$PYINCLUDE" = "nope" -a "$PYPACKAGE" != "no"; then
  2474.     PYINCLUDE="$PYPACKAGE/include"
  2475. fi
  2476.  
  2477. if test "$WITH_PYTHON" != "no" ; then
  2478.     WITH_PYTHON=no
  2479.     echo $ac_n "checking for Python header files""... $ac_c" 1>&6
  2480. echo "configure:2481: checking for Python header files" >&5
  2481.  
  2482.     dirs="$PYINCLUDE $PYINCLUDE/python1.5 $PYINCLUDE/python1.4 $PYINCLUDE/Py $prefix/include/python1.5 $prefix/include/python1.4 /usr/local/include/python1.5 /usr/include/python1.5 /usr/local/include/python1.4 /usr/include/python1.4 $prefix/include/Py /usr/local/include/Py /usr/include/Py /usr/pkg/include"
  2483.     for i in $dirs ; do
  2484.         if test -r $i/Python.h; then
  2485.             echo "$ac_t""$i" 1>&6
  2486.             PYINCLUDE="-I$i"
  2487.             WITH_PYTHON=yes
  2488.             break
  2489.         fi
  2490.     done
  2491.     if test "$PYINCLUDE" = "nope" -o "$PYINCLUDE" = "$PYPACKAGE/include"; then
  2492.     echo "$ac_t""not found" 1>&6
  2493.     WITH_PYTHON=no
  2494.     fi
  2495.  
  2496.     
  2497.  
  2498.     for ac_prog in python
  2499. do
  2500. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2501. set dummy $ac_prog; ac_word=$2
  2502. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2503. echo "configure:2504: checking for $ac_word" >&5
  2504. if eval "test \"`echo '$''{'ac_cv_prog_PYTHONBIN'+set}'`\" = set"; then
  2505.   echo $ac_n "(cached) $ac_c" 1>&6
  2506. else
  2507.   if test -n "$PYTHONBIN"; then
  2508.   ac_cv_prog_PYTHONBIN="$PYTHONBIN" # Let the user override the test.
  2509. else
  2510.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2511.   ac_dummy="$PATH"
  2512.   for ac_dir in $ac_dummy; do
  2513.     test -z "$ac_dir" && ac_dir=.
  2514.     if test -f $ac_dir/$ac_word; then
  2515.       ac_cv_prog_PYTHONBIN="$ac_prog"
  2516.       break
  2517.     fi
  2518.   done
  2519.   IFS="$ac_save_ifs"
  2520. fi
  2521. fi
  2522. PYTHONBIN="$ac_cv_prog_PYTHONBIN"
  2523. if test -n "$PYTHONBIN"; then
  2524.   echo "$ac_t""$PYTHONBIN" 1>&6
  2525. else
  2526.   echo "$ac_t""no" 1>&6
  2527. fi
  2528.  
  2529. test -n "$PYTHONBIN" && break
  2530. done
  2531. test -n "$PYTHONBIN" || PYTHONBIN="nope"
  2532.  
  2533.  
  2534.     if test "$PYTHONBIN" = "nope" ; then
  2535.     WITH_PYTHON=no
  2536.     fi
  2537.  
  2538.     if test "$WITH_PYTHON" = "yes" ; then
  2539.         echo $ac_n "checking for Python shared library path""... $ac_c" 1>&6
  2540. echo "configure:2541: checking for Python shared library path" >&5
  2541.  
  2542.     if test "$PYTHONBIN" = "nope" ; then
  2543.         WITH_PYTHON=no
  2544.     else
  2545.         PYTHONLIBDIR=`cat << EOF | python | grep dynload
  2546. import sys
  2547. for d in sys.path:
  2548.  print d
  2549. EOF
  2550. `
  2551.         if test "$PYTHONLIBDIR" = "" ; then
  2552.         PYTHONLIBDIR=/usr/lib
  2553.         fi
  2554.         
  2555.  
  2556.     fi
  2557.  
  2558.     echo "$ac_t""$PYTHONLIBDIR" 1>&6
  2559.     fi
  2560. fi
  2561.  
  2562. # --------------------------------------------------------------------
  2563. #     PDFlib Tcl binding
  2564. # --------------------------------------------------------------------
  2565.  
  2566. WITH_TCL=yes
  2567. TCLINCLUDE=nope
  2568. TCLPACKAGEDIR=nope
  2569. TCLBIN=nope
  2570.  
  2571. # Check whether --with-tcl or --without-tcl was given.
  2572. if test "${with_tcl+set}" = set; then
  2573.   withval="$with_tcl"
  2574.   TCLBIN="$withval"
  2575. fi
  2576.  
  2577.  
  2578. if test "$TCLBIN" = "no" ; then
  2579.     WITH_TCL=no
  2580. fi
  2581.  
  2582. # Check whether --with-tclpkg or --without-tclpkg was given.
  2583. if test "${with_tclpkg+set}" = set; then
  2584.   withval="$with_tclpkg"
  2585.   TCLPACKAGEDIR="$withval"
  2586. else
  2587.   TCLPACKAGEDIR=nope
  2588. fi
  2589.  
  2590.  
  2591. # Check whether --with-tclincl or --without-tclincl was given.
  2592. if test "${with_tclincl+set}" = set; then
  2593.   withval="$with_tclincl"
  2594.   TCLINCLUDE="$withval"
  2595. else
  2596.   TCLINCLUDE=nope
  2597. fi
  2598.  
  2599.  
  2600. if test "$WITH_TCL" = "yes" ; then
  2601.     WITH_TCL=no
  2602.     echo $ac_n "checking for Tcl header files""... $ac_c" 1>&6
  2603. echo "configure:2604: checking for Tcl header files" >&5
  2604.  
  2605.     if test "$TCLINCLUDE" = "nope"; then
  2606.     cat > conftest.$ac_ext <<EOF
  2607. #line 2608 "configure"
  2608. #include "confdefs.h"
  2609. #include <tcl.h>
  2610. EOF
  2611. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2612. { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2613. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2614. if test -z "$ac_err"; then
  2615.   :
  2616. else
  2617.   echo "$ac_err" >&5
  2618.   echo "configure: failed program was:" >&5
  2619.   cat conftest.$ac_ext >&5
  2620.   rm -rf conftest*
  2621.   TCLINCLUDE="nope"
  2622. fi
  2623. rm -f conftest*
  2624.     if test "$TCLINCLUDE" = "nope"; then
  2625.         dirs="$prefix/include /usr/local/include /usr/include /opt/local/include /home/sci/local/include /usr/pkg/include"
  2626.         for i in $dirs ; do
  2627.         if test -r $i/tcl.h; then
  2628.             echo "$ac_t""$i" 1>&6
  2629.             TCLINCLUDE="$i"
  2630.             WITH_TCL=yes
  2631.             break
  2632.         fi
  2633.         done
  2634.     fi
  2635.  
  2636.     if test "$TCLINCLUDE" = "nope"; then
  2637.         echo "$ac_t""not found" 1>&6
  2638.         WITH_TCL=no
  2639.     fi
  2640.     else
  2641.     echo "$ac_t""$TCLINCLUDE" 1>&6
  2642.     fi
  2643.  
  2644.         
  2645.     if test "$TCLINCLUDE" != "nope" -a "$TCLBIN" = "nope"; then
  2646.     for ac_prog in tclsh tclsh8.3 tclsh8.2 tclsh8.1 tclsh8.0
  2647. do
  2648. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2649. set dummy $ac_prog; ac_word=$2
  2650. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2651. echo "configure:2652: checking for $ac_word" >&5
  2652. if eval "test \"`echo '$''{'ac_cv_prog_TCL'+set}'`\" = set"; then
  2653.   echo $ac_n "(cached) $ac_c" 1>&6
  2654. else
  2655.   if test -n "$TCL"; then
  2656.   ac_cv_prog_TCL="$TCL" # Let the user override the test.
  2657. else
  2658.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2659.   ac_dummy="$PATH"
  2660.   for ac_dir in $ac_dummy; do
  2661.     test -z "$ac_dir" && ac_dir=.
  2662.     if test -f $ac_dir/$ac_word; then
  2663.       ac_cv_prog_TCL="$ac_prog"
  2664.       break
  2665.     fi
  2666.   done
  2667.   IFS="$ac_save_ifs"
  2668. fi
  2669. fi
  2670. TCL="$ac_cv_prog_TCL"
  2671. if test -n "$TCL"; then
  2672.   echo "$ac_t""$TCL" 1>&6
  2673. else
  2674.   echo "$ac_t""no" 1>&6
  2675. fi
  2676.  
  2677. test -n "$TCL" && break
  2678. done
  2679. test -n "$TCL" || TCL="nope"
  2680.  
  2681.     TCLBIN=$TCL
  2682.     fi
  2683.  
  2684.     if test "$TCLINCLUDE" = "nope" -o "$TCLBIN" = "nope"; then
  2685.     WITH_TCL=no
  2686.     else
  2687.         TCLVERSION=`echo "puts [info tclversion]" | $TCLBIN`
  2688.     if test  "$TCLVERSION" = "7.6" -o "$TCLVERSION" = "7.5" -o  "$TCLVERSION" = "7.4" -o "$TCLVERSION" = "7.3" -o "$TCLVERSION" = "7.1" -o "$TCLVERSION" = "7.0"; then
  2689.         echo "$ac_t""         Tcl version 8.0 or newer is required for PDFlib." 1>&6
  2690.         echo "$ac_t""         PDFlib support for Tcl will not be built." 1>&6
  2691.         WITH_TCL=no
  2692.     else
  2693.     
  2694.         if test "$TCLPACKAGEDIR" = "nope"; then
  2695.                 TCLPACKAGEDIR=`(echo "puts \\$auto_path" | "$TCLBIN" | awk '{print $1}') 2>/dev/null`
  2696.         fi
  2697.  
  2698.         if test "$TCLPACKAGEDIR" = "nope" -o -z "$TCLPACKAGEDIR" -o ! -d "$TCLPACKAGEDIR"; then
  2699.         echo "$ac_t""unable to determine Tcl package directory" 1>&6
  2700.         WITH_TCL=no
  2701.  
  2702.         else
  2703.  
  2704.         TCLPACKAGEDIR=$TCLPACKAGEDIR/pdflib
  2705.         WITH_TCL=yes
  2706.         fi
  2707.     fi
  2708.     fi
  2709. fi
  2710.  
  2711. TCLINCLUDE="-I$TCLINCLUDE"
  2712.  
  2713.  
  2714.  
  2715.  
  2716. # ----------------------------------------------------------------
  2717. #  PDFlib auxiliary library: TIFFlib
  2718. # ----------------------------------------------------------------
  2719.  
  2720. WITH_TIFFLIB=yes
  2721. TIFFLIBINC=""
  2722. TIFFLIBLINK=""
  2723. TIFFWARN=""
  2724. tiffauxlib=""
  2725.  
  2726. # Check whether --with-tiffauxlib or --without-tiffauxlib was given.
  2727. if test "${with_tiffauxlib+set}" = set; then
  2728.   withval="$with_tiffauxlib"
  2729.   tiffauxlib="$withval"
  2730. fi
  2731.  
  2732.  
  2733. # Check whether --with-tifflib or --without-tifflib was given.
  2734. if test "${with_tifflib+set}" = set; then
  2735.   withval="$with_tifflib"
  2736.   
  2737. case "$withval" in
  2738.     no) WITH_TIFFLIB=no ;;
  2739.  
  2740.     yes)
  2741.     echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  2742. echo "configure:2743: checking for TIFFOpen in -ltiff" >&5
  2743. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  2744. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2745.   echo $ac_n "(cached) $ac_c" 1>&6
  2746. else
  2747.   ac_save_LIBS="$LIBS"
  2748. LIBS="-ltiff $tiffauxlib $MATHLIB $LIBS"
  2749. cat > conftest.$ac_ext <<EOF
  2750. #line 2751 "configure"
  2751. #include "confdefs.h"
  2752. /* Override any gcc2 internal prototype to avoid an error.  */
  2753. /* We use char because int might match the return type of a gcc2
  2754.     builtin and then its argument prototype would still apply.  */
  2755. char TIFFOpen();
  2756.  
  2757. int main() {
  2758. TIFFOpen()
  2759. ; return 0; }
  2760. EOF
  2761. if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2762.   rm -rf conftest*
  2763.   eval "ac_cv_lib_$ac_lib_var=yes"
  2764. else
  2765.   echo "configure: failed program was:" >&5
  2766.   cat conftest.$ac_ext >&5
  2767.   rm -rf conftest*
  2768.   eval "ac_cv_lib_$ac_lib_var=no"
  2769. fi
  2770. rm -f conftest*
  2771. LIBS="$ac_save_LIBS"
  2772.  
  2773. fi
  2774. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2775.   echo "$ac_t""yes" 1>&6
  2776.   TIFFLIBLINK="-ltiff $tiffauxlib"
  2777. else
  2778.   echo "$ac_t""no" 1>&6
  2779. WITH_TIFFLIB=no
  2780. fi
  2781.  ;;
  2782.  
  2783.     *)
  2784.     test -f $withval/include/libtiff/tiff.h && TIFFLIBINC="-I$withval/include/libtiff"
  2785.     test -f $withval/libtiff/tiff.h && TIFFLIBINC="$withval/libtiff"
  2786.     test -f $withval/include/tiff.h && TIFFLIBINC="$withval/include"
  2787.     test -f $withval/tiff.h && TIFFLIBINC="$withval"
  2788.  
  2789.     if test -z "$TIFFLIBINC" ; then
  2790.     ac_safe=`echo "tiff.h" | sed 'y%./+-%__p_%'`
  2791. echo $ac_n "checking for tiff.h""... $ac_c" 1>&6
  2792. echo "configure:2793: checking for tiff.h" >&5
  2793. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2794.   echo $ac_n "(cached) $ac_c" 1>&6
  2795. else
  2796.   cat > conftest.$ac_ext <<EOF
  2797. #line 2798 "configure"
  2798. #include "confdefs.h"
  2799. #include <tiff.h>
  2800. EOF
  2801. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2802. { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2803. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2804. if test -z "$ac_err"; then
  2805.   rm -rf conftest*
  2806.   eval "ac_cv_header_$ac_safe=yes"
  2807. else
  2808.   echo "$ac_err" >&5
  2809.   echo "configure: failed program was:" >&5
  2810.   cat conftest.$ac_ext >&5
  2811.   rm -rf conftest*
  2812.   eval "ac_cv_header_$ac_safe=no"
  2813. fi
  2814. rm -f conftest*
  2815. fi
  2816. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2817.   echo "$ac_t""yes" 1>&6
  2818.   :
  2819. else
  2820.   echo "$ac_t""no" 1>&6
  2821. WITH_TIFFLIB=no
  2822. fi
  2823.  
  2824.     else
  2825.     echo $ac_n "checking for tiff.h""... $ac_c" 1>&6
  2826. echo "configure:2827: checking for tiff.h" >&5
  2827.     echo "$ac_t""$TIFFLIBINC" 1>&6
  2828.     TIFFLIBINC="-I$TIFFLIBINC"
  2829.     fi
  2830.  
  2831.     if test "$WITH_TIFFLIB" != "no" ; then
  2832.     echo $ac_n "checking for libtiff.a""... $ac_c" 1>&6
  2833. echo "configure:2834: checking for libtiff.a" >&5
  2834.     tiffdir=""
  2835.     test -f $withval/libtiff/libtiff.a && tiffdir="$withval/libtiff"
  2836.     test -f $withval/lib/libtiff.a && tiffdir="$withval/lib"
  2837.     test -f $withval/libtiff.a && tiffdir="$withval"
  2838.  
  2839.     if test "$tiffdir" != "" ; then
  2840.         TIFFLIBLINK="-L$tiffdir -ltiff $tiffauxlib"
  2841.         echo "$ac_t""$TIFFLIBLINK" 1>&6
  2842.         TIFFWARN="$tiffdir/libtiff.s*"
  2843.     else
  2844.         echo "$ac_t""not found" 1>&6
  2845.         WITH_TIFFLIB=no
  2846.     fi
  2847.     fi ;;
  2848. esac
  2849.  
  2850. else
  2851.   
  2852.     ac_safe=`echo "tiff.h" | sed 'y%./+-%__p_%'`
  2853. echo $ac_n "checking for tiff.h""... $ac_c" 1>&6
  2854. echo "configure:2855: checking for tiff.h" >&5
  2855. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2856.   echo $ac_n "(cached) $ac_c" 1>&6
  2857. else
  2858.   cat > conftest.$ac_ext <<EOF
  2859. #line 2860 "configure"
  2860. #include "confdefs.h"
  2861. #include <tiff.h>
  2862. EOF
  2863. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2864. { (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2865. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2866. if test -z "$ac_err"; then
  2867.   rm -rf conftest*
  2868.   eval "ac_cv_header_$ac_safe=yes"
  2869. else
  2870.   echo "$ac_err" >&5
  2871.   echo "configure: failed program was:" >&5
  2872.   cat conftest.$ac_ext >&5
  2873.   rm -rf conftest*
  2874.   eval "ac_cv_header_$ac_safe=no"
  2875. fi
  2876. rm -f conftest*
  2877. fi
  2878. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2879.   echo "$ac_t""yes" 1>&6
  2880.   :
  2881. else
  2882.   echo "$ac_t""no" 1>&6
  2883. WITH_TIFFLIB=no
  2884. fi
  2885.  
  2886.     if test "$WITH_TIFFLIB" = "yes" ; then
  2887.     echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  2888. echo "configure:2889: checking for TIFFOpen in -ltiff" >&5
  2889. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  2890. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2891.   echo $ac_n "(cached) $ac_c" 1>&6
  2892. else
  2893.   ac_save_LIBS="$LIBS"
  2894. LIBS="-ltiff $tiffauxlib $MATHLIB $LIBS"
  2895. cat > conftest.$ac_ext <<EOF
  2896. #line 2897 "configure"
  2897. #include "confdefs.h"
  2898. /* Override any gcc2 internal prototype to avoid an error.  */
  2899. /* We use char because int might match the return type of a gcc2
  2900.     builtin and then its argument prototype would still apply.  */
  2901. char TIFFOpen();
  2902.  
  2903. int main() {
  2904. TIFFOpen()
  2905. ; return 0; }
  2906. EOF
  2907. if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2908.   rm -rf conftest*
  2909.   eval "ac_cv_lib_$ac_lib_var=yes"
  2910. else
  2911.   echo "configure: failed program was:" >&5
  2912.   cat conftest.$ac_ext >&5
  2913.   rm -rf conftest*
  2914.   eval "ac_cv_lib_$ac_lib_var=no"
  2915. fi
  2916. rm -f conftest*
  2917. LIBS="$ac_save_LIBS"
  2918.  
  2919. fi
  2920. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2921.   echo "$ac_t""yes" 1>&6
  2922.   TIFFLIBLINK="-ltiff $tiffauxlib"
  2923. else
  2924.   echo "$ac_t""no" 1>&6
  2925. WITH_TIFFLIB=no
  2926. fi
  2927.  
  2928.     fi
  2929.  
  2930. fi
  2931.  
  2932.  
  2933. if test "$WITH_TIFFLIB" = "yes" ; then
  2934.     INCLUDES="$INCLUDES -DHAVE_LIBTIFF"
  2935. fi
  2936.  
  2937.  
  2938. # ----------------------------------------------------------------
  2939. #  PDFlib auxiliary library: Zlib
  2940. # ----------------------------------------------------------------
  2941.  
  2942. WITH_ZLIB=yes
  2943. ZLIBINC=""
  2944. ZLIBLINK=""
  2945. ZWARN=""
  2946.  
  2947. # Check whether --with-zlib or --without-zlib was given.
  2948. if test "${with_zlib+set}" = set; then
  2949.   withval="$with_zlib"
  2950.   
  2951. case "$withval" in
  2952.     no) WITH_ZLIB=no ;;
  2953.  
  2954.     yes)
  2955.     LIBS=""
  2956.     
  2957. echo $ac_n "checking for library containing deflateEnd""... $ac_c" 1>&6
  2958. echo "configure:2959: checking for library containing deflateEnd" >&5
  2959. if eval "test \"`echo '$''{'ac_cv_search_deflateEnd'+set}'`\" = set"; then
  2960.   echo $ac_n "(cached) $ac_c" 1>&6
  2961. else
  2962.   ac_func_search_save_LIBS="$LIBS"
  2963. ac_cv_search_deflateEnd="no"
  2964. cat > conftest.$ac_ext <<EOF
  2965. #line 2966 "configure"
  2966. #include "confdefs.h"
  2967. /* Override any gcc2 internal prototype to avoid an error.  */
  2968. /* We use char because int might match the return type of a gcc2
  2969.     builtin and then its argument prototype would still apply.  */
  2970. char deflateEnd();
  2971.  
  2972. int main() {
  2973. deflateEnd()
  2974. ; return 0; }
  2975. EOF
  2976. if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2977.   rm -rf conftest*
  2978.   ac_cv_search_deflateEnd="none required"
  2979. else
  2980.   echo "configure: failed program was:" >&5
  2981.   cat conftest.$ac_ext >&5
  2982. fi
  2983. rm -f conftest*
  2984. test "$ac_cv_search_deflateEnd" = "no" && for i in z gz; do
  2985. LIBS="-l$i  $ac_func_search_save_LIBS"
  2986. cat > conftest.$ac_ext <<EOF
  2987. #line 2988 "configure"
  2988. #include "confdefs.h"
  2989. /* Override any gcc2 internal prototype to avoid an error.  */
  2990. /* We use char because int might match the return type of a gcc2
  2991.     builtin and then its argument prototype would still apply.  */
  2992. char deflateEnd();
  2993.  
  2994. int main() {
  2995. deflateEnd()
  2996. ; return 0; }
  2997. EOF
  2998. if { (eval echo configure:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2999.   rm -rf conftest*
  3000.   ac_cv_search_deflateEnd="-l$i"
  3001. break
  3002. else
  3003.   echo "configure: failed program was:" >&5
  3004.   cat conftest.$ac_ext >&5
  3005. fi
  3006. rm -f conftest*
  3007. done
  3008. LIBS="$ac_func_search_save_LIBS"
  3009. fi
  3010.  
  3011. echo "$ac_t""$ac_cv_search_deflateEnd" 1>&6
  3012. if test "$ac_cv_search_deflateEnd" != "no"; then
  3013.   test "$ac_cv_search_deflateEnd" = "none required" || LIBS="$ac_cv_search_deflateEnd $LIBS"
  3014.   ZLIBLINK=$LIBS
  3015. else :
  3016.   WITH_ZLIB=no
  3017. fi ;;
  3018.  
  3019.     *)
  3020.     test -f $withval/include/zlib/zlib.h && ZLIBINC="$withval/include/zlib"
  3021.     test -f $withval/include/zlib.h && ZLIBINC="$withval/include"
  3022.     test -f $withval/zlib.h && ZLIBINC="$withval"
  3023.     if test -z "$ZLIBINC" ; then
  3024.     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
  3025. echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
  3026. echo "configure:3027: checking for zlib.h" >&5
  3027. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3028.   echo $ac_n "(cached) $ac_c" 1>&6
  3029. else
  3030.   cat > conftest.$ac_ext <<EOF
  3031. #line 3032 "configure"
  3032. #include "confdefs.h"
  3033. #include <zlib.h>
  3034. EOF
  3035. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3036. { (eval echo configure:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3037. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3038. if test -z "$ac_err"; then
  3039.   rm -rf conftest*
  3040.   eval "ac_cv_header_$ac_safe=yes"
  3041. else
  3042.   echo "$ac_err" >&5
  3043.   echo "configure: failed program was:" >&5
  3044.   cat conftest.$ac_ext >&5
  3045.   rm -rf conftest*
  3046.   eval "ac_cv_header_$ac_safe=no"
  3047. fi
  3048. rm -f conftest*
  3049. fi
  3050. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3051.   echo "$ac_t""yes" 1>&6
  3052.   :
  3053. else
  3054.   echo "$ac_t""no" 1>&6
  3055. WITH_ZLIB=no
  3056. fi
  3057.  
  3058.     else
  3059.     echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
  3060. echo "configure:3061: checking for zlib.h" >&5
  3061.     echo "$ac_t""$ZLIBINC" 1>&6
  3062.     ZLIBINC="-I$ZLIBINC"
  3063.     fi
  3064.     if test "$WITH_ZLIB" != "no"; then
  3065.     echo $ac_n "checking for libz.a""... $ac_c" 1>&6
  3066. echo "configure:3067: checking for libz.a" >&5
  3067.     zdir=""
  3068.     test -f $withval/lib/libz.a && zdir="$withval/lib"
  3069.     test -f $withval/libz.a && zdir="$withval"
  3070.  
  3071.     if test "$zdir" != "" ; then
  3072.         ZLIBLINK="-L$zdir -lz"
  3073.         echo "$ac_t""$ZLIBLINK" 1>&6
  3074.         ZWARN="$zdir/libz.s*"
  3075.     else
  3076.         echo "$ac_t""not found" 1>&6
  3077.         WITH_ZLIB=no
  3078.     fi
  3079.  
  3080.     fi ;;
  3081. esac
  3082.  
  3083. else
  3084.   
  3085.     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
  3086. echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
  3087. echo "configure:3088: checking for zlib.h" >&5
  3088. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3089.   echo $ac_n "(cached) $ac_c" 1>&6
  3090. else
  3091.   cat > conftest.$ac_ext <<EOF
  3092. #line 3093 "configure"
  3093. #include "confdefs.h"
  3094. #include <zlib.h>
  3095. EOF
  3096. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3097. { (eval echo configure:3098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3098. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3099. if test -z "$ac_err"; then
  3100.   rm -rf conftest*
  3101.   eval "ac_cv_header_$ac_safe=yes"
  3102. else
  3103.   echo "$ac_err" >&5
  3104.   echo "configure: failed program was:" >&5
  3105.   cat conftest.$ac_ext >&5
  3106.   rm -rf conftest*
  3107.   eval "ac_cv_header_$ac_safe=no"
  3108. fi
  3109. rm -f conftest*
  3110. fi
  3111. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3112.   echo "$ac_t""yes" 1>&6
  3113.   :
  3114. else
  3115.   echo "$ac_t""no" 1>&6
  3116. WITH_ZLIB=no
  3117. fi
  3118.  
  3119.     if test "$WITH_ZLIB" = "yes" ; then
  3120.     
  3121. echo $ac_n "checking for library containing deflateEnd""... $ac_c" 1>&6
  3122. echo "configure:3123: checking for library containing deflateEnd" >&5
  3123. if eval "test \"`echo '$''{'ac_cv_search_deflateEnd'+set}'`\" = set"; then
  3124.   echo $ac_n "(cached) $ac_c" 1>&6
  3125. else
  3126.   ac_func_search_save_LIBS="$LIBS"
  3127. ac_cv_search_deflateEnd="no"
  3128. cat > conftest.$ac_ext <<EOF
  3129. #line 3130 "configure"
  3130. #include "confdefs.h"
  3131. /* Override any gcc2 internal prototype to avoid an error.  */
  3132. /* We use char because int might match the return type of a gcc2
  3133.     builtin and then its argument prototype would still apply.  */
  3134. char deflateEnd();
  3135.  
  3136. int main() {
  3137. deflateEnd()
  3138. ; return 0; }
  3139. EOF
  3140. if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3141.   rm -rf conftest*
  3142.   ac_cv_search_deflateEnd="none required"
  3143. else
  3144.   echo "configure: failed program was:" >&5
  3145.   cat conftest.$ac_ext >&5
  3146. fi
  3147. rm -f conftest*
  3148. test "$ac_cv_search_deflateEnd" = "no" && for i in z gz; do
  3149. LIBS="-l$i  $ac_func_search_save_LIBS"
  3150. cat > conftest.$ac_ext <<EOF
  3151. #line 3152 "configure"
  3152. #include "confdefs.h"
  3153. /* Override any gcc2 internal prototype to avoid an error.  */
  3154. /* We use char because int might match the return type of a gcc2
  3155.     builtin and then its argument prototype would still apply.  */
  3156. char deflateEnd();
  3157.  
  3158. int main() {
  3159. deflateEnd()
  3160. ; return 0; }
  3161. EOF
  3162. if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3163.   rm -rf conftest*
  3164.   ac_cv_search_deflateEnd="-l$i"
  3165. break
  3166. else
  3167.   echo "configure: failed program was:" >&5
  3168.   cat conftest.$ac_ext >&5
  3169. fi
  3170. rm -f conftest*
  3171. done
  3172. LIBS="$ac_func_search_save_LIBS"
  3173. fi
  3174.  
  3175. echo "$ac_t""$ac_cv_search_deflateEnd" 1>&6
  3176. if test "$ac_cv_search_deflateEnd" != "no"; then
  3177.   test "$ac_cv_search_deflateEnd" = "none required" || LIBS="$ac_cv_search_deflateEnd $LIBS"
  3178.   ZLIBLINK=$LIBS
  3179. else :
  3180.   WITH_ZLIB=no
  3181. fi
  3182.     fi
  3183.  
  3184. fi
  3185.  
  3186.  
  3187. if test "$WITH_ZLIB" = "yes" ; then
  3188.     INCLUDES="$INCLUDES -DHAVE_LIBZ"
  3189. fi
  3190.  
  3191.  
  3192. # ----------------------------------------------------------------
  3193. #  PDFlib auxiliary library: libpng
  3194. # ----------------------------------------------------------------
  3195.  
  3196. WITH_PNGLIB=$WITH_ZLIB
  3197. PNGLIBINC=""
  3198. PNGLIBLINK=""
  3199. PNGWARN=""
  3200.  
  3201. if test "$WITH_PNGLIB" = "yes" ; then
  3202.     # Check whether --with-pnglib or --without-pnglib was given.
  3203. if test "${with_pnglib+set}" = set; then
  3204.   withval="$with_pnglib"
  3205.   
  3206.     case "$withval" in
  3207.     no) WITH_PNGLIB=no ;;
  3208.  
  3209.     yes)
  3210.     echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
  3211. echo "configure:3212: checking for png_create_read_struct in -lpng" >&5
  3212. ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
  3213. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3214.   echo $ac_n "(cached) $ac_c" 1>&6
  3215. else
  3216.   ac_save_LIBS="$LIBS"
  3217. LIBS="-lpng -lz $MATHLIB $LIBS"
  3218. cat > conftest.$ac_ext <<EOF
  3219. #line 3220 "configure"
  3220. #include "confdefs.h"
  3221. /* Override any gcc2 internal prototype to avoid an error.  */
  3222. /* We use char because int might match the return type of a gcc2
  3223.     builtin and then its argument prototype would still apply.  */
  3224. char png_create_read_struct();
  3225.  
  3226. int main() {
  3227. png_create_read_struct()
  3228. ; return 0; }
  3229. EOF
  3230. if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3231.   rm -rf conftest*
  3232.   eval "ac_cv_lib_$ac_lib_var=yes"
  3233. else
  3234.   echo "configure: failed program was:" >&5
  3235.   cat conftest.$ac_ext >&5
  3236.   rm -rf conftest*
  3237.   eval "ac_cv_lib_$ac_lib_var=no"
  3238. fi
  3239. rm -f conftest*
  3240. LIBS="$ac_save_LIBS"
  3241.  
  3242. fi
  3243. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3244.   echo "$ac_t""yes" 1>&6
  3245.   PNGLIBLINK=-lpng
  3246. else
  3247.   echo "$ac_t""no" 1>&6
  3248. WITH_PNGLIB=no
  3249. fi
  3250.  ;;
  3251.  
  3252.     *)
  3253.     test -f $withval/include/libpng/png.h && PNGLIBINC="$withval/include/libpng"
  3254.     test -f $withval/include/png.h && PNGLIBINC="$withval/include"
  3255.     test -f $withval/png.h && PNGLIBINC="$withval"
  3256.     if test -z "$PNGLIBINC" ; then
  3257.         ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
  3258. echo $ac_n "checking for png.h""... $ac_c" 1>&6
  3259. echo "configure:3260: checking for png.h" >&5
  3260. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3261.   echo $ac_n "(cached) $ac_c" 1>&6
  3262. else
  3263.   cat > conftest.$ac_ext <<EOF
  3264. #line 3265 "configure"
  3265. #include "confdefs.h"
  3266. #include <png.h>
  3267. EOF
  3268. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3269. { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3270. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3271. if test -z "$ac_err"; then
  3272.   rm -rf conftest*
  3273.   eval "ac_cv_header_$ac_safe=yes"
  3274. else
  3275.   echo "$ac_err" >&5
  3276.   echo "configure: failed program was:" >&5
  3277.   cat conftest.$ac_ext >&5
  3278.   rm -rf conftest*
  3279.   eval "ac_cv_header_$ac_safe=no"
  3280. fi
  3281. rm -f conftest*
  3282. fi
  3283. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3284.   echo "$ac_t""yes" 1>&6
  3285.   :
  3286. else
  3287.   echo "$ac_t""no" 1>&6
  3288. WITH_PNGLIB=no
  3289. fi
  3290.  
  3291.     else
  3292.         echo $ac_n "checking for png.h""... $ac_c" 1>&6
  3293. echo "configure:3294: checking for png.h" >&5
  3294.         echo "$ac_t""$PNGLIBINC" 1>&6
  3295.         PNGLIBINC="-I$PNGLIBINC"
  3296.     fi
  3297.  
  3298.     if test "$WITH_PNGLIB" != "no" ; then
  3299.         echo $ac_n "checking for libpng.a""... $ac_c" 1>&6
  3300. echo "configure:3301: checking for libpng.a" >&5
  3301.         pngdir=""
  3302.         test -f $withval/lib/libpng.a && pngdir="$withval/lib"
  3303.         test -f $withval/libpng.a && pngdir="$withval"
  3304.  
  3305.         if test "$pngdir" != "" ; then
  3306.         PNGLIBLINK="-L$pngdir -lpng"
  3307.         echo "$ac_t""$PNGLIBLINK" 1>&6
  3308.         PNGWARN="$pngdir/libpng.s*"
  3309.         else
  3310.         echo "$ac_t""not found" 1>&6
  3311.         WITH_PNGLIB=no
  3312.         fi
  3313.     fi ;;
  3314.     esac
  3315.     
  3316. else
  3317.   
  3318.     ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
  3319. echo $ac_n "checking for png.h""... $ac_c" 1>&6
  3320. echo "configure:3321: checking for png.h" >&5
  3321. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3322.   echo $ac_n "(cached) $ac_c" 1>&6
  3323. else
  3324.   cat > conftest.$ac_ext <<EOF
  3325. #line 3326 "configure"
  3326. #include "confdefs.h"
  3327. #include <png.h>
  3328. EOF
  3329. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3330. { (eval echo configure:3331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3331. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3332. if test -z "$ac_err"; then
  3333.   rm -rf conftest*
  3334.   eval "ac_cv_header_$ac_safe=yes"
  3335. else
  3336.   echo "$ac_err" >&5
  3337.   echo "configure: failed program was:" >&5
  3338.   cat conftest.$ac_ext >&5
  3339.   rm -rf conftest*
  3340.   eval "ac_cv_header_$ac_safe=no"
  3341. fi
  3342. rm -f conftest*
  3343. fi
  3344. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3345.   echo "$ac_t""yes" 1>&6
  3346.   :
  3347. else
  3348.   echo "$ac_t""no" 1>&6
  3349. WITH_PNGLIB=no
  3350. fi
  3351.  
  3352.     if test "$WITH_PNGLIB" = "yes" ; then
  3353.         echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
  3354. echo "configure:3355: checking for png_create_read_struct in -lpng" >&5
  3355. ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
  3356. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3357.   echo $ac_n "(cached) $ac_c" 1>&6
  3358. else
  3359.   ac_save_LIBS="$LIBS"
  3360. LIBS="-lpng -lz $MATHLIB $LIBS"
  3361. cat > conftest.$ac_ext <<EOF
  3362. #line 3363 "configure"
  3363. #include "confdefs.h"
  3364. /* Override any gcc2 internal prototype to avoid an error.  */
  3365. /* We use char because int might match the return type of a gcc2
  3366.     builtin and then its argument prototype would still apply.  */
  3367. char png_create_read_struct();
  3368.  
  3369. int main() {
  3370. png_create_read_struct()
  3371. ; return 0; }
  3372. EOF
  3373. if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3374.   rm -rf conftest*
  3375.   eval "ac_cv_lib_$ac_lib_var=yes"
  3376. else
  3377.   echo "configure: failed program was:" >&5
  3378.   cat conftest.$ac_ext >&5
  3379.   rm -rf conftest*
  3380.   eval "ac_cv_lib_$ac_lib_var=no"
  3381. fi
  3382. rm -f conftest*
  3383. LIBS="$ac_save_LIBS"
  3384.  
  3385. fi
  3386. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3387.   echo "$ac_t""yes" 1>&6
  3388.   PNGLIBLINK=-lpng
  3389. else
  3390.   echo "$ac_t""no" 1>&6
  3391. WITH_PNGLIB=no
  3392. fi
  3393.  
  3394.     fi
  3395.     
  3396. fi
  3397.  
  3398. fi
  3399.  
  3400. if test "$WITH_PNGLIB" = "yes" ; then
  3401.     INCLUDES="$INCLUDES -DHAVE_LIBPNG"
  3402. fi
  3403.  
  3404.  
  3405. # ----------------------------------------------------------------
  3406. #  PDFlib wrapup
  3407. # ----------------------------------------------------------------
  3408.  
  3409.  
  3410. BINDINGS="pdflib_c"
  3411. BINDINGS_INSTALL=""
  3412. BINDINGS_UNINSTALL=""
  3413. BINDINGS_CLEAN="pdflib_c_clean"
  3414. BINDINGS_TEST="pdflib_c_test"
  3415.  
  3416. if ${CONFIG_SHELL-/bin/sh} ./libtool --features | grep "disable shared" >/dev/null; then
  3417.     WITH_SHARED=no
  3418. fi
  3419.  
  3420. if test "$WITH_SHARED" = "no" -o "$SHARED_PDFLIB" = "yes"; then
  3421.     WITH_JAVA=no;
  3422.     WITH_PERL=no;
  3423.     WITH_PYTHON=no
  3424.     WITH_TCL=no;
  3425. fi
  3426.  
  3427. if test "$WITH_CXX" = "yes" ; then
  3428.     BINDINGS="$BINDINGS pdflib_cpp";
  3429.     BINDINGS_TEST="$BINDINGS_TEST pdflib_cpp_test";
  3430.     BINDINGS_CLEAN="$BINDINGS_CLEAN pdflib_cpp_clean";
  3431. fi
  3432. if test "$WITH_JAVA" = "yes" ; then
  3433.     BINDINGS="$BINDINGS pdflib_java";
  3434.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_java_install";
  3435.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_java_uninstall";
  3436.     BINDINGS_TEST="$BINDINGS_TEST pdflib_java_test";
  3437.     BINDINGS_CLEAN="$BINDINGS_CLEAN pdflib_java_clean";
  3438. fi
  3439. if test "$WITH_PERL" = "yes" ; then
  3440.     BINDINGS="$BINDINGS pdflib_perl";
  3441.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_perl_install";
  3442.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_perl_uninstall";
  3443.     BINDINGS_TEST="$BINDINGS_TEST pdflib_perl_test";
  3444.     BINDINGS_CLEAN="$BINDINGS_CLEAN pdflib_perl_clean";
  3445. fi
  3446. if test "$WITH_PYTHON" = "yes" ; then
  3447.     BINDINGS="$BINDINGS pdflib_python";
  3448.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_python_install";
  3449.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_python_uninstall";
  3450.     BINDINGS_TEST="$BINDINGS_TEST pdflib_python_test";
  3451.     BINDINGS_CLEAN="$BINDINGS_CLEAN pdflib_python_clean";
  3452. fi
  3453. if test "$WITH_TCL" = "yes" ; then
  3454.     BINDINGS="$BINDINGS pdflib_tcl";
  3455.     BINDINGS_INSTALL="$BINDINGS_INSTALL pdflib_tcl_install";
  3456.     BINDINGS_UNINSTALL="$BINDINGS_UNINSTALL pdflib_tcl_uninstall";
  3457.     BINDINGS_TEST="$BINDINGS_TEST pdflib_tcl_test";
  3458.     BINDINGS_CLEAN="$BINDINGS_CLEAN pdflib_tcl_clean";
  3459. fi
  3460.  
  3461. if test "$WITH_DEBUG" = "yes"; then
  3462.     DEBUGFLAGS="-DDEBUG"
  3463.     CFLAGS="$CFLAGS -g"
  3464. fi
  3465.  
  3466. DEFINES="$CFLAGS $DEFINES $INCLUDES $PLATFORM"
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474.  
  3475. PDFLIBLINKSELF="$TIFFLIBLINK $PNGLIBLINK $ZLIBLINK $MATHLIB"
  3476.  
  3477. if test "$SHARED_PDFLIB" = "no"; then
  3478.             PDFLIBLINK="\$(top_builddir)/pdflib/lib$PDFLIBNAME.la"
  3479. else
  3480.         PDFLIBLINKSELF="-rpath \$(libdir) $PDFLIBLINKSELF -version-info \$(PDFLIB_CURRENT):\$(PDFLIB_REVISION):\$(PDFLIB_AGE)"
  3481.     PDFLIBLINK="-L\$(top_builddir)/pdflib/.libs -l$PDFLIBNAME"
  3482. fi
  3483.  
  3484. PDFLIBLINKEXTERN="-l$PDFLIBNAME"
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495. GENERATED_FILES="Makefile pdflib-config pdflib/Makefile test/Makefile clients/Makefile util/Makefile bind/c/Makefile"
  3496.  
  3497.  
  3498. if test "$WITH_CXX" = "yes" ; then
  3499.     GENERATED_FILES="$GENERATED_FILES bind/cpp/Makefile"
  3500. fi
  3501.  
  3502. if test "$WITH_JAVA" = "yes" ; then
  3503.     GENERATED_FILES="$GENERATED_FILES bind/java/Makefile"
  3504. fi
  3505.  
  3506. if test "$WITH_PERL" = "yes" ; then
  3507.     GENERATED_FILES="$GENERATED_FILES bind/perl/Makefile"
  3508. fi
  3509.  
  3510. if test "$WITH_PYTHON" = "yes" ; then
  3511.     GENERATED_FILES="$GENERATED_FILES bind/python/Makefile"
  3512. fi
  3513.  
  3514. if test "$WITH_TCL" = "yes" ; then
  3515.     GENERATED_FILES="$GENERATED_FILES bind/tcl/Makefile"
  3516. fi
  3517.  
  3518. trap '' 1 2 15
  3519. cat > confcache <<\EOF
  3520. # This file is a shell script that caches the results of configure
  3521. # tests run on this system so they can be shared between configure
  3522. # scripts and configure runs.  It is not useful on other systems.
  3523. # If it contains results you don't want to keep, you may remove or edit it.
  3524. #
  3525. # By default, configure uses ./config.cache as the cache file,
  3526. # creating it if it does not exist already.  You can give configure
  3527. # the --cache-file=FILE option to use a different cache file; that is
  3528. # what configure does when it calls configure scripts in
  3529. # subdirectories, so they share the cache.
  3530. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3531. # config.status only pays attention to the cache file if you give it the
  3532. # --recheck option to rerun configure.
  3533. #
  3534. EOF
  3535. # The following way of writing the cache mishandles newlines in values,
  3536. # but we know of no workaround that is simple, portable, and efficient.
  3537. # So, don't put newlines in cache variables' values.
  3538. # Ultrix sh set writes to stderr and can't be redirected directly,
  3539. # and sets the high bit in the cache file unless we assign to the vars.
  3540. (set) 2>&1 |
  3541.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3542.   *ac_space=\ *)
  3543.     # `set' does not quote correctly, so add quotes (double-quote substitution
  3544.     # turns \\\\ into \\, and sed turns \\ into \).
  3545.     sed -n \
  3546.       -e "s/'/'\\\\''/g" \
  3547.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3548.     ;;
  3549.   *)
  3550.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  3551.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3552.     ;;
  3553.   esac >> confcache
  3554. if cmp -s $cache_file confcache; then
  3555.   :
  3556. else
  3557.   if test -w $cache_file; then
  3558.     echo "updating cache $cache_file"
  3559.     cat confcache > $cache_file
  3560.   else
  3561.     echo "not updating unwritable cache $cache_file"
  3562.   fi
  3563. fi
  3564. rm -f confcache
  3565.  
  3566. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3567.  
  3568. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3569. # Let make expand exec_prefix.
  3570. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3571.  
  3572. # Any assignment to VPATH causes Sun make to only execute
  3573. # the first set of double-colon rules, so remove it if not needed.
  3574. # If there is a colon in the path, we need to keep it.
  3575. if test "x$srcdir" = x.; then
  3576.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3577. fi
  3578.  
  3579. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3580.  
  3581. # Transform confdefs.h into DEFS.
  3582. # Protect against shell expansion while executing Makefile rules.
  3583. # Protect against Makefile macro expansion.
  3584. cat > conftest.defs <<\EOF
  3585. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  3586. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  3587. s%\[%\\&%g
  3588. s%\]%\\&%g
  3589. s%\$%$$%g
  3590. EOF
  3591. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  3592. rm -f conftest.defs
  3593.  
  3594.  
  3595. # Without the "./", some shells look in PATH for config.status.
  3596. : ${CONFIG_STATUS=./config.status}
  3597.  
  3598. echo creating $CONFIG_STATUS
  3599. rm -f $CONFIG_STATUS
  3600. cat > $CONFIG_STATUS <<EOF
  3601. #! /bin/sh
  3602. # Generated automatically by configure.
  3603. # Run this file to recreate the current configuration.
  3604. # This directory was configured as follows,
  3605. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3606. #
  3607. # $0 $ac_configure_args
  3608. #
  3609. # Compiler output produced by configure, useful for debugging
  3610. # configure, is in ./config.log if it exists.
  3611.  
  3612. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3613. for ac_option
  3614. do
  3615.   case "\$ac_option" in
  3616.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3617.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3618.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3619.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3620.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  3621.     exit 0 ;;
  3622.   -help | --help | --hel | --he | --h)
  3623.     echo "\$ac_cs_usage"; exit 0 ;;
  3624.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3625.   esac
  3626. done
  3627.  
  3628. ac_given_srcdir=$srcdir
  3629. ac_given_INSTALL="$INSTALL"
  3630.  
  3631. trap 'rm -fr `echo "$GENERATED_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3632. EOF
  3633. cat >> $CONFIG_STATUS <<EOF
  3634.  
  3635. # Protect against being on the right side of a sed subst in config.status.
  3636. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3637.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3638. $ac_vpsub
  3639. $extrasub
  3640. s%@SHELL@%$SHELL%g
  3641. s%@CFLAGS@%$CFLAGS%g
  3642. s%@CPPFLAGS@%$CPPFLAGS%g
  3643. s%@CXXFLAGS@%$CXXFLAGS%g
  3644. s%@FFLAGS@%$FFLAGS%g
  3645. s%@DEFS@%$DEFS%g
  3646. s%@LDFLAGS@%$LDFLAGS%g
  3647. s%@LIBS@%$LIBS%g
  3648. s%@exec_prefix@%$exec_prefix%g
  3649. s%@prefix@%$prefix%g
  3650. s%@program_transform_name@%$program_transform_name%g
  3651. s%@bindir@%$bindir%g
  3652. s%@sbindir@%$sbindir%g
  3653. s%@libexecdir@%$libexecdir%g
  3654. s%@datadir@%$datadir%g
  3655. s%@sysconfdir@%$sysconfdir%g
  3656. s%@sharedstatedir@%$sharedstatedir%g
  3657. s%@localstatedir@%$localstatedir%g
  3658. s%@libdir@%$libdir%g
  3659. s%@includedir@%$includedir%g
  3660. s%@oldincludedir@%$oldincludedir%g
  3661. s%@infodir@%$infodir%g
  3662. s%@mandir@%$mandir%g
  3663. s%@PDFLIB_MAJOR@%$PDFLIB_MAJOR%g
  3664. s%@PDFLIB_MINOR@%$PDFLIB_MINOR%g
  3665. s%@PDFLIB_CURRENT@%$PDFLIB_CURRENT%g
  3666. s%@PDFLIB_REVISION@%$PDFLIB_REVISION%g
  3667. s%@PDFLIB_AGE@%$PDFLIB_AGE%g
  3668. s%@PDFLIBNAME@%$PDFLIBNAME%g
  3669. s%@host@%$host%g
  3670. s%@host_alias@%$host_alias%g
  3671. s%@host_cpu@%$host_cpu%g
  3672. s%@host_vendor@%$host_vendor%g
  3673. s%@host_os@%$host_os%g
  3674. s%@CC@%$CC%g
  3675. s%@CPP@%$CPP%g
  3676. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3677. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3678. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3679. s%@EXEEXT@%$EXEEXT%g
  3680. s%@OBJEXT@%$OBJEXT%g
  3681. s%@build@%$build%g
  3682. s%@build_alias@%$build_alias%g
  3683. s%@build_cpu@%$build_cpu%g
  3684. s%@build_vendor@%$build_vendor%g
  3685. s%@build_os@%$build_os%g
  3686. s%@RANLIB@%$RANLIB%g
  3687. s%@LN_S@%$LN_S%g
  3688. s%@DLLTOOL@%$DLLTOOL%g
  3689. s%@AS@%$AS%g
  3690. s%@OBJDUMP@%$OBJDUMP%g
  3691. s%@LIBTOOL@%$LIBTOOL%g
  3692. s%@VERSION@%$VERSION%g
  3693. s%@RM@%$RM%g
  3694. s%@CXX@%$CXX%g
  3695. s%@STDCPP@%$STDCPP%g
  3696. s%@JAVAINCLUDE@%$JAVAINCLUDE%g
  3697. s%@PERL@%$PERL%g
  3698. s%@PERLINCLUDE@%$PERLINCLUDE%g
  3699. s%@PERLLIBDIR@%$PERLLIBDIR%g
  3700. s%@PERLMODDIR@%$PERLMODDIR%g
  3701. s%@PERLBOOLDEF@%$PERLBOOLDEF%g
  3702. s%@PERLLINK@%$PERLLINK%g
  3703. s%@PYINCLUDE@%$PYINCLUDE%g
  3704. s%@PYTHONBIN@%$PYTHONBIN%g
  3705. s%@PYTHONLIBDIR@%$PYTHONLIBDIR%g
  3706. s%@TCL@%$TCL%g
  3707. s%@TCLINCLUDE@%$TCLINCLUDE%g
  3708. s%@TCLPACKAGEDIR@%$TCLPACKAGEDIR%g
  3709. s%@TCLBIN@%$TCLBIN%g
  3710. s%@TIFFLIBINC@%$TIFFLIBINC%g
  3711. s%@ZLIBINC@%$ZLIBINC%g
  3712. s%@PNGLIBINC@%$PNGLIBINC%g
  3713. s%@BINDINGS@%$BINDINGS%g
  3714. s%@BINDINGS_INSTALL@%$BINDINGS_INSTALL%g
  3715. s%@BINDINGS_UNINSTALL@%$BINDINGS_UNINSTALL%g
  3716. s%@BINDINGS_TEST@%$BINDINGS_TEST%g
  3717. s%@BINDINGS_CLEAN@%$BINDINGS_CLEAN%g
  3718. s%@PDFLIBLINK@%$PDFLIBLINK%g
  3719. s%@PDFLIBLINKSELF@%$PDFLIBLINKSELF%g
  3720. s%@PDFLIBLINKEXTERN@%$PDFLIBLINKEXTERN%g
  3721. s%@INCLUDES@%$INCLUDES%g
  3722. s%@DEFINES@%$DEFINES%g
  3723. s%@DEBUGFLAGS@%$DEBUGFLAGS%g
  3724.  
  3725. CEOF
  3726. EOF
  3727.  
  3728. cat >> $CONFIG_STATUS <<\EOF
  3729.  
  3730. # Split the substitutions into bite-sized pieces for seds with
  3731. # small command number limits, like on Digital OSF/1 and HP-UX.
  3732. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  3733. ac_file=1 # Number of current file.
  3734. ac_beg=1 # First line for current file.
  3735. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  3736. ac_more_lines=:
  3737. ac_sed_cmds=""
  3738. while $ac_more_lines; do
  3739.   if test $ac_beg -gt 1; then
  3740.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  3741.   else
  3742.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  3743.   fi
  3744.   if test ! -s conftest.s$ac_file; then
  3745.     ac_more_lines=false
  3746.     rm -f conftest.s$ac_file
  3747.   else
  3748.     if test -z "$ac_sed_cmds"; then
  3749.       ac_sed_cmds="sed -f conftest.s$ac_file"
  3750.     else
  3751.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  3752.     fi
  3753.     ac_file=`expr $ac_file + 1`
  3754.     ac_beg=$ac_end
  3755.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  3756.   fi
  3757. done
  3758. if test -z "$ac_sed_cmds"; then
  3759.   ac_sed_cmds=cat
  3760. fi
  3761. EOF
  3762.  
  3763. cat >> $CONFIG_STATUS <<EOF
  3764.  
  3765. CONFIG_FILES=\${CONFIG_FILES-"$GENERATED_FILES"}
  3766. EOF
  3767. cat >> $CONFIG_STATUS <<\EOF
  3768. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3769.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3770.   case "$ac_file" in
  3771.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3772.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3773.   *) ac_file_in="${ac_file}.in" ;;
  3774.   esac
  3775.  
  3776.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3777.  
  3778.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3779.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3780.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3781.     # The file is in a subdirectory.
  3782.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3783.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3784.     # A "../" for each directory in $ac_dir_suffix.
  3785.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3786.   else
  3787.     ac_dir_suffix= ac_dots=
  3788.   fi
  3789.  
  3790.   case "$ac_given_srcdir" in
  3791.   .)  srcdir=.
  3792.       if test -z "$ac_dots"; then top_srcdir=.
  3793.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3794.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3795.   *) # Relative path.
  3796.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3797.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3798.   esac
  3799.  
  3800.   case "$ac_given_INSTALL" in
  3801.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3802.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3803.   esac
  3804.  
  3805.   echo creating "$ac_file"
  3806.   rm -f "$ac_file"
  3807.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3808.   case "$ac_file" in
  3809.   *Makefile*) ac_comsub="1i\\
  3810. # $configure_input" ;;
  3811.   *) ac_comsub= ;;
  3812.   esac
  3813.  
  3814.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3815.   sed -e "$ac_comsub
  3816. s%@configure_input@%$configure_input%g
  3817. s%@srcdir@%$srcdir%g
  3818. s%@top_srcdir@%$top_srcdir%g
  3819. s%@INSTALL@%$INSTALL%g
  3820. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3821. fi; done
  3822. rm -f conftest.s*
  3823.  
  3824. EOF
  3825. cat >> $CONFIG_STATUS <<EOF
  3826.  
  3827. EOF
  3828. cat >> $CONFIG_STATUS <<\EOF
  3829. chmod +x pdflib-config
  3830. exit 0
  3831. EOF
  3832. chmod +x $CONFIG_STATUS
  3833. rm -fr confdefs* $ac_clean_files
  3834. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3835.  
  3836.  
  3837. if test "$WITH_SHARED" = "no" ; then
  3838.     echo "configure: warning: Can't create shared PDFlib libraries in this configuration." 1>&2
  3839.     echo "configure: warning: This may be caused by a configuration option (e.g., debug)," 1>&2
  3840.     echo "configure: warning: or shared libraries may not be supported at all on this" 1>&2
  3841.     echo "configure: warning: system, or with this development environment." 1>&2
  3842.     echo "configure: warning: PDFlib will work when linked to a C or C++ program, but other" 1>&2
  3843.     echo "configure: warning: language bindings will be unavailable." 1>&2
  3844. fi
  3845.  
  3846. echo "$ac_t""_____________________________________________________________" 1>&6
  3847. echo "$ac_t""For your convenience, here's a summary of configure's results:" 1>&6
  3848. echo "$ac_t""" 1>&6
  3849. echo "$ac_t""Support for shared libraries:           $WITH_SHARED" 1>&6
  3850. echo "$ac_t""C++ language binding for PDFlib:        $WITH_CXX" 1>&6
  3851. echo "$ac_t""Java language binding for PDFlib:       $WITH_JAVA" 1>&6
  3852. echo "$ac_t""Perl language binding for PDFlib:       $WITH_PERL" 1>&6
  3853. echo "$ac_t""Python language binding for PDFlib:     $WITH_PYTHON" 1>&6
  3854. echo "$ac_t""Tcl language binding for PDFlib:        $WITH_TCL" 1>&6
  3855. echo "$ac_t""TIFF image support for PDFlib:          $WITH_TIFFLIB" 1>&6
  3856. if test "$TIFFWARN" != "" ; then
  3857.     echo "$ac_t""     Note: if TIFFlib cannot be found at runtime remove" 1>&6
  3858.     echo "$ac_t""     $TIFFWARN and rebuild PDFlib" 1>&6
  3859.     echo "$ac_t""" 1>&6
  3860. fi
  3861. echo "$ac_t""PNG image support for PDFlib:           $WITH_PNGLIB" 1>&6
  3862. if test "$PNGWARN" != "" ; then
  3863.     echo "$ac_t""     Note: if libpng cannot be found at runtime remove" 1>&6
  3864.     echo "$ac_t""     $PNGWARN and rebuild PDFlib" 1>&6
  3865.     echo "$ac_t""" 1>&6
  3866. fi
  3867. echo "$ac_t""Zlib compression support for PDFlib:    $WITH_ZLIB" 1>&6
  3868. if test "$ZWARN" != "" ; then
  3869.     echo "$ac_t""     Note: if libz cannot be found at runtime remove" 1>&6
  3870.     echo "$ac_t""     $ZWARN and rebuild PDFlib" 1>&6
  3871. fi
  3872.  
  3873. echo "$ac_t""" 1>&6
  3874. echo "$ac_t""PDFlib license agreement and purchase order can be found in the doc directory." 1>&6
  3875. echo "$ac_t""" 1>&6
  3876.