Newer
Older
Digital_Repository / OARiNZ / DIY / deb_package / eprints-3.0 / configure
nstanger on 7 Jun 2007 109 KB - Added debian package source.
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11.  
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23.  
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30.  
  31.  
  32. # Work around bugs in pre-3.0 UWIN ksh.
  33. $as_unset ENV MAIL MAILPATH
  34. PS1='$ '
  35. PS2='> '
  36. PS4='+ '
  37.  
  38. # NLS nuisances.
  39. for as_var in \
  40. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  41. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  42. LC_TELEPHONE LC_TIME
  43. do
  44. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  45. eval $as_var=C; export $as_var
  46. else
  47. $as_unset $as_var
  48. fi
  49. done
  50.  
  51. # Required to use basename.
  52. if expr a : '\(a\)' >/dev/null 2>&1; then
  53. as_expr=expr
  54. else
  55. as_expr=false
  56. fi
  57.  
  58. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  59. as_basename=basename
  60. else
  61. as_basename=false
  62. fi
  63.  
  64.  
  65. # Name of the executable.
  66. as_me=`$as_basename "$0" ||
  67. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  68. X"$0" : 'X\(//\)$' \| \
  69. X"$0" : 'X\(/\)$' \| \
  70. . : '\(.\)' 2>/dev/null ||
  71. echo X/"$0" |
  72. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  73. /^X\/\(\/\/\)$/{ s//\1/; q; }
  74. /^X\/\(\/\).*/{ s//\1/; q; }
  75. s/.*/./; q'`
  76.  
  77.  
  78. # PATH needs CR, and LINENO needs CR and PATH.
  79. # Avoid depending upon Character Ranges.
  80. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  81. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  82. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  83. as_cr_digits='0123456789'
  84. as_cr_alnum=$as_cr_Letters$as_cr_digits
  85.  
  86. # The user is always right.
  87. if test "${PATH_SEPARATOR+set}" != set; then
  88. echo "#! /bin/sh" >conf$$.sh
  89. echo "exit 0" >>conf$$.sh
  90. chmod +x conf$$.sh
  91. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  92. PATH_SEPARATOR=';'
  93. else
  94. PATH_SEPARATOR=:
  95. fi
  96. rm -f conf$$.sh
  97. fi
  98.  
  99.  
  100. as_lineno_1=$LINENO
  101. as_lineno_2=$LINENO
  102. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  103. test "x$as_lineno_1" != "x$as_lineno_2" &&
  104. test "x$as_lineno_3" = "x$as_lineno_2" || {
  105. # Find who we are. Look in the path if we contain no path at all
  106. # relative or not.
  107. case $0 in
  108. *[\\/]* ) as_myself=$0 ;;
  109. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  110. for as_dir in $PATH
  111. do
  112. IFS=$as_save_IFS
  113. test -z "$as_dir" && as_dir=.
  114. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  115. done
  116.  
  117. ;;
  118. esac
  119. # We did not find ourselves, most probably we were run as `sh COMMAND'
  120. # in which case we are not to be found in the path.
  121. if test "x$as_myself" = x; then
  122. as_myself=$0
  123. fi
  124. if test ! -f "$as_myself"; then
  125. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  126. { (exit 1); exit 1; }; }
  127. fi
  128. case $CONFIG_SHELL in
  129. '')
  130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  131. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  132. do
  133. IFS=$as_save_IFS
  134. test -z "$as_dir" && as_dir=.
  135. for as_base in sh bash ksh sh5; do
  136. case $as_dir in
  137. /*)
  138. if ("$as_dir/$as_base" -c '
  139. as_lineno_1=$LINENO
  140. as_lineno_2=$LINENO
  141. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  142. test "x$as_lineno_1" != "x$as_lineno_2" &&
  143. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  144. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  145. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  146. CONFIG_SHELL=$as_dir/$as_base
  147. export CONFIG_SHELL
  148. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  149. fi;;
  150. esac
  151. done
  152. done
  153. ;;
  154. esac
  155.  
  156. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  157. # uniformly replaced by the line number. The first 'sed' inserts a
  158. # line-number line before each line; the second 'sed' does the real
  159. # work. The second script uses 'N' to pair each line-number line
  160. # with the numbered line, and appends trailing '-' during
  161. # substitution so that $LINENO is not a special case at line end.
  162. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  163. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  164. sed '=' <$as_myself |
  165. sed '
  166. N
  167. s,$,-,
  168. : loop
  169. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  170. t loop
  171. s,-$,,
  172. s,^['$as_cr_digits']*\n,,
  173. ' >$as_me.lineno &&
  174. chmod +x $as_me.lineno ||
  175. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  176. { (exit 1); exit 1; }; }
  177.  
  178. # Don't try to exec as it changes $[0], causing all sort of problems
  179. # (the dirname of $[0] is not the place where we might find the
  180. # original and so on. Autoconf is especially sensible to this).
  181. . ./$as_me.lineno
  182. # Exit status is that of the last command.
  183. exit
  184. }
  185.  
  186.  
  187. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  188. *c*,-n*) ECHO_N= ECHO_C='
  189. ' ECHO_T=' ' ;;
  190. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  191. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  192. esac
  193.  
  194. if expr a : '\(a\)' >/dev/null 2>&1; then
  195. as_expr=expr
  196. else
  197. as_expr=false
  198. fi
  199.  
  200. rm -f conf$$ conf$$.exe conf$$.file
  201. echo >conf$$.file
  202. if ln -s conf$$.file conf$$ 2>/dev/null; then
  203. # We could just check for DJGPP; but this test a) works b) is more generic
  204. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  205. if test -f conf$$.exe; then
  206. # Don't use ln at all; we don't have any links
  207. as_ln_s='cp -p'
  208. else
  209. as_ln_s='ln -s'
  210. fi
  211. elif ln conf$$.file conf$$ 2>/dev/null; then
  212. as_ln_s=ln
  213. else
  214. as_ln_s='cp -p'
  215. fi
  216. rm -f conf$$ conf$$.exe conf$$.file
  217.  
  218. if mkdir -p . 2>/dev/null; then
  219. as_mkdir_p=:
  220. else
  221. test -d ./-p && rmdir ./-p
  222. as_mkdir_p=false
  223. fi
  224.  
  225. as_executable_p="test -f"
  226.  
  227. # Sed expression to map a string onto a valid CPP name.
  228. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  229.  
  230. # Sed expression to map a string onto a valid variable name.
  231. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  232.  
  233.  
  234. # IFS
  235. # We need space, tab and new line, in precisely that order.
  236. as_nl='
  237. '
  238. IFS=" $as_nl"
  239.  
  240. # CDPATH.
  241. $as_unset CDPATH
  242.  
  243.  
  244. # Name of the host.
  245. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  246. # so uname gets run too.
  247. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  248.  
  249. exec 6>&1
  250.  
  251. #
  252. # Initializations.
  253. #
  254. ac_default_prefix=/usr/local
  255. ac_config_libobj_dir=.
  256. cross_compiling=no
  257. subdirs=
  258. MFLAGS=
  259. MAKEFLAGS=
  260. SHELL=${CONFIG_SHELL-/bin/sh}
  261.  
  262. # Maximum number of lines to put in a shell here document.
  263. # This variable seems obsolete. It should probably be removed, and
  264. # only ac_max_sed_lines should be used.
  265. : ${ac_max_here_lines=38}
  266.  
  267. # Identity of this package.
  268. PACKAGE_NAME=
  269. PACKAGE_TARNAME=
  270. PACKAGE_VERSION=
  271. PACKAGE_STRING=
  272. PACKAGE_BUGREPORT=
  273.  
  274. ac_default_prefix=/opt/eprints3
  275. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PERL_PATH H2PH_PATH UNZIP_PATH TAR_PATH GUNZIP_PATH WGET_PATH SENDMAIL_PATH LATEX_PATH DVIPS_PATH CONVERT_PATH HAS_MOD_PERL_1 HAS_MOD_PERL_2A HAS_MOD_PERL_2B GDOME_AVAILABLE DIST_PATH PREFIX DISABLE_DF ENABLE_GDOME APACHE INSTALL_USER INSTALL_GROUP VIRTUALHOST SMTP_SERVER PLATFORM LIBOBJS LTLIBOBJS'
  276. ac_subst_files=''
  277.  
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297.  
  298. # Installation directory options.
  299. # These are left unexpanded so users can "make install exec_prefix=/foo"
  300. # and all the variables that are supposed to be based on exec_prefix
  301. # by default will actually change.
  302. # Use braces instead of parens because sh, perl, etc. also accept them.
  303. bindir='${exec_prefix}/bin'
  304. sbindir='${exec_prefix}/sbin'
  305. libexecdir='${exec_prefix}/libexec'
  306. datadir='${prefix}/share'
  307. sysconfdir='${prefix}/etc'
  308. sharedstatedir='${prefix}/com'
  309. localstatedir='${prefix}/var'
  310. libdir='${exec_prefix}/lib'
  311. includedir='${prefix}/include'
  312. oldincludedir='/usr/include'
  313. infodir='${prefix}/info'
  314. mandir='${prefix}/man'
  315.  
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325.  
  326. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  327.  
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329.  
  330. case $ac_option in
  331.  
  332. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  333. ac_prev=bindir ;;
  334. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  335. bindir=$ac_optarg ;;
  336.  
  337. -build | --build | --buil | --bui | --bu)
  338. ac_prev=build_alias ;;
  339. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  340. build_alias=$ac_optarg ;;
  341.  
  342. -cache-file | --cache-file | --cache-fil | --cache-fi \
  343. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  344. ac_prev=cache_file ;;
  345. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  346. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  347. cache_file=$ac_optarg ;;
  348.  
  349. --config-cache | -C)
  350. cache_file=config.cache ;;
  351.  
  352. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  353. ac_prev=datadir ;;
  354. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  355. | --da=*)
  356. datadir=$ac_optarg ;;
  357.  
  358. -disable-* | --disable-*)
  359. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  360. # Reject names that are not valid shell variable names.
  361. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  362. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  363. { (exit 1); exit 1; }; }
  364. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  365. eval "enable_$ac_feature=no" ;;
  366.  
  367. -enable-* | --enable-*)
  368. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  369. # Reject names that are not valid shell variable names.
  370. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  371. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  372. { (exit 1); exit 1; }; }
  373. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  374. case $ac_option in
  375. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  376. *) ac_optarg=yes ;;
  377. esac
  378. eval "enable_$ac_feature='$ac_optarg'" ;;
  379.  
  380. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  381. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  382. | --exec | --exe | --ex)
  383. ac_prev=exec_prefix ;;
  384. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  385. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  386. | --exec=* | --exe=* | --ex=*)
  387. exec_prefix=$ac_optarg ;;
  388.  
  389. -gas | --gas | --ga | --g)
  390. # Obsolete; use --with-gas.
  391. with_gas=yes ;;
  392.  
  393. -help | --help | --hel | --he | -h)
  394. ac_init_help=long ;;
  395. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  396. ac_init_help=recursive ;;
  397. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  398. ac_init_help=short ;;
  399.  
  400. -host | --host | --hos | --ho)
  401. ac_prev=host_alias ;;
  402. -host=* | --host=* | --hos=* | --ho=*)
  403. host_alias=$ac_optarg ;;
  404.  
  405. -includedir | --includedir | --includedi | --included | --include \
  406. | --includ | --inclu | --incl | --inc)
  407. ac_prev=includedir ;;
  408. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  409. | --includ=* | --inclu=* | --incl=* | --inc=*)
  410. includedir=$ac_optarg ;;
  411.  
  412. -infodir | --infodir | --infodi | --infod | --info | --inf)
  413. ac_prev=infodir ;;
  414. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  415. infodir=$ac_optarg ;;
  416.  
  417. -libdir | --libdir | --libdi | --libd)
  418. ac_prev=libdir ;;
  419. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  420. libdir=$ac_optarg ;;
  421.  
  422. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  423. | --libexe | --libex | --libe)
  424. ac_prev=libexecdir ;;
  425. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  426. | --libexe=* | --libex=* | --libe=*)
  427. libexecdir=$ac_optarg ;;
  428.  
  429. -localstatedir | --localstatedir | --localstatedi | --localstated \
  430. | --localstate | --localstat | --localsta | --localst \
  431. | --locals | --local | --loca | --loc | --lo)
  432. ac_prev=localstatedir ;;
  433. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  434. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  435. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  436. localstatedir=$ac_optarg ;;
  437.  
  438. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  439. ac_prev=mandir ;;
  440. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  441. mandir=$ac_optarg ;;
  442.  
  443. -nfp | --nfp | --nf)
  444. # Obsolete; use --without-fp.
  445. with_fp=no ;;
  446.  
  447. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  448. | --no-cr | --no-c | -n)
  449. no_create=yes ;;
  450.  
  451. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  452. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  453. no_recursion=yes ;;
  454.  
  455. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  456. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  457. | --oldin | --oldi | --old | --ol | --o)
  458. ac_prev=oldincludedir ;;
  459. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  460. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  461. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  462. oldincludedir=$ac_optarg ;;
  463.  
  464. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  465. ac_prev=prefix ;;
  466. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  467. prefix=$ac_optarg ;;
  468.  
  469. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  470. | --program-pre | --program-pr | --program-p)
  471. ac_prev=program_prefix ;;
  472. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  473. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  474. program_prefix=$ac_optarg ;;
  475.  
  476. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  477. | --program-suf | --program-su | --program-s)
  478. ac_prev=program_suffix ;;
  479. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  480. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  481. program_suffix=$ac_optarg ;;
  482.  
  483. -program-transform-name | --program-transform-name \
  484. | --program-transform-nam | --program-transform-na \
  485. | --program-transform-n | --program-transform- \
  486. | --program-transform | --program-transfor \
  487. | --program-transfo | --program-transf \
  488. | --program-trans | --program-tran \
  489. | --progr-tra | --program-tr | --program-t)
  490. ac_prev=program_transform_name ;;
  491. -program-transform-name=* | --program-transform-name=* \
  492. | --program-transform-nam=* | --program-transform-na=* \
  493. | --program-transform-n=* | --program-transform-=* \
  494. | --program-transform=* | --program-transfor=* \
  495. | --program-transfo=* | --program-transf=* \
  496. | --program-trans=* | --program-tran=* \
  497. | --progr-tra=* | --program-tr=* | --program-t=*)
  498. program_transform_name=$ac_optarg ;;
  499.  
  500. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  501. | -silent | --silent | --silen | --sile | --sil)
  502. silent=yes ;;
  503.  
  504. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  505. ac_prev=sbindir ;;
  506. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  507. | --sbi=* | --sb=*)
  508. sbindir=$ac_optarg ;;
  509.  
  510. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  511. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  512. | --sharedst | --shareds | --shared | --share | --shar \
  513. | --sha | --sh)
  514. ac_prev=sharedstatedir ;;
  515. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  516. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  517. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  518. | --sha=* | --sh=*)
  519. sharedstatedir=$ac_optarg ;;
  520.  
  521. -site | --site | --sit)
  522. ac_prev=site ;;
  523. -site=* | --site=* | --sit=*)
  524. site=$ac_optarg ;;
  525.  
  526. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  527. ac_prev=srcdir ;;
  528. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  529. srcdir=$ac_optarg ;;
  530.  
  531. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  532. | --syscon | --sysco | --sysc | --sys | --sy)
  533. ac_prev=sysconfdir ;;
  534. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  535. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  536. sysconfdir=$ac_optarg ;;
  537.  
  538. -target | --target | --targe | --targ | --tar | --ta | --t)
  539. ac_prev=target_alias ;;
  540. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  541. target_alias=$ac_optarg ;;
  542.  
  543. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  544. verbose=yes ;;
  545.  
  546. -version | --version | --versio | --versi | --vers | -V)
  547. ac_init_version=: ;;
  548.  
  549. -with-* | --with-*)
  550. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  551. # Reject names that are not valid shell variable names.
  552. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  553. { echo "$as_me: error: invalid package name: $ac_package" >&2
  554. { (exit 1); exit 1; }; }
  555. ac_package=`echo $ac_package| sed 's/-/_/g'`
  556. case $ac_option in
  557. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  558. *) ac_optarg=yes ;;
  559. esac
  560. eval "with_$ac_package='$ac_optarg'" ;;
  561.  
  562. -without-* | --without-*)
  563. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  564. # Reject names that are not valid shell variable names.
  565. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  566. { echo "$as_me: error: invalid package name: $ac_package" >&2
  567. { (exit 1); exit 1; }; }
  568. ac_package=`echo $ac_package | sed 's/-/_/g'`
  569. eval "with_$ac_package=no" ;;
  570.  
  571. --x)
  572. # Obsolete; use --with-x.
  573. with_x=yes ;;
  574.  
  575. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  576. | --x-incl | --x-inc | --x-in | --x-i)
  577. ac_prev=x_includes ;;
  578. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  579. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  580. x_includes=$ac_optarg ;;
  581.  
  582. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  583. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  584. ac_prev=x_libraries ;;
  585. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  586. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  587. x_libraries=$ac_optarg ;;
  588.  
  589. -*) { echo "$as_me: error: unrecognized option: $ac_option
  590. Try \`$0 --help' for more information." >&2
  591. { (exit 1); exit 1; }; }
  592. ;;
  593.  
  594. *=*)
  595. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  596. # Reject names that are not valid shell variable names.
  597. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  598. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  599. { (exit 1); exit 1; }; }
  600. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  601. eval "$ac_envvar='$ac_optarg'"
  602. export $ac_envvar ;;
  603.  
  604. *)
  605. # FIXME: should be removed in autoconf 3.0.
  606. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  607. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  608. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  609. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  610. ;;
  611.  
  612. esac
  613. done
  614.  
  615. if test -n "$ac_prev"; then
  616. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  617. { echo "$as_me: error: missing argument to $ac_option" >&2
  618. { (exit 1); exit 1; }; }
  619. fi
  620.  
  621. # Be sure to have absolute paths.
  622. for ac_var in exec_prefix prefix
  623. do
  624. eval ac_val=$`echo $ac_var`
  625. case $ac_val in
  626. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  627. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  628. { (exit 1); exit 1; }; };;
  629. esac
  630. done
  631.  
  632. # Be sure to have absolute paths.
  633. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  634. localstatedir libdir includedir oldincludedir infodir mandir
  635. do
  636. eval ac_val=$`echo $ac_var`
  637. case $ac_val in
  638. [\\/$]* | ?:[\\/]* ) ;;
  639. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  640. { (exit 1); exit 1; }; };;
  641. esac
  642. done
  643.  
  644. # There might be people who depend on the old broken behavior: `$host'
  645. # used to hold the argument of --host etc.
  646. # FIXME: To remove some day.
  647. build=$build_alias
  648. host=$host_alias
  649. target=$target_alias
  650.  
  651. # FIXME: To remove some day.
  652. if test "x$host_alias" != x; then
  653. if test "x$build_alias" = x; then
  654. cross_compiling=maybe
  655. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  656. If a cross compiler is detected then cross compile mode will be used." >&2
  657. elif test "x$build_alias" != "x$host_alias"; then
  658. cross_compiling=yes
  659. fi
  660. fi
  661.  
  662. ac_tool_prefix=
  663. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  664.  
  665. test "$silent" = yes && exec 6>/dev/null
  666.  
  667.  
  668. # Find the source files, if location was not specified.
  669. if test -z "$srcdir"; then
  670. ac_srcdir_defaulted=yes
  671. # Try the directory containing this script, then its parent.
  672. ac_confdir=`(dirname "$0") 2>/dev/null ||
  673. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  674. X"$0" : 'X\(//\)[^/]' \| \
  675. X"$0" : 'X\(//\)$' \| \
  676. X"$0" : 'X\(/\)' \| \
  677. . : '\(.\)' 2>/dev/null ||
  678. echo X"$0" |
  679. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  680. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  681. /^X\(\/\/\)$/{ s//\1/; q; }
  682. /^X\(\/\).*/{ s//\1/; q; }
  683. s/.*/./; q'`
  684. srcdir=$ac_confdir
  685. if test ! -r $srcdir/$ac_unique_file; then
  686. srcdir=..
  687. fi
  688. else
  689. ac_srcdir_defaulted=no
  690. fi
  691. if test ! -r $srcdir/$ac_unique_file; then
  692. if test "$ac_srcdir_defaulted" = yes; then
  693. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  694. { (exit 1); exit 1; }; }
  695. else
  696. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  697. { (exit 1); exit 1; }; }
  698. fi
  699. fi
  700. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  701. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  702. { (exit 1); exit 1; }; }
  703. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  704. ac_env_build_alias_set=${build_alias+set}
  705. ac_env_build_alias_value=$build_alias
  706. ac_cv_env_build_alias_set=${build_alias+set}
  707. ac_cv_env_build_alias_value=$build_alias
  708. ac_env_host_alias_set=${host_alias+set}
  709. ac_env_host_alias_value=$host_alias
  710. ac_cv_env_host_alias_set=${host_alias+set}
  711. ac_cv_env_host_alias_value=$host_alias
  712. ac_env_target_alias_set=${target_alias+set}
  713. ac_env_target_alias_value=$target_alias
  714. ac_cv_env_target_alias_set=${target_alias+set}
  715. ac_cv_env_target_alias_value=$target_alias
  716.  
  717. #
  718. # Report the --help message.
  719. #
  720. if test "$ac_init_help" = "long"; then
  721. # Omit some internal or obsolete options to make the list less imposing.
  722. # This message is too long to be a string in the A/UX 3.1 sh.
  723. cat <<_ACEOF
  724. \`configure' configures this package to adapt to many kinds of systems.
  725.  
  726. Usage: $0 [OPTION]... [VAR=VALUE]...
  727.  
  728. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  729. VAR=VALUE. See below for descriptions of some of the useful variables.
  730.  
  731. Defaults for the options are specified in brackets.
  732.  
  733. Configuration:
  734. -h, --help display this help and exit
  735. --help=short display options specific to this package
  736. --help=recursive display the short help of all the included packages
  737. -V, --version display version information and exit
  738. -q, --quiet, --silent do not print \`checking...' messages
  739. --cache-file=FILE cache test results in FILE [disabled]
  740. -C, --config-cache alias for \`--cache-file=config.cache'
  741. -n, --no-create do not create output files
  742. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  743.  
  744. _ACEOF
  745.  
  746. cat <<_ACEOF
  747. Installation directories:
  748. --prefix=PREFIX install architecture-independent files in PREFIX
  749. [$ac_default_prefix]
  750. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  751. [PREFIX]
  752.  
  753. By default, \`make install' will install all the files in
  754. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  755. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  756. for instance \`--prefix=\$HOME'.
  757.  
  758. For better control, use the options below.
  759.  
  760. Fine tuning of the installation directories:
  761. --bindir=DIR user executables [EPREFIX/bin]
  762. --sbindir=DIR system admin executables [EPREFIX/sbin]
  763. --libexecdir=DIR program executables [EPREFIX/libexec]
  764. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  765. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  766. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  767. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  768. --libdir=DIR object code libraries [EPREFIX/lib]
  769. --includedir=DIR C header files [PREFIX/include]
  770. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  771. --infodir=DIR info documentation [PREFIX/info]
  772. --mandir=DIR man documentation [PREFIX/man]
  773. _ACEOF
  774.  
  775. cat <<\_ACEOF
  776. _ACEOF
  777. fi
  778.  
  779. if test -n "$ac_init_help"; then
  780.  
  781. cat <<\_ACEOF
  782.  
  783. Optional Features:
  784. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  785. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  786. --disable-diskfree disable disk free space calls
  787. --disable-gdome don't try to use the XML::GDOME module
  788.  
  789. Optional Packages:
  790. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  791. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  792. --with-perl=PATH path of perl interpreter
  793. --with-user=USER install eprints to run as USER
  794. --with-group=GROUP install eprints to run as GROUP
  795. --with-virtualhost=VIRTUALHOST
  796. use VIRTUALHOST rather than "*" for
  797. Apache VirtualHost directives.
  798. --with-apache=VERSION version of apache to work with: 1 or 2
  799. --with-smtp-server=HOSTNAME
  800. SMTP server to use for outgoing email
  801. --with-toolpath=PATH search path for tool programs
  802.  
  803. _ACEOF
  804. fi
  805.  
  806. if test "$ac_init_help" = "recursive"; then
  807. # If there are subdirs, report their specific --help.
  808. ac_popdir=`pwd`
  809. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  810. test -d $ac_dir || continue
  811. ac_builddir=.
  812.  
  813. if test "$ac_dir" != .; then
  814. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  815. # A "../" for each directory in $ac_dir_suffix.
  816. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  817. else
  818. ac_dir_suffix= ac_top_builddir=
  819. fi
  820.  
  821. case $srcdir in
  822. .) # No --srcdir option. We are building in place.
  823. ac_srcdir=.
  824. if test -z "$ac_top_builddir"; then
  825. ac_top_srcdir=.
  826. else
  827. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  828. fi ;;
  829. [\\/]* | ?:[\\/]* ) # Absolute path.
  830. ac_srcdir=$srcdir$ac_dir_suffix;
  831. ac_top_srcdir=$srcdir ;;
  832. *) # Relative path.
  833. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  834. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  835. esac
  836.  
  837. # Do not use `cd foo && pwd` to compute absolute paths, because
  838. # the directories may not exist.
  839. case `pwd` in
  840. .) ac_abs_builddir="$ac_dir";;
  841. *)
  842. case "$ac_dir" in
  843. .) ac_abs_builddir=`pwd`;;
  844. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  845. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  846. esac;;
  847. esac
  848. case $ac_abs_builddir in
  849. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  850. *)
  851. case ${ac_top_builddir}. in
  852. .) ac_abs_top_builddir=$ac_abs_builddir;;
  853. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  854. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  855. esac;;
  856. esac
  857. case $ac_abs_builddir in
  858. .) ac_abs_srcdir=$ac_srcdir;;
  859. *)
  860. case $ac_srcdir in
  861. .) ac_abs_srcdir=$ac_abs_builddir;;
  862. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  863. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  864. esac;;
  865. esac
  866. case $ac_abs_builddir in
  867. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  868. *)
  869. case $ac_top_srcdir in
  870. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  871. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  872. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  873. esac;;
  874. esac
  875.  
  876. cd $ac_dir
  877. # Check for guested configure; otherwise get Cygnus style configure.
  878. if test -f $ac_srcdir/configure.gnu; then
  879. echo
  880. $SHELL $ac_srcdir/configure.gnu --help=recursive
  881. elif test -f $ac_srcdir/configure; then
  882. echo
  883. $SHELL $ac_srcdir/configure --help=recursive
  884. elif test -f $ac_srcdir/configure.ac ||
  885. test -f $ac_srcdir/configure.in; then
  886. echo
  887. $ac_configure --help
  888. else
  889. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  890. fi
  891. cd $ac_popdir
  892. done
  893. fi
  894.  
  895. test -n "$ac_init_help" && exit 0
  896. if $ac_init_version; then
  897. cat <<\_ACEOF
  898.  
  899. Copyright (C) 2003 Free Software Foundation, Inc.
  900. This configure script is free software; the Free Software Foundation
  901. gives unlimited permission to copy, distribute and modify it.
  902. _ACEOF
  903. exit 0
  904. fi
  905. exec 5>config.log
  906. cat >&5 <<_ACEOF
  907. This file contains any messages produced by compilers while
  908. running configure, to aid debugging if configure makes a mistake.
  909.  
  910. It was created by $as_me, which was
  911. generated by GNU Autoconf 2.59. Invocation command line was
  912.  
  913. $ $0 $@
  914.  
  915. _ACEOF
  916. {
  917. cat <<_ASUNAME
  918. ## --------- ##
  919. ## Platform. ##
  920. ## --------- ##
  921.  
  922. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  923. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  924. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  925. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  926. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  927.  
  928. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  929. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  930.  
  931. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  932. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  933. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  934. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  935. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  936. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  937. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  938.  
  939. _ASUNAME
  940.  
  941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  942. for as_dir in $PATH
  943. do
  944. IFS=$as_save_IFS
  945. test -z "$as_dir" && as_dir=.
  946. echo "PATH: $as_dir"
  947. done
  948.  
  949. } >&5
  950.  
  951. cat >&5 <<_ACEOF
  952.  
  953.  
  954. ## ----------- ##
  955. ## Core tests. ##
  956. ## ----------- ##
  957.  
  958. _ACEOF
  959.  
  960.  
  961. # Keep a trace of the command line.
  962. # Strip out --no-create and --no-recursion so they do not pile up.
  963. # Strip out --silent because we don't want to record it for future runs.
  964. # Also quote any args containing shell meta-characters.
  965. # Make two passes to allow for proper duplicate-argument suppression.
  966. ac_configure_args=
  967. ac_configure_args0=
  968. ac_configure_args1=
  969. ac_sep=
  970. ac_must_keep_next=false
  971. for ac_pass in 1 2
  972. do
  973. for ac_arg
  974. do
  975. case $ac_arg in
  976. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  977. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  978. | -silent | --silent | --silen | --sile | --sil)
  979. continue ;;
  980. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  981. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  982. esac
  983. case $ac_pass in
  984. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  985. 2)
  986. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  987. if test $ac_must_keep_next = true; then
  988. ac_must_keep_next=false # Got value, back to normal.
  989. else
  990. case $ac_arg in
  991. *=* | --config-cache | -C | -disable-* | --disable-* \
  992. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  993. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  994. | -with-* | --with-* | -without-* | --without-* | --x)
  995. case "$ac_configure_args0 " in
  996. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  997. esac
  998. ;;
  999. -* ) ac_must_keep_next=true ;;
  1000. esac
  1001. fi
  1002. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1003. # Get rid of the leading space.
  1004. ac_sep=" "
  1005. ;;
  1006. esac
  1007. done
  1008. done
  1009. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1010. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1011.  
  1012. # When interrupted or exit'd, cleanup temporary files, and complete
  1013. # config.log. We remove comments because anyway the quotes in there
  1014. # would cause problems or look ugly.
  1015. # WARNING: Be sure not to use single quotes in there, as some shells,
  1016. # such as our DU 5.0 friend, will then `close' the trap.
  1017. trap 'exit_status=$?
  1018. # Save into config.log some information that might help in debugging.
  1019. {
  1020. echo
  1021.  
  1022. cat <<\_ASBOX
  1023. ## ---------------- ##
  1024. ## Cache variables. ##
  1025. ## ---------------- ##
  1026. _ASBOX
  1027. echo
  1028. # The following way of writing the cache mishandles newlines in values,
  1029. {
  1030. (set) 2>&1 |
  1031. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1032. *ac_space=\ *)
  1033. sed -n \
  1034. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1035. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1036. ;;
  1037. *)
  1038. sed -n \
  1039. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1040. ;;
  1041. esac;
  1042. }
  1043. echo
  1044.  
  1045. cat <<\_ASBOX
  1046. ## ----------------- ##
  1047. ## Output variables. ##
  1048. ## ----------------- ##
  1049. _ASBOX
  1050. echo
  1051. for ac_var in $ac_subst_vars
  1052. do
  1053. eval ac_val=$`echo $ac_var`
  1054. echo "$ac_var='"'"'$ac_val'"'"'"
  1055. done | sort
  1056. echo
  1057.  
  1058. if test -n "$ac_subst_files"; then
  1059. cat <<\_ASBOX
  1060. ## ------------- ##
  1061. ## Output files. ##
  1062. ## ------------- ##
  1063. _ASBOX
  1064. echo
  1065. for ac_var in $ac_subst_files
  1066. do
  1067. eval ac_val=$`echo $ac_var`
  1068. echo "$ac_var='"'"'$ac_val'"'"'"
  1069. done | sort
  1070. echo
  1071. fi
  1072.  
  1073. if test -s confdefs.h; then
  1074. cat <<\_ASBOX
  1075. ## ----------- ##
  1076. ## confdefs.h. ##
  1077. ## ----------- ##
  1078. _ASBOX
  1079. echo
  1080. sed "/^$/d" confdefs.h | sort
  1081. echo
  1082. fi
  1083. test "$ac_signal" != 0 &&
  1084. echo "$as_me: caught signal $ac_signal"
  1085. echo "$as_me: exit $exit_status"
  1086. } >&5
  1087. rm -f core *.core &&
  1088. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1089. exit $exit_status
  1090. ' 0
  1091. for ac_signal in 1 2 13 15; do
  1092. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1093. done
  1094. ac_signal=0
  1095.  
  1096. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1097. rm -rf conftest* confdefs.h
  1098. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1099. echo >confdefs.h
  1100.  
  1101. # Predefined preprocessor variables.
  1102.  
  1103. cat >>confdefs.h <<_ACEOF
  1104. #define PACKAGE_NAME "$PACKAGE_NAME"
  1105. _ACEOF
  1106.  
  1107.  
  1108. cat >>confdefs.h <<_ACEOF
  1109. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1110. _ACEOF
  1111.  
  1112.  
  1113. cat >>confdefs.h <<_ACEOF
  1114. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1115. _ACEOF
  1116.  
  1117.  
  1118. cat >>confdefs.h <<_ACEOF
  1119. #define PACKAGE_STRING "$PACKAGE_STRING"
  1120. _ACEOF
  1121.  
  1122.  
  1123. cat >>confdefs.h <<_ACEOF
  1124. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1125. _ACEOF
  1126.  
  1127.  
  1128. # Let the site file select an alternate cache file if it wants to.
  1129. # Prefer explicitly selected file to automatically selected ones.
  1130. if test -z "$CONFIG_SITE"; then
  1131. if test "x$prefix" != xNONE; then
  1132. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1133. else
  1134. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1135. fi
  1136. fi
  1137. for ac_site_file in $CONFIG_SITE; do
  1138. if test -r "$ac_site_file"; then
  1139. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1140. echo "$as_me: loading site script $ac_site_file" >&6;}
  1141. sed 's/^/| /' "$ac_site_file" >&5
  1142. . "$ac_site_file"
  1143. fi
  1144. done
  1145.  
  1146. if test -r "$cache_file"; then
  1147. # Some versions of bash will fail to source /dev/null (special
  1148. # files actually), so we avoid doing that.
  1149. if test -f "$cache_file"; then
  1150. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1151. echo "$as_me: loading cache $cache_file" >&6;}
  1152. case $cache_file in
  1153. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1154. *) . ./$cache_file;;
  1155. esac
  1156. fi
  1157. else
  1158. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1159. echo "$as_me: creating cache $cache_file" >&6;}
  1160. >$cache_file
  1161. fi
  1162.  
  1163. # Check that the precious variables saved in the cache have kept the same
  1164. # value.
  1165. ac_cache_corrupted=false
  1166. for ac_var in `(set) 2>&1 |
  1167. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1168. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1169. eval ac_new_set=\$ac_env_${ac_var}_set
  1170. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1171. eval ac_new_val="\$ac_env_${ac_var}_value"
  1172. case $ac_old_set,$ac_new_set in
  1173. set,)
  1174. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1175. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1176. ac_cache_corrupted=: ;;
  1177. ,set)
  1178. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1179. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1180. ac_cache_corrupted=: ;;
  1181. ,);;
  1182. *)
  1183. if test "x$ac_old_val" != "x$ac_new_val"; then
  1184. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1185. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1186. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1187. echo "$as_me: former value: $ac_old_val" >&2;}
  1188. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1189. echo "$as_me: current value: $ac_new_val" >&2;}
  1190. ac_cache_corrupted=:
  1191. fi;;
  1192. esac
  1193. # Pass precious variables to config.status.
  1194. if test "$ac_new_set" = set; then
  1195. case $ac_new_val in
  1196. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1197. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1198. *) ac_arg=$ac_var=$ac_new_val ;;
  1199. esac
  1200. case " $ac_configure_args " in
  1201. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1202. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1203. esac
  1204. fi
  1205. done
  1206. if $ac_cache_corrupted; then
  1207. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1208. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1209. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1210. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1211. { (exit 1); exit 1; }; }
  1212. fi
  1213.  
  1214. ac_ext=c
  1215. ac_cpp='$CPP $CPPFLAGS'
  1216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239. VERSION=1.0
  1240.  
  1241. DIST_PATH=`pwd`
  1242. INSTALL_USER=eprints
  1243. INSTALL_GROUP=eprints
  1244. VIRTUALHOST=
  1245.  
  1246. PERL_SEARCH_PATH="$PATH:/usr/local/bin:/opt/perl/bin:/opt/PERL/bin"
  1247.  
  1248. # Check whether --with-perl or --without-perl was given.
  1249. if test "${with_perl+set}" = set; then
  1250. withval="$with_perl"
  1251.  
  1252. echo "$as_me:$LINENO: checking perl interpreter" >&5
  1253. echo $ECHO_N "checking perl interpreter... $ECHO_C" >&6
  1254. PERL_PATH=$withval
  1255. if test -x $PERL_PATH ; then
  1256. echo "$as_me:$LINENO: result: $PERL_PATH" >&5
  1257. echo "${ECHO_T}$PERL_PATH" >&6
  1258. else
  1259. { { echo "$as_me:$LINENO: error: Perl interpreter specified does not appear to exist" >&5
  1260. echo "$as_me: error: Perl interpreter specified does not appear to exist" >&2;}
  1261. { (exit 1); exit 1; }; }
  1262. fi
  1263.  
  1264. else
  1265.  
  1266. # Extract the first word of "perl", so it can be a program name with args.
  1267. set dummy perl; ac_word=$2
  1268. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1269. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1270. if test "${ac_cv_path_PERL_PATH+set}" = set; then
  1271. echo $ECHO_N "(cached) $ECHO_C" >&6
  1272. else
  1273. case $PERL_PATH in
  1274. [\\/]* | ?:[\\/]*)
  1275. ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
  1276. ;;
  1277. *)
  1278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1279. for as_dir in $PERL_SEARCH_PATH
  1280. do
  1281. IFS=$as_save_IFS
  1282. test -z "$as_dir" && as_dir=.
  1283. for ac_exec_ext in '' $ac_executable_extensions; do
  1284. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1285. ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
  1286. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1287. break 2
  1288. fi
  1289. done
  1290. done
  1291.  
  1292. test -z "$ac_cv_path_PERL_PATH" && ac_cv_path_PERL_PATH=""NOTFOUND""
  1293. ;;
  1294. esac
  1295. fi
  1296. PERL_PATH=$ac_cv_path_PERL_PATH
  1297.  
  1298. if test -n "$PERL_PATH"; then
  1299. echo "$as_me:$LINENO: result: $PERL_PATH" >&5
  1300. echo "${ECHO_T}$PERL_PATH" >&6
  1301. else
  1302. echo "$as_me:$LINENO: result: no" >&5
  1303. echo "${ECHO_T}no" >&6
  1304. fi
  1305.  
  1306. if test $PERL_PATH = NOTFOUND ; then
  1307. { { echo "$as_me:$LINENO: error: Unable to find perl interpreter" >&5
  1308. echo "$as_me: error: Unable to find perl interpreter" >&2;}
  1309. { (exit 1); exit 1; }; }
  1310. fi
  1311.  
  1312.  
  1313. fi;
  1314.  
  1315. echo "$as_me:$LINENO: checking whether the perl interpreter ($PERL_PATH ) runs" >&5
  1316. echo $ECHO_N "checking whether the perl interpreter ($PERL_PATH ) runs... $ECHO_C" >&6
  1317. if $PERL_PATH -e "" > /dev/null 2>&1 ; then
  1318. echo "$as_me:$LINENO: result: yes" >&5
  1319. echo "${ECHO_T}yes" >&6
  1320. else
  1321. echo "$as_me:$LINENO: result: no" >&5
  1322. echo "${ECHO_T}no" >&6
  1323. { { echo "$as_me:$LINENO: error: Perl interpreter does not appear to run" >&5
  1324. echo "$as_me: error: Perl interpreter does not appear to run" >&2;}
  1325. { (exit 1); exit 1; }; }
  1326. fi
  1327.  
  1328. echo "$as_me:$LINENO: checking whether the perl interpreter ($PERL_PATH ) works" >&5
  1329. echo $ECHO_N "checking whether the perl interpreter ($PERL_PATH ) works... $ECHO_C" >&6
  1330. if $PERL_PATH -e " print(\"INSERT PERL TEST HERE\")" > /dev/null 2>&1 ; then
  1331. echo "$as_me:$LINENO: result: yes" >&5
  1332. echo "${ECHO_T}yes" >&6
  1333. else
  1334. echo "$as_me:$LINENO: result: no" >&5
  1335. echo "${ECHO_T}no" >&6
  1336. { { echo "$as_me:$LINENO: error: Perl interpreter does not appear to work" >&5
  1337. echo "$as_me: error: Perl interpreter does not appear to work" >&2;}
  1338. { (exit 1); exit 1; }; }
  1339. fi
  1340.  
  1341.  
  1342. # Check whether --with-user or --without-user was given.
  1343. if test "${with_user+set}" = set; then
  1344. withval="$with_user"
  1345.  
  1346. INSTALL_USER=$withval
  1347.  
  1348. fi;
  1349. echo "$as_me:$LINENO: checking whether the user $INSTALL_USER exists" >&5
  1350. echo $ECHO_N "checking whether the user $INSTALL_USER exists... $ECHO_C" >&6
  1351. if $PERL_PATH -e "getpwnam(\"$INSTALL_USER\")?exit 0:exit 1;" > /dev/null 2>&1 ; then
  1352. echo "$as_me:$LINENO: result: yes" >&5
  1353. echo "${ECHO_T}yes" >&6
  1354. else
  1355. echo "$as_me:$LINENO: result: no" >&5
  1356. echo "${ECHO_T}no" >&6
  1357. { { echo "$as_me:$LINENO: error: User $INSTALL_USER does not appear to exist" >&5
  1358. echo "$as_me: error: User $INSTALL_USER does not appear to exist" >&2;}
  1359. { (exit 1); exit 1; }; }
  1360. fi
  1361.  
  1362.  
  1363. # Check whether --with-group or --without-group was given.
  1364. if test "${with_group+set}" = set; then
  1365. withval="$with_group"
  1366.  
  1367. INSTALL_GROUP=$withval
  1368.  
  1369. fi;
  1370. echo "$as_me:$LINENO: checking whether the group $INSTALL_GROUP exists" >&5
  1371. echo $ECHO_N "checking whether the group $INSTALL_GROUP exists... $ECHO_C" >&6
  1372. if $PERL_PATH -e "getgrnam(\"$INSTALL_GROUP\")?exit 0:exit 1;" > /dev/null 2>&1 ; then
  1373. echo "$as_me:$LINENO: result: yes" >&5
  1374. echo "${ECHO_T}yes" >&6
  1375. else
  1376. echo "$as_me:$LINENO: result: no" >&5
  1377. echo "${ECHO_T}no" >&6
  1378. { { echo "$as_me:$LINENO: error: Group $INSTALL_GROUP does not appear to exist" >&5
  1379. echo "$as_me: error: Group $INSTALL_GROUP does not appear to exist" >&2;}
  1380. { (exit 1); exit 1; }; }
  1381. fi
  1382.  
  1383.  
  1384. # Check whether --with-virtualhost or --without-virtualhost was given.
  1385. if test "${with_virtualhost+set}" = set; then
  1386. withval="$with_virtualhost"
  1387.  
  1388. VIRTUALHOST=$withval
  1389.  
  1390. fi;
  1391.  
  1392. DISABLE_DF="0"
  1393. # Check whether --enable-diskfree or --disable-diskfree was given.
  1394. if test "${enable_diskfree+set}" = set; then
  1395. enableval="$enable_diskfree"
  1396.  
  1397. if test $enableval = no ; then
  1398. DISABLE_DF="1"
  1399. fi
  1400.  
  1401. fi;
  1402.  
  1403. DISABLE_GDOME="0"
  1404. # Check whether --enable-gdome or --disable-gdome was given.
  1405. if test "${enable_gdome+set}" = set; then
  1406. enableval="$enable_gdome"
  1407.  
  1408. if test $enableval = no ; then
  1409. DISABLE_GDOME="1"
  1410. fi
  1411.  
  1412. fi;
  1413.  
  1414. APACHE=""
  1415.  
  1416. # Check whether --with-apache or --without-apache was given.
  1417. if test "${with_apache+set}" = set; then
  1418. withval="$with_apache"
  1419.  
  1420. APACHE=$withval
  1421.  
  1422. fi;
  1423.  
  1424. SMTP=""
  1425.  
  1426. # Check whether --with-smtp-server or --without-smtp-server was given.
  1427. if test "${with_smtp_server+set}" = set; then
  1428. withval="$with_smtp_server"
  1429.  
  1430. SMTP_SERVER=$withval
  1431.  
  1432. fi;
  1433. if test $SMTP_SERVER = "yes" ; then
  1434. echo "Please actually specify a STMP server."
  1435. exit 1;
  1436. fi
  1437.  
  1438. if test $DISABLE_DF = "0" ; then
  1439. echo "$as_me:$LINENO: checking what perl function to use for disk free" >&5
  1440. echo $ECHO_N "checking what perl function to use for disk free... $ECHO_C" >&6
  1441. DF_FUNC=`$PERL_PATH df-check.pl`
  1442. echo "$as_me:$LINENO: result: $DF_FUNC" >&5
  1443. echo "${ECHO_T}$DF_FUNC" >&6
  1444. if test $DF_FUNC = "none" ; then
  1445. # Extract the first word of "h2ph", so it can be a program name with args.
  1446. set dummy h2ph; ac_word=$2
  1447. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1448. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1449. if test "${ac_cv_path_H2PH_PATH+set}" = set; then
  1450. echo $ECHO_N "(cached) $ECHO_C" >&6
  1451. else
  1452. case $H2PH_PATH in
  1453. [\\/]* | ?:[\\/]*)
  1454. ac_cv_path_H2PH_PATH="$H2PH_PATH" # Let the user override the test with a path.
  1455. ;;
  1456. *)
  1457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1458. for as_dir in $PERL_SEARCH_PATH
  1459. do
  1460. IFS=$as_save_IFS
  1461. test -z "$as_dir" && as_dir=.
  1462. for ac_exec_ext in '' $ac_executable_extensions; do
  1463. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1464. ac_cv_path_H2PH_PATH="$as_dir/$ac_word$ac_exec_ext"
  1465. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1466. break 2
  1467. fi
  1468. done
  1469. done
  1470.  
  1471. test -z "$ac_cv_path_H2PH_PATH" && ac_cv_path_H2PH_PATH=""NOTFOUND""
  1472. ;;
  1473. esac
  1474. fi
  1475. H2PH_PATH=$ac_cv_path_H2PH_PATH
  1476.  
  1477. if test -n "$H2PH_PATH"; then
  1478. echo "$as_me:$LINENO: result: $H2PH_PATH" >&5
  1479. echo "${ECHO_T}$H2PH_PATH" >&6
  1480. else
  1481. echo "$as_me:$LINENO: result: no" >&5
  1482. echo "${ECHO_T}no" >&6
  1483. fi
  1484.  
  1485. if test $H2PH_PATH = "NOTFOUND" ; then
  1486. H2PH_PATH=h2ph
  1487. fi
  1488. echo "**************************************************************"
  1489. echo "*** Unable to find a way to check for free disk space in perl."
  1490. echo "*** Free space checking function disabled. To supress this"
  1491. echo "*** message, re-run configure with the --disable-diskfree"
  1492. echo "*** option."
  1493. echo "*** "
  1494. echo "*** EPrints uses diskfree to warn you if you are running"
  1495. echo "*** low on disk space. If you disable the feature you will"
  1496. echo "*** need to keep an eye on free disk space yourself."
  1497. echo "*** "
  1498. echo "*** If you require free space checking, the necessary"
  1499. echo "*** functionality can be enabled by running the perl"
  1500. echo "*** tool \"h2ph\" in /usr/include, as root:"
  1501. echo "*** cd /usr/include"
  1502. echo "*** $H2PH_PATH * */*"
  1503. echo "**************************************************************"
  1504. fi
  1505. fi
  1506.  
  1507.  
  1508. TOOL_PATH="$PATH:/usr/local/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/lib"
  1509.  
  1510. # Check whether --with-toolpath or --without-toolpath was given.
  1511. if test "${with_toolpath+set}" = set; then
  1512. withval="$with_toolpath"
  1513.  
  1514. TOOL_PATH=$withval
  1515.  
  1516. fi;
  1517.  
  1518. # Extract the first word of "unzip", so it can be a program name with args.
  1519. set dummy unzip; ac_word=$2
  1520. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1521. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1522. if test "${ac_cv_path_UNZIP_PATH+set}" = set; then
  1523. echo $ECHO_N "(cached) $ECHO_C" >&6
  1524. else
  1525. case $UNZIP_PATH in
  1526. [\\/]* | ?:[\\/]*)
  1527. ac_cv_path_UNZIP_PATH="$UNZIP_PATH" # Let the user override the test with a path.
  1528. ;;
  1529. *)
  1530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1531. for as_dir in $TOOL_PATH
  1532. do
  1533. IFS=$as_save_IFS
  1534. test -z "$as_dir" && as_dir=.
  1535. for ac_exec_ext in '' $ac_executable_extensions; do
  1536. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1537. ac_cv_path_UNZIP_PATH="$as_dir/$ac_word$ac_exec_ext"
  1538. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1539. break 2
  1540. fi
  1541. done
  1542. done
  1543.  
  1544. test -z "$ac_cv_path_UNZIP_PATH" && ac_cv_path_UNZIP_PATH=""NOTFOUND""
  1545. ;;
  1546. esac
  1547. fi
  1548. UNZIP_PATH=$ac_cv_path_UNZIP_PATH
  1549.  
  1550. if test -n "$UNZIP_PATH"; then
  1551. echo "$as_me:$LINENO: result: $UNZIP_PATH" >&5
  1552. echo "${ECHO_T}$UNZIP_PATH" >&6
  1553. else
  1554. echo "$as_me:$LINENO: result: no" >&5
  1555. echo "${ECHO_T}no" >&6
  1556. fi
  1557.  
  1558. if test $UNZIP_PATH = "NOTFOUND"; then
  1559. echo "**************************************************************"
  1560. echo "*** Unable to find 'unzip'"
  1561. echo "*** "
  1562. echo "*** This is not critical. Without unzip, EPrints will not be"
  1563. echo "*** able to extract documents uploaded as ZIP archives."
  1564. echo "*** "
  1565. echo "*** Try running this script again giving the --with-toolpath"
  1566. echo "*** option to give a colon separated path"
  1567. echo "*** where the tools can be found"
  1568. echo "**************************************************************"
  1569. { echo "$as_me:$LINENO: WARNING: Unable to find unzip" >&5
  1570. echo "$as_me: WARNING: Unable to find unzip" >&2;}
  1571. fi
  1572.  
  1573. # Extract the first word of "tar", so it can be a program name with args.
  1574. set dummy tar; ac_word=$2
  1575. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1576. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1577. if test "${ac_cv_path_TAR_PATH+set}" = set; then
  1578. echo $ECHO_N "(cached) $ECHO_C" >&6
  1579. else
  1580. case $TAR_PATH in
  1581. [\\/]* | ?:[\\/]*)
  1582. ac_cv_path_TAR_PATH="$TAR_PATH" # Let the user override the test with a path.
  1583. ;;
  1584. *)
  1585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1586. for as_dir in $TOOL_PATH
  1587. do
  1588. IFS=$as_save_IFS
  1589. test -z "$as_dir" && as_dir=.
  1590. for ac_exec_ext in '' $ac_executable_extensions; do
  1591. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1592. ac_cv_path_TAR_PATH="$as_dir/$ac_word$ac_exec_ext"
  1593. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1594. break 2
  1595. fi
  1596. done
  1597. done
  1598.  
  1599. test -z "$ac_cv_path_TAR_PATH" && ac_cv_path_TAR_PATH=""NOTFOUND""
  1600. ;;
  1601. esac
  1602. fi
  1603. TAR_PATH=$ac_cv_path_TAR_PATH
  1604.  
  1605. if test -n "$TAR_PATH"; then
  1606. echo "$as_me:$LINENO: result: $TAR_PATH" >&5
  1607. echo "${ECHO_T}$TAR_PATH" >&6
  1608. else
  1609. echo "$as_me:$LINENO: result: no" >&5
  1610. echo "${ECHO_T}no" >&6
  1611. fi
  1612.  
  1613. if test $TAR_PATH = "NOTFOUND"; then
  1614. echo "**************************************************************"
  1615. echo "*** Unable to find 'tar'"
  1616. echo "*** "
  1617. echo "*** This is not critical. Without tar, EPrints will not be"
  1618. echo "*** able to extract documents uploaded as tar.gz archives."
  1619. echo "*** "
  1620. echo "*** Try running this script again giving the --with-toolpath"
  1621. echo "*** option to give a colon separated path"
  1622. echo "*** where the tools can be found"
  1623. echo "**************************************************************"
  1624. { echo "$as_me:$LINENO: WARNING: Unable to find tar" >&5
  1625. echo "$as_me: WARNING: Unable to find tar" >&2;}
  1626. fi
  1627.  
  1628. # Extract the first word of "gunzip", so it can be a program name with args.
  1629. set dummy gunzip; ac_word=$2
  1630. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1631. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1632. if test "${ac_cv_path_GUNZIP_PATH+set}" = set; then
  1633. echo $ECHO_N "(cached) $ECHO_C" >&6
  1634. else
  1635. case $GUNZIP_PATH in
  1636. [\\/]* | ?:[\\/]*)
  1637. ac_cv_path_GUNZIP_PATH="$GUNZIP_PATH" # Let the user override the test with a path.
  1638. ;;
  1639. *)
  1640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1641. for as_dir in $TOOL_PATH
  1642. do
  1643. IFS=$as_save_IFS
  1644. test -z "$as_dir" && as_dir=.
  1645. for ac_exec_ext in '' $ac_executable_extensions; do
  1646. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1647. ac_cv_path_GUNZIP_PATH="$as_dir/$ac_word$ac_exec_ext"
  1648. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1649. break 2
  1650. fi
  1651. done
  1652. done
  1653.  
  1654. test -z "$ac_cv_path_GUNZIP_PATH" && ac_cv_path_GUNZIP_PATH=""NOTFOUND""
  1655. ;;
  1656. esac
  1657. fi
  1658. GUNZIP_PATH=$ac_cv_path_GUNZIP_PATH
  1659.  
  1660. if test -n "$GUNZIP_PATH"; then
  1661. echo "$as_me:$LINENO: result: $GUNZIP_PATH" >&5
  1662. echo "${ECHO_T}$GUNZIP_PATH" >&6
  1663. else
  1664. echo "$as_me:$LINENO: result: no" >&5
  1665. echo "${ECHO_T}no" >&6
  1666. fi
  1667.  
  1668. if test $GUNZIP_PATH = "NOTFOUND"; then
  1669. echo "**************************************************************"
  1670. echo "*** Unable to find 'gunzip'"
  1671. echo "*** "
  1672. echo "*** This is not critical. Without gunzip, EPrints will not be"
  1673. echo "*** able to extract documents uploaded as tar.gz archives."
  1674. echo "*** "
  1675. echo "*** Try running this script again giving the --with-toolpath"
  1676. echo "*** option to give a colon separated path"
  1677. echo "*** where the tools can be found"
  1678. echo "**************************************************************"
  1679. { echo "$as_me:$LINENO: WARNING: Unable to find gunzip, the GNU unzip tool" >&5
  1680. echo "$as_me: WARNING: Unable to find gunzip, the GNU unzip tool" >&2;}
  1681. fi
  1682.  
  1683. # Extract the first word of "wget", so it can be a program name with args.
  1684. set dummy wget; ac_word=$2
  1685. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1686. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1687. if test "${ac_cv_path_WGET_PATH+set}" = set; then
  1688. echo $ECHO_N "(cached) $ECHO_C" >&6
  1689. else
  1690. case $WGET_PATH in
  1691. [\\/]* | ?:[\\/]*)
  1692. ac_cv_path_WGET_PATH="$WGET_PATH" # Let the user override the test with a path.
  1693. ;;
  1694. *)
  1695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1696. for as_dir in $TOOL_PATH
  1697. do
  1698. IFS=$as_save_IFS
  1699. test -z "$as_dir" && as_dir=.
  1700. for ac_exec_ext in '' $ac_executable_extensions; do
  1701. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1702. ac_cv_path_WGET_PATH="$as_dir/$ac_word$ac_exec_ext"
  1703. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1704. break 2
  1705. fi
  1706. done
  1707. done
  1708.  
  1709. test -z "$ac_cv_path_WGET_PATH" && ac_cv_path_WGET_PATH=""NOTFOUND""
  1710. ;;
  1711. esac
  1712. fi
  1713. WGET_PATH=$ac_cv_path_WGET_PATH
  1714.  
  1715. if test -n "$WGET_PATH"; then
  1716. echo "$as_me:$LINENO: result: $WGET_PATH" >&5
  1717. echo "${ECHO_T}$WGET_PATH" >&6
  1718. else
  1719. echo "$as_me:$LINENO: result: no" >&5
  1720. echo "${ECHO_T}no" >&6
  1721. fi
  1722.  
  1723. if test $WGET_PATH = "NOTFOUND"; then
  1724. echo "**************************************************************"
  1725. echo "*** Unable to find 'wget'"
  1726. echo "*** "
  1727. echo "*** This is not critical. Without wget, EPrints will not be"
  1728. echo "*** able to capture documents from URLs."
  1729. echo "*** "
  1730. echo "*** Try running this script again giving the --with-toolpath"
  1731. echo "*** option to give a colon separated path"
  1732. echo "*** where the tools can be found"
  1733. echo "**************************************************************"
  1734. { echo "$as_me:$LINENO: WARNING: Unable to find wget" >&5
  1735. echo "$as_me: WARNING: Unable to find wget" >&2;}
  1736. fi
  1737.  
  1738. # Extract the first word of "sendmail", so it can be a program name with args.
  1739. set dummy sendmail; ac_word=$2
  1740. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1741. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1742. if test "${ac_cv_path_SENDMAIL_PATH+set}" = set; then
  1743. echo $ECHO_N "(cached) $ECHO_C" >&6
  1744. else
  1745. case $SENDMAIL_PATH in
  1746. [\\/]* | ?:[\\/]*)
  1747. ac_cv_path_SENDMAIL_PATH="$SENDMAIL_PATH" # Let the user override the test with a path.
  1748. ;;
  1749. *)
  1750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1751. for as_dir in $TOOL_PATH
  1752. do
  1753. IFS=$as_save_IFS
  1754. test -z "$as_dir" && as_dir=.
  1755. for ac_exec_ext in '' $ac_executable_extensions; do
  1756. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1757. ac_cv_path_SENDMAIL_PATH="$as_dir/$ac_word$ac_exec_ext"
  1758. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1759. break 2
  1760. fi
  1761. done
  1762. done
  1763.  
  1764. test -z "$ac_cv_path_SENDMAIL_PATH" && ac_cv_path_SENDMAIL_PATH=""NOTFOUND""
  1765. ;;
  1766. esac
  1767. fi
  1768. SENDMAIL_PATH=$ac_cv_path_SENDMAIL_PATH
  1769.  
  1770. if test -n "$SENDMAIL_PATH"; then
  1771. echo "$as_me:$LINENO: result: $SENDMAIL_PATH" >&5
  1772. echo "${ECHO_T}$SENDMAIL_PATH" >&6
  1773. else
  1774. echo "$as_me:$LINENO: result: no" >&5
  1775. echo "${ECHO_T}no" >&6
  1776. fi
  1777.  
  1778. if test $SENDMAIL_PATH = "NOTFOUND"; then
  1779. echo "*** 'sendmail' is only needed if you choose not to use"
  1780. echo "*** Net::SMTP to send email."
  1781. # AC_MSG_WARN([Unable to find sendmail])
  1782. fi
  1783.  
  1784.  
  1785.  
  1786. # tools used to create latex equations. not critical.
  1787.  
  1788. # Extract the first word of "latex", so it can be a program name with args.
  1789. set dummy latex; ac_word=$2
  1790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1792. if test "${ac_cv_path_LATEX_PATH+set}" = set; then
  1793. echo $ECHO_N "(cached) $ECHO_C" >&6
  1794. else
  1795. case $LATEX_PATH in
  1796. [\\/]* | ?:[\\/]*)
  1797. ac_cv_path_LATEX_PATH="$LATEX_PATH" # Let the user override the test with a path.
  1798. ;;
  1799. *)
  1800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1801. for as_dir in $TOOL_PATH
  1802. do
  1803. IFS=$as_save_IFS
  1804. test -z "$as_dir" && as_dir=.
  1805. for ac_exec_ext in '' $ac_executable_extensions; do
  1806. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1807. ac_cv_path_LATEX_PATH="$as_dir/$ac_word$ac_exec_ext"
  1808. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1809. break 2
  1810. fi
  1811. done
  1812. done
  1813.  
  1814. test -z "$ac_cv_path_LATEX_PATH" && ac_cv_path_LATEX_PATH=""NOTFOUND""
  1815. ;;
  1816. esac
  1817. fi
  1818. LATEX_PATH=$ac_cv_path_LATEX_PATH
  1819.  
  1820. if test -n "$LATEX_PATH"; then
  1821. echo "$as_me:$LINENO: result: $LATEX_PATH" >&5
  1822. echo "${ECHO_T}$LATEX_PATH" >&6
  1823. else
  1824. echo "$as_me:$LINENO: result: no" >&5
  1825. echo "${ECHO_T}no" >&6
  1826. fi
  1827.  
  1828. if test $LATEX_PATH = "NOTFOUND"; then
  1829. echo "*** 'latex' is only needed if you want to use the feature"
  1830. echo "*** which displays latex equations as inline graphics."
  1831. # AC_MSG_WARN([Unable to find latex])
  1832. fi
  1833.  
  1834. # Extract the first word of "dvips", so it can be a program name with args.
  1835. set dummy dvips; ac_word=$2
  1836. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1837. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1838. if test "${ac_cv_path_DVIPS_PATH+set}" = set; then
  1839. echo $ECHO_N "(cached) $ECHO_C" >&6
  1840. else
  1841. case $DVIPS_PATH in
  1842. [\\/]* | ?:[\\/]*)
  1843. ac_cv_path_DVIPS_PATH="$DVIPS_PATH" # Let the user override the test with a path.
  1844. ;;
  1845. *)
  1846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1847. for as_dir in $TOOL_PATH
  1848. do
  1849. IFS=$as_save_IFS
  1850. test -z "$as_dir" && as_dir=.
  1851. for ac_exec_ext in '' $ac_executable_extensions; do
  1852. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1853. ac_cv_path_DVIPS_PATH="$as_dir/$ac_word$ac_exec_ext"
  1854. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1855. break 2
  1856. fi
  1857. done
  1858. done
  1859.  
  1860. test -z "$ac_cv_path_DVIPS_PATH" && ac_cv_path_DVIPS_PATH=""NOTFOUND""
  1861. ;;
  1862. esac
  1863. fi
  1864. DVIPS_PATH=$ac_cv_path_DVIPS_PATH
  1865.  
  1866. if test -n "$DVIPS_PATH"; then
  1867. echo "$as_me:$LINENO: result: $DVIPS_PATH" >&5
  1868. echo "${ECHO_T}$DVIPS_PATH" >&6
  1869. else
  1870. echo "$as_me:$LINENO: result: no" >&5
  1871. echo "${ECHO_T}no" >&6
  1872. fi
  1873.  
  1874. if test $DVIPS_PATH = "NOTFOUND"; then
  1875. echo "*** 'dvips' is only needed if you want to use the feature"
  1876. echo "*** which displays latex equations as inline graphics."
  1877. # AC_MSG_WARN([Unable to find dvips, for latex])
  1878. fi
  1879.  
  1880. # Extract the first word of "convert", so it can be a program name with args.
  1881. set dummy convert; ac_word=$2
  1882. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1883. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1884. if test "${ac_cv_path_CONVERT_PATH+set}" = set; then
  1885. echo $ECHO_N "(cached) $ECHO_C" >&6
  1886. else
  1887. case $CONVERT_PATH in
  1888. [\\/]* | ?:[\\/]*)
  1889. ac_cv_path_CONVERT_PATH="$CONVERT_PATH" # Let the user override the test with a path.
  1890. ;;
  1891. *)
  1892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1893. for as_dir in $TOOL_PATH
  1894. do
  1895. IFS=$as_save_IFS
  1896. test -z "$as_dir" && as_dir=.
  1897. for ac_exec_ext in '' $ac_executable_extensions; do
  1898. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1899. ac_cv_path_CONVERT_PATH="$as_dir/$ac_word$ac_exec_ext"
  1900. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1901. break 2
  1902. fi
  1903. done
  1904. done
  1905.  
  1906. test -z "$ac_cv_path_CONVERT_PATH" && ac_cv_path_CONVERT_PATH=""NOTFOUND""
  1907. ;;
  1908. esac
  1909. fi
  1910. CONVERT_PATH=$ac_cv_path_CONVERT_PATH
  1911.  
  1912. if test -n "$CONVERT_PATH"; then
  1913. echo "$as_me:$LINENO: result: $CONVERT_PATH" >&5
  1914. echo "${ECHO_T}$CONVERT_PATH" >&6
  1915. else
  1916. echo "$as_me:$LINENO: result: no" >&5
  1917. echo "${ECHO_T}no" >&6
  1918. fi
  1919.  
  1920. if test $CONVERT_PATH = "NOTFOUND"; then
  1921. echo "*** 'convert' is only needed if you want to use the feature"
  1922. echo "*** which creates thumbnails and previews of images and PDFs"
  1923. echo "*** and/or displays latex equations as inline graphics."
  1924. # AC_MSG_WARN([Unable to find convert, the ImageMagick tool])
  1925. fi
  1926.  
  1927.  
  1928.  
  1929.  
  1930. echo "$as_me:$LINENO: checking for Perl module: Apache" >&5
  1931. echo $ECHO_N "checking for Perl module: Apache... $ECHO_C" >&6
  1932. RESULT=`$PERL_PATH -m"Apache" -e 'print "1\n";' 2>/dev/null`
  1933.  
  1934. if test "x$RESULT" = "x1" ; then
  1935. HAS_MOD_PERL_1=1
  1936. HAS_MOD_PERL_1="1"
  1937.  
  1938. echo "$as_me:$LINENO: result: yes" >&5
  1939. echo "${ECHO_T}yes" >&6
  1940. else
  1941. HAS_MOD_PERL_1=0
  1942. HAS_MOD_PERL_1="0"
  1943.  
  1944. echo "$as_me:$LINENO: result: no" >&5
  1945. echo "${ECHO_T}no" >&6
  1946. fi
  1947.  
  1948.  
  1949. echo "$as_me:$LINENO: checking for Perl module: Apache2" >&5
  1950. echo $ECHO_N "checking for Perl module: Apache2... $ECHO_C" >&6
  1951. RESULT=`$PERL_PATH -m"Apache2" -e 'print "1\n";' 2>/dev/null`
  1952.  
  1953. if test "x$RESULT" = "x1" ; then
  1954. HAS_MOD_PERL_2A=1
  1955. HAS_MOD_PERL_2A="1"
  1956.  
  1957. echo "$as_me:$LINENO: result: yes" >&5
  1958. echo "${ECHO_T}yes" >&6
  1959. else
  1960. HAS_MOD_PERL_2A=0
  1961. HAS_MOD_PERL_2A="0"
  1962.  
  1963. echo "$as_me:$LINENO: result: no" >&5
  1964. echo "${ECHO_T}no" >&6
  1965. fi
  1966.  
  1967.  
  1968. echo "$as_me:$LINENO: checking for Perl module: Apache2::Util" >&5
  1969. echo $ECHO_N "checking for Perl module: Apache2::Util... $ECHO_C" >&6
  1970. RESULT=`$PERL_PATH -m"Apache2::Util" -e 'print "1\n";' 2>/dev/null`
  1971.  
  1972. if test "x$RESULT" = "x1" ; then
  1973. HAS_MOD_PERL_2B=1
  1974. HAS_MOD_PERL_2B="1"
  1975.  
  1976. echo "$as_me:$LINENO: result: yes" >&5
  1977. echo "${ECHO_T}yes" >&6
  1978. else
  1979. HAS_MOD_PERL_2B=0
  1980. HAS_MOD_PERL_2B="0"
  1981.  
  1982. echo "$as_me:$LINENO: result: no" >&5
  1983. echo "${ECHO_T}no" >&6
  1984. fi
  1985.  
  1986. HAS_MOD_PERL_2="0"
  1987. if test $HAS_MOD_PERL_2A = "1"; then
  1988. HAS_MOD_PERL_2="1";
  1989. fi
  1990. if test $HAS_MOD_PERL_2B = "1"; then
  1991. HAS_MOD_PERL_2="1"
  1992. fi
  1993.  
  1994.  
  1995. NEED_TO_CHECK_CGI="no"
  1996. if test "x$APACHE" = "x1" ; then
  1997. if test $HAS_MOD_PERL_1 = "1"; then
  1998.  
  1999. echo "$as_me:$LINENO: checking for Perl module: Apache::Constants" >&5
  2000. echo $ECHO_N "checking for Perl module: Apache::Constants... $ECHO_C" >&6
  2001. RESULT=`$PERL_PATH -m"Apache::Constants" -e 'print "1\n";'`
  2002.  
  2003. if test "x$RESULT" = "x1" ; then
  2004. echo "$as_me:$LINENO: result: yes" >&5
  2005. echo "${ECHO_T}yes" >&6
  2006. else
  2007. echo "$as_me:$LINENO: result: no" >&5
  2008. echo "${ECHO_T}no" >&6
  2009. echo "***************************************************************"
  2010. echo "*** Please consult the eprints documentation on how to"
  2011. echo "*** install this missing module. Configuration will now"
  2012. echo "*** continue, but EPrints may not work until this module"
  2013. echo "*** had been installed."
  2014. echo "***************************************************************"
  2015. { { echo "$as_me:$LINENO: error: Perl module Apache::Constants not installed" >&5
  2016. echo "$as_me: error: Perl module Apache::Constants not installed" >&2;}
  2017. { (exit 1); exit 1; }; }
  2018. fi
  2019.  
  2020.  
  2021. echo "$as_me:$LINENO: checking for Perl module: Apache::Registry" >&5
  2022. echo $ECHO_N "checking for Perl module: Apache::Registry... $ECHO_C" >&6
  2023. RESULT=`$PERL_PATH -m"Apache::Registry" -e 'print "1\n";'`
  2024.  
  2025. if test "x$RESULT" = "x1" ; then
  2026. echo "$as_me:$LINENO: result: yes" >&5
  2027. echo "${ECHO_T}yes" >&6
  2028. else
  2029. echo "$as_me:$LINENO: result: no" >&5
  2030. echo "${ECHO_T}no" >&6
  2031. echo "***************************************************************"
  2032. echo "*** Please consult the eprints documentation on how to"
  2033. echo "*** install this missing module. Configuration will now"
  2034. echo "*** continue, but EPrints may not work until this module"
  2035. echo "*** had been installed."
  2036. echo "***************************************************************"
  2037. { { echo "$as_me:$LINENO: error: Perl module Apache::Registry not installed" >&5
  2038. echo "$as_me: error: Perl module Apache::Registry not installed" >&2;}
  2039. { (exit 1); exit 1; }; }
  2040. fi
  2041.  
  2042. else
  2043. echo "***********************************************************"
  2044. echo "*** Failed to find mod_perl 1 (PERL Module 'Apache')"
  2045. if test $HAS_MOD_PERL_2 = "1"; then
  2046. echo "***"
  2047. echo "*** However the module Apache2 is installed!"
  2048. echo "*** That sounds like you've got the wrong setting"
  2049. echo "*** for --with-apache=x"
  2050. fi
  2051. echo "***********************************************************"
  2052. { { echo "$as_me:$LINENO: error: No mod_perl 2!" >&5
  2053. echo "$as_me: error: No mod_perl 2!" >&2;}
  2054. { (exit 1); exit 1; }; }
  2055. fi
  2056. else
  2057. if test $HAS_MOD_PERL_2 = "1"; then
  2058. if test $HAS_MOD_PERL_2A = "1"; then
  2059.  
  2060. echo "$as_me:$LINENO: checking for Perl module: Apache::Const" >&5
  2061. echo $ECHO_N "checking for Perl module: Apache::Const... $ECHO_C" >&6
  2062. RESULT=`$PERL_PATH -m"Apache::Const" -e 'print "1\n";'`
  2063.  
  2064. if test "x$RESULT" = "x1" ; then
  2065. echo "$as_me:$LINENO: result: yes" >&5
  2066. echo "${ECHO_T}yes" >&6
  2067. else
  2068. echo "$as_me:$LINENO: result: no" >&5
  2069. echo "${ECHO_T}no" >&6
  2070. echo "***************************************************************"
  2071. echo "*** Please consult the eprints documentation on how to"
  2072. echo "*** install this missing module. Configuration will now"
  2073. echo "*** continue, but EPrints may not work until this module"
  2074. echo "*** had been installed."
  2075. echo "***************************************************************"
  2076. { { echo "$as_me:$LINENO: error: Perl module Apache::Const not installed" >&5
  2077. echo "$as_me: error: Perl module Apache::Const not installed" >&2;}
  2078. { (exit 1); exit 1; }; }
  2079. fi
  2080.  
  2081. NEED_TO_CHECK_CGI="old"
  2082. else
  2083.  
  2084. echo "$as_me:$LINENO: checking for Perl module: Apache2::Const" >&5
  2085. echo $ECHO_N "checking for Perl module: Apache2::Const... $ECHO_C" >&6
  2086. RESULT=`$PERL_PATH -m"Apache2::Const" -e 'print "1\n";'`
  2087.  
  2088. if test "x$RESULT" = "x1" ; then
  2089. echo "$as_me:$LINENO: result: yes" >&5
  2090. echo "${ECHO_T}yes" >&6
  2091. else
  2092. echo "$as_me:$LINENO: result: no" >&5
  2093. echo "${ECHO_T}no" >&6
  2094. echo "***************************************************************"
  2095. echo "*** Please consult the eprints documentation on how to"
  2096. echo "*** install this missing module. Configuration will now"
  2097. echo "*** continue, but EPrints may not work until this module"
  2098. echo "*** had been installed."
  2099. echo "***************************************************************"
  2100. { { echo "$as_me:$LINENO: error: Perl module Apache2::Const not installed" >&5
  2101. echo "$as_me: error: Perl module Apache2::Const not installed" >&2;}
  2102. { (exit 1); exit 1; }; }
  2103. fi
  2104.  
  2105. NEED_TO_CHECK_CGI="new"
  2106. fi
  2107.  
  2108. echo "$as_me:$LINENO: checking for Perl module: ModPerl::Registry" >&5
  2109. echo $ECHO_N "checking for Perl module: ModPerl::Registry... $ECHO_C" >&6
  2110. RESULT=`$PERL_PATH -m"ModPerl::Registry" -e 'print "1\n";'`
  2111.  
  2112. if test "x$RESULT" = "x1" ; then
  2113. echo "$as_me:$LINENO: result: yes" >&5
  2114. echo "${ECHO_T}yes" >&6
  2115. else
  2116. echo "$as_me:$LINENO: result: no" >&5
  2117. echo "${ECHO_T}no" >&6
  2118. echo "***************************************************************"
  2119. echo "*** Please consult the eprints documentation on how to"
  2120. echo "*** install this missing module. Configuration will now"
  2121. echo "*** continue, but EPrints may not work until this module"
  2122. echo "*** had been installed."
  2123. echo "***************************************************************"
  2124. { { echo "$as_me:$LINENO: error: Perl module ModPerl::Registry not installed" >&5
  2125. echo "$as_me: error: Perl module ModPerl::Registry not installed" >&2;}
  2126. { (exit 1); exit 1; }; }
  2127. fi
  2128.  
  2129. else
  2130. echo "***********************************************************"
  2131. echo "*** Failed to find mod_perl 2 (PERL Module 'Apache2')"
  2132. if test $HAS_MOD_PERL_1 = "1"; then
  2133. echo "***"
  2134. echo "*** However the module Apache is installed!"
  2135. echo "*** That sounds like you've got the wrong setting"
  2136. echo "*** for --with-apache=x"
  2137. fi
  2138. echo "***********************************************************"
  2139. { { echo "$as_me:$LINENO: error: No mod_perl!" >&5
  2140. echo "$as_me: error: No mod_perl!" >&2;}
  2141. { (exit 1); exit 1; }; }
  2142. fi
  2143. fi
  2144.  
  2145.  
  2146.  
  2147. if test "$NEED_TO_CHECK_CGI" = "new" ; then
  2148. echo "$as_me:$LINENO: checking CGI.pm/mod_perl compatiability (need newer CGI.pm)" >&5
  2149. echo $ECHO_N "checking CGI.pm/mod_perl compatiability (need newer CGI.pm)... $ECHO_C" >&6
  2150. CGI_FUNC=`$PERL_PATH cgi-check.pl`
  2151. echo "$as_me:$LINENO: result: $CGI_FUNC" >&5
  2152. echo "${ECHO_T}$CGI_FUNC" >&6
  2153. if test $CGI_FUNC != "new" ; then
  2154. echo "***********************************************************"
  2155. echo "*** The version of CGI.pm you are using is not compatible"
  2156. echo "*** with the version of mod_perl you are using. Either"
  2157. echo "*** downgrade mod_perl to version <=1.99.21 or upgrade"
  2158. echo "*** CGI.pm to version >= 3.08. The mod_perl documentation"
  2159. echo "*** recommends a CGI.pm version >= 3.11"
  2160. echo "*** See also: http://perl.apache.org/docs/2.0/rename.html"
  2161. echo "***********************************************************"
  2162. fi
  2163. fi
  2164.  
  2165. if test "$NEED_TO_CHECK_CGI" = "old" ; then
  2166. echo "$as_me:$LINENO: checking CGI.pm/mod_perl compatiability (need older CGI.pm)" >&5
  2167. echo $ECHO_N "checking CGI.pm/mod_perl compatiability (need older CGI.pm)... $ECHO_C" >&6
  2168. CGI_FUNC=`$PERL_PATH cgi-check.pl`
  2169. echo "$as_me:$LINENO: result: $CGI_FUNC" >&5
  2170. echo "${ECHO_T}$CGI_FUNC" >&6
  2171. if test $CGI_FUNC != "old" ; then
  2172. echo "***********************************************************"
  2173. echo "*** The version of CGI.pm you are using is not compatible"
  2174. echo "*** with the version of mod_perl you are using. Either"
  2175. echo "*** upgrade mod_perl to version >=1.99.22 or downgrade"
  2176. echo "*** CGI.pm to version <= 3.07"
  2177. echo "*** See also: http://perl.apache.org/docs/2.0/rename.html"
  2178. echo "***********************************************************"
  2179. fi
  2180. fi
  2181.  
  2182.  
  2183.  
  2184.  
  2185. echo "$as_me:$LINENO: checking for Perl module: Carp" >&5
  2186. echo $ECHO_N "checking for Perl module: Carp... $ECHO_C" >&6
  2187. RESULT=`$PERL_PATH -m"Carp" -e 'print "1\n";'`
  2188.  
  2189. if test "x$RESULT" = "x1" ; then
  2190. echo "$as_me:$LINENO: result: yes" >&5
  2191. echo "${ECHO_T}yes" >&6
  2192. else
  2193. echo "$as_me:$LINENO: result: no" >&5
  2194. echo "${ECHO_T}no" >&6
  2195. echo "***************************************************************"
  2196. echo "*** Please consult the eprints documentation on how to"
  2197. echo "*** install this missing module. Configuration will now"
  2198. echo "*** continue, but EPrints may not work until this module"
  2199. echo "*** had been installed."
  2200. echo "***************************************************************"
  2201. { { echo "$as_me:$LINENO: error: Perl module Carp not installed" >&5
  2202. echo "$as_me: error: Perl module Carp not installed" >&2;}
  2203. { (exit 1); exit 1; }; }
  2204. fi
  2205.  
  2206.  
  2207. echo "$as_me:$LINENO: checking for Perl module: Config" >&5
  2208. echo $ECHO_N "checking for Perl module: Config... $ECHO_C" >&6
  2209. RESULT=`$PERL_PATH -m"Config" -e 'print "1\n";'`
  2210.  
  2211. if test "x$RESULT" = "x1" ; then
  2212. echo "$as_me:$LINENO: result: yes" >&5
  2213. echo "${ECHO_T}yes" >&6
  2214. else
  2215. echo "$as_me:$LINENO: result: no" >&5
  2216. echo "${ECHO_T}no" >&6
  2217. echo "***************************************************************"
  2218. echo "*** Please consult the eprints documentation on how to"
  2219. echo "*** install this missing module. Configuration will now"
  2220. echo "*** continue, but EPrints may not work until this module"
  2221. echo "*** had been installed."
  2222. echo "***************************************************************"
  2223. { { echo "$as_me:$LINENO: error: Perl module Config not installed" >&5
  2224. echo "$as_me: error: Perl module Config not installed" >&2;}
  2225. { (exit 1); exit 1; }; }
  2226. fi
  2227.  
  2228.  
  2229. echo "$as_me:$LINENO: checking for Perl module: Cwd" >&5
  2230. echo $ECHO_N "checking for Perl module: Cwd... $ECHO_C" >&6
  2231. RESULT=`$PERL_PATH -m"Cwd" -e 'print "1\n";'`
  2232.  
  2233. if test "x$RESULT" = "x1" ; then
  2234. echo "$as_me:$LINENO: result: yes" >&5
  2235. echo "${ECHO_T}yes" >&6
  2236. else
  2237. echo "$as_me:$LINENO: result: no" >&5
  2238. echo "${ECHO_T}no" >&6
  2239. echo "***************************************************************"
  2240. echo "*** Please consult the eprints documentation on how to"
  2241. echo "*** install this missing module. Configuration will now"
  2242. echo "*** continue, but EPrints may not work until this module"
  2243. echo "*** had been installed."
  2244. echo "***************************************************************"
  2245. { { echo "$as_me:$LINENO: error: Perl module Cwd not installed" >&5
  2246. echo "$as_me: error: Perl module Cwd not installed" >&2;}
  2247. { (exit 1); exit 1; }; }
  2248. fi
  2249.  
  2250.  
  2251. echo "$as_me:$LINENO: checking for Perl module: Data::Dumper" >&5
  2252. echo $ECHO_N "checking for Perl module: Data::Dumper... $ECHO_C" >&6
  2253. RESULT=`$PERL_PATH -m"Data::Dumper" -e 'print "1\n";'`
  2254.  
  2255. if test "x$RESULT" = "x1" ; then
  2256. echo "$as_me:$LINENO: result: yes" >&5
  2257. echo "${ECHO_T}yes" >&6
  2258. else
  2259. echo "$as_me:$LINENO: result: no" >&5
  2260. echo "${ECHO_T}no" >&6
  2261. echo "***************************************************************"
  2262. echo "*** Please consult the eprints documentation on how to"
  2263. echo "*** install this missing module. Configuration will now"
  2264. echo "*** continue, but EPrints may not work until this module"
  2265. echo "*** had been installed."
  2266. echo "***************************************************************"
  2267. { { echo "$as_me:$LINENO: error: Perl module Data::Dumper not installed" >&5
  2268. echo "$as_me: error: Perl module Data::Dumper not installed" >&2;}
  2269. { (exit 1); exit 1; }; }
  2270. fi
  2271.  
  2272.  
  2273. echo "$as_me:$LINENO: checking for Perl module: Exporter" >&5
  2274. echo $ECHO_N "checking for Perl module: Exporter... $ECHO_C" >&6
  2275. RESULT=`$PERL_PATH -m"Exporter" -e 'print "1\n";'`
  2276.  
  2277. if test "x$RESULT" = "x1" ; then
  2278. echo "$as_me:$LINENO: result: yes" >&5
  2279. echo "${ECHO_T}yes" >&6
  2280. else
  2281. echo "$as_me:$LINENO: result: no" >&5
  2282. echo "${ECHO_T}no" >&6
  2283. echo "***************************************************************"
  2284. echo "*** Please consult the eprints documentation on how to"
  2285. echo "*** install this missing module. Configuration will now"
  2286. echo "*** continue, but EPrints may not work until this module"
  2287. echo "*** had been installed."
  2288. echo "***************************************************************"
  2289. { { echo "$as_me:$LINENO: error: Perl module Exporter not installed" >&5
  2290. echo "$as_me: error: Perl module Exporter not installed" >&2;}
  2291. { (exit 1); exit 1; }; }
  2292. fi
  2293.  
  2294.  
  2295. echo "$as_me:$LINENO: checking for Perl module: File::Basename" >&5
  2296. echo $ECHO_N "checking for Perl module: File::Basename... $ECHO_C" >&6
  2297. RESULT=`$PERL_PATH -m"File::Basename" -e 'print "1\n";'`
  2298.  
  2299. if test "x$RESULT" = "x1" ; then
  2300. echo "$as_me:$LINENO: result: yes" >&5
  2301. echo "${ECHO_T}yes" >&6
  2302. else
  2303. echo "$as_me:$LINENO: result: no" >&5
  2304. echo "${ECHO_T}no" >&6
  2305. echo "***************************************************************"
  2306. echo "*** Please consult the eprints documentation on how to"
  2307. echo "*** install this missing module. Configuration will now"
  2308. echo "*** continue, but EPrints may not work until this module"
  2309. echo "*** had been installed."
  2310. echo "***************************************************************"
  2311. { { echo "$as_me:$LINENO: error: Perl module File::Basename not installed" >&5
  2312. echo "$as_me: error: Perl module File::Basename not installed" >&2;}
  2313. { (exit 1); exit 1; }; }
  2314. fi
  2315.  
  2316.  
  2317. echo "$as_me:$LINENO: checking for Perl module: File::Copy" >&5
  2318. echo $ECHO_N "checking for Perl module: File::Copy... $ECHO_C" >&6
  2319. RESULT=`$PERL_PATH -m"File::Copy" -e 'print "1\n";'`
  2320.  
  2321. if test "x$RESULT" = "x1" ; then
  2322. echo "$as_me:$LINENO: result: yes" >&5
  2323. echo "${ECHO_T}yes" >&6
  2324. else
  2325. echo "$as_me:$LINENO: result: no" >&5
  2326. echo "${ECHO_T}no" >&6
  2327. echo "***************************************************************"
  2328. echo "*** Please consult the eprints documentation on how to"
  2329. echo "*** install this missing module. Configuration will now"
  2330. echo "*** continue, but EPrints may not work until this module"
  2331. echo "*** had been installed."
  2332. echo "***************************************************************"
  2333. { { echo "$as_me:$LINENO: error: Perl module File::Copy not installed" >&5
  2334. echo "$as_me: error: Perl module File::Copy not installed" >&2;}
  2335. { (exit 1); exit 1; }; }
  2336. fi
  2337.  
  2338.  
  2339. echo "$as_me:$LINENO: checking for Perl module: File::Find" >&5
  2340. echo $ECHO_N "checking for Perl module: File::Find... $ECHO_C" >&6
  2341. RESULT=`$PERL_PATH -m"File::Find" -e 'print "1\n";'`
  2342.  
  2343. if test "x$RESULT" = "x1" ; then
  2344. echo "$as_me:$LINENO: result: yes" >&5
  2345. echo "${ECHO_T}yes" >&6
  2346. else
  2347. echo "$as_me:$LINENO: result: no" >&5
  2348. echo "${ECHO_T}no" >&6
  2349. echo "***************************************************************"
  2350. echo "*** Please consult the eprints documentation on how to"
  2351. echo "*** install this missing module. Configuration will now"
  2352. echo "*** continue, but EPrints may not work until this module"
  2353. echo "*** had been installed."
  2354. echo "***************************************************************"
  2355. { { echo "$as_me:$LINENO: error: Perl module File::Find not installed" >&5
  2356. echo "$as_me: error: Perl module File::Find not installed" >&2;}
  2357. { (exit 1); exit 1; }; }
  2358. fi
  2359.  
  2360.  
  2361. echo "$as_me:$LINENO: checking for Perl module: File::Path" >&5
  2362. echo $ECHO_N "checking for Perl module: File::Path... $ECHO_C" >&6
  2363. RESULT=`$PERL_PATH -m"File::Path" -e 'print "1\n";'`
  2364.  
  2365. if test "x$RESULT" = "x1" ; then
  2366. echo "$as_me:$LINENO: result: yes" >&5
  2367. echo "${ECHO_T}yes" >&6
  2368. else
  2369. echo "$as_me:$LINENO: result: no" >&5
  2370. echo "${ECHO_T}no" >&6
  2371. echo "***************************************************************"
  2372. echo "*** Please consult the eprints documentation on how to"
  2373. echo "*** install this missing module. Configuration will now"
  2374. echo "*** continue, but EPrints may not work until this module"
  2375. echo "*** had been installed."
  2376. echo "***************************************************************"
  2377. { { echo "$as_me:$LINENO: error: Perl module File::Path not installed" >&5
  2378. echo "$as_me: error: Perl module File::Path not installed" >&2;}
  2379. { (exit 1); exit 1; }; }
  2380. fi
  2381.  
  2382.  
  2383. echo "$as_me:$LINENO: checking for Perl module: Getopt::Long" >&5
  2384. echo $ECHO_N "checking for Perl module: Getopt::Long... $ECHO_C" >&6
  2385. RESULT=`$PERL_PATH -m"Getopt::Long" -e 'print "1\n";'`
  2386.  
  2387. if test "x$RESULT" = "x1" ; then
  2388. echo "$as_me:$LINENO: result: yes" >&5
  2389. echo "${ECHO_T}yes" >&6
  2390. else
  2391. echo "$as_me:$LINENO: result: no" >&5
  2392. echo "${ECHO_T}no" >&6
  2393. echo "***************************************************************"
  2394. echo "*** Please consult the eprints documentation on how to"
  2395. echo "*** install this missing module. Configuration will now"
  2396. echo "*** continue, but EPrints may not work until this module"
  2397. echo "*** had been installed."
  2398. echo "***************************************************************"
  2399. { { echo "$as_me:$LINENO: error: Perl module Getopt::Long not installed" >&5
  2400. echo "$as_me: error: Perl module Getopt::Long not installed" >&2;}
  2401. { (exit 1); exit 1; }; }
  2402. fi
  2403.  
  2404.  
  2405. echo "$as_me:$LINENO: checking for Perl module: MIME::Base64" >&5
  2406. echo $ECHO_N "checking for Perl module: MIME::Base64... $ECHO_C" >&6
  2407. RESULT=`$PERL_PATH -m"MIME::Base64" -e 'print "1\n";'`
  2408.  
  2409. if test "x$RESULT" = "x1" ; then
  2410. echo "$as_me:$LINENO: result: yes" >&5
  2411. echo "${ECHO_T}yes" >&6
  2412. else
  2413. echo "$as_me:$LINENO: result: no" >&5
  2414. echo "${ECHO_T}no" >&6
  2415. echo "***************************************************************"
  2416. echo "*** Please consult the eprints documentation on how to"
  2417. echo "*** install this missing module. Configuration will now"
  2418. echo "*** continue, but EPrints may not work until this module"
  2419. echo "*** had been installed."
  2420. echo "***************************************************************"
  2421. { { echo "$as_me:$LINENO: error: Perl module MIME::Base64 not installed" >&5
  2422. echo "$as_me: error: Perl module MIME::Base64 not installed" >&2;}
  2423. { (exit 1); exit 1; }; }
  2424. fi
  2425.  
  2426.  
  2427. echo "$as_me:$LINENO: checking for Perl module: DBD::mysql" >&5
  2428. echo $ECHO_N "checking for Perl module: DBD::mysql... $ECHO_C" >&6
  2429. RESULT=`$PERL_PATH -m"DBD::mysql" -e 'print "1\n";'`
  2430.  
  2431. if test "x$RESULT" = "x1" ; then
  2432. echo "$as_me:$LINENO: result: yes" >&5
  2433. echo "${ECHO_T}yes" >&6
  2434. else
  2435. echo "$as_me:$LINENO: result: no" >&5
  2436. echo "${ECHO_T}no" >&6
  2437. echo "***************************************************************"
  2438. echo "*** Please consult the eprints documentation on how to"
  2439. echo "*** install this missing module. Configuration will now"
  2440. echo "*** continue, but EPrints may not work until this module"
  2441. echo "*** had been installed."
  2442. echo "***************************************************************"
  2443. { { echo "$as_me:$LINENO: error: Perl module DBD::mysql not installed" >&5
  2444. echo "$as_me: error: Perl module DBD::mysql not installed" >&2;}
  2445. { (exit 1); exit 1; }; }
  2446. fi
  2447.  
  2448.  
  2449. echo "$as_me:$LINENO: checking for Perl module: Pod::Usage" >&5
  2450. echo $ECHO_N "checking for Perl module: Pod::Usage... $ECHO_C" >&6
  2451. RESULT=`$PERL_PATH -m"Pod::Usage" -e 'print "1\n";'`
  2452.  
  2453. if test "x$RESULT" = "x1" ; then
  2454. echo "$as_me:$LINENO: result: yes" >&5
  2455. echo "${ECHO_T}yes" >&6
  2456. else
  2457. echo "$as_me:$LINENO: result: no" >&5
  2458. echo "${ECHO_T}no" >&6
  2459. echo "***************************************************************"
  2460. echo "*** Please consult the eprints documentation on how to"
  2461. echo "*** install this missing module. Configuration will now"
  2462. echo "*** continue, but EPrints may not work until this module"
  2463. echo "*** had been installed."
  2464. echo "***************************************************************"
  2465. { { echo "$as_me:$LINENO: error: Perl module Pod::Usage not installed" >&5
  2466. echo "$as_me: error: Perl module Pod::Usage not installed" >&2;}
  2467. { (exit 1); exit 1; }; }
  2468. fi
  2469.  
  2470. #CHECK_PERL_MOD(Proc::Reliable)
  2471.  
  2472. echo "$as_me:$LINENO: checking for Perl module: Sys::Hostname" >&5
  2473. echo $ECHO_N "checking for Perl module: Sys::Hostname... $ECHO_C" >&6
  2474. RESULT=`$PERL_PATH -m"Sys::Hostname" -e 'print "1\n";'`
  2475.  
  2476. if test "x$RESULT" = "x1" ; then
  2477. echo "$as_me:$LINENO: result: yes" >&5
  2478. echo "${ECHO_T}yes" >&6
  2479. else
  2480. echo "$as_me:$LINENO: result: no" >&5
  2481. echo "${ECHO_T}no" >&6
  2482. echo "***************************************************************"
  2483. echo "*** Please consult the eprints documentation on how to"
  2484. echo "*** install this missing module. Configuration will now"
  2485. echo "*** continue, but EPrints may not work until this module"
  2486. echo "*** had been installed."
  2487. echo "***************************************************************"
  2488. { { echo "$as_me:$LINENO: error: Perl module Sys::Hostname not installed" >&5
  2489. echo "$as_me: error: Perl module Sys::Hostname not installed" >&2;}
  2490. { (exit 1); exit 1; }; }
  2491. fi
  2492.  
  2493.  
  2494. echo "$as_me:$LINENO: checking for Perl module: Unicode::String" >&5
  2495. echo $ECHO_N "checking for Perl module: Unicode::String... $ECHO_C" >&6
  2496. RESULT=`$PERL_PATH -m"Unicode::String" -e 'print "1\n";'`
  2497.  
  2498. if test "x$RESULT" = "x1" ; then
  2499. echo "$as_me:$LINENO: result: yes" >&5
  2500. echo "${ECHO_T}yes" >&6
  2501. else
  2502. echo "$as_me:$LINENO: result: no" >&5
  2503. echo "${ECHO_T}no" >&6
  2504. echo "***************************************************************"
  2505. echo "*** Please consult the eprints documentation on how to"
  2506. echo "*** install this missing module. Configuration will now"
  2507. echo "*** continue, but EPrints may not work until this module"
  2508. echo "*** had been installed."
  2509. echo "***************************************************************"
  2510. { { echo "$as_me:$LINENO: error: Perl module Unicode::String not installed" >&5
  2511. echo "$as_me: error: Perl module Unicode::String not installed" >&2;}
  2512. { (exit 1); exit 1; }; }
  2513. fi
  2514.  
  2515.  
  2516. echo "$as_me:$LINENO: checking for Perl module: XML::Parser" >&5
  2517. echo $ECHO_N "checking for Perl module: XML::Parser... $ECHO_C" >&6
  2518. RESULT=`$PERL_PATH -m"XML::Parser" -e 'print "1\n";'`
  2519.  
  2520. if test "x$RESULT" = "x1" ; then
  2521. echo "$as_me:$LINENO: result: yes" >&5
  2522. echo "${ECHO_T}yes" >&6
  2523. else
  2524. echo "$as_me:$LINENO: result: no" >&5
  2525. echo "${ECHO_T}no" >&6
  2526. echo "***************************************************************"
  2527. echo "*** Please consult the eprints documentation on how to"
  2528. echo "*** install this missing module. Configuration will now"
  2529. echo "*** continue, but EPrints may not work until this module"
  2530. echo "*** had been installed."
  2531. echo "***************************************************************"
  2532. { { echo "$as_me:$LINENO: error: Perl module XML::Parser not installed" >&5
  2533. echo "$as_me: error: Perl module XML::Parser not installed" >&2;}
  2534. { (exit 1); exit 1; }; }
  2535. fi
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541. ENABLE_GDOME="0"
  2542. if test $DISABLE_GDOME = "0"; then
  2543.  
  2544. echo "$as_me:$LINENO: checking for Perl module: XML::GDOME" >&5
  2545. echo $ECHO_N "checking for Perl module: XML::GDOME... $ECHO_C" >&6
  2546. RESULT=`$PERL_PATH -m"XML::GDOME" -e 'print "1\n";' 2>/dev/null`
  2547.  
  2548. if test "x$RESULT" = "x1" ; then
  2549. GDOME_AVAILABLE=1
  2550. GDOME_AVAILABLE="1"
  2551.  
  2552. echo "$as_me:$LINENO: result: yes" >&5
  2553. echo "${ECHO_T}yes" >&6
  2554. else
  2555. GDOME_AVAILABLE=0
  2556. GDOME_AVAILABLE="0"
  2557.  
  2558. echo "$as_me:$LINENO: result: no" >&5
  2559. echo "${ECHO_T}no" >&6
  2560. fi
  2561.  
  2562. if test $GDOME_AVAILABLE = "1"; then
  2563. echo "Found XML::GDOME module. Lovely. We'll use that then!"
  2564. ENABLE_GDOME="1"
  2565. else
  2566. echo "Didn't find XML::GDOME module. We'll make do with XML::DOM then."
  2567. ENABLE_GDOME="0"
  2568. fi
  2569. fi
  2570.  
  2571.  
  2572.  
  2573. PREFIX=$prefix
  2574. if test $PREFIX = "NONE" ; then
  2575. PREFIX=/opt/eprints3
  2576. fi
  2577.  
  2578. PLATFORM="unix";
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592. ac_config_files="$ac_config_files install.pl"
  2593. cat >confcache <<\_ACEOF
  2594. # This file is a shell script that caches the results of configure
  2595. # tests run on this system so they can be shared between configure
  2596. # scripts and configure runs, see configure's option --config-cache.
  2597. # It is not useful on other systems. If it contains results you don't
  2598. # want to keep, you may remove or edit it.
  2599. #
  2600. # config.status only pays attention to the cache file if you give it
  2601. # the --recheck option to rerun configure.
  2602. #
  2603. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2604. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2605. # following values.
  2606.  
  2607. _ACEOF
  2608.  
  2609. # The following way of writing the cache mishandles newlines in values,
  2610. # but we know of no workaround that is simple, portable, and efficient.
  2611. # So, don't put newlines in cache variables' values.
  2612. # Ultrix sh set writes to stderr and can't be redirected directly,
  2613. # and sets the high bit in the cache file unless we assign to the vars.
  2614. {
  2615. (set) 2>&1 |
  2616. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2617. *ac_space=\ *)
  2618. # `set' does not quote correctly, so add quotes (double-quote
  2619. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2620. sed -n \
  2621. "s/'/'\\\\''/g;
  2622. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2623. ;;
  2624. *)
  2625. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2626. sed -n \
  2627. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2628. ;;
  2629. esac;
  2630. } |
  2631. sed '
  2632. t clear
  2633. : clear
  2634. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2635. t end
  2636. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2637. : end' >>confcache
  2638. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2639. if test -w $cache_file; then
  2640. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  2641. cat confcache >$cache_file
  2642. else
  2643. echo "not updating unwritable cache $cache_file"
  2644. fi
  2645. fi
  2646. rm -f confcache
  2647.  
  2648. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2649. # Let make expand exec_prefix.
  2650. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2651.  
  2652. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  2653. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  2654. # trailing colons and then remove the whole line if VPATH becomes empty
  2655. # (actually we leave an empty line to preserve line numbers).
  2656. if test "x$srcdir" = x.; then
  2657. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  2658. s/:*\$(srcdir):*/:/;
  2659. s/:*\${srcdir}:*/:/;
  2660. s/:*@srcdir@:*/:/;
  2661. s/^\([^=]*=[ ]*\):*/\1/;
  2662. s/:*$//;
  2663. s/^[^=]*=[ ]*$//;
  2664. }'
  2665. fi
  2666.  
  2667. # Transform confdefs.h into DEFS.
  2668. # Protect against shell expansion while executing Makefile rules.
  2669. # Protect against Makefile macro expansion.
  2670. #
  2671. # If the first sed substitution is executed (which looks for macros that
  2672. # take arguments), then we branch to the quote section. Otherwise,
  2673. # look for a macro that doesn't take arguments.
  2674. cat >confdef2opt.sed <<\_ACEOF
  2675. t clear
  2676. : clear
  2677. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  2678. t quote
  2679. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  2680. t quote
  2681. d
  2682. : quote
  2683. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  2684. s,\[,\\&,g
  2685. s,\],\\&,g
  2686. s,\$,$$,g
  2687. p
  2688. _ACEOF
  2689. # We use echo to avoid assuming a particular line-breaking character.
  2690. # The extra dot is to prevent the shell from consuming trailing
  2691. # line-breaks from the sub-command output. A line-break within
  2692. # single-quotes doesn't work because, if this script is created in a
  2693. # platform that uses two characters for line-breaks (e.g., DOS), tr
  2694. # would break.
  2695. ac_LF_and_DOT=`echo; echo .`
  2696. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  2697. rm -f confdef2opt.sed
  2698.  
  2699.  
  2700. ac_libobjs=
  2701. ac_ltlibobjs=
  2702. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  2703. # 1. Remove the extension, and $U if already installed.
  2704. ac_i=`echo "$ac_i" |
  2705. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  2706. # 2. Add them.
  2707. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  2708. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  2709. done
  2710. LIBOBJS=$ac_libobjs
  2711.  
  2712. LTLIBOBJS=$ac_ltlibobjs
  2713.  
  2714.  
  2715.  
  2716. : ${CONFIG_STATUS=./config.status}
  2717. ac_clean_files_save=$ac_clean_files
  2718. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2719. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  2720. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2721. cat >$CONFIG_STATUS <<_ACEOF
  2722. #! $SHELL
  2723. # Generated by $as_me.
  2724. # Run this file to recreate the current configuration.
  2725. # Compiler output produced by configure, useful for debugging
  2726. # configure, is in config.log if it exists.
  2727.  
  2728. debug=false
  2729. ac_cs_recheck=false
  2730. ac_cs_silent=false
  2731. SHELL=\${CONFIG_SHELL-$SHELL}
  2732. _ACEOF
  2733.  
  2734. cat >>$CONFIG_STATUS <<\_ACEOF
  2735. ## --------------------- ##
  2736. ## M4sh Initialization. ##
  2737. ## --------------------- ##
  2738.  
  2739. # Be Bourne compatible
  2740. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  2741. emulate sh
  2742. NULLCMD=:
  2743. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  2744. # is contrary to our usage. Disable this feature.
  2745. alias -g '${1+"$@"}'='"$@"'
  2746. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  2747. set -o posix
  2748. fi
  2749. DUALCASE=1; export DUALCASE # for MKS sh
  2750.  
  2751. # Support unset when possible.
  2752. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  2753. as_unset=unset
  2754. else
  2755. as_unset=false
  2756. fi
  2757.  
  2758.  
  2759. # Work around bugs in pre-3.0 UWIN ksh.
  2760. $as_unset ENV MAIL MAILPATH
  2761. PS1='$ '
  2762. PS2='> '
  2763. PS4='+ '
  2764.  
  2765. # NLS nuisances.
  2766. for as_var in \
  2767. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  2768. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  2769. LC_TELEPHONE LC_TIME
  2770. do
  2771. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  2772. eval $as_var=C; export $as_var
  2773. else
  2774. $as_unset $as_var
  2775. fi
  2776. done
  2777.  
  2778. # Required to use basename.
  2779. if expr a : '\(a\)' >/dev/null 2>&1; then
  2780. as_expr=expr
  2781. else
  2782. as_expr=false
  2783. fi
  2784.  
  2785. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  2786. as_basename=basename
  2787. else
  2788. as_basename=false
  2789. fi
  2790.  
  2791.  
  2792. # Name of the executable.
  2793. as_me=`$as_basename "$0" ||
  2794. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  2795. X"$0" : 'X\(//\)$' \| \
  2796. X"$0" : 'X\(/\)$' \| \
  2797. . : '\(.\)' 2>/dev/null ||
  2798. echo X/"$0" |
  2799. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  2800. /^X\/\(\/\/\)$/{ s//\1/; q; }
  2801. /^X\/\(\/\).*/{ s//\1/; q; }
  2802. s/.*/./; q'`
  2803.  
  2804.  
  2805. # PATH needs CR, and LINENO needs CR and PATH.
  2806. # Avoid depending upon Character Ranges.
  2807. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  2808. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  2809. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  2810. as_cr_digits='0123456789'
  2811. as_cr_alnum=$as_cr_Letters$as_cr_digits
  2812.  
  2813. # The user is always right.
  2814. if test "${PATH_SEPARATOR+set}" != set; then
  2815. echo "#! /bin/sh" >conf$$.sh
  2816. echo "exit 0" >>conf$$.sh
  2817. chmod +x conf$$.sh
  2818. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  2819. PATH_SEPARATOR=';'
  2820. else
  2821. PATH_SEPARATOR=:
  2822. fi
  2823. rm -f conf$$.sh
  2824. fi
  2825.  
  2826.  
  2827. as_lineno_1=$LINENO
  2828. as_lineno_2=$LINENO
  2829. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  2830. test "x$as_lineno_1" != "x$as_lineno_2" &&
  2831. test "x$as_lineno_3" = "x$as_lineno_2" || {
  2832. # Find who we are. Look in the path if we contain no path at all
  2833. # relative or not.
  2834. case $0 in
  2835. *[\\/]* ) as_myself=$0 ;;
  2836. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2837. for as_dir in $PATH
  2838. do
  2839. IFS=$as_save_IFS
  2840. test -z "$as_dir" && as_dir=.
  2841. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  2842. done
  2843.  
  2844. ;;
  2845. esac
  2846. # We did not find ourselves, most probably we were run as `sh COMMAND'
  2847. # in which case we are not to be found in the path.
  2848. if test "x$as_myself" = x; then
  2849. as_myself=$0
  2850. fi
  2851. if test ! -f "$as_myself"; then
  2852. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  2853. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  2854. { (exit 1); exit 1; }; }
  2855. fi
  2856. case $CONFIG_SHELL in
  2857. '')
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for as_base in sh bash ksh sh5; do
  2864. case $as_dir in
  2865. /*)
  2866. if ("$as_dir/$as_base" -c '
  2867. as_lineno_1=$LINENO
  2868. as_lineno_2=$LINENO
  2869. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  2870. test "x$as_lineno_1" != "x$as_lineno_2" &&
  2871. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  2872. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  2873. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  2874. CONFIG_SHELL=$as_dir/$as_base
  2875. export CONFIG_SHELL
  2876. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  2877. fi;;
  2878. esac
  2879. done
  2880. done
  2881. ;;
  2882. esac
  2883.  
  2884. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  2885. # uniformly replaced by the line number. The first 'sed' inserts a
  2886. # line-number line before each line; the second 'sed' does the real
  2887. # work. The second script uses 'N' to pair each line-number line
  2888. # with the numbered line, and appends trailing '-' during
  2889. # substitution so that $LINENO is not a special case at line end.
  2890. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  2891. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  2892. sed '=' <$as_myself |
  2893. sed '
  2894. N
  2895. s,$,-,
  2896. : loop
  2897. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  2898. t loop
  2899. s,-$,,
  2900. s,^['$as_cr_digits']*\n,,
  2901. ' >$as_me.lineno &&
  2902. chmod +x $as_me.lineno ||
  2903. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  2904. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  2905. { (exit 1); exit 1; }; }
  2906.  
  2907. # Don't try to exec as it changes $[0], causing all sort of problems
  2908. # (the dirname of $[0] is not the place where we might find the
  2909. # original and so on. Autoconf is especially sensible to this).
  2910. . ./$as_me.lineno
  2911. # Exit status is that of the last command.
  2912. exit
  2913. }
  2914.  
  2915.  
  2916. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  2917. *c*,-n*) ECHO_N= ECHO_C='
  2918. ' ECHO_T=' ' ;;
  2919. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  2920. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  2921. esac
  2922.  
  2923. if expr a : '\(a\)' >/dev/null 2>&1; then
  2924. as_expr=expr
  2925. else
  2926. as_expr=false
  2927. fi
  2928.  
  2929. rm -f conf$$ conf$$.exe conf$$.file
  2930. echo >conf$$.file
  2931. if ln -s conf$$.file conf$$ 2>/dev/null; then
  2932. # We could just check for DJGPP; but this test a) works b) is more generic
  2933. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  2934. if test -f conf$$.exe; then
  2935. # Don't use ln at all; we don't have any links
  2936. as_ln_s='cp -p'
  2937. else
  2938. as_ln_s='ln -s'
  2939. fi
  2940. elif ln conf$$.file conf$$ 2>/dev/null; then
  2941. as_ln_s=ln
  2942. else
  2943. as_ln_s='cp -p'
  2944. fi
  2945. rm -f conf$$ conf$$.exe conf$$.file
  2946.  
  2947. if mkdir -p . 2>/dev/null; then
  2948. as_mkdir_p=:
  2949. else
  2950. test -d ./-p && rmdir ./-p
  2951. as_mkdir_p=false
  2952. fi
  2953.  
  2954. as_executable_p="test -f"
  2955.  
  2956. # Sed expression to map a string onto a valid CPP name.
  2957. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2958.  
  2959. # Sed expression to map a string onto a valid variable name.
  2960. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  2961.  
  2962.  
  2963. # IFS
  2964. # We need space, tab and new line, in precisely that order.
  2965. as_nl='
  2966. '
  2967. IFS=" $as_nl"
  2968.  
  2969. # CDPATH.
  2970. $as_unset CDPATH
  2971.  
  2972. exec 6>&1
  2973.  
  2974. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  2975. # report actual input values of CONFIG_FILES etc. instead of their
  2976. # values after options handling. Logging --version etc. is OK.
  2977. exec 5>>config.log
  2978. {
  2979. echo
  2980. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  2981. ## Running $as_me. ##
  2982. _ASBOX
  2983. } >&5
  2984. cat >&5 <<_CSEOF
  2985.  
  2986. This file was extended by $as_me, which was
  2987. generated by GNU Autoconf 2.59. Invocation command line was
  2988.  
  2989. CONFIG_FILES = $CONFIG_FILES
  2990. CONFIG_HEADERS = $CONFIG_HEADERS
  2991. CONFIG_LINKS = $CONFIG_LINKS
  2992. CONFIG_COMMANDS = $CONFIG_COMMANDS
  2993. $ $0 $@
  2994.  
  2995. _CSEOF
  2996. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  2997. echo >&5
  2998. _ACEOF
  2999.  
  3000. # Files that config.status was made for.
  3001. if test -n "$ac_config_files"; then
  3002. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  3003. fi
  3004.  
  3005. if test -n "$ac_config_headers"; then
  3006. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  3007. fi
  3008.  
  3009. if test -n "$ac_config_links"; then
  3010. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  3011. fi
  3012.  
  3013. if test -n "$ac_config_commands"; then
  3014. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  3015. fi
  3016.  
  3017. cat >>$CONFIG_STATUS <<\_ACEOF
  3018.  
  3019. ac_cs_usage="\
  3020. \`$as_me' instantiates files from templates according to the
  3021. current configuration.
  3022.  
  3023. Usage: $0 [OPTIONS] [FILE]...
  3024.  
  3025. -h, --help print this help, then exit
  3026. -V, --version print version number, then exit
  3027. -q, --quiet do not print progress messages
  3028. -d, --debug don't remove temporary files
  3029. --recheck update $as_me by reconfiguring in the same conditions
  3030. --file=FILE[:TEMPLATE]
  3031. instantiate the configuration file FILE
  3032.  
  3033. Configuration files:
  3034. $config_files
  3035.  
  3036. Report bugs to <bug-autoconf@gnu.org>."
  3037. _ACEOF
  3038.  
  3039. cat >>$CONFIG_STATUS <<_ACEOF
  3040. ac_cs_version="\\
  3041. config.status
  3042. configured by $0, generated by GNU Autoconf 2.59,
  3043. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  3044.  
  3045. Copyright (C) 2003 Free Software Foundation, Inc.
  3046. This config.status script is free software; the Free Software Foundation
  3047. gives unlimited permission to copy, distribute and modify it."
  3048. srcdir=$srcdir
  3049. _ACEOF
  3050.  
  3051. cat >>$CONFIG_STATUS <<\_ACEOF
  3052. # If no file are specified by the user, then we need to provide default
  3053. # value. By we need to know if files were specified by the user.
  3054. ac_need_defaults=:
  3055. while test $# != 0
  3056. do
  3057. case $1 in
  3058. --*=*)
  3059. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  3060. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  3061. ac_shift=:
  3062. ;;
  3063. -*)
  3064. ac_option=$1
  3065. ac_optarg=$2
  3066. ac_shift=shift
  3067. ;;
  3068. *) # This is not an option, so the user has probably given explicit
  3069. # arguments.
  3070. ac_option=$1
  3071. ac_need_defaults=false;;
  3072. esac
  3073.  
  3074. case $ac_option in
  3075. # Handling of the options.
  3076. _ACEOF
  3077. cat >>$CONFIG_STATUS <<\_ACEOF
  3078. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3079. ac_cs_recheck=: ;;
  3080. --version | --vers* | -V )
  3081. echo "$ac_cs_version"; exit 0 ;;
  3082. --he | --h)
  3083. # Conflict between --help and --header
  3084. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  3085. Try \`$0 --help' for more information." >&5
  3086. echo "$as_me: error: ambiguous option: $1
  3087. Try \`$0 --help' for more information." >&2;}
  3088. { (exit 1); exit 1; }; };;
  3089. --help | --hel | -h )
  3090. echo "$ac_cs_usage"; exit 0 ;;
  3091. --debug | --d* | -d )
  3092. debug=: ;;
  3093. --file | --fil | --fi | --f )
  3094. $ac_shift
  3095. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  3096. ac_need_defaults=false;;
  3097. --header | --heade | --head | --hea )
  3098. $ac_shift
  3099. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  3100. ac_need_defaults=false;;
  3101. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3102. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3103. ac_cs_silent=: ;;
  3104.  
  3105. # This is an error.
  3106. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  3107. Try \`$0 --help' for more information." >&5
  3108. echo "$as_me: error: unrecognized option: $1
  3109. Try \`$0 --help' for more information." >&2;}
  3110. { (exit 1); exit 1; }; } ;;
  3111.  
  3112. *) ac_config_targets="$ac_config_targets $1" ;;
  3113.  
  3114. esac
  3115. shift
  3116. done
  3117.  
  3118. ac_configure_extra_args=
  3119.  
  3120. if $ac_cs_silent; then
  3121. exec 6>/dev/null
  3122. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3123. fi
  3124.  
  3125. _ACEOF
  3126. cat >>$CONFIG_STATUS <<_ACEOF
  3127. if \$ac_cs_recheck; then
  3128. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  3129. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3130. fi
  3131.  
  3132. _ACEOF
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138. cat >>$CONFIG_STATUS <<\_ACEOF
  3139. for ac_config_target in $ac_config_targets
  3140. do
  3141. case "$ac_config_target" in
  3142. # Handling of arguments.
  3143. "install.pl" ) CONFIG_FILES="$CONFIG_FILES install.pl" ;;
  3144. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3145. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3146. { (exit 1); exit 1; }; };;
  3147. esac
  3148. done
  3149.  
  3150. # If the user did not use the arguments to specify the items to instantiate,
  3151. # then the envvar interface is used. Set only those that are not.
  3152. # We use the long form for the default assignment because of an extremely
  3153. # bizarre bug on SunOS 4.1.3.
  3154. if $ac_need_defaults; then
  3155. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3156. fi
  3157.  
  3158. # Have a temporary directory for convenience. Make it in the build tree
  3159. # simply because there is no reason to put it here, and in addition,
  3160. # creating and moving files from /tmp can sometimes cause problems.
  3161. # Create a temporary directory, and hook for its removal unless debugging.
  3162. $debug ||
  3163. {
  3164. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  3165. trap '{ (exit 1); exit 1; }' 1 2 13 15
  3166. }
  3167.  
  3168. # Create a (secure) tmp directory for tmp files.
  3169.  
  3170. {
  3171. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  3172. test -n "$tmp" && test -d "$tmp"
  3173. } ||
  3174. {
  3175. tmp=./confstat$$-$RANDOM
  3176. (umask 077 && mkdir $tmp)
  3177. } ||
  3178. {
  3179. echo "$me: cannot create a temporary directory in ." >&2
  3180. { (exit 1); exit 1; }
  3181. }
  3182.  
  3183. _ACEOF
  3184.  
  3185. cat >>$CONFIG_STATUS <<_ACEOF
  3186.  
  3187. #
  3188. # CONFIG_FILES section.
  3189. #
  3190.  
  3191. # No need to generate the scripts if there are no CONFIG_FILES.
  3192. # This happens for instance when ./config.status config.h
  3193. if test -n "\$CONFIG_FILES"; then
  3194. # Protect against being on the right side of a sed subst in config.status.
  3195. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  3196. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  3197. s,@SHELL@,$SHELL,;t t
  3198. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  3199. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  3200. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  3201. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  3202. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  3203. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  3204. s,@exec_prefix@,$exec_prefix,;t t
  3205. s,@prefix@,$prefix,;t t
  3206. s,@program_transform_name@,$program_transform_name,;t t
  3207. s,@bindir@,$bindir,;t t
  3208. s,@sbindir@,$sbindir,;t t
  3209. s,@libexecdir@,$libexecdir,;t t
  3210. s,@datadir@,$datadir,;t t
  3211. s,@sysconfdir@,$sysconfdir,;t t
  3212. s,@sharedstatedir@,$sharedstatedir,;t t
  3213. s,@localstatedir@,$localstatedir,;t t
  3214. s,@libdir@,$libdir,;t t
  3215. s,@includedir@,$includedir,;t t
  3216. s,@oldincludedir@,$oldincludedir,;t t
  3217. s,@infodir@,$infodir,;t t
  3218. s,@mandir@,$mandir,;t t
  3219. s,@build_alias@,$build_alias,;t t
  3220. s,@host_alias@,$host_alias,;t t
  3221. s,@target_alias@,$target_alias,;t t
  3222. s,@DEFS@,$DEFS,;t t
  3223. s,@ECHO_C@,$ECHO_C,;t t
  3224. s,@ECHO_N@,$ECHO_N,;t t
  3225. s,@ECHO_T@,$ECHO_T,;t t
  3226. s,@LIBS@,$LIBS,;t t
  3227. s,@PERL_PATH@,$PERL_PATH,;t t
  3228. s,@H2PH_PATH@,$H2PH_PATH,;t t
  3229. s,@UNZIP_PATH@,$UNZIP_PATH,;t t
  3230. s,@TAR_PATH@,$TAR_PATH,;t t
  3231. s,@GUNZIP_PATH@,$GUNZIP_PATH,;t t
  3232. s,@WGET_PATH@,$WGET_PATH,;t t
  3233. s,@SENDMAIL_PATH@,$SENDMAIL_PATH,;t t
  3234. s,@LATEX_PATH@,$LATEX_PATH,;t t
  3235. s,@DVIPS_PATH@,$DVIPS_PATH,;t t
  3236. s,@CONVERT_PATH@,$CONVERT_PATH,;t t
  3237. s,@HAS_MOD_PERL_1@,$HAS_MOD_PERL_1,;t t
  3238. s,@HAS_MOD_PERL_2A@,$HAS_MOD_PERL_2A,;t t
  3239. s,@HAS_MOD_PERL_2B@,$HAS_MOD_PERL_2B,;t t
  3240. s,@GDOME_AVAILABLE@,$GDOME_AVAILABLE,;t t
  3241. s,@DIST_PATH@,$DIST_PATH,;t t
  3242. s,@PREFIX@,$PREFIX,;t t
  3243. s,@DISABLE_DF@,$DISABLE_DF,;t t
  3244. s,@ENABLE_GDOME@,$ENABLE_GDOME,;t t
  3245. s,@APACHE@,$APACHE,;t t
  3246. s,@INSTALL_USER@,$INSTALL_USER,;t t
  3247. s,@INSTALL_GROUP@,$INSTALL_GROUP,;t t
  3248. s,@VIRTUALHOST@,$VIRTUALHOST,;t t
  3249. s,@SMTP_SERVER@,$SMTP_SERVER,;t t
  3250. s,@PLATFORM@,$PLATFORM,;t t
  3251. s,@LIBOBJS@,$LIBOBJS,;t t
  3252. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  3253. CEOF
  3254.  
  3255. _ACEOF
  3256.  
  3257. cat >>$CONFIG_STATUS <<\_ACEOF
  3258. # Split the substitutions into bite-sized pieces for seds with
  3259. # small command number limits, like on Digital OSF/1 and HP-UX.
  3260. ac_max_sed_lines=48
  3261. ac_sed_frag=1 # Number of current file.
  3262. ac_beg=1 # First line for current file.
  3263. ac_end=$ac_max_sed_lines # Line after last line for current file.
  3264. ac_more_lines=:
  3265. ac_sed_cmds=
  3266. while $ac_more_lines; do
  3267. if test $ac_beg -gt 1; then
  3268. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3269. else
  3270. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3271. fi
  3272. if test ! -s $tmp/subs.frag; then
  3273. ac_more_lines=false
  3274. else
  3275. # The purpose of the label and of the branching condition is to
  3276. # speed up the sed processing (if there are no `@' at all, there
  3277. # is no need to browse any of the substitutions).
  3278. # These are the two extra sed commands mentioned above.
  3279. (echo ':t
  3280. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  3281. if test -z "$ac_sed_cmds"; then
  3282. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  3283. else
  3284. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  3285. fi
  3286. ac_sed_frag=`expr $ac_sed_frag + 1`
  3287. ac_beg=$ac_end
  3288. ac_end=`expr $ac_end + $ac_max_sed_lines`
  3289. fi
  3290. done
  3291. if test -z "$ac_sed_cmds"; then
  3292. ac_sed_cmds=cat
  3293. fi
  3294. fi # test -n "$CONFIG_FILES"
  3295.  
  3296. _ACEOF
  3297. cat >>$CONFIG_STATUS <<\_ACEOF
  3298. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  3299. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3300. case $ac_file in
  3301. - | *:- | *:-:* ) # input from stdin
  3302. cat >$tmp/stdin
  3303. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3304. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3305. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3306. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3307. * ) ac_file_in=$ac_file.in ;;
  3308. esac
  3309.  
  3310. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  3311. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  3312. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3313. X"$ac_file" : 'X\(//\)[^/]' \| \
  3314. X"$ac_file" : 'X\(//\)$' \| \
  3315. X"$ac_file" : 'X\(/\)' \| \
  3316. . : '\(.\)' 2>/dev/null ||
  3317. echo X"$ac_file" |
  3318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3319. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3320. /^X\(\/\/\)$/{ s//\1/; q; }
  3321. /^X\(\/\).*/{ s//\1/; q; }
  3322. s/.*/./; q'`
  3323. { if $as_mkdir_p; then
  3324. mkdir -p "$ac_dir"
  3325. else
  3326. as_dir="$ac_dir"
  3327. as_dirs=
  3328. while test ! -d "$as_dir"; do
  3329. as_dirs="$as_dir $as_dirs"
  3330. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  3331. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3332. X"$as_dir" : 'X\(//\)[^/]' \| \
  3333. X"$as_dir" : 'X\(//\)$' \| \
  3334. X"$as_dir" : 'X\(/\)' \| \
  3335. . : '\(.\)' 2>/dev/null ||
  3336. echo X"$as_dir" |
  3337. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3338. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3339. /^X\(\/\/\)$/{ s//\1/; q; }
  3340. /^X\(\/\).*/{ s//\1/; q; }
  3341. s/.*/./; q'`
  3342. done
  3343. test ! -n "$as_dirs" || mkdir $as_dirs
  3344. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  3345. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  3346. { (exit 1); exit 1; }; }; }
  3347.  
  3348. ac_builddir=.
  3349.  
  3350. if test "$ac_dir" != .; then
  3351. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  3352. # A "../" for each directory in $ac_dir_suffix.
  3353. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  3354. else
  3355. ac_dir_suffix= ac_top_builddir=
  3356. fi
  3357.  
  3358. case $srcdir in
  3359. .) # No --srcdir option. We are building in place.
  3360. ac_srcdir=.
  3361. if test -z "$ac_top_builddir"; then
  3362. ac_top_srcdir=.
  3363. else
  3364. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  3365. fi ;;
  3366. [\\/]* | ?:[\\/]* ) # Absolute path.
  3367. ac_srcdir=$srcdir$ac_dir_suffix;
  3368. ac_top_srcdir=$srcdir ;;
  3369. *) # Relative path.
  3370. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  3371. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  3372. esac
  3373.  
  3374. # Do not use `cd foo && pwd` to compute absolute paths, because
  3375. # the directories may not exist.
  3376. case `pwd` in
  3377. .) ac_abs_builddir="$ac_dir";;
  3378. *)
  3379. case "$ac_dir" in
  3380. .) ac_abs_builddir=`pwd`;;
  3381. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  3382. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  3383. esac;;
  3384. esac
  3385. case $ac_abs_builddir in
  3386. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  3387. *)
  3388. case ${ac_top_builddir}. in
  3389. .) ac_abs_top_builddir=$ac_abs_builddir;;
  3390. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  3391. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  3392. esac;;
  3393. esac
  3394. case $ac_abs_builddir in
  3395. .) ac_abs_srcdir=$ac_srcdir;;
  3396. *)
  3397. case $ac_srcdir in
  3398. .) ac_abs_srcdir=$ac_abs_builddir;;
  3399. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  3400. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  3401. esac;;
  3402. esac
  3403. case $ac_abs_builddir in
  3404. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  3405. *)
  3406. case $ac_top_srcdir in
  3407. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  3408. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  3409. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  3410. esac;;
  3411. esac
  3412.  
  3413.  
  3414.  
  3415. if test x"$ac_file" != x-; then
  3416. { echo "$as_me:$LINENO: creating $ac_file" >&5
  3417. echo "$as_me: creating $ac_file" >&6;}
  3418. rm -f "$ac_file"
  3419. fi
  3420. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3421. # use $as_me), people would be surprised to read:
  3422. # /* config.h. Generated by config.status. */
  3423. if test x"$ac_file" = x-; then
  3424. configure_input=
  3425. else
  3426. configure_input="$ac_file. "
  3427. fi
  3428. configure_input=$configure_input"Generated from `echo $ac_file_in |
  3429. sed 's,.*/,,'` by configure."
  3430.  
  3431. # First look for the input files in the build tree, otherwise in the
  3432. # src tree.
  3433. ac_file_inputs=`IFS=:
  3434. for f in $ac_file_in; do
  3435. case $f in
  3436. -) echo $tmp/stdin ;;
  3437. [\\/$]*)
  3438. # Absolute (can't be DOS-style, as IFS=:)
  3439. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3440. echo "$as_me: error: cannot find input file: $f" >&2;}
  3441. { (exit 1); exit 1; }; }
  3442. echo "$f";;
  3443. *) # Relative
  3444. if test -f "$f"; then
  3445. # Build tree
  3446. echo "$f"
  3447. elif test -f "$srcdir/$f"; then
  3448. # Source tree
  3449. echo "$srcdir/$f"
  3450. else
  3451. # /dev/null tree
  3452. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3453. echo "$as_me: error: cannot find input file: $f" >&2;}
  3454. { (exit 1); exit 1; }; }
  3455. fi;;
  3456. esac
  3457. done` || { (exit 1); exit 1; }
  3458. _ACEOF
  3459. cat >>$CONFIG_STATUS <<_ACEOF
  3460. sed "$ac_vpsub
  3461. $extrasub
  3462. _ACEOF
  3463. cat >>$CONFIG_STATUS <<\_ACEOF
  3464. :t
  3465. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3466. s,@configure_input@,$configure_input,;t t
  3467. s,@srcdir@,$ac_srcdir,;t t
  3468. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  3469. s,@top_srcdir@,$ac_top_srcdir,;t t
  3470. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  3471. s,@builddir@,$ac_builddir,;t t
  3472. s,@abs_builddir@,$ac_abs_builddir,;t t
  3473. s,@top_builddir@,$ac_top_builddir,;t t
  3474. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  3475. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  3476. rm -f $tmp/stdin
  3477. if test x"$ac_file" != x-; then
  3478. mv $tmp/out $ac_file
  3479. else
  3480. cat $tmp/out
  3481. rm -f $tmp/out
  3482. fi
  3483.  
  3484. done
  3485. _ACEOF
  3486.  
  3487. cat >>$CONFIG_STATUS <<\_ACEOF
  3488.  
  3489. { (exit 0); exit 0; }
  3490. _ACEOF
  3491. chmod +x $CONFIG_STATUS
  3492. ac_clean_files=$ac_clean_files_save
  3493.  
  3494.  
  3495. # configure is writing to config.log, and then calls config.status.
  3496. # config.status does its own redirection, appending to config.log.
  3497. # Unfortunately, on DOS this fails, as config.log is still kept open
  3498. # by configure, so config.status won't be able to write to it; its
  3499. # output is simply discarded. So we exec the FD to /dev/null,
  3500. # effectively closing config.log, so it can be properly (re)opened and
  3501. # appended to by config.status. When coming back to configure, we
  3502. # need to make the FD available again.
  3503. if test "$no_create" != yes; then
  3504. ac_cs_success=:
  3505. ac_config_status_args=
  3506. test "$silent" = yes &&
  3507. ac_config_status_args="$ac_config_status_args --quiet"
  3508. exec 5>/dev/null
  3509. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  3510. exec 5>>config.log
  3511. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3512. # would make configure fail if this is the last instruction.
  3513. $ac_cs_success || { (exit 1); exit 1; }
  3514. fi
  3515.  
  3516.  
  3517. chmod +x install.pl
  3518. echo "Now run ./install.pl to install/upgrade to $PREFIX"