home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 February / PCWorld_2002-02_cd.bin / Software / Vyzkuste / pdflib / pdflib-4.0.1.sit / pdflib-4.0.1 / configure < prev    next >
Encoding:
Text File  |  2001-07-04  |  107.5 KB  |  3,746 lines  |  [TEXT/LMAN]

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