1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="xpdf/Gfx.cc"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624EXTRA_CFLAGS
625EXTRA_LIBS
626XPDF_TARGET
627X
628libpaper_CFLAGS
629libpaper_LIBS
630libpng_CFLAGS
631libpng_LIBS
632freetype2_CFLAGS
633freetype2_LIBS
634Sgm_CFLAGS
635Sgm_LIBS
636Xm_CFLAGS
637Xm_LIBS
638Xt_CFLAGS
639Xt_LIBS
640Xp_CFLAGS
641Xp_LIBS
642Xext_CFLAGS
643Xext_LIBS
644Xpm_CFLAGS
645Xpm_LIBS
646EGREP
647GREP
648X_EXTRA_LIBS
649X_LIBS
650X_PRE_LIBS
651X_CFLAGS
652CPP
653XMKMF
654UP_DIR
655AR
656LIBPREFIX
657EXE
658RANLIB
659INSTALL_DATA
660INSTALL_SCRIPT
661INSTALL_PROGRAM
662ac_ct_CXX
663CXXFLAGS
664CXX
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672target_alias
673host_alias
674build_alias
675LIBS
676ECHO_T
677ECHO_N
678ECHO_C
679DEFS
680mandir
681localedir
682libdir
683psdir
684pdfdir
685dvidir
686htmldir
687infodir
688docdir
689oldincludedir
690includedir
691localstatedir
692sharedstatedir
693sysconfdir
694datadir
695datarootdir
696libexecdir
697sbindir
698bindir
699program_transform_name
700prefix
701exec_prefix
702PACKAGE_URL
703PACKAGE_BUGREPORT
704PACKAGE_STRING
705PACKAGE_VERSION
706PACKAGE_TARNAME
707PACKAGE_NAME
708PATH_SEPARATOR
709SHELL'
710ac_subst_files=''
711ac_user_opts='
712enable_option_checking
713enable_a4_paper
714enable_no_text_select
715enable_opi
716enable_multithreaded
717enable_exceptions
718enable_fixedpoint
719enable_cmyk
720with_appdef_dir
721with_x
722enable_largefile
723with_Xpm_library
724with_Xpm_includes
725with_Xext_library
726with_Xext_includes
727with_Xp_library
728with_Xp_includes
729with_Xt_library
730with_Xt_includes
731with_Xm_library
732with_Xm_includes
733with_Sgm_library
734with_Sgm_includes
735with_freetype2_library
736with_freetype2_includes
737with_libpng_library
738with_libpng_includes
739with_libpaper_library
740with_libpaper_includes
741'
742      ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748LIBS
749CPPFLAGS
750CXX
751CXXFLAGS
752CCC
753XMKMF
754CPP'
755
756
757# Initialize some variables set by options.
758ac_init_help=
759ac_init_version=false
760ac_unrecognized_opts=
761ac_unrecognized_sep=
762# The variables have the same names as the options, with
763# dashes changed to underlines.
764cache_file=/dev/null
765exec_prefix=NONE
766no_create=
767no_recursion=
768prefix=NONE
769program_prefix=NONE
770program_suffix=NONE
771program_transform_name=s,x,x,
772silent=
773site=
774srcdir=
775verbose=
776x_includes=NONE
777x_libraries=NONE
778
779# Installation directory options.
780# These are left unexpanded so users can "make install exec_prefix=/foo"
781# and all the variables that are supposed to be based on exec_prefix
782# by default will actually change.
783# Use braces instead of parens because sh, perl, etc. also accept them.
784# (The list follows the same order as the GNU Coding Standards.)
785bindir='${exec_prefix}/bin'
786sbindir='${exec_prefix}/sbin'
787libexecdir='${exec_prefix}/libexec'
788datarootdir='${prefix}/share'
789datadir='${datarootdir}'
790sysconfdir='${prefix}/etc'
791sharedstatedir='${prefix}/com'
792localstatedir='${prefix}/var'
793includedir='${prefix}/include'
794oldincludedir='/usr/include'
795docdir='${datarootdir}/doc/${PACKAGE}'
796infodir='${datarootdir}/info'
797htmldir='${docdir}'
798dvidir='${docdir}'
799pdfdir='${docdir}'
800psdir='${docdir}'
801libdir='${exec_prefix}/lib'
802localedir='${datarootdir}/locale'
803mandir='${datarootdir}/man'
804
805ac_prev=
806ac_dashdash=
807for ac_option
808do
809  # If the previous option needs an argument, assign it.
810  if test -n "$ac_prev"; then
811    eval $ac_prev=\$ac_option
812    ac_prev=
813    continue
814  fi
815
816  case $ac_option in
817  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818  *=)   ac_optarg= ;;
819  *)    ac_optarg=yes ;;
820  esac
821
822  # Accept the important Cygnus configure options, so we can diagnose typos.
823
824  case $ac_dashdash$ac_option in
825  --)
826    ac_dashdash=yes ;;
827
828  -bindir | --bindir | --bindi | --bind | --bin | --bi)
829    ac_prev=bindir ;;
830  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831    bindir=$ac_optarg ;;
832
833  -build | --build | --buil | --bui | --bu)
834    ac_prev=build_alias ;;
835  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836    build_alias=$ac_optarg ;;
837
838  -cache-file | --cache-file | --cache-fil | --cache-fi \
839  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840    ac_prev=cache_file ;;
841  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843    cache_file=$ac_optarg ;;
844
845  --config-cache | -C)
846    cache_file=config.cache ;;
847
848  -datadir | --datadir | --datadi | --datad)
849    ac_prev=datadir ;;
850  -datadir=* | --datadir=* | --datadi=* | --datad=*)
851    datadir=$ac_optarg ;;
852
853  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854  | --dataroo | --dataro | --datar)
855    ac_prev=datarootdir ;;
856  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858    datarootdir=$ac_optarg ;;
859
860  -disable-* | --disable-*)
861    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862    # Reject names that are not valid shell variable names.
863    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864      as_fn_error $? "invalid feature name: $ac_useropt"
865    ac_useropt_orig=$ac_useropt
866    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867    case $ac_user_opts in
868      *"
869"enable_$ac_useropt"
870"*) ;;
871      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872	 ac_unrecognized_sep=', ';;
873    esac
874    eval enable_$ac_useropt=no ;;
875
876  -docdir | --docdir | --docdi | --doc | --do)
877    ac_prev=docdir ;;
878  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879    docdir=$ac_optarg ;;
880
881  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882    ac_prev=dvidir ;;
883  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884    dvidir=$ac_optarg ;;
885
886  -enable-* | --enable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=\$ac_optarg ;;
901
902  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904  | --exec | --exe | --ex)
905    ac_prev=exec_prefix ;;
906  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908  | --exec=* | --exe=* | --ex=*)
909    exec_prefix=$ac_optarg ;;
910
911  -gas | --gas | --ga | --g)
912    # Obsolete; use --with-gas.
913    with_gas=yes ;;
914
915  -help | --help | --hel | --he | -h)
916    ac_init_help=long ;;
917  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918    ac_init_help=recursive ;;
919  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920    ac_init_help=short ;;
921
922  -host | --host | --hos | --ho)
923    ac_prev=host_alias ;;
924  -host=* | --host=* | --hos=* | --ho=*)
925    host_alias=$ac_optarg ;;
926
927  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928    ac_prev=htmldir ;;
929  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930  | --ht=*)
931    htmldir=$ac_optarg ;;
932
933  -includedir | --includedir | --includedi | --included | --include \
934  | --includ | --inclu | --incl | --inc)
935    ac_prev=includedir ;;
936  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937  | --includ=* | --inclu=* | --incl=* | --inc=*)
938    includedir=$ac_optarg ;;
939
940  -infodir | --infodir | --infodi | --infod | --info | --inf)
941    ac_prev=infodir ;;
942  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943    infodir=$ac_optarg ;;
944
945  -libdir | --libdir | --libdi | --libd)
946    ac_prev=libdir ;;
947  -libdir=* | --libdir=* | --libdi=* | --libd=*)
948    libdir=$ac_optarg ;;
949
950  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951  | --libexe | --libex | --libe)
952    ac_prev=libexecdir ;;
953  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954  | --libexe=* | --libex=* | --libe=*)
955    libexecdir=$ac_optarg ;;
956
957  -localedir | --localedir | --localedi | --localed | --locale)
958    ac_prev=localedir ;;
959  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960    localedir=$ac_optarg ;;
961
962  -localstatedir | --localstatedir | --localstatedi | --localstated \
963  | --localstate | --localstat | --localsta | --localst | --locals)
964    ac_prev=localstatedir ;;
965  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967    localstatedir=$ac_optarg ;;
968
969  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970    ac_prev=mandir ;;
971  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972    mandir=$ac_optarg ;;
973
974  -nfp | --nfp | --nf)
975    # Obsolete; use --without-fp.
976    with_fp=no ;;
977
978  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979  | --no-cr | --no-c | -n)
980    no_create=yes ;;
981
982  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984    no_recursion=yes ;;
985
986  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988  | --oldin | --oldi | --old | --ol | --o)
989    ac_prev=oldincludedir ;;
990  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993    oldincludedir=$ac_optarg ;;
994
995  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996    ac_prev=prefix ;;
997  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998    prefix=$ac_optarg ;;
999
1000  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001  | --program-pre | --program-pr | --program-p)
1002    ac_prev=program_prefix ;;
1003  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005    program_prefix=$ac_optarg ;;
1006
1007  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008  | --program-suf | --program-su | --program-s)
1009    ac_prev=program_suffix ;;
1010  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012    program_suffix=$ac_optarg ;;
1013
1014  -program-transform-name | --program-transform-name \
1015  | --program-transform-nam | --program-transform-na \
1016  | --program-transform-n | --program-transform- \
1017  | --program-transform | --program-transfor \
1018  | --program-transfo | --program-transf \
1019  | --program-trans | --program-tran \
1020  | --progr-tra | --program-tr | --program-t)
1021    ac_prev=program_transform_name ;;
1022  -program-transform-name=* | --program-transform-name=* \
1023  | --program-transform-nam=* | --program-transform-na=* \
1024  | --program-transform-n=* | --program-transform-=* \
1025  | --program-transform=* | --program-transfor=* \
1026  | --program-transfo=* | --program-transf=* \
1027  | --program-trans=* | --program-tran=* \
1028  | --progr-tra=* | --program-tr=* | --program-t=*)
1029    program_transform_name=$ac_optarg ;;
1030
1031  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032    ac_prev=pdfdir ;;
1033  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034    pdfdir=$ac_optarg ;;
1035
1036  -psdir | --psdir | --psdi | --psd | --ps)
1037    ac_prev=psdir ;;
1038  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039    psdir=$ac_optarg ;;
1040
1041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042  | -silent | --silent | --silen | --sile | --sil)
1043    silent=yes ;;
1044
1045  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046    ac_prev=sbindir ;;
1047  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048  | --sbi=* | --sb=*)
1049    sbindir=$ac_optarg ;;
1050
1051  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053  | --sharedst | --shareds | --shared | --share | --shar \
1054  | --sha | --sh)
1055    ac_prev=sharedstatedir ;;
1056  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059  | --sha=* | --sh=*)
1060    sharedstatedir=$ac_optarg ;;
1061
1062  -site | --site | --sit)
1063    ac_prev=site ;;
1064  -site=* | --site=* | --sit=*)
1065    site=$ac_optarg ;;
1066
1067  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068    ac_prev=srcdir ;;
1069  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070    srcdir=$ac_optarg ;;
1071
1072  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073  | --syscon | --sysco | --sysc | --sys | --sy)
1074    ac_prev=sysconfdir ;;
1075  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077    sysconfdir=$ac_optarg ;;
1078
1079  -target | --target | --targe | --targ | --tar | --ta | --t)
1080    ac_prev=target_alias ;;
1081  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082    target_alias=$ac_optarg ;;
1083
1084  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085    verbose=yes ;;
1086
1087  -version | --version | --versio | --versi | --vers | -V)
1088    ac_init_version=: ;;
1089
1090  -with-* | --with-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      as_fn_error $? "invalid package name: $ac_useropt"
1095    ac_useropt_orig=$ac_useropt
1096    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097    case $ac_user_opts in
1098      *"
1099"with_$ac_useropt"
1100"*) ;;
1101      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102	 ac_unrecognized_sep=', ';;
1103    esac
1104    eval with_$ac_useropt=\$ac_optarg ;;
1105
1106  -without-* | --without-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=no ;;
1121
1122  --x)
1123    # Obsolete; use --with-x.
1124    with_x=yes ;;
1125
1126  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127  | --x-incl | --x-inc | --x-in | --x-i)
1128    ac_prev=x_includes ;;
1129  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131    x_includes=$ac_optarg ;;
1132
1133  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135    ac_prev=x_libraries ;;
1136  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138    x_libraries=$ac_optarg ;;
1139
1140  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141Try \`$0 --help' for more information"
1142    ;;
1143
1144  *=*)
1145    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146    # Reject names that are not valid shell variable names.
1147    case $ac_envvar in #(
1148      '' | [0-9]* | *[!_$as_cr_alnum]* )
1149      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150    esac
1151    eval $ac_envvar=\$ac_optarg
1152    export $ac_envvar ;;
1153
1154  *)
1155    # FIXME: should be removed in autoconf 3.0.
1156    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160    ;;
1161
1162  esac
1163done
1164
1165if test -n "$ac_prev"; then
1166  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167  as_fn_error $? "missing argument to $ac_option"
1168fi
1169
1170if test -n "$ac_unrecognized_opts"; then
1171  case $enable_option_checking in
1172    no) ;;
1173    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175  esac
1176fi
1177
1178# Check all directory arguments for consistency.
1179for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180		datadir sysconfdir sharedstatedir localstatedir includedir \
1181		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182		libdir localedir mandir
1183do
1184  eval ac_val=\$$ac_var
1185  # Remove trailing slashes.
1186  case $ac_val in
1187    */ )
1188      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189      eval $ac_var=\$ac_val;;
1190  esac
1191  # Be sure to have absolute directory names.
1192  case $ac_val in
1193    [\\/$]* | ?:[\\/]* )  continue;;
1194    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195  esac
1196  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197done
1198
1199# There might be people who depend on the old broken behavior: `$host'
1200# used to hold the argument of --host etc.
1201# FIXME: To remove some day.
1202build=$build_alias
1203host=$host_alias
1204target=$target_alias
1205
1206# FIXME: To remove some day.
1207if test "x$host_alias" != x; then
1208  if test "x$build_alias" = x; then
1209    cross_compiling=maybe
1210  elif test "x$build_alias" != "x$host_alias"; then
1211    cross_compiling=yes
1212  fi
1213fi
1214
1215ac_tool_prefix=
1216test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218test "$silent" = yes && exec 6>/dev/null
1219
1220
1221ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222ac_ls_di=`ls -di .` &&
1223ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224  as_fn_error $? "working directory cannot be determined"
1225test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226  as_fn_error $? "pwd does not report name of working directory"
1227
1228
1229# Find the source files, if location was not specified.
1230if test -z "$srcdir"; then
1231  ac_srcdir_defaulted=yes
1232  # Try the directory containing this script, then the parent directory.
1233  ac_confdir=`$as_dirname -- "$as_myself" ||
1234$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235	 X"$as_myself" : 'X\(//\)[^/]' \| \
1236	 X"$as_myself" : 'X\(//\)$' \| \
1237	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238$as_echo X"$as_myself" |
1239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240	    s//\1/
1241	    q
1242	  }
1243	  /^X\(\/\/\)[^/].*/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)$/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\).*/{
1252	    s//\1/
1253	    q
1254	  }
1255	  s/.*/./; q'`
1256  srcdir=$ac_confdir
1257  if test ! -r "$srcdir/$ac_unique_file"; then
1258    srcdir=..
1259  fi
1260else
1261  ac_srcdir_defaulted=no
1262fi
1263if test ! -r "$srcdir/$ac_unique_file"; then
1264  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266fi
1267ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268ac_abs_confdir=`(
1269	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270	pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273  srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283  eval ac_env_${ac_var}_value=\$${ac_var}
1284  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
1287
1288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292  # Omit some internal or obsolete options to make the list less imposing.
1293  # This message is too long to be a string in the A/UX 3.1 sh.
1294  cat <<_ACEOF
1295\`configure' configures this package to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305  -h, --help              display this help and exit
1306      --help=short        display options specific to this package
1307      --help=recursive    display the short help of all the included packages
1308  -V, --version           display version information and exit
1309  -q, --quiet, --silent   do not print \`checking ...' messages
1310      --cache-file=FILE   cache test results in FILE [disabled]
1311  -C, --config-cache      alias for \`--cache-file=config.cache'
1312  -n, --no-create         do not create output files
1313      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315Installation directories:
1316  --prefix=PREFIX         install architecture-independent files in PREFIX
1317                          [$ac_default_prefix]
1318  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                          [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329  --bindir=DIR            user executables [EPREFIX/bin]
1330  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1331  --libexecdir=DIR        program executables [EPREFIX/libexec]
1332  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1333  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1334  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1335  --libdir=DIR            object code libraries [EPREFIX/lib]
1336  --includedir=DIR        C header files [PREFIX/include]
1337  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1338  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1339  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1340  --infodir=DIR           info documentation [DATAROOTDIR/info]
1341  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1342  --mandir=DIR            man documentation [DATAROOTDIR/man]
1343  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1344  --htmldir=DIR           html documentation [DOCDIR]
1345  --dvidir=DIR            dvi documentation [DOCDIR]
1346  --pdfdir=DIR            pdf documentation [DOCDIR]
1347  --psdir=DIR             ps documentation [DOCDIR]
1348_ACEOF
1349
1350  cat <<\_ACEOF
1351
1352X features:
1353  --x-includes=DIR    X include files are in DIR
1354  --x-libraries=DIR   X library files are in DIR
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359
1360  cat <<\_ACEOF
1361
1362Optional Features:
1363  --disable-option-checking  ignore unrecognized --enable/--with options
1364  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1365  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1366  --enable-a4-paper       use A4 paper size instead of Letter for PostScript
1367                          output
1368  --enable-no-text-select do not allow text selection
1369  --enable-opi            include support for OPI comments
1370  --enable-multithreaded  include support for multithreading
1371  --enable-exceptions     use C++ exceptions
1372  --enable-fixedpoint     use fixed point (instead of floating point)
1373                          arithmetic
1374  --enable-cmyk           include support for CMYK rasterization
1375  --disable-largefile     omit support for large files
1376
1377Optional Packages:
1378  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1379  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1380  --with-appdef-dir       set app-defaults directory
1381  --with-x                use the X Window System
1382  --with-Xpm-library=PATH
1383                          use Xpm library (pixmap library - used only for icon)
1384  --with-Xpm-includes=DIR
1385                          set directory for Xpm headers
1386  --with-Xext-library=PATH
1387                          use Xext library (Motif library)
1388  --with-Xext-includes=DIR
1389                          set directory for Xext headers
1390  --with-Xp-library=PATH
1391                          use Xp library (Motif library)
1392  --with-Xp-includes=DIR
1393                          set directory for Xp headers
1394  --with-Xt-library=PATH
1395                          use Xt library (Motif library)
1396  --with-Xt-includes=DIR
1397                          set directory for Xt headers
1398  --with-Xm-library=PATH
1399                          use Xm library (Motif library)
1400  --with-Xm-includes=DIR
1401                          set directory for Xm headers
1402  --with-Sgm-library=PATH
1403                          use Sgm library (SGI Motif library)
1404  --with-Sgm-includes=DIR
1405                          set directory for Sgm headers
1406  --with-freetype2-library=PATH
1407                          use freetype2 library (FreeType2 font rasterizer - version 2.0.5+)
1408  --with-freetype2-includes=DIR
1409                          set directory for freetype2 headers
1410  --with-libpng-library=PATH
1411                          use libpng library (PNG library)
1412  --with-libpng-includes=DIR
1413                          set directory for libpng headers
1414  --with-libpaper-library=PATH
1415                          use libpaper library (Debian libpaper)
1416  --with-libpaper-includes=DIR
1417                          set directory for libpaper headers
1418
1419Some influential environment variables:
1420  CC          C compiler command
1421  CFLAGS      C compiler flags
1422  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423              nonstandard directory <lib dir>
1424  LIBS        libraries to pass to the linker, e.g. -l<library>
1425  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426              you have headers in a nonstandard directory <include dir>
1427  CXX         C++ compiler command
1428  CXXFLAGS    C++ compiler flags
1429  XMKMF       Path to xmkmf, Makefile generator for X Window System
1430  CPP         C preprocessor
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to the package provider.
1436_ACEOF
1437ac_status=$?
1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441  # If there are subdirs, report their specific --help.
1442  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443    test -d "$ac_dir" ||
1444      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445      continue
1446    ac_builddir=.
1447
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1451  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452  # A ".." for each directory in $ac_dir_suffix.
1453  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454  case $ac_top_builddir_sub in
1455  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457  esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1463
1464case $srcdir in
1465  .)  # We are building in place.
1466    ac_srcdir=.
1467    ac_top_srcdir=$ac_top_builddir_sub
1468    ac_abs_top_srcdir=$ac_pwd ;;
1469  [\\/]* | ?:[\\/]* )  # Absolute name.
1470    ac_srcdir=$srcdir$ac_dir_suffix;
1471    ac_top_srcdir=$srcdir
1472    ac_abs_top_srcdir=$srcdir ;;
1473  *) # Relative name.
1474    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475    ac_top_srcdir=$ac_top_build_prefix$srcdir
1476    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477esac
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480    cd "$ac_dir" || { ac_status=$?; continue; }
1481    # Check for guested configure.
1482    if test -f "$ac_srcdir/configure.gnu"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485    elif test -f "$ac_srcdir/configure"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure" --help=recursive
1488    else
1489      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490    fi || ac_status=$?
1491    cd "$ac_pwd" || { ac_status=$?; break; }
1492  done
1493fi
1494
1495test -n "$ac_init_help" && exit $ac_status
1496if $ac_init_version; then
1497  cat <<\_ACEOF
1498configure
1499generated by GNU Autoconf 2.69
1500
1501Copyright (C) 2012 Free Software Foundation, Inc.
1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
1505  exit
1506fi
1507
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
1511
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
1516{
1517  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518  rm -f conftest.$ac_objext
1519  if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522  *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526  (eval "$ac_compile") 2>conftest.err
1527  ac_status=$?
1528  if test -s conftest.err; then
1529    grep -v '^ *+' conftest.err >conftest.er1
1530    cat conftest.er1 >&5
1531    mv -f conftest.er1 conftest.err
1532  fi
1533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534  test $ac_status = 0; } && {
1535	 test -z "$ac_c_werror_flag" ||
1536	 test ! -s conftest.err
1537       } && test -s conftest.$ac_objext; then :
1538  ac_retval=0
1539else
1540  $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543	ac_retval=1
1544fi
1545  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546  as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_link LINENO
1551# -----------------------
1552# Try to link conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_link ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  rm -f conftest.$ac_objext conftest$ac_exeext
1557  if { { ac_try="$ac_link"
1558case "(($ac_try" in
1559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560  *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564  (eval "$ac_link") 2>conftest.err
1565  ac_status=$?
1566  if test -s conftest.err; then
1567    grep -v '^ *+' conftest.err >conftest.er1
1568    cat conftest.er1 >&5
1569    mv -f conftest.er1 conftest.err
1570  fi
1571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572  test $ac_status = 0; } && {
1573	 test -z "$ac_c_werror_flag" ||
1574	 test ! -s conftest.err
1575       } && test -s conftest$ac_exeext && {
1576	 test "$cross_compiling" = yes ||
1577	 test -x conftest$ac_exeext
1578       }; then :
1579  ac_retval=0
1580else
1581  $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584	ac_retval=1
1585fi
1586  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588  # interfere with the next link command; also delete a directory that is
1589  # left behind by Apple's compiler.  We do this before executing the actions.
1590  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_link
1595
1596# ac_fn_cxx_try_compile LINENO
1597# ----------------------------
1598# Try to compile conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_cxx_try_compile ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  rm -f conftest.$ac_objext
1603  if { { ac_try="$ac_compile"
1604case "(($ac_try" in
1605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606  *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609$as_echo "$ac_try_echo"; } >&5
1610  (eval "$ac_compile") 2>conftest.err
1611  ac_status=$?
1612  if test -s conftest.err; then
1613    grep -v '^ *+' conftest.err >conftest.er1
1614    cat conftest.er1 >&5
1615    mv -f conftest.er1 conftest.err
1616  fi
1617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618  test $ac_status = 0; } && {
1619	 test -z "$ac_cxx_werror_flag" ||
1620	 test ! -s conftest.err
1621       } && test -s conftest.$ac_objext; then :
1622  ac_retval=0
1623else
1624  $as_echo "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
1626
1627	ac_retval=1
1628fi
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_cxx_try_compile
1633
1634# ac_fn_c_try_cpp LINENO
1635# ----------------------
1636# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_cpp ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  if { { ac_try="$ac_cpp conftest.$ac_ext"
1641case "(($ac_try" in
1642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643  *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648  ac_status=$?
1649  if test -s conftest.err; then
1650    grep -v '^ *+' conftest.err >conftest.er1
1651    cat conftest.er1 >&5
1652    mv -f conftest.er1 conftest.err
1653  fi
1654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655  test $ac_status = 0; } > conftest.i && {
1656	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657	 test ! -s conftest.err
1658       }; then :
1659  ac_retval=0
1660else
1661  $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664    ac_retval=1
1665fi
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667  as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_cpp
1670
1671# ac_fn_c_check_func LINENO FUNC VAR
1672# ----------------------------------
1673# Tests whether FUNC exists, setting the cache variable VAR accordingly
1674ac_fn_c_check_func ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
1679if eval \${$3+:} false; then :
1680  $as_echo_n "(cached) " >&6
1681else
1682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h.  */
1684/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1686#define $2 innocuous_$2
1687
1688/* System header to define __stub macros and hopefully few prototypes,
1689    which can conflict with char $2 (); below.
1690    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1691    <limits.h> exists even on freestanding compilers.  */
1692
1693#ifdef __STDC__
1694# include <limits.h>
1695#else
1696# include <assert.h>
1697#endif
1698
1699#undef $2
1700
1701/* Override any GCC internal prototype to avoid an error.
1702   Use char because int might match the return type of a GCC
1703   builtin and then its argument prototype would still apply.  */
1704#ifdef __cplusplus
1705extern "C"
1706#endif
1707char $2 ();
1708/* The GNU C library defines this for functions which it implements
1709    to always fail with ENOSYS.  Some functions are actually named
1710    something starting with __ and the normal name is an alias.  */
1711#if defined __stub_$2 || defined __stub___$2
1712choke me
1713#endif
1714
1715int
1716main ()
1717{
1718return $2 ();
1719  ;
1720  return 0;
1721}
1722_ACEOF
1723if ac_fn_c_try_link "$LINENO"; then :
1724  eval "$3=yes"
1725else
1726  eval "$3=no"
1727fi
1728rm -f core conftest.err conftest.$ac_objext \
1729    conftest$ac_exeext conftest.$ac_ext
1730fi
1731eval ac_res=\$$3
1732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736} # ac_fn_c_check_func
1737
1738# ac_fn_cxx_try_link LINENO
1739# -------------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded.
1741ac_fn_cxx_try_link ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  rm -f conftest.$ac_objext conftest$ac_exeext
1745  if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748  *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752  (eval "$ac_link") 2>conftest.err
1753  ac_status=$?
1754  if test -s conftest.err; then
1755    grep -v '^ *+' conftest.err >conftest.er1
1756    cat conftest.er1 >&5
1757    mv -f conftest.er1 conftest.err
1758  fi
1759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760  test $ac_status = 0; } && {
1761	 test -z "$ac_cxx_werror_flag" ||
1762	 test ! -s conftest.err
1763       } && test -s conftest$ac_exeext && {
1764	 test "$cross_compiling" = yes ||
1765	 test -x conftest$ac_exeext
1766       }; then :
1767  ac_retval=0
1768else
1769  $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772	ac_retval=1
1773fi
1774  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776  # interfere with the next link command; also delete a directory that is
1777  # left behind by Apple's compiler.  We do this before executing the actions.
1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_cxx_try_link
1783
1784# ac_fn_cxx_check_func LINENO FUNC VAR
1785# ------------------------------------
1786# Tests whether FUNC exists, setting the cache variable VAR accordingly
1787ac_fn_cxx_check_func ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793  $as_echo_n "(cached) " >&6
1794else
1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1799#define $2 innocuous_$2
1800
1801/* System header to define __stub macros and hopefully few prototypes,
1802    which can conflict with char $2 (); below.
1803    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804    <limits.h> exists even on freestanding compilers.  */
1805
1806#ifdef __STDC__
1807# include <limits.h>
1808#else
1809# include <assert.h>
1810#endif
1811
1812#undef $2
1813
1814/* Override any GCC internal prototype to avoid an error.
1815   Use char because int might match the return type of a GCC
1816   builtin and then its argument prototype would still apply.  */
1817#ifdef __cplusplus
1818extern "C"
1819#endif
1820char $2 ();
1821/* The GNU C library defines this for functions which it implements
1822    to always fail with ENOSYS.  Some functions are actually named
1823    something starting with __ and the normal name is an alias.  */
1824#if defined __stub_$2 || defined __stub___$2
1825choke me
1826#endif
1827
1828int
1829main ()
1830{
1831return $2 ();
1832  ;
1833  return 0;
1834}
1835_ACEOF
1836if ac_fn_cxx_try_link "$LINENO"; then :
1837  eval "$3=yes"
1838else
1839  eval "$3=no"
1840fi
1841rm -f core conftest.err conftest.$ac_objext \
1842    conftest$ac_exeext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849} # ac_fn_cxx_check_func
1850
1851# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854# the include files in INCLUDES and setting the cache variable VAR
1855# accordingly.
1856ac_fn_c_check_header_mongrel ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  if eval \${$3+:} false; then :
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864fi
1865eval ac_res=\$$3
1866	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868else
1869  # Is the header compilable?
1870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871$as_echo_n "checking $2 usability... " >&6; }
1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  ac_header_compiler=yes
1879else
1880  ac_header_compiler=no
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1884$as_echo "$ac_header_compiler" >&6; }
1885
1886# Is the header present?
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888$as_echo_n "checking $2 presence... " >&6; }
1889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_cpp "$LINENO"; then :
1894  ac_header_preproc=yes
1895else
1896  ac_header_preproc=no
1897fi
1898rm -f conftest.err conftest.i conftest.$ac_ext
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1900$as_echo "$ac_header_preproc" >&6; }
1901
1902# So?  What about this header?
1903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904  yes:no: )
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909    ;;
1910  no:yes:* )
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1914$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1918$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921    ;;
1922esac
1923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if eval \${$3+:} false; then :
1926  $as_echo_n "(cached) " >&6
1927else
1928  eval "$3=\$ac_header_compiler"
1929fi
1930eval ac_res=\$$3
1931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933fi
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_header_mongrel
1937
1938# ac_fn_c_try_run LINENO
1939# ----------------------
1940# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941# that executables *can* be run.
1942ac_fn_c_try_run ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  if { { ac_try="$ac_link"
1946case "(($ac_try" in
1947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948  *) ac_try_echo=$ac_try;;
1949esac
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
1952  (eval "$ac_link") 2>&5
1953  ac_status=$?
1954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956  { { case "(($ac_try" in
1957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958  *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962  (eval "$ac_try") 2>&5
1963  ac_status=$?
1964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965  test $ac_status = 0; }; }; then :
1966  ac_retval=0
1967else
1968  $as_echo "$as_me: program exited with status $ac_status" >&5
1969       $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972       ac_retval=$ac_status
1973fi
1974  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976  as_fn_set_status $ac_retval
1977
1978} # ac_fn_c_try_run
1979
1980# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981# -------------------------------------------------------
1982# Tests whether HEADER exists and can be compiled using the include files in
1983# INCLUDES, setting the cache variable VAR accordingly.
1984ac_fn_c_check_header_compile ()
1985{
1986  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if eval \${$3+:} false; then :
1990  $as_echo_n "(cached) " >&6
1991else
1992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h.  */
1994$4
1995#include <$2>
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998  eval "$3=yes"
1999else
2000  eval "$3=no"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009} # ac_fn_c_check_header_compile
2010cat >config.log <<_ACEOF
2011This file contains any messages produced by compilers while
2012running configure, to aid debugging if configure makes a mistake.
2013
2014It was created by $as_me, which was
2015generated by GNU Autoconf 2.69.  Invocation command line was
2016
2017  $ $0 $@
2018
2019_ACEOF
2020exec 5>>config.log
2021{
2022cat <<_ASUNAME
2023## --------- ##
2024## Platform. ##
2025## --------- ##
2026
2027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2028uname -m = `(uname -m) 2>/dev/null || echo unknown`
2029uname -r = `(uname -r) 2>/dev/null || echo unknown`
2030uname -s = `(uname -s) 2>/dev/null || echo unknown`
2031uname -v = `(uname -v) 2>/dev/null || echo unknown`
2032
2033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2034/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2035
2036/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2037/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2039/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2040/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2041/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2042/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2043
2044_ASUNAME
2045
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049  IFS=$as_save_IFS
2050  test -z "$as_dir" && as_dir=.
2051    $as_echo "PATH: $as_dir"
2052  done
2053IFS=$as_save_IFS
2054
2055} >&5
2056
2057cat >&5 <<_ACEOF
2058
2059
2060## ----------- ##
2061## Core tests. ##
2062## ----------- ##
2063
2064_ACEOF
2065
2066
2067# Keep a trace of the command line.
2068# Strip out --no-create and --no-recursion so they do not pile up.
2069# Strip out --silent because we don't want to record it for future runs.
2070# Also quote any args containing shell meta-characters.
2071# Make two passes to allow for proper duplicate-argument suppression.
2072ac_configure_args=
2073ac_configure_args0=
2074ac_configure_args1=
2075ac_must_keep_next=false
2076for ac_pass in 1 2
2077do
2078  for ac_arg
2079  do
2080    case $ac_arg in
2081    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083    | -silent | --silent | --silen | --sile | --sil)
2084      continue ;;
2085    *\'*)
2086      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087    esac
2088    case $ac_pass in
2089    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090    2)
2091      as_fn_append ac_configure_args1 " '$ac_arg'"
2092      if test $ac_must_keep_next = true; then
2093	ac_must_keep_next=false # Got value, back to normal.
2094      else
2095	case $ac_arg in
2096	  *=* | --config-cache | -C | -disable-* | --disable-* \
2097	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099	  | -with-* | --with-* | -without-* | --without-* | --x)
2100	    case "$ac_configure_args0 " in
2101	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102	    esac
2103	    ;;
2104	  -* ) ac_must_keep_next=true ;;
2105	esac
2106      fi
2107      as_fn_append ac_configure_args " '$ac_arg'"
2108      ;;
2109    esac
2110  done
2111done
2112{ ac_configure_args0=; unset ac_configure_args0;}
2113{ ac_configure_args1=; unset ac_configure_args1;}
2114
2115# When interrupted or exit'd, cleanup temporary files, and complete
2116# config.log.  We remove comments because anyway the quotes in there
2117# would cause problems or look ugly.
2118# WARNING: Use '\'' to represent an apostrophe within the trap.
2119# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120trap 'exit_status=$?
2121  # Save into config.log some information that might help in debugging.
2122  {
2123    echo
2124
2125    $as_echo "## ---------------- ##
2126## Cache variables. ##
2127## ---------------- ##"
2128    echo
2129    # The following way of writing the cache mishandles newlines in values,
2130(
2131  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132    eval ac_val=\$$ac_var
2133    case $ac_val in #(
2134    *${as_nl}*)
2135      case $ac_var in #(
2136      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138      esac
2139      case $ac_var in #(
2140      _ | IFS | as_nl) ;; #(
2141      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142      *) { eval $ac_var=; unset $ac_var;} ;;
2143      esac ;;
2144    esac
2145  done
2146  (set) 2>&1 |
2147    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148    *${as_nl}ac_space=\ *)
2149      sed -n \
2150	"s/'\''/'\''\\\\'\'''\''/g;
2151	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152      ;; #(
2153    *)
2154      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2155      ;;
2156    esac |
2157    sort
2158)
2159    echo
2160
2161    $as_echo "## ----------------- ##
2162## Output variables. ##
2163## ----------------- ##"
2164    echo
2165    for ac_var in $ac_subst_vars
2166    do
2167      eval ac_val=\$$ac_var
2168      case $ac_val in
2169      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170      esac
2171      $as_echo "$ac_var='\''$ac_val'\''"
2172    done | sort
2173    echo
2174
2175    if test -n "$ac_subst_files"; then
2176      $as_echo "## ------------------- ##
2177## File substitutions. ##
2178## ------------------- ##"
2179      echo
2180      for ac_var in $ac_subst_files
2181      do
2182	eval ac_val=\$$ac_var
2183	case $ac_val in
2184	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185	esac
2186	$as_echo "$ac_var='\''$ac_val'\''"
2187      done | sort
2188      echo
2189    fi
2190
2191    if test -s confdefs.h; then
2192      $as_echo "## ----------- ##
2193## confdefs.h. ##
2194## ----------- ##"
2195      echo
2196      cat confdefs.h
2197      echo
2198    fi
2199    test "$ac_signal" != 0 &&
2200      $as_echo "$as_me: caught signal $ac_signal"
2201    $as_echo "$as_me: exit $exit_status"
2202  } >&5
2203  rm -f core *.core core.conftest.* &&
2204    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2205    exit $exit_status
2206' 0
2207for ac_signal in 1 2 13 15; do
2208  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2209done
2210ac_signal=0
2211
2212# confdefs.h avoids OS command line length limits that DEFS can exceed.
2213rm -f -r conftest* confdefs.h
2214
2215$as_echo "/* confdefs.h */" > confdefs.h
2216
2217# Predefined preprocessor variables.
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_NAME "$PACKAGE_NAME"
2221_ACEOF
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_VERSION "$PACKAGE_VERSION"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_STRING "$PACKAGE_STRING"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_URL "$PACKAGE_URL"
2241_ACEOF
2242
2243
2244# Let the site file select an alternate cache file if it wants to.
2245# Prefer an explicitly selected file to automatically selected ones.
2246ac_site_file1=NONE
2247ac_site_file2=NONE
2248if test -n "$CONFIG_SITE"; then
2249  # We do not want a PATH search for config.site.
2250  case $CONFIG_SITE in #((
2251    -*)  ac_site_file1=./$CONFIG_SITE;;
2252    */*) ac_site_file1=$CONFIG_SITE;;
2253    *)   ac_site_file1=./$CONFIG_SITE;;
2254  esac
2255elif test "x$prefix" != xNONE; then
2256  ac_site_file1=$prefix/share/config.site
2257  ac_site_file2=$prefix/etc/config.site
2258else
2259  ac_site_file1=$ac_default_prefix/share/config.site
2260  ac_site_file2=$ac_default_prefix/etc/config.site
2261fi
2262for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2263do
2264  test "x$ac_site_file" = xNONE && continue
2265  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2266    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2267$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2268    sed 's/^/| /' "$ac_site_file" >&5
2269    . "$ac_site_file" \
2270      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272as_fn_error $? "failed to load site script $ac_site_file
2273See \`config.log' for more details" "$LINENO" 5; }
2274  fi
2275done
2276
2277if test -r "$cache_file"; then
2278  # Some versions of bash will fail to source /dev/null (special files
2279  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2280  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2281    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2282$as_echo "$as_me: loading cache $cache_file" >&6;}
2283    case $cache_file in
2284      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2285      *)                      . "./$cache_file";;
2286    esac
2287  fi
2288else
2289  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2290$as_echo "$as_me: creating cache $cache_file" >&6;}
2291  >$cache_file
2292fi
2293
2294# Check that the precious variables saved in the cache have kept the same
2295# value.
2296ac_cache_corrupted=false
2297for ac_var in $ac_precious_vars; do
2298  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2299  eval ac_new_set=\$ac_env_${ac_var}_set
2300  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2301  eval ac_new_val=\$ac_env_${ac_var}_value
2302  case $ac_old_set,$ac_new_set in
2303    set,)
2304      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2305$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2306      ac_cache_corrupted=: ;;
2307    ,set)
2308      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2310      ac_cache_corrupted=: ;;
2311    ,);;
2312    *)
2313      if test "x$ac_old_val" != "x$ac_new_val"; then
2314	# differences in whitespace do not lead to failure.
2315	ac_old_val_w=`echo x $ac_old_val`
2316	ac_new_val_w=`echo x $ac_new_val`
2317	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2318	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2319$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2320	  ac_cache_corrupted=:
2321	else
2322	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2323$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2324	  eval $ac_var=\$ac_old_val
2325	fi
2326	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2327$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2328	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2329$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2330      fi;;
2331  esac
2332  # Pass precious variables to config.status.
2333  if test "$ac_new_set" = set; then
2334    case $ac_new_val in
2335    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2336    *) ac_arg=$ac_var=$ac_new_val ;;
2337    esac
2338    case " $ac_configure_args " in
2339      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2340      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2341    esac
2342  fi
2343done
2344if $ac_cache_corrupted; then
2345  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2348$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2349  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2350fi
2351## -------------------- ##
2352## Main body of script. ##
2353## -------------------- ##
2354
2355ac_ext=c
2356ac_cpp='$CPP $CPPFLAGS'
2357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362ac_config_headers="$ac_config_headers aconf.h"
2363
2364
2365
2366# Check whether --enable-a4-paper was given.
2367if test "${enable_a4_paper+set}" = set; then :
2368  enableval=$enable_a4_paper;
2369fi
2370
2371if test "x$enable_a4_paper" = "xyes"; then :
2372  $as_echo "#define A4_PAPER 1" >>confdefs.h
2373
2374fi
2375
2376# Check whether --enable-no-text-select was given.
2377if test "${enable_no_text_select+set}" = set; then :
2378  enableval=$enable_no_text_select;
2379fi
2380
2381if test "x$enable_no_text_select" = "xyes"; then :
2382  $as_echo "#define NO_TEXT_SELECT 1" >>confdefs.h
2383
2384fi
2385
2386# Check whether --enable-opi was given.
2387if test "${enable_opi+set}" = set; then :
2388  enableval=$enable_opi;
2389fi
2390
2391if test "x$enable_opi" = "xyes"; then :
2392  $as_echo "#define OPI_SUPPORT 1" >>confdefs.h
2393
2394fi
2395
2396# Check whether --enable-multithreaded was given.
2397if test "${enable_multithreaded+set}" = set; then :
2398  enableval=$enable_multithreaded;
2399fi
2400
2401if test "x$enable_multithreaded" = "xyes"; then :
2402  $as_echo "#define MULTITHREADED 1" >>confdefs.h
2403
2404fi
2405
2406# Check whether --enable-exceptions was given.
2407if test "${enable_exceptions+set}" = set; then :
2408  enableval=$enable_exceptions;
2409fi
2410
2411if test "x$enable_exceptions" = "xyes"; then :
2412  $as_echo "#define USE_EXCEPTIONS 1" >>confdefs.h
2413
2414fi
2415
2416# Check whether --enable-fixedpoint was given.
2417if test "${enable_fixedpoint+set}" = set; then :
2418  enableval=$enable_fixedpoint;
2419fi
2420
2421if test "x$enable_fixedpoint" = "xyes"; then :
2422  $as_echo "#define USE_FIXEDPOINT 1" >>confdefs.h
2423
2424fi
2425
2426# Check whether --enable-cmyk was given.
2427if test "${enable_cmyk+set}" = set; then :
2428  enableval=$enable_cmyk;
2429fi
2430
2431if test "x$enable_cmyk" = "xyes"; then :
2432  $as_echo "#define SPLASH_CMYK 1" >>confdefs.h
2433
2434fi
2435
2436
2437# Check whether --with-appdef-dir was given.
2438if test "${with_appdef_dir+set}" = set; then :
2439  withval=$with_appdef_dir;
2440fi
2441
2442if test "x$with_appdef_dir" != "xno"; then :
2443  cat >>confdefs.h <<_ACEOF
2444#define APPDEFDIR "$with_appdef_dir"
2445_ACEOF
2446
2447fi
2448
2449if test "$sysconfdir" = '${prefix}/etc'; then
2450  if test "x$prefix" = xNONE; then
2451    system_xpdfrc="$ac_default_prefix/etc/xpdfrc"
2452  else
2453    system_xpdfrc="$prefix/etc/xpdfrc"
2454  fi
2455else
2456  system_xpdfrc="$sysconfdir/xpdfrc"
2457fi
2458cat >>confdefs.h <<_ACEOF
2459#define SYSTEM_XPDFRC "$system_xpdfrc"
2460_ACEOF
2461
2462
2463ac_ext=c
2464ac_cpp='$CPP $CPPFLAGS'
2465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468if test -n "$ac_tool_prefix"; then
2469  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2470set dummy ${ac_tool_prefix}gcc; ac_word=$2
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
2473if ${ac_cv_prog_CC+:} false; then :
2474  $as_echo_n "(cached) " >&6
2475else
2476  if test -n "$CC"; then
2477  ac_cv_prog_CC="$CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482  IFS=$as_save_IFS
2483  test -z "$as_dir" && as_dir=.
2484    for ac_exec_ext in '' $ac_executable_extensions; do
2485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488    break 2
2489  fi
2490done
2491  done
2492IFS=$as_save_IFS
2493
2494fi
2495fi
2496CC=$ac_cv_prog_CC
2497if test -n "$CC"; then
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2499$as_echo "$CC" >&6; }
2500else
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502$as_echo "no" >&6; }
2503fi
2504
2505
2506fi
2507if test -z "$ac_cv_prog_CC"; then
2508  ac_ct_CC=$CC
2509  # Extract the first word of "gcc", so it can be a program name with args.
2510set dummy gcc; ac_word=$2
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512$as_echo_n "checking for $ac_word... " >&6; }
2513if ${ac_cv_prog_ac_ct_CC+:} false; then :
2514  $as_echo_n "(cached) " >&6
2515else
2516  if test -n "$ac_ct_CC"; then
2517  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2518else
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524    for ac_exec_ext in '' $ac_executable_extensions; do
2525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2526    ac_cv_prog_ac_ct_CC="gcc"
2527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528    break 2
2529  fi
2530done
2531  done
2532IFS=$as_save_IFS
2533
2534fi
2535fi
2536ac_ct_CC=$ac_cv_prog_ac_ct_CC
2537if test -n "$ac_ct_CC"; then
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2539$as_echo "$ac_ct_CC" >&6; }
2540else
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542$as_echo "no" >&6; }
2543fi
2544
2545  if test "x$ac_ct_CC" = x; then
2546    CC=""
2547  else
2548    case $cross_compiling:$ac_tool_warned in
2549yes:)
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552ac_tool_warned=yes ;;
2553esac
2554    CC=$ac_ct_CC
2555  fi
2556else
2557  CC="$ac_cv_prog_CC"
2558fi
2559
2560if test -z "$CC"; then
2561          if test -n "$ac_tool_prefix"; then
2562    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2563set dummy ${ac_tool_prefix}cc; ac_word=$2
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
2566if ${ac_cv_prog_CC+:} false; then :
2567  $as_echo_n "(cached) " >&6
2568else
2569  if test -n "$CC"; then
2570  ac_cv_prog_CC="$CC" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577    for ac_exec_ext in '' $ac_executable_extensions; do
2578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579    ac_cv_prog_CC="${ac_tool_prefix}cc"
2580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581    break 2
2582  fi
2583done
2584  done
2585IFS=$as_save_IFS
2586
2587fi
2588fi
2589CC=$ac_cv_prog_CC
2590if test -n "$CC"; then
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2592$as_echo "$CC" >&6; }
2593else
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595$as_echo "no" >&6; }
2596fi
2597
2598
2599  fi
2600fi
2601if test -z "$CC"; then
2602  # Extract the first word of "cc", so it can be a program name with args.
2603set dummy cc; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if ${ac_cv_prog_CC+:} false; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$CC"; then
2610  ac_cv_prog_CC="$CC" # Let the user override the test.
2611else
2612  ac_prog_rejected=no
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616  IFS=$as_save_IFS
2617  test -z "$as_dir" && as_dir=.
2618    for ac_exec_ext in '' $ac_executable_extensions; do
2619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2621       ac_prog_rejected=yes
2622       continue
2623     fi
2624    ac_cv_prog_CC="cc"
2625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626    break 2
2627  fi
2628done
2629  done
2630IFS=$as_save_IFS
2631
2632if test $ac_prog_rejected = yes; then
2633  # We found a bogon in the path, so make sure we never use it.
2634  set dummy $ac_cv_prog_CC
2635  shift
2636  if test $# != 0; then
2637    # We chose a different compiler from the bogus one.
2638    # However, it has the same basename, so the bogon will be chosen
2639    # first if we set CC to just the basename; use the full file name.
2640    shift
2641    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2642  fi
2643fi
2644fi
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649$as_echo "$CC" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655
2656fi
2657if test -z "$CC"; then
2658  if test -n "$ac_tool_prefix"; then
2659  for ac_prog in cl.exe
2660  do
2661    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2662set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664$as_echo_n "checking for $ac_word... " >&6; }
2665if ${ac_cv_prog_CC+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  if test -n "$CC"; then
2669  ac_cv_prog_CC="$CC" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  test -z "$as_dir" && as_dir=.
2676    for ac_exec_ext in '' $ac_executable_extensions; do
2677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683  done
2684IFS=$as_save_IFS
2685
2686fi
2687fi
2688CC=$ac_cv_prog_CC
2689if test -n "$CC"; then
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2691$as_echo "$CC" >&6; }
2692else
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694$as_echo "no" >&6; }
2695fi
2696
2697
2698    test -n "$CC" && break
2699  done
2700fi
2701if test -z "$CC"; then
2702  ac_ct_CC=$CC
2703  for ac_prog in cl.exe
2704do
2705  # Extract the first word of "$ac_prog", so it can be a program name with args.
2706set dummy $ac_prog; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if ${ac_cv_prog_ac_ct_CC+:} false; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$ac_ct_CC"; then
2713  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722    ac_cv_prog_ac_ct_CC="$ac_prog"
2723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733if test -n "$ac_ct_CC"; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2735$as_echo "$ac_ct_CC" >&6; }
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742  test -n "$ac_ct_CC" && break
2743done
2744
2745  if test "x$ac_ct_CC" = x; then
2746    CC=""
2747  else
2748    case $cross_compiling:$ac_tool_warned in
2749yes:)
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752ac_tool_warned=yes ;;
2753esac
2754    CC=$ac_ct_CC
2755  fi
2756fi
2757
2758fi
2759
2760
2761test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763as_fn_error $? "no acceptable C compiler found in \$PATH
2764See \`config.log' for more details" "$LINENO" 5; }
2765
2766# Provide some information about the compiler.
2767$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2768set X $ac_compile
2769ac_compiler=$2
2770for ac_option in --version -v -V -qversion; do
2771  { { ac_try="$ac_compiler $ac_option >&5"
2772case "(($ac_try" in
2773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774  *) ac_try_echo=$ac_try;;
2775esac
2776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777$as_echo "$ac_try_echo"; } >&5
2778  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2779  ac_status=$?
2780  if test -s conftest.err; then
2781    sed '10a\
2782... rest of stderr output deleted ...
2783         10q' conftest.err >conftest.er1
2784    cat conftest.er1 >&5
2785  fi
2786  rm -f conftest.er1 conftest.err
2787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788  test $ac_status = 0; }
2789done
2790
2791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792/* end confdefs.h.  */
2793
2794int
2795main ()
2796{
2797
2798  ;
2799  return 0;
2800}
2801_ACEOF
2802ac_clean_files_save=$ac_clean_files
2803ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2804# Try to create an executable without -o first, disregard a.out.
2805# It will help us diagnose broken compilers, and finding out an intuition
2806# of exeext.
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2808$as_echo_n "checking whether the C compiler works... " >&6; }
2809ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2810
2811# The possible output files:
2812ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2813
2814ac_rmfiles=
2815for ac_file in $ac_files
2816do
2817  case $ac_file in
2818    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2819    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820  esac
2821done
2822rm -f $ac_rmfiles
2823
2824if { { ac_try="$ac_link_default"
2825case "(($ac_try" in
2826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827  *) ac_try_echo=$ac_try;;
2828esac
2829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830$as_echo "$ac_try_echo"; } >&5
2831  (eval "$ac_link_default") 2>&5
2832  ac_status=$?
2833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834  test $ac_status = 0; }; then :
2835  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2836# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2837# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2838# so that the user can short-circuit this test for compilers unknown to
2839# Autoconf.
2840for ac_file in $ac_files ''
2841do
2842  test -f "$ac_file" || continue
2843  case $ac_file in
2844    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2845	;;
2846    [ab].out )
2847	# We found the default executable, but exeext='' is most
2848	# certainly right.
2849	break;;
2850    *.* )
2851	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2852	then :; else
2853	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854	fi
2855	# We set ac_cv_exeext here because the later test for it is not
2856	# safe: cross compilers may not add the suffix if given an `-o'
2857	# argument, so we may need to know it at that point already.
2858	# Even if this section looks crufty: it has the advantage of
2859	# actually working.
2860	break;;
2861    * )
2862	break;;
2863  esac
2864done
2865test "$ac_cv_exeext" = no && ac_cv_exeext=
2866
2867else
2868  ac_file=''
2869fi
2870if test -z "$ac_file"; then :
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873$as_echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878as_fn_error 77 "C compiler cannot create executables
2879See \`config.log' for more details" "$LINENO" 5; }
2880else
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882$as_echo "yes" >&6; }
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2885$as_echo_n "checking for C compiler default output file name... " >&6; }
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2887$as_echo "$ac_file" >&6; }
2888ac_exeext=$ac_cv_exeext
2889
2890rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2891ac_clean_files=$ac_clean_files_save
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2893$as_echo_n "checking for suffix of executables... " >&6; }
2894if { { ac_try="$ac_link"
2895case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900$as_echo "$ac_try_echo"; } >&5
2901  (eval "$ac_link") 2>&5
2902  ac_status=$?
2903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904  test $ac_status = 0; }; then :
2905  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2906# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2907# work properly (i.e., refer to `conftest.exe'), while it won't with
2908# `rm'.
2909for ac_file in conftest.exe conftest conftest.*; do
2910  test -f "$ac_file" || continue
2911  case $ac_file in
2912    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2913    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2914	  break;;
2915    * ) break;;
2916  esac
2917done
2918else
2919  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2922See \`config.log' for more details" "$LINENO" 5; }
2923fi
2924rm -f conftest conftest$ac_cv_exeext
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2926$as_echo "$ac_cv_exeext" >&6; }
2927
2928rm -f conftest.$ac_ext
2929EXEEXT=$ac_cv_exeext
2930ac_exeext=$EXEEXT
2931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932/* end confdefs.h.  */
2933#include <stdio.h>
2934int
2935main ()
2936{
2937FILE *f = fopen ("conftest.out", "w");
2938 return ferror (f) || fclose (f) != 0;
2939
2940  ;
2941  return 0;
2942}
2943_ACEOF
2944ac_clean_files="$ac_clean_files conftest.out"
2945# Check that the compiler produces executables we can run.  If not, either
2946# the compiler is broken, or we cross compile.
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2948$as_echo_n "checking whether we are cross compiling... " >&6; }
2949if test "$cross_compiling" != yes; then
2950  { { ac_try="$ac_link"
2951case "(($ac_try" in
2952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953  *) ac_try_echo=$ac_try;;
2954esac
2955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956$as_echo "$ac_try_echo"; } >&5
2957  (eval "$ac_link") 2>&5
2958  ac_status=$?
2959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960  test $ac_status = 0; }
2961  if { ac_try='./conftest$ac_cv_exeext'
2962  { { case "(($ac_try" in
2963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964  *) ac_try_echo=$ac_try;;
2965esac
2966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967$as_echo "$ac_try_echo"; } >&5
2968  (eval "$ac_try") 2>&5
2969  ac_status=$?
2970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971  test $ac_status = 0; }; }; then
2972    cross_compiling=no
2973  else
2974    if test "$cross_compiling" = maybe; then
2975	cross_compiling=yes
2976    else
2977	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979as_fn_error $? "cannot run C compiled programs.
2980If you meant to cross compile, use \`--host'.
2981See \`config.log' for more details" "$LINENO" 5; }
2982    fi
2983  fi
2984fi
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2986$as_echo "$cross_compiling" >&6; }
2987
2988rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2989ac_clean_files=$ac_clean_files_save
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2991$as_echo_n "checking for suffix of object files... " >&6; }
2992if ${ac_cv_objext+:} false; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996/* end confdefs.h.  */
2997
2998int
2999main ()
3000{
3001
3002  ;
3003  return 0;
3004}
3005_ACEOF
3006rm -f conftest.o conftest.obj
3007if { { ac_try="$ac_compile"
3008case "(($ac_try" in
3009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010  *) ac_try_echo=$ac_try;;
3011esac
3012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013$as_echo "$ac_try_echo"; } >&5
3014  (eval "$ac_compile") 2>&5
3015  ac_status=$?
3016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017  test $ac_status = 0; }; then :
3018  for ac_file in conftest.o conftest.obj conftest.*; do
3019  test -f "$ac_file" || continue;
3020  case $ac_file in
3021    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3022    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3023       break;;
3024  esac
3025done
3026else
3027  $as_echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032as_fn_error $? "cannot compute suffix of object files: cannot compile
3033See \`config.log' for more details" "$LINENO" 5; }
3034fi
3035rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3038$as_echo "$ac_cv_objext" >&6; }
3039OBJEXT=$ac_cv_objext
3040ac_objext=$OBJEXT
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3042$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3043if ${ac_cv_c_compiler_gnu+:} false; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h.  */
3048
3049int
3050main ()
3051{
3052#ifndef __GNUC__
3053       choke me
3054#endif
3055
3056  ;
3057  return 0;
3058}
3059_ACEOF
3060if ac_fn_c_try_compile "$LINENO"; then :
3061  ac_compiler_gnu=yes
3062else
3063  ac_compiler_gnu=no
3064fi
3065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066ac_cv_c_compiler_gnu=$ac_compiler_gnu
3067
3068fi
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3070$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3071if test $ac_compiler_gnu = yes; then
3072  GCC=yes
3073else
3074  GCC=
3075fi
3076ac_test_CFLAGS=${CFLAGS+set}
3077ac_save_CFLAGS=$CFLAGS
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3079$as_echo_n "checking whether $CC accepts -g... " >&6; }
3080if ${ac_cv_prog_cc_g+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  ac_save_c_werror_flag=$ac_c_werror_flag
3084   ac_c_werror_flag=yes
3085   ac_cv_prog_cc_g=no
3086   CFLAGS="-g"
3087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098if ac_fn_c_try_compile "$LINENO"; then :
3099  ac_cv_prog_cc_g=yes
3100else
3101  CFLAGS=""
3102      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103/* end confdefs.h.  */
3104
3105int
3106main ()
3107{
3108
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113if ac_fn_c_try_compile "$LINENO"; then :
3114
3115else
3116  ac_c_werror_flag=$ac_save_c_werror_flag
3117	 CFLAGS="-g"
3118	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h.  */
3120
3121int
3122main ()
3123{
3124
3125  ;
3126  return 0;
3127}
3128_ACEOF
3129if ac_fn_c_try_compile "$LINENO"; then :
3130  ac_cv_prog_cc_g=yes
3131fi
3132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133fi
3134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135fi
3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137   ac_c_werror_flag=$ac_save_c_werror_flag
3138fi
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3140$as_echo "$ac_cv_prog_cc_g" >&6; }
3141if test "$ac_test_CFLAGS" = set; then
3142  CFLAGS=$ac_save_CFLAGS
3143elif test $ac_cv_prog_cc_g = yes; then
3144  if test "$GCC" = yes; then
3145    CFLAGS="-g -O2"
3146  else
3147    CFLAGS="-g"
3148  fi
3149else
3150  if test "$GCC" = yes; then
3151    CFLAGS="-O2"
3152  else
3153    CFLAGS=
3154  fi
3155fi
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3157$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3158if ${ac_cv_prog_cc_c89+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  ac_cv_prog_cc_c89=no
3162ac_save_CC=$CC
3163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164/* end confdefs.h.  */
3165#include <stdarg.h>
3166#include <stdio.h>
3167struct stat;
3168/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3169struct buf { int x; };
3170FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171static char *e (p, i)
3172     char **p;
3173     int i;
3174{
3175  return p[i];
3176}
3177static char *f (char * (*g) (char **, int), char **p, ...)
3178{
3179  char *s;
3180  va_list v;
3181  va_start (v,p);
3182  s = g (p, va_arg (v,int));
3183  va_end (v);
3184  return s;
3185}
3186
3187/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3188   function prototypes and stuff, but not '\xHH' hex character constants.
3189   These don't provoke an error unfortunately, instead are silently treated
3190   as 'x'.  The following induces an error, until -std is added to get
3191   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3192   array size at least.  It's necessary to write '\x00'==0 to get something
3193   that's true only with -std.  */
3194int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3195
3196/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3197   inside strings and character constants.  */
3198#define FOO(x) 'x'
3199int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3200
3201int test (int i, double x);
3202struct s1 {int (*f) (int a);};
3203struct s2 {int (*f) (double a);};
3204int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3205int argc;
3206char **argv;
3207int
3208main ()
3209{
3210return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3211  ;
3212  return 0;
3213}
3214_ACEOF
3215for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3216	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3217do
3218  CC="$ac_save_CC $ac_arg"
3219  if ac_fn_c_try_compile "$LINENO"; then :
3220  ac_cv_prog_cc_c89=$ac_arg
3221fi
3222rm -f core conftest.err conftest.$ac_objext
3223  test "x$ac_cv_prog_cc_c89" != "xno" && break
3224done
3225rm -f conftest.$ac_ext
3226CC=$ac_save_CC
3227
3228fi
3229# AC_CACHE_VAL
3230case "x$ac_cv_prog_cc_c89" in
3231  x)
3232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3233$as_echo "none needed" >&6; } ;;
3234  xno)
3235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3236$as_echo "unsupported" >&6; } ;;
3237  *)
3238    CC="$CC $ac_cv_prog_cc_c89"
3239    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3240$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3241esac
3242if test "x$ac_cv_prog_cc_c89" != xno; then :
3243
3244fi
3245
3246ac_ext=c
3247ac_cpp='$CPP $CPPFLAGS'
3248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251
3252
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3254$as_echo_n "checking for library containing strerror... " >&6; }
3255if ${ac_cv_search_strerror+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  ac_func_search_save_LIBS=$LIBS
3259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h.  */
3261
3262/* Override any GCC internal prototype to avoid an error.
3263   Use char because int might match the return type of a GCC
3264   builtin and then its argument prototype would still apply.  */
3265#ifdef __cplusplus
3266extern "C"
3267#endif
3268char strerror ();
3269int
3270main ()
3271{
3272return strerror ();
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277for ac_lib in '' cposix; do
3278  if test -z "$ac_lib"; then
3279    ac_res="none required"
3280  else
3281    ac_res=-l$ac_lib
3282    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3283  fi
3284  if ac_fn_c_try_link "$LINENO"; then :
3285  ac_cv_search_strerror=$ac_res
3286fi
3287rm -f core conftest.err conftest.$ac_objext \
3288    conftest$ac_exeext
3289  if ${ac_cv_search_strerror+:} false; then :
3290  break
3291fi
3292done
3293if ${ac_cv_search_strerror+:} false; then :
3294
3295else
3296  ac_cv_search_strerror=no
3297fi
3298rm conftest.$ac_ext
3299LIBS=$ac_func_search_save_LIBS
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3302$as_echo "$ac_cv_search_strerror" >&6; }
3303ac_res=$ac_cv_search_strerror
3304if test "$ac_res" != no; then :
3305  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3306
3307fi
3308
3309   case $ac_cv_prog_cc_stdc in #(
3310  no) :
3311    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3312  *) :
3313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3314$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3315if ${ac_cv_prog_cc_c99+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  ac_cv_prog_cc_c99=no
3319ac_save_CC=$CC
3320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h.  */
3322#include <stdarg.h>
3323#include <stdbool.h>
3324#include <stdlib.h>
3325#include <wchar.h>
3326#include <stdio.h>
3327
3328// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3329#define debug(...) fprintf (stderr, __VA_ARGS__)
3330#define showlist(...) puts (#__VA_ARGS__)
3331#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3332static void
3333test_varargs_macros (void)
3334{
3335  int x = 1234;
3336  int y = 5678;
3337  debug ("Flag");
3338  debug ("X = %d\n", x);
3339  showlist (The first, second, and third items.);
3340  report (x>y, "x is %d but y is %d", x, y);
3341}
3342
3343// Check long long types.
3344#define BIG64 18446744073709551615ull
3345#define BIG32 4294967295ul
3346#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3347#if !BIG_OK
3348  your preprocessor is broken;
3349#endif
3350#if BIG_OK
3351#else
3352  your preprocessor is broken;
3353#endif
3354static long long int bignum = -9223372036854775807LL;
3355static unsigned long long int ubignum = BIG64;
3356
3357struct incomplete_array
3358{
3359  int datasize;
3360  double data[];
3361};
3362
3363struct named_init {
3364  int number;
3365  const wchar_t *name;
3366  double average;
3367};
3368
3369typedef const char *ccp;
3370
3371static inline int
3372test_restrict (ccp restrict text)
3373{
3374  // See if C++-style comments work.
3375  // Iterate through items via the restricted pointer.
3376  // Also check for declarations in for loops.
3377  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3378    continue;
3379  return 0;
3380}
3381
3382// Check varargs and va_copy.
3383static void
3384test_varargs (const char *format, ...)
3385{
3386  va_list args;
3387  va_start (args, format);
3388  va_list args_copy;
3389  va_copy (args_copy, args);
3390
3391  const char *str;
3392  int number;
3393  float fnumber;
3394
3395  while (*format)
3396    {
3397      switch (*format++)
3398	{
3399	case 's': // string
3400	  str = va_arg (args_copy, const char *);
3401	  break;
3402	case 'd': // int
3403	  number = va_arg (args_copy, int);
3404	  break;
3405	case 'f': // float
3406	  fnumber = va_arg (args_copy, double);
3407	  break;
3408	default:
3409	  break;
3410	}
3411    }
3412  va_end (args_copy);
3413  va_end (args);
3414}
3415
3416int
3417main ()
3418{
3419
3420  // Check bool.
3421  _Bool success = false;
3422
3423  // Check restrict.
3424  if (test_restrict ("String literal") == 0)
3425    success = true;
3426  char *restrict newvar = "Another string";
3427
3428  // Check varargs.
3429  test_varargs ("s, d' f .", "string", 65, 34.234);
3430  test_varargs_macros ();
3431
3432  // Check flexible array members.
3433  struct incomplete_array *ia =
3434    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3435  ia->datasize = 10;
3436  for (int i = 0; i < ia->datasize; ++i)
3437    ia->data[i] = i * 1.234;
3438
3439  // Check named initializers.
3440  struct named_init ni = {
3441    .number = 34,
3442    .name = L"Test wide string",
3443    .average = 543.34343,
3444  };
3445
3446  ni.number = 58;
3447
3448  int dynamic_array[ni.number];
3449  dynamic_array[ni.number - 1] = 543;
3450
3451  // work around unused variable warnings
3452  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3453	  || dynamic_array[ni.number - 1] != 543);
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3460do
3461  CC="$ac_save_CC $ac_arg"
3462  if ac_fn_c_try_compile "$LINENO"; then :
3463  ac_cv_prog_cc_c99=$ac_arg
3464fi
3465rm -f core conftest.err conftest.$ac_objext
3466  test "x$ac_cv_prog_cc_c99" != "xno" && break
3467done
3468rm -f conftest.$ac_ext
3469CC=$ac_save_CC
3470
3471fi
3472# AC_CACHE_VAL
3473case "x$ac_cv_prog_cc_c99" in
3474  x)
3475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3476$as_echo "none needed" >&6; } ;;
3477  xno)
3478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3479$as_echo "unsupported" >&6; } ;;
3480  *)
3481    CC="$CC $ac_cv_prog_cc_c99"
3482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3483$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3484esac
3485if test "x$ac_cv_prog_cc_c99" != xno; then :
3486  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3487else
3488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3489$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3490if ${ac_cv_prog_cc_c89+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  ac_cv_prog_cc_c89=no
3494ac_save_CC=$CC
3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497#include <stdarg.h>
3498#include <stdio.h>
3499struct stat;
3500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3501struct buf { int x; };
3502FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503static char *e (p, i)
3504     char **p;
3505     int i;
3506{
3507  return p[i];
3508}
3509static char *f (char * (*g) (char **, int), char **p, ...)
3510{
3511  char *s;
3512  va_list v;
3513  va_start (v,p);
3514  s = g (p, va_arg (v,int));
3515  va_end (v);
3516  return s;
3517}
3518
3519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3520   function prototypes and stuff, but not '\xHH' hex character constants.
3521   These don't provoke an error unfortunately, instead are silently treated
3522   as 'x'.  The following induces an error, until -std is added to get
3523   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3524   array size at least.  It's necessary to write '\x00'==0 to get something
3525   that's true only with -std.  */
3526int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527
3528/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3529   inside strings and character constants.  */
3530#define FOO(x) 'x'
3531int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3532
3533int test (int i, double x);
3534struct s1 {int (*f) (int a);};
3535struct s2 {int (*f) (double a);};
3536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3537int argc;
3538char **argv;
3539int
3540main ()
3541{
3542return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3548	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3549do
3550  CC="$ac_save_CC $ac_arg"
3551  if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_cv_prog_cc_c89=$ac_arg
3553fi
3554rm -f core conftest.err conftest.$ac_objext
3555  test "x$ac_cv_prog_cc_c89" != "xno" && break
3556done
3557rm -f conftest.$ac_ext
3558CC=$ac_save_CC
3559
3560fi
3561# AC_CACHE_VAL
3562case "x$ac_cv_prog_cc_c89" in
3563  x)
3564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565$as_echo "none needed" >&6; } ;;
3566  xno)
3567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568$as_echo "unsupported" >&6; } ;;
3569  *)
3570    CC="$CC $ac_cv_prog_cc_c89"
3571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3572$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573esac
3574if test "x$ac_cv_prog_cc_c89" != xno; then :
3575  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3576else
3577  ac_cv_prog_cc_stdc=no
3578fi
3579
3580fi
3581 ;;
3582esac
3583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3584$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3585  if ${ac_cv_prog_cc_stdc+:} false; then :
3586  $as_echo_n "(cached) " >&6
3587fi
3588
3589  case $ac_cv_prog_cc_stdc in #(
3590  no) :
3591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3592$as_echo "unsupported" >&6; } ;; #(
3593  '') :
3594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595$as_echo "none needed" >&6; } ;; #(
3596  *) :
3597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3598$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3599esac
3600
3601#if test -z "$CXX" -a "$CC" = "gcc"; then
3602#  CXX="gcc"
3603#fi
3604ac_ext=cpp
3605ac_cpp='$CXXCPP $CPPFLAGS'
3606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3609if test -z "$CXX"; then
3610  if test -n "$CCC"; then
3611    CXX=$CCC
3612  else
3613    if test -n "$ac_tool_prefix"; then
3614  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3615  do
3616    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619$as_echo_n "checking for $ac_word... " >&6; }
3620if ${ac_cv_prog_CXX+:} false; then :
3621  $as_echo_n "(cached) " >&6
3622else
3623  if test -n "$CXX"; then
3624  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629  IFS=$as_save_IFS
3630  test -z "$as_dir" && as_dir=.
3631    for ac_exec_ext in '' $ac_executable_extensions; do
3632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635    break 2
3636  fi
3637done
3638  done
3639IFS=$as_save_IFS
3640
3641fi
3642fi
3643CXX=$ac_cv_prog_CXX
3644if test -n "$CXX"; then
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3646$as_echo "$CXX" >&6; }
3647else
3648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
3650fi
3651
3652
3653    test -n "$CXX" && break
3654  done
3655fi
3656if test -z "$CXX"; then
3657  ac_ct_CXX=$CXX
3658  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3659do
3660  # Extract the first word of "$ac_prog", so it can be a program name with args.
3661set dummy $ac_prog; ac_word=$2
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663$as_echo_n "checking for $ac_word... " >&6; }
3664if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3665  $as_echo_n "(cached) " >&6
3666else
3667  if test -n "$ac_ct_CXX"; then
3668  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673  IFS=$as_save_IFS
3674  test -z "$as_dir" && as_dir=.
3675    for ac_exec_ext in '' $ac_executable_extensions; do
3676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677    ac_cv_prog_ac_ct_CXX="$ac_prog"
3678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679    break 2
3680  fi
3681done
3682  done
3683IFS=$as_save_IFS
3684
3685fi
3686fi
3687ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3688if test -n "$ac_ct_CXX"; then
3689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3690$as_echo "$ac_ct_CXX" >&6; }
3691else
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
3694fi
3695
3696
3697  test -n "$ac_ct_CXX" && break
3698done
3699
3700  if test "x$ac_ct_CXX" = x; then
3701    CXX="g++"
3702  else
3703    case $cross_compiling:$ac_tool_warned in
3704yes:)
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707ac_tool_warned=yes ;;
3708esac
3709    CXX=$ac_ct_CXX
3710  fi
3711fi
3712
3713  fi
3714fi
3715# Provide some information about the compiler.
3716$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3717set X $ac_compile
3718ac_compiler=$2
3719for ac_option in --version -v -V -qversion; do
3720  { { ac_try="$ac_compiler $ac_option >&5"
3721case "(($ac_try" in
3722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723  *) ac_try_echo=$ac_try;;
3724esac
3725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726$as_echo "$ac_try_echo"; } >&5
3727  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3728  ac_status=$?
3729  if test -s conftest.err; then
3730    sed '10a\
3731... rest of stderr output deleted ...
3732         10q' conftest.err >conftest.er1
3733    cat conftest.er1 >&5
3734  fi
3735  rm -f conftest.er1 conftest.err
3736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737  test $ac_status = 0; }
3738done
3739
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3741$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3742if ${ac_cv_cxx_compiler_gnu+:} false; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h.  */
3747
3748int
3749main ()
3750{
3751#ifndef __GNUC__
3752       choke me
3753#endif
3754
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759if ac_fn_cxx_try_compile "$LINENO"; then :
3760  ac_compiler_gnu=yes
3761else
3762  ac_compiler_gnu=no
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3766
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3769$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3770if test $ac_compiler_gnu = yes; then
3771  GXX=yes
3772else
3773  GXX=
3774fi
3775ac_test_CXXFLAGS=${CXXFLAGS+set}
3776ac_save_CXXFLAGS=$CXXFLAGS
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3778$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3779if ${ac_cv_prog_cxx_g+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3783   ac_cxx_werror_flag=yes
3784   ac_cv_prog_cxx_g=no
3785   CXXFLAGS="-g"
3786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h.  */
3788
3789int
3790main ()
3791{
3792
3793  ;
3794  return 0;
3795}
3796_ACEOF
3797if ac_fn_cxx_try_compile "$LINENO"; then :
3798  ac_cv_prog_cxx_g=yes
3799else
3800  CXXFLAGS=""
3801      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812if ac_fn_cxx_try_compile "$LINENO"; then :
3813
3814else
3815  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3816	 CXXFLAGS="-g"
3817	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819
3820int
3821main ()
3822{
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828if ac_fn_cxx_try_compile "$LINENO"; then :
3829  ac_cv_prog_cxx_g=yes
3830fi
3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3839$as_echo "$ac_cv_prog_cxx_g" >&6; }
3840if test "$ac_test_CXXFLAGS" = set; then
3841  CXXFLAGS=$ac_save_CXXFLAGS
3842elif test $ac_cv_prog_cxx_g = yes; then
3843  if test "$GXX" = yes; then
3844    CXXFLAGS="-g -O2"
3845  else
3846    CXXFLAGS="-g"
3847  fi
3848else
3849  if test "$GXX" = yes; then
3850    CXXFLAGS="-O2"
3851  else
3852    CXXFLAGS=
3853  fi
3854fi
3855ac_ext=c
3856ac_cpp='$CPP $CPPFLAGS'
3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860
3861ac_aux_dir=
3862for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3863  if test -f "$ac_dir/install-sh"; then
3864    ac_aux_dir=$ac_dir
3865    ac_install_sh="$ac_aux_dir/install-sh -c"
3866    break
3867  elif test -f "$ac_dir/install.sh"; then
3868    ac_aux_dir=$ac_dir
3869    ac_install_sh="$ac_aux_dir/install.sh -c"
3870    break
3871  elif test -f "$ac_dir/shtool"; then
3872    ac_aux_dir=$ac_dir
3873    ac_install_sh="$ac_aux_dir/shtool install -c"
3874    break
3875  fi
3876done
3877if test -z "$ac_aux_dir"; then
3878  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3879fi
3880
3881# These three variables are undocumented and unsupported,
3882# and are intended to be withdrawn in a future Autoconf release.
3883# They can cause serious problems if a builder's source tree is in a directory
3884# whose full name contains unusual characters.
3885ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3886ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3887ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3888
3889
3890# Find a good install program.  We prefer a C program (faster),
3891# so one script is as good as another.  But avoid the broken or
3892# incompatible versions:
3893# SysV /etc/install, /usr/sbin/install
3894# SunOS /usr/etc/install
3895# IRIX /sbin/install
3896# AIX /bin/install
3897# AmigaOS /C/install, which installs bootblocks on floppy discs
3898# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901# OS/2's system install, which has a completely different semantic
3902# ./install, which can be erroneously created by make from ./install.sh.
3903# Reject install programs that cannot install multiple files.
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3905$as_echo_n "checking for a BSD-compatible install... " >&6; }
3906if test -z "$INSTALL"; then
3907if ${ac_cv_path_install+:} false; then :
3908  $as_echo_n "(cached) " >&6
3909else
3910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915    # Account for people who put trailing slashes in PATH elements.
3916case $as_dir/ in #((
3917  ./ | .// | /[cC]/* | \
3918  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3919  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3920  /usr/ucb/* ) ;;
3921  *)
3922    # OSF1 and SCO ODT 3.0 have their own names for install.
3923    # Don't use installbsd from OSF since it installs stuff as root
3924    # by default.
3925    for ac_prog in ginstall scoinst install; do
3926      for ac_exec_ext in '' $ac_executable_extensions; do
3927	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3928	  if test $ac_prog = install &&
3929	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930	    # AIX install.  It has an incompatible calling convention.
3931	    :
3932	  elif test $ac_prog = install &&
3933	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934	    # program-specific install script used by HP pwplus--don't use.
3935	    :
3936	  else
3937	    rm -rf conftest.one conftest.two conftest.dir
3938	    echo one > conftest.one
3939	    echo two > conftest.two
3940	    mkdir conftest.dir
3941	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3942	      test -s conftest.one && test -s conftest.two &&
3943	      test -s conftest.dir/conftest.one &&
3944	      test -s conftest.dir/conftest.two
3945	    then
3946	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3947	      break 3
3948	    fi
3949	  fi
3950	fi
3951      done
3952    done
3953    ;;
3954esac
3955
3956  done
3957IFS=$as_save_IFS
3958
3959rm -rf conftest.one conftest.two conftest.dir
3960
3961fi
3962  if test "${ac_cv_path_install+set}" = set; then
3963    INSTALL=$ac_cv_path_install
3964  else
3965    # As a last resort, use the slow shell script.  Don't cache a
3966    # value for INSTALL within a source directory, because that will
3967    # break other packages using the cache if that directory is
3968    # removed, or if the value is a relative name.
3969    INSTALL=$ac_install_sh
3970  fi
3971fi
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3973$as_echo "$INSTALL" >&6; }
3974
3975# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976# It thinks the first close brace ends the variable substitution.
3977test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3978
3979test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3980
3981test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3982
3983if test -n "$ac_tool_prefix"; then
3984  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3985set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987$as_echo_n "checking for $ac_word... " >&6; }
3988if ${ac_cv_prog_RANLIB+:} false; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  if test -n "$RANLIB"; then
3992  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3993else
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997  IFS=$as_save_IFS
3998  test -z "$as_dir" && as_dir=.
3999    for ac_exec_ext in '' $ac_executable_extensions; do
4000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003    break 2
4004  fi
4005done
4006  done
4007IFS=$as_save_IFS
4008
4009fi
4010fi
4011RANLIB=$ac_cv_prog_RANLIB
4012if test -n "$RANLIB"; then
4013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4014$as_echo "$RANLIB" >&6; }
4015else
4016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
4018fi
4019
4020
4021fi
4022if test -z "$ac_cv_prog_RANLIB"; then
4023  ac_ct_RANLIB=$RANLIB
4024  # Extract the first word of "ranlib", so it can be a program name with args.
4025set dummy ranlib; ac_word=$2
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
4028if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4029  $as_echo_n "(cached) " >&6
4030else
4031  if test -n "$ac_ct_RANLIB"; then
4032  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4033else
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037  IFS=$as_save_IFS
4038  test -z "$as_dir" && as_dir=.
4039    for ac_exec_ext in '' $ac_executable_extensions; do
4040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041    ac_cv_prog_ac_ct_RANLIB="ranlib"
4042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043    break 2
4044  fi
4045done
4046  done
4047IFS=$as_save_IFS
4048
4049fi
4050fi
4051ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052if test -n "$ac_ct_RANLIB"; then
4053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4054$as_echo "$ac_ct_RANLIB" >&6; }
4055else
4056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057$as_echo "no" >&6; }
4058fi
4059
4060  if test "x$ac_ct_RANLIB" = x; then
4061    RANLIB=":"
4062  else
4063    case $cross_compiling:$ac_tool_warned in
4064yes:)
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067ac_tool_warned=yes ;;
4068esac
4069    RANLIB=$ac_ct_RANLIB
4070  fi
4071else
4072  RANLIB="$ac_cv_prog_RANLIB"
4073fi
4074
4075
4076EXE=""
4077LIBPREFIX="lib"
4078AR="ar rc"
4079UP_DIR=""
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS/2 (with EMX)" >&5
4082$as_echo_n "checking for OS/2 (with EMX)... " >&6; }
4083if ${xpdf_cv_sys_os2+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088
4089int
4090main ()
4091{
4092__EMX__
4093  ;
4094  return 0;
4095}
4096_ACEOF
4097if ac_fn_c_try_compile "$LINENO"; then :
4098  xpdf_cv_sys_os2=yes
4099else
4100  xpdf_cv_sys_os2=no
4101fi
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xpdf_cv_sys_os2" >&5
4105$as_echo "$xpdf_cv_sys_os2" >&6; }
4106if test "$xpdf_cv_sys_os2" = yes; then
4107  EXE=".exe"
4108  LIBPREFIX=""
4109  AR="ar -rc"
4110fi
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOS (with DJGPP)" >&5
4113$as_echo_n "checking for DOS (with DJGPP)... " >&6; }
4114if ${xpdf_cv_sys_dos+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120int
4121main ()
4122{
4123__DJGPP__
4124  ;
4125  return 0;
4126}
4127_ACEOF
4128if ac_fn_c_try_compile "$LINENO"; then :
4129  xpdf_cv_sys_dos=yes
4130else
4131  xpdf_cv_sys_dos=no
4132fi
4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xpdf_cv_sys_dos" >&5
4136$as_echo "$xpdf_cv_sys_dos" >&6; }
4137if test "$xpdf_cv_sys_dos" = yes; then
4138  EXE=".exe"
4139  LIBPREFIX="lib"
4140  AR="ar -rc"
4141  UP_DIR="../"
4142fi
4143
4144
4145
4146
4147
4148
4149ac_ext=c
4150ac_cpp='$CPP $CPPFLAGS'
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4155$as_echo_n "checking how to run the C preprocessor... " >&6; }
4156# On Suns, sometimes $CPP names a directory.
4157if test -n "$CPP" && test -d "$CPP"; then
4158  CPP=
4159fi
4160if test -z "$CPP"; then
4161  if ${ac_cv_prog_CPP+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164      # Double quotes because CPP needs to be expanded
4165    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4166    do
4167      ac_preproc_ok=false
4168for ac_c_preproc_warn_flag in '' yes
4169do
4170  # Use a header file that comes with gcc, so configuring glibc
4171  # with a fresh cross-compiler works.
4172  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173  # <limits.h> exists even on freestanding compilers.
4174  # On the NeXT, cc -E runs the code through the compiler's parser,
4175  # not just through cpp. "Syntax error" is here to catch this case.
4176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178#ifdef __STDC__
4179# include <limits.h>
4180#else
4181# include <assert.h>
4182#endif
4183		     Syntax error
4184_ACEOF
4185if ac_fn_c_try_cpp "$LINENO"; then :
4186
4187else
4188  # Broken: fails on valid input.
4189continue
4190fi
4191rm -f conftest.err conftest.i conftest.$ac_ext
4192
4193  # OK, works on sane cases.  Now check whether nonexistent headers
4194  # can be detected and how.
4195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h.  */
4197#include <ac_nonexistent.h>
4198_ACEOF
4199if ac_fn_c_try_cpp "$LINENO"; then :
4200  # Broken: success on invalid input.
4201continue
4202else
4203  # Passes both tests.
4204ac_preproc_ok=:
4205break
4206fi
4207rm -f conftest.err conftest.i conftest.$ac_ext
4208
4209done
4210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211rm -f conftest.i conftest.err conftest.$ac_ext
4212if $ac_preproc_ok; then :
4213  break
4214fi
4215
4216    done
4217    ac_cv_prog_CPP=$CPP
4218
4219fi
4220  CPP=$ac_cv_prog_CPP
4221else
4222  ac_cv_prog_CPP=$CPP
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4225$as_echo "$CPP" >&6; }
4226ac_preproc_ok=false
4227for ac_c_preproc_warn_flag in '' yes
4228do
4229  # Use a header file that comes with gcc, so configuring glibc
4230  # with a fresh cross-compiler works.
4231  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232  # <limits.h> exists even on freestanding compilers.
4233  # On the NeXT, cc -E runs the code through the compiler's parser,
4234  # not just through cpp. "Syntax error" is here to catch this case.
4235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236/* end confdefs.h.  */
4237#ifdef __STDC__
4238# include <limits.h>
4239#else
4240# include <assert.h>
4241#endif
4242		     Syntax error
4243_ACEOF
4244if ac_fn_c_try_cpp "$LINENO"; then :
4245
4246else
4247  # Broken: fails on valid input.
4248continue
4249fi
4250rm -f conftest.err conftest.i conftest.$ac_ext
4251
4252  # OK, works on sane cases.  Now check whether nonexistent headers
4253  # can be detected and how.
4254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h.  */
4256#include <ac_nonexistent.h>
4257_ACEOF
4258if ac_fn_c_try_cpp "$LINENO"; then :
4259  # Broken: success on invalid input.
4260continue
4261else
4262  # Passes both tests.
4263ac_preproc_ok=:
4264break
4265fi
4266rm -f conftest.err conftest.i conftest.$ac_ext
4267
4268done
4269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270rm -f conftest.i conftest.err conftest.$ac_ext
4271if $ac_preproc_ok; then :
4272
4273else
4274  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4276as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4277See \`config.log' for more details" "$LINENO" 5; }
4278fi
4279
4280ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
4286
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4288$as_echo_n "checking for X... " >&6; }
4289
4290
4291# Check whether --with-x was given.
4292if test "${with_x+set}" = set; then :
4293  withval=$with_x;
4294fi
4295
4296# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4297if test "x$with_x" = xno; then
4298  # The user explicitly disabled X.
4299  have_x=disabled
4300else
4301  case $x_includes,$x_libraries in #(
4302    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4303    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306  # One or both of the vars are not set, and there is no cached value.
4307ac_x_includes=no ac_x_libraries=no
4308rm -f -r conftest.dir
4309if mkdir conftest.dir; then
4310  cd conftest.dir
4311  cat >Imakefile <<'_ACEOF'
4312incroot:
4313	@echo incroot='${INCROOT}'
4314usrlibdir:
4315	@echo usrlibdir='${USRLIBDIR}'
4316libdir:
4317	@echo libdir='${LIBDIR}'
4318_ACEOF
4319  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4320    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4321    for ac_var in incroot usrlibdir libdir; do
4322      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4323    done
4324    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4325    for ac_extension in a so sl dylib la dll; do
4326      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4327	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4328	ac_im_usrlibdir=$ac_im_libdir; break
4329      fi
4330    done
4331    # Screen out bogus values from the imake configuration.  They are
4332    # bogus both because they are the default anyway, and because
4333    # using them would break gcc on systems where it needs fixed includes.
4334    case $ac_im_incroot in
4335	/usr/include) ac_x_includes= ;;
4336	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4337    esac
4338    case $ac_im_usrlibdir in
4339	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
4340	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4341    esac
4342  fi
4343  cd ..
4344  rm -f -r conftest.dir
4345fi
4346
4347# Standard set of common directories for X headers.
4348# Check X11 before X11Rn because it is often a symlink to the current release.
4349ac_x_header_dirs='
4350/usr/X11/include
4351/usr/X11R7/include
4352/usr/X11R6/include
4353/usr/X11R5/include
4354/usr/X11R4/include
4355
4356/usr/include/X11
4357/usr/include/X11R7
4358/usr/include/X11R6
4359/usr/include/X11R5
4360/usr/include/X11R4
4361
4362/usr/local/X11/include
4363/usr/local/X11R7/include
4364/usr/local/X11R6/include
4365/usr/local/X11R5/include
4366/usr/local/X11R4/include
4367
4368/usr/local/include/X11
4369/usr/local/include/X11R7
4370/usr/local/include/X11R6
4371/usr/local/include/X11R5
4372/usr/local/include/X11R4
4373
4374/usr/X386/include
4375/usr/x386/include
4376/usr/XFree86/include/X11
4377
4378/usr/include
4379/usr/local/include
4380/usr/unsupported/include
4381/usr/athena/include
4382/usr/local/x11r5/include
4383/usr/lpp/Xamples/include
4384
4385/usr/openwin/include
4386/usr/openwin/share/include'
4387
4388if test "$ac_x_includes" = no; then
4389  # Guess where to find include files, by looking for Xlib.h.
4390  # First, try using that file with no special directory specified.
4391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h.  */
4393#include <X11/Xlib.h>
4394_ACEOF
4395if ac_fn_c_try_cpp "$LINENO"; then :
4396  # We can compile using X headers with no special include directory.
4397ac_x_includes=
4398else
4399  for ac_dir in $ac_x_header_dirs; do
4400  if test -r "$ac_dir/X11/Xlib.h"; then
4401    ac_x_includes=$ac_dir
4402    break
4403  fi
4404done
4405fi
4406rm -f conftest.err conftest.i conftest.$ac_ext
4407fi # $ac_x_includes = no
4408
4409if test "$ac_x_libraries" = no; then
4410  # Check for the libraries.
4411  # See if we find them without any special options.
4412  # Don't add to $LIBS permanently.
4413  ac_save_LIBS=$LIBS
4414  LIBS="-lX11 $LIBS"
4415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h.  */
4417#include <X11/Xlib.h>
4418int
4419main ()
4420{
4421XrmInitialize ()
4422  ;
4423  return 0;
4424}
4425_ACEOF
4426if ac_fn_c_try_link "$LINENO"; then :
4427  LIBS=$ac_save_LIBS
4428# We can link X programs with no special library path.
4429ac_x_libraries=
4430else
4431  LIBS=$ac_save_LIBS
4432for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4433do
4434  # Don't even attempt the hair of trying to link an X program!
4435  for ac_extension in a so sl dylib la dll; do
4436    if test -r "$ac_dir/libX11.$ac_extension"; then
4437      ac_x_libraries=$ac_dir
4438      break 2
4439    fi
4440  done
4441done
4442fi
4443rm -f core conftest.err conftest.$ac_objext \
4444    conftest$ac_exeext conftest.$ac_ext
4445fi # $ac_x_libraries = no
4446
4447case $ac_x_includes,$ac_x_libraries in #(
4448  no,* | *,no | *\'*)
4449    # Didn't find X, or a directory has "'" in its name.
4450    ac_cv_have_x="have_x=no";; #(
4451  *)
4452    # Record where we found X for the cache.
4453    ac_cv_have_x="have_x=yes\
4454	ac_x_includes='$ac_x_includes'\
4455	ac_x_libraries='$ac_x_libraries'"
4456esac
4457fi
4458;; #(
4459    *) have_x=yes;;
4460  esac
4461  eval "$ac_cv_have_x"
4462fi # $with_x != no
4463
4464if test "$have_x" != yes; then
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4466$as_echo "$have_x" >&6; }
4467  no_x=yes
4468else
4469  # If each of the values was on the command line, it overrides each guess.
4470  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4471  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4472  # Update the cache value to reflect the command line values.
4473  ac_cv_have_x="have_x=yes\
4474	ac_x_includes='$x_includes'\
4475	ac_x_libraries='$x_libraries'"
4476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4477$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4478fi
4479
4480if test "$no_x" = yes; then
4481  # Not all programs may use this symbol, but it does not hurt to define it.
4482
4483$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4484
4485  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4486else
4487  if test -n "$x_includes"; then
4488    X_CFLAGS="$X_CFLAGS -I$x_includes"
4489  fi
4490
4491  # It would also be nice to do this for all -L options, not just this one.
4492  if test -n "$x_libraries"; then
4493    X_LIBS="$X_LIBS -L$x_libraries"
4494    # For Solaris; some versions of Sun CC require a space after -R and
4495    # others require no space.  Words are not sufficient . . . .
4496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4497$as_echo_n "checking whether -R must be followed by a space... " >&6; }
4498    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4499    ac_xsave_c_werror_flag=$ac_c_werror_flag
4500    ac_c_werror_flag=yes
4501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h.  */
4503
4504int
4505main ()
4506{
4507
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512if ac_fn_c_try_link "$LINENO"; then :
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514$as_echo "no" >&6; }
4515       X_LIBS="$X_LIBS -R$x_libraries"
4516else
4517  LIBS="$ac_xsave_LIBS -R $x_libraries"
4518       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h.  */
4520
4521int
4522main ()
4523{
4524
4525  ;
4526  return 0;
4527}
4528_ACEOF
4529if ac_fn_c_try_link "$LINENO"; then :
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531$as_echo "yes" >&6; }
4532	  X_LIBS="$X_LIBS -R $x_libraries"
4533else
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4535$as_echo "neither works" >&6; }
4536fi
4537rm -f core conftest.err conftest.$ac_objext \
4538    conftest$ac_exeext conftest.$ac_ext
4539fi
4540rm -f core conftest.err conftest.$ac_objext \
4541    conftest$ac_exeext conftest.$ac_ext
4542    ac_c_werror_flag=$ac_xsave_c_werror_flag
4543    LIBS=$ac_xsave_LIBS
4544  fi
4545
4546  # Check for system-dependent libraries X programs must link with.
4547  # Do this before checking for the system-independent R6 libraries
4548  # (-lICE), since we may need -lsocket or whatever for X linking.
4549
4550  if test "$ISC" = yes; then
4551    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4552  else
4553    # Martyn Johnson says this is needed for Ultrix, if the X
4554    # libraries were built with DECnet support.  And Karl Berry says
4555    # the Alpha needs dnet_stub (dnet does not exist).
4556    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h.  */
4559
4560/* Override any GCC internal prototype to avoid an error.
4561   Use char because int might match the return type of a GCC
4562   builtin and then its argument prototype would still apply.  */
4563#ifdef __cplusplus
4564extern "C"
4565#endif
4566char XOpenDisplay ();
4567int
4568main ()
4569{
4570return XOpenDisplay ();
4571  ;
4572  return 0;
4573}
4574_ACEOF
4575if ac_fn_c_try_link "$LINENO"; then :
4576
4577else
4578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4579$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4580if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583  ac_check_lib_save_LIBS=$LIBS
4584LIBS="-ldnet  $LIBS"
4585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h.  */
4587
4588/* Override any GCC internal prototype to avoid an error.
4589   Use char because int might match the return type of a GCC
4590   builtin and then its argument prototype would still apply.  */
4591#ifdef __cplusplus
4592extern "C"
4593#endif
4594char dnet_ntoa ();
4595int
4596main ()
4597{
4598return dnet_ntoa ();
4599  ;
4600  return 0;
4601}
4602_ACEOF
4603if ac_fn_c_try_link "$LINENO"; then :
4604  ac_cv_lib_dnet_dnet_ntoa=yes
4605else
4606  ac_cv_lib_dnet_dnet_ntoa=no
4607fi
4608rm -f core conftest.err conftest.$ac_objext \
4609    conftest$ac_exeext conftest.$ac_ext
4610LIBS=$ac_check_lib_save_LIBS
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4613$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4614if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4615  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4616fi
4617
4618    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4620$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4621if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4622  $as_echo_n "(cached) " >&6
4623else
4624  ac_check_lib_save_LIBS=$LIBS
4625LIBS="-ldnet_stub  $LIBS"
4626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h.  */
4628
4629/* Override any GCC internal prototype to avoid an error.
4630   Use char because int might match the return type of a GCC
4631   builtin and then its argument prototype would still apply.  */
4632#ifdef __cplusplus
4633extern "C"
4634#endif
4635char dnet_ntoa ();
4636int
4637main ()
4638{
4639return dnet_ntoa ();
4640  ;
4641  return 0;
4642}
4643_ACEOF
4644if ac_fn_c_try_link "$LINENO"; then :
4645  ac_cv_lib_dnet_stub_dnet_ntoa=yes
4646else
4647  ac_cv_lib_dnet_stub_dnet_ntoa=no
4648fi
4649rm -f core conftest.err conftest.$ac_objext \
4650    conftest$ac_exeext conftest.$ac_ext
4651LIBS=$ac_check_lib_save_LIBS
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4654$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4655if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4656  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4657fi
4658
4659    fi
4660fi
4661rm -f core conftest.err conftest.$ac_objext \
4662    conftest$ac_exeext conftest.$ac_ext
4663    LIBS="$ac_xsave_LIBS"
4664
4665    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4666    # to get the SysV transport functions.
4667    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4668    # needs -lnsl.
4669    # The nsl library prevents programs from opening the X display
4670    # on Irix 5.2, according to T.E. Dickey.
4671    # The functions gethostbyname, getservbyname, and inet_addr are
4672    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4673    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4674if test "x$ac_cv_func_gethostbyname" = xyes; then :
4675
4676fi
4677
4678    if test $ac_cv_func_gethostbyname = no; then
4679      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4680$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4681if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  ac_check_lib_save_LIBS=$LIBS
4685LIBS="-lnsl  $LIBS"
4686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688
4689/* Override any GCC internal prototype to avoid an error.
4690   Use char because int might match the return type of a GCC
4691   builtin and then its argument prototype would still apply.  */
4692#ifdef __cplusplus
4693extern "C"
4694#endif
4695char gethostbyname ();
4696int
4697main ()
4698{
4699return gethostbyname ();
4700  ;
4701  return 0;
4702}
4703_ACEOF
4704if ac_fn_c_try_link "$LINENO"; then :
4705  ac_cv_lib_nsl_gethostbyname=yes
4706else
4707  ac_cv_lib_nsl_gethostbyname=no
4708fi
4709rm -f core conftest.err conftest.$ac_objext \
4710    conftest$ac_exeext conftest.$ac_ext
4711LIBS=$ac_check_lib_save_LIBS
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4714$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4715if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4716  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4717fi
4718
4719      if test $ac_cv_lib_nsl_gethostbyname = no; then
4720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4721$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4722if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4723  $as_echo_n "(cached) " >&6
4724else
4725  ac_check_lib_save_LIBS=$LIBS
4726LIBS="-lbsd  $LIBS"
4727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h.  */
4729
4730/* Override any GCC internal prototype to avoid an error.
4731   Use char because int might match the return type of a GCC
4732   builtin and then its argument prototype would still apply.  */
4733#ifdef __cplusplus
4734extern "C"
4735#endif
4736char gethostbyname ();
4737int
4738main ()
4739{
4740return gethostbyname ();
4741  ;
4742  return 0;
4743}
4744_ACEOF
4745if ac_fn_c_try_link "$LINENO"; then :
4746  ac_cv_lib_bsd_gethostbyname=yes
4747else
4748  ac_cv_lib_bsd_gethostbyname=no
4749fi
4750rm -f core conftest.err conftest.$ac_objext \
4751    conftest$ac_exeext conftest.$ac_ext
4752LIBS=$ac_check_lib_save_LIBS
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4755$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4756if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4757  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4758fi
4759
4760      fi
4761    fi
4762
4763    # lieder@skyler.mavd.honeywell.com says without -lsocket,
4764    # socket/setsockopt and other routines are undefined under SCO ODT
4765    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4766    # on later versions), says Simon Leinen: it contains gethostby*
4767    # variants that don't use the name server (or something).  -lsocket
4768    # must be given before -lnsl if both are needed.  We assume that
4769    # if connect needs -lnsl, so does gethostbyname.
4770    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4771if test "x$ac_cv_func_connect" = xyes; then :
4772
4773fi
4774
4775    if test $ac_cv_func_connect = no; then
4776      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4777$as_echo_n "checking for connect in -lsocket... " >&6; }
4778if ${ac_cv_lib_socket_connect+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  ac_check_lib_save_LIBS=$LIBS
4782LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h.  */
4785
4786/* Override any GCC internal prototype to avoid an error.
4787   Use char because int might match the return type of a GCC
4788   builtin and then its argument prototype would still apply.  */
4789#ifdef __cplusplus
4790extern "C"
4791#endif
4792char connect ();
4793int
4794main ()
4795{
4796return connect ();
4797  ;
4798  return 0;
4799}
4800_ACEOF
4801if ac_fn_c_try_link "$LINENO"; then :
4802  ac_cv_lib_socket_connect=yes
4803else
4804  ac_cv_lib_socket_connect=no
4805fi
4806rm -f core conftest.err conftest.$ac_objext \
4807    conftest$ac_exeext conftest.$ac_ext
4808LIBS=$ac_check_lib_save_LIBS
4809fi
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4811$as_echo "$ac_cv_lib_socket_connect" >&6; }
4812if test "x$ac_cv_lib_socket_connect" = xyes; then :
4813  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4814fi
4815
4816    fi
4817
4818    # Guillermo Gomez says -lposix is necessary on A/UX.
4819    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4820if test "x$ac_cv_func_remove" = xyes; then :
4821
4822fi
4823
4824    if test $ac_cv_func_remove = no; then
4825      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4826$as_echo_n "checking for remove in -lposix... " >&6; }
4827if ${ac_cv_lib_posix_remove+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  ac_check_lib_save_LIBS=$LIBS
4831LIBS="-lposix  $LIBS"
4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834
4835/* Override any GCC internal prototype to avoid an error.
4836   Use char because int might match the return type of a GCC
4837   builtin and then its argument prototype would still apply.  */
4838#ifdef __cplusplus
4839extern "C"
4840#endif
4841char remove ();
4842int
4843main ()
4844{
4845return remove ();
4846  ;
4847  return 0;
4848}
4849_ACEOF
4850if ac_fn_c_try_link "$LINENO"; then :
4851  ac_cv_lib_posix_remove=yes
4852else
4853  ac_cv_lib_posix_remove=no
4854fi
4855rm -f core conftest.err conftest.$ac_objext \
4856    conftest$ac_exeext conftest.$ac_ext
4857LIBS=$ac_check_lib_save_LIBS
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4860$as_echo "$ac_cv_lib_posix_remove" >&6; }
4861if test "x$ac_cv_lib_posix_remove" = xyes; then :
4862  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4863fi
4864
4865    fi
4866
4867    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4868    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4869if test "x$ac_cv_func_shmat" = xyes; then :
4870
4871fi
4872
4873    if test $ac_cv_func_shmat = no; then
4874      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4875$as_echo_n "checking for shmat in -lipc... " >&6; }
4876if ${ac_cv_lib_ipc_shmat+:} false; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  ac_check_lib_save_LIBS=$LIBS
4880LIBS="-lipc  $LIBS"
4881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h.  */
4883
4884/* Override any GCC internal prototype to avoid an error.
4885   Use char because int might match the return type of a GCC
4886   builtin and then its argument prototype would still apply.  */
4887#ifdef __cplusplus
4888extern "C"
4889#endif
4890char shmat ();
4891int
4892main ()
4893{
4894return shmat ();
4895  ;
4896  return 0;
4897}
4898_ACEOF
4899if ac_fn_c_try_link "$LINENO"; then :
4900  ac_cv_lib_ipc_shmat=yes
4901else
4902  ac_cv_lib_ipc_shmat=no
4903fi
4904rm -f core conftest.err conftest.$ac_objext \
4905    conftest$ac_exeext conftest.$ac_ext
4906LIBS=$ac_check_lib_save_LIBS
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4909$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4910if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4911  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4912fi
4913
4914    fi
4915  fi
4916
4917  # Check for libraries that X11R6 Xt/Xaw programs need.
4918  ac_save_LDFLAGS=$LDFLAGS
4919  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4920  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4921  # check for ICE first), but we must link in the order -lSM -lICE or
4922  # we get undefined symbols.  So assume we have SM if we have ICE.
4923  # These have to be linked with before -lX11, unlike the other
4924  # libraries we check for below, so use a different variable.
4925  # John Interrante, Karl Berry
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4927$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4928if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  ac_check_lib_save_LIBS=$LIBS
4932LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934/* end confdefs.h.  */
4935
4936/* Override any GCC internal prototype to avoid an error.
4937   Use char because int might match the return type of a GCC
4938   builtin and then its argument prototype would still apply.  */
4939#ifdef __cplusplus
4940extern "C"
4941#endif
4942char IceConnectionNumber ();
4943int
4944main ()
4945{
4946return IceConnectionNumber ();
4947  ;
4948  return 0;
4949}
4950_ACEOF
4951if ac_fn_c_try_link "$LINENO"; then :
4952  ac_cv_lib_ICE_IceConnectionNumber=yes
4953else
4954  ac_cv_lib_ICE_IceConnectionNumber=no
4955fi
4956rm -f core conftest.err conftest.$ac_objext \
4957    conftest$ac_exeext conftest.$ac_ext
4958LIBS=$ac_check_lib_save_LIBS
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4961$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4962if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4963  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4964fi
4965
4966  LDFLAGS=$ac_save_LDFLAGS
4967
4968fi
4969
4970ac_header_dirent=no
4971for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4972  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4974$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4975if eval \${$as_ac_Header+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h.  */
4980#include <sys/types.h>
4981#include <$ac_hdr>
4982
4983int
4984main ()
4985{
4986if ((DIR *) 0)
4987return 0;
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992if ac_fn_c_try_compile "$LINENO"; then :
4993  eval "$as_ac_Header=yes"
4994else
4995  eval "$as_ac_Header=no"
4996fi
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998fi
4999eval ac_res=\$$as_ac_Header
5000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5001$as_echo "$ac_res" >&6; }
5002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5003  cat >>confdefs.h <<_ACEOF
5004#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5005_ACEOF
5006
5007ac_header_dirent=$ac_hdr; break
5008fi
5009
5010done
5011# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5012if test $ac_header_dirent = dirent.h; then
5013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5014$as_echo_n "checking for library containing opendir... " >&6; }
5015if ${ac_cv_search_opendir+:} false; then :
5016  $as_echo_n "(cached) " >&6
5017else
5018  ac_func_search_save_LIBS=$LIBS
5019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h.  */
5021
5022/* Override any GCC internal prototype to avoid an error.
5023   Use char because int might match the return type of a GCC
5024   builtin and then its argument prototype would still apply.  */
5025#ifdef __cplusplus
5026extern "C"
5027#endif
5028char opendir ();
5029int
5030main ()
5031{
5032return opendir ();
5033  ;
5034  return 0;
5035}
5036_ACEOF
5037for ac_lib in '' dir; do
5038  if test -z "$ac_lib"; then
5039    ac_res="none required"
5040  else
5041    ac_res=-l$ac_lib
5042    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5043  fi
5044  if ac_fn_c_try_link "$LINENO"; then :
5045  ac_cv_search_opendir=$ac_res
5046fi
5047rm -f core conftest.err conftest.$ac_objext \
5048    conftest$ac_exeext
5049  if ${ac_cv_search_opendir+:} false; then :
5050  break
5051fi
5052done
5053if ${ac_cv_search_opendir+:} false; then :
5054
5055else
5056  ac_cv_search_opendir=no
5057fi
5058rm conftest.$ac_ext
5059LIBS=$ac_func_search_save_LIBS
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5062$as_echo "$ac_cv_search_opendir" >&6; }
5063ac_res=$ac_cv_search_opendir
5064if test "$ac_res" != no; then :
5065  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5066
5067fi
5068
5069else
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5071$as_echo_n "checking for library containing opendir... " >&6; }
5072if ${ac_cv_search_opendir+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  ac_func_search_save_LIBS=$LIBS
5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078
5079/* Override any GCC internal prototype to avoid an error.
5080   Use char because int might match the return type of a GCC
5081   builtin and then its argument prototype would still apply.  */
5082#ifdef __cplusplus
5083extern "C"
5084#endif
5085char opendir ();
5086int
5087main ()
5088{
5089return opendir ();
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094for ac_lib in '' x; do
5095  if test -z "$ac_lib"; then
5096    ac_res="none required"
5097  else
5098    ac_res=-l$ac_lib
5099    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5100  fi
5101  if ac_fn_c_try_link "$LINENO"; then :
5102  ac_cv_search_opendir=$ac_res
5103fi
5104rm -f core conftest.err conftest.$ac_objext \
5105    conftest$ac_exeext
5106  if ${ac_cv_search_opendir+:} false; then :
5107  break
5108fi
5109done
5110if ${ac_cv_search_opendir+:} false; then :
5111
5112else
5113  ac_cv_search_opendir=no
5114fi
5115rm conftest.$ac_ext
5116LIBS=$ac_func_search_save_LIBS
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5119$as_echo "$ac_cv_search_opendir" >&6; }
5120ac_res=$ac_cv_search_opendir
5121if test "$ac_res" != no; then :
5122  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5123
5124fi
5125
5126fi
5127
5128
5129ac_ext=cpp
5130ac_cpp='$CXXCPP $CPPFLAGS'
5131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134
5135
5136
5137ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5138if test "x$ac_cv_func_gethostbyname" = xyes; then :
5139
5140fi
5141
5142if test $ac_cv_func_gethostbyname = no; then
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5144$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5145if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5146  $as_echo_n "(cached) " >&6
5147else
5148  ac_check_lib_save_LIBS=$LIBS
5149LIBS="-lbsd  $LIBS"
5150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h.  */
5152
5153/* Override any GCC internal prototype to avoid an error.
5154   Use char because int might match the return type of a GCC
5155   builtin and then its argument prototype would still apply.  */
5156#ifdef __cplusplus
5157extern "C"
5158#endif
5159char gethostbyname ();
5160int
5161main ()
5162{
5163return gethostbyname ();
5164  ;
5165  return 0;
5166}
5167_ACEOF
5168if ac_fn_cxx_try_link "$LINENO"; then :
5169  ac_cv_lib_bsd_gethostbyname=yes
5170else
5171  ac_cv_lib_bsd_gethostbyname=no
5172fi
5173rm -f core conftest.err conftest.$ac_objext \
5174    conftest$ac_exeext conftest.$ac_ext
5175LIBS=$ac_check_lib_save_LIBS
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5178$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5179if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5180  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5181fi
5182
5183fi
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select() and fd_set in sys/select.h and sys/bsdtypes.h" >&5
5186$as_echo_n "checking select() and fd_set in sys/select.h and sys/bsdtypes.h... " >&6; }
5187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h.  */
5189#include <stdlib.h>
5190#include <stddef.h>
5191#include <unistd.h>
5192#include <sys/types.h>
5193int
5194main ()
5195{
5196fd_set fds;
5197select(0, NULL, NULL, NULL, NULL);
5198  ;
5199  return 0;
5200}
5201_ACEOF
5202if ac_fn_cxx_try_compile "$LINENO"; then :
5203  xpdf_ok=yes
5204else
5205  xpdf_ok=no
5206fi
5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208if test $xpdf_ok = yes; then
5209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5210$as_echo "not needed" >&6; }
5211else
5212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h.  */
5214#include <stdlib.h>
5215#include <stddef.h>
5216#include <unistd.h>
5217#include <sys/types.h>
5218#include <sys/select.h>
5219int
5220main ()
5221{
5222fd_set fds;
5223select(0, NULL, NULL, NULL, NULL);
5224  ;
5225  return 0;
5226}
5227_ACEOF
5228if ac_fn_cxx_try_compile "$LINENO"; then :
5229  xpdf_ok=yes
5230else
5231  xpdf_ok=no
5232fi
5233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234  if test $xpdf_ok = yes; then
5235    $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5236
5237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: need sys/select.h" >&5
5238$as_echo "need sys/select.h" >&6; }
5239  else
5240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h.  */
5242#include <stdlib.h>
5243#include <stddef.h>
5244#include <unistd.h>
5245#include <sys/types.h>
5246#include <sys/bsdtypes.h>
5247int
5248main ()
5249{
5250fd_set fds;
5251select(0, NULL, NULL, NULL, NULL);
5252  ;
5253  return 0;
5254}
5255_ACEOF
5256if ac_fn_cxx_try_compile "$LINENO"; then :
5257  xpdf_ok=yes
5258else
5259  xpdf_ok=no
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262    if test $xpdf_ok = yes; then
5263      $as_echo "#define HAVE_SYS_BSDTYPES_H 1" >>confdefs.h
5264
5265      { $as_echo "$as_me:${as_lineno-$LINENO}: result: need sys/bsdtypes.h" >&5
5266$as_echo "need sys/bsdtypes.h" >&6; }
5267    else
5268      { $as_echo "$as_me:${as_lineno-$LINENO}: result: problem" >&5
5269$as_echo "problem" >&6; }
5270    fi
5271  fi
5272fi
5273
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FD_ZERO and strings.h or bstring.h" >&5
5275$as_echo_n "checking FD_ZERO and strings.h or bstring.h... " >&6; }
5276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278#include <stdlib.h>
5279#include <sys/types.h>
5280#ifdef HAVE_SYS_SELECT_H
5281#include <sys/select.h>
5282#endif
5283int
5284main ()
5285{
5286fd_set fds; FD_ZERO(&fds);
5287  ;
5288  return 0;
5289}
5290_ACEOF
5291if ac_fn_cxx_try_compile "$LINENO"; then :
5292  xpdf_ok=yes
5293else
5294  xpdf_ok=no
5295fi
5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297if test $xpdf_ok = yes; then
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5299$as_echo "not needed" >&6; }
5300else
5301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303#include <stdlib.h>
5304#include <sys/types.h>
5305#include <strings.h>
5306#ifdef HAVE_SYS_SELECT_H
5307#include <sys/select.h>
5308#endif
5309int
5310main ()
5311{
5312fd_set fds; FD_ZERO(&fds);
5313  ;
5314  return 0;
5315}
5316_ACEOF
5317if ac_fn_cxx_try_compile "$LINENO"; then :
5318  xpdf_ok=yes
5319else
5320  xpdf_ok=no
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323  if test $xpdf_ok = yes; then
5324    $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5325
5326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: need strings.h" >&5
5327$as_echo "need strings.h" >&6; }
5328  else
5329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331#include <stdlib.h>
5332#include <sys/types.h>
5333#include <bstring.h>
5334#ifdef HAVE_SYS_SELECT_H
5335#include <sys/select.h>
5336#endif
5337int
5338main ()
5339{
5340fd_set fds; FD_ZERO(&fds);
5341  ;
5342  return 0;
5343}
5344_ACEOF
5345if ac_fn_cxx_try_compile "$LINENO"; then :
5346  xpdf_ok=yes
5347else
5348  xpdf_ok=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351    if test $xpdf_ok = yes; then
5352      $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5353
5354      { $as_echo "$as_me:${as_lineno-$LINENO}: result: need bstring.h" >&5
5355$as_echo "need bstring.h" >&6; }
5356    else
5357      { $as_echo "$as_me:${as_lineno-$LINENO}: result: problem" >&5
5358$as_echo "problem" >&6; }
5359    fi
5360  fi
5361fi
5362
5363for ac_func in rewinddir
5364do :
5365  ac_fn_cxx_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
5366if test "x$ac_cv_func_rewinddir" = xyes; then :
5367  cat >>confdefs.h <<_ACEOF
5368#define HAVE_REWINDDIR 1
5369_ACEOF
5370
5371fi
5372done
5373
5374if test $ac_cv_func_rewinddir = no; then
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewinddir in -lcposix" >&5
5376$as_echo_n "checking for rewinddir in -lcposix... " >&6; }
5377if ${ac_cv_lib_cposix_rewinddir+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  ac_check_lib_save_LIBS=$LIBS
5381LIBS="-lcposix  $LIBS"
5382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384
5385/* Override any GCC internal prototype to avoid an error.
5386   Use char because int might match the return type of a GCC
5387   builtin and then its argument prototype would still apply.  */
5388#ifdef __cplusplus
5389extern "C"
5390#endif
5391char rewinddir ();
5392int
5393main ()
5394{
5395return rewinddir ();
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400if ac_fn_cxx_try_link "$LINENO"; then :
5401  ac_cv_lib_cposix_rewinddir=yes
5402else
5403  ac_cv_lib_cposix_rewinddir=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext \
5406    conftest$ac_exeext conftest.$ac_ext
5407LIBS=$ac_check_lib_save_LIBS
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_rewinddir" >&5
5410$as_echo "$ac_cv_lib_cposix_rewinddir" >&6; }
5411if test "x$ac_cv_lib_cposix_rewinddir" = xyes; then :
5412  cat >>confdefs.h <<_ACEOF
5413#define HAVE_LIBCPOSIX 1
5414_ACEOF
5415
5416  LIBS="-lcposix $LIBS"
5417
5418fi
5419
5420fi
5421
5422for ac_func in popen
5423do :
5424  ac_fn_cxx_check_func "$LINENO" "popen" "ac_cv_func_popen"
5425if test "x$ac_cv_func_popen" = xyes; then :
5426  cat >>confdefs.h <<_ACEOF
5427#define HAVE_POPEN 1
5428_ACEOF
5429
5430fi
5431done
5432
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp" >&5
5434$as_echo_n "checking for mkstemp... " >&6; }
5435if ${xpdf_cv_func_mkstemp+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440#include <stdlib.h>
5441#include <unistd.h>
5442int
5443main ()
5444{
5445mkstemp("foo");
5446  ;
5447  return 0;
5448}
5449_ACEOF
5450if ac_fn_cxx_try_link "$LINENO"; then :
5451  xpdf_cv_func_mkstemp=yes
5452else
5453  xpdf_cv_func_mkstemp=no
5454fi
5455rm -f core conftest.err conftest.$ac_objext \
5456    conftest$ac_exeext conftest.$ac_ext
5457fi
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xpdf_cv_func_mkstemp" >&5
5459$as_echo "$xpdf_cv_func_mkstemp" >&6; }
5460if test "$xpdf_cv_func_mkstemp" = yes; then
5461  $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
5462
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemps" >&5
5465$as_echo_n "checking for mkstemps... " >&6; }
5466if ${xpdf_cv_func_mkstemps+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471#include <stdlib.h>
5472#include <unistd.h>
5473int
5474main ()
5475{
5476mkstemps("foo", 0);
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481if ac_fn_cxx_try_link "$LINENO"; then :
5482  xpdf_cv_func_mkstemps=yes
5483else
5484  xpdf_cv_func_mkstemps=no
5485fi
5486rm -f core conftest.err conftest.$ac_objext \
5487    conftest$ac_exeext conftest.$ac_ext
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xpdf_cv_func_mkstemps" >&5
5490$as_echo "$xpdf_cv_func_mkstemps" >&6; }
5491if test "$xpdf_cv_func_mkstemps" = yes; then
5492  $as_echo "#define HAVE_MKSTEMPS 1" >>confdefs.h
5493
5494fi
5495
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select takes fd_set arguments" >&5
5497$as_echo_n "checking whether select takes fd_set arguments... " >&6; }
5498if ${xpdf_cv_func_select_arg+:} false; then :
5499  $as_echo_n "(cached) " >&6
5500else
5501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502/* end confdefs.h.  */
5503#include <sys/types.h>
5504#include <sys/time.h>
5505#include <unistd.h>
5506#ifdef HAVE_SYS_SELECT_H
5507#include <sys/select.h>
5508#endif
5509int
5510main ()
5511{
5512fd_set fds;
5513select(1, &fds, &fds, &fds, 0);
5514  ;
5515  return 0;
5516}
5517_ACEOF
5518if ac_fn_cxx_try_compile "$LINENO"; then :
5519  xpdf_cv_func_select_arg=yes
5520else
5521  xpdf_cv_func_select_arg=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xpdf_cv_func_select_arg" >&5
5526$as_echo "$xpdf_cv_func_select_arg" >&6; }
5527if test "$xpdf_cv_func_select_arg" != yes; then
5528  $as_echo "#define SELECT_TAKES_INT 1" >>confdefs.h
5529
5530fi
5531
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::sort" >&5
5533$as_echo_n "checking for std::sort... " >&6; }
5534if ${xpdf_cv_func_std_sort+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538/* end confdefs.h.  */
5539#include <algorithm>
5540struct functor {
5541  bool operator()(const int &i0, const int &i1) { return i0 < i1; }
5542};
5543int
5544main ()
5545{
5546int a[100];
5547std::sort(a, a+100, functor());
5548  ;
5549  return 0;
5550}
5551_ACEOF
5552if ac_fn_cxx_try_compile "$LINENO"; then :
5553  xpdf_cv_func_std_sort=yes
5554else
5555  xpdf_cv_func_std_sort=no
5556fi
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xpdf_cv_func_std_sort" >&5
5560$as_echo "$xpdf_cv_func_std_sort" >&6; }
5561if test "$xpdf_cv_func_std_sort" = yes; then
5562  $as_echo "#define HAVE_STD_SORT 1" >>confdefs.h
5563
5564fi
5565
5566ac_ext=c
5567ac_cpp='$CPP $CPPFLAGS'
5568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5570ac_compiler_gnu=$ac_cv_c_compiler_gnu
5571
5572
5573# Check whether --enable-largefile was given.
5574if test "${enable_largefile+set}" = set; then :
5575  enableval=$enable_largefile;
5576fi
5577
5578if test "$enable_largefile" != no; then
5579
5580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5581$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5582if ${ac_cv_sys_largefile_CC+:} false; then :
5583  $as_echo_n "(cached) " >&6
5584else
5585  ac_cv_sys_largefile_CC=no
5586     if test "$GCC" != yes; then
5587       ac_save_CC=$CC
5588       while :; do
5589	 # IRIX 6.2 and later do not support large files by default,
5590	 # so use the C compiler's -n32 option if that helps.
5591	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h.  */
5593#include <sys/types.h>
5594 /* Check that off_t can represent 2**63 - 1 correctly.
5595    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5596    since some C++ compilers masquerading as C compilers
5597    incorrectly reject 9223372036854775807.  */
5598#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5599  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5600		       && LARGE_OFF_T % 2147483647 == 1)
5601		      ? 1 : -1];
5602int
5603main ()
5604{
5605
5606  ;
5607  return 0;
5608}
5609_ACEOF
5610	 if ac_fn_c_try_compile "$LINENO"; then :
5611  break
5612fi
5613rm -f core conftest.err conftest.$ac_objext
5614	 CC="$CC -n32"
5615	 if ac_fn_c_try_compile "$LINENO"; then :
5616  ac_cv_sys_largefile_CC=' -n32'; break
5617fi
5618rm -f core conftest.err conftest.$ac_objext
5619	 break
5620       done
5621       CC=$ac_save_CC
5622       rm -f conftest.$ac_ext
5623    fi
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5626$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5627  if test "$ac_cv_sys_largefile_CC" != no; then
5628    CC=$CC$ac_cv_sys_largefile_CC
5629  fi
5630
5631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5632$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5633if ${ac_cv_sys_file_offset_bits+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  while :; do
5637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h.  */
5639#include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642    since some C++ compilers masquerading as C compilers
5643    incorrectly reject 9223372036854775807.  */
5644#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646		       && LARGE_OFF_T % 2147483647 == 1)
5647		      ? 1 : -1];
5648int
5649main ()
5650{
5651
5652  ;
5653  return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"; then :
5657  ac_cv_sys_file_offset_bits=no; break
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h.  */
5662#define _FILE_OFFSET_BITS 64
5663#include <sys/types.h>
5664 /* Check that off_t can represent 2**63 - 1 correctly.
5665    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5666    since some C++ compilers masquerading as C compilers
5667    incorrectly reject 9223372036854775807.  */
5668#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5669  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5670		       && LARGE_OFF_T % 2147483647 == 1)
5671		      ? 1 : -1];
5672int
5673main ()
5674{
5675
5676  ;
5677  return 0;
5678}
5679_ACEOF
5680if ac_fn_c_try_compile "$LINENO"; then :
5681  ac_cv_sys_file_offset_bits=64; break
5682fi
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684  ac_cv_sys_file_offset_bits=unknown
5685  break
5686done
5687fi
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5689$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5690case $ac_cv_sys_file_offset_bits in #(
5691  no | unknown) ;;
5692  *)
5693cat >>confdefs.h <<_ACEOF
5694#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5695_ACEOF
5696;;
5697esac
5698rm -rf conftest*
5699  if test $ac_cv_sys_file_offset_bits = unknown; then
5700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5701$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5702if ${ac_cv_sys_large_files+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  while :; do
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708#include <sys/types.h>
5709 /* Check that off_t can represent 2**63 - 1 correctly.
5710    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5711    since some C++ compilers masquerading as C compilers
5712    incorrectly reject 9223372036854775807.  */
5713#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5714  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5715		       && LARGE_OFF_T % 2147483647 == 1)
5716		      ? 1 : -1];
5717int
5718main ()
5719{
5720
5721  ;
5722  return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_compile "$LINENO"; then :
5726  ac_cv_sys_large_files=no; break
5727fi
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731#define _LARGE_FILES 1
5732#include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5734    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5735    since some C++ compilers masquerading as C compilers
5736    incorrectly reject 9223372036854775807.  */
5737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5738  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5739		       && LARGE_OFF_T % 2147483647 == 1)
5740		      ? 1 : -1];
5741int
5742main ()
5743{
5744
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750  ac_cv_sys_large_files=1; break
5751fi
5752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753  ac_cv_sys_large_files=unknown
5754  break
5755done
5756fi
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5758$as_echo "$ac_cv_sys_large_files" >&6; }
5759case $ac_cv_sys_large_files in #(
5760  no | unknown) ;;
5761  *)
5762cat >>confdefs.h <<_ACEOF
5763#define _LARGE_FILES $ac_cv_sys_large_files
5764_ACEOF
5765;;
5766esac
5767rm -rf conftest*
5768  fi
5769
5770
5771fi
5772
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5774$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5775if ${ac_cv_sys_largefile_source+:} false; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778  while :; do
5779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781#include <sys/types.h> /* for off_t */
5782     #include <stdio.h>
5783int
5784main ()
5785{
5786int (*fp) (FILE *, off_t, int) = fseeko;
5787     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5788  ;
5789  return 0;
5790}
5791_ACEOF
5792if ac_fn_c_try_link "$LINENO"; then :
5793  ac_cv_sys_largefile_source=no; break
5794fi
5795rm -f core conftest.err conftest.$ac_objext \
5796    conftest$ac_exeext conftest.$ac_ext
5797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799#define _LARGEFILE_SOURCE 1
5800#include <sys/types.h> /* for off_t */
5801     #include <stdio.h>
5802int
5803main ()
5804{
5805int (*fp) (FILE *, off_t, int) = fseeko;
5806     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5807  ;
5808  return 0;
5809}
5810_ACEOF
5811if ac_fn_c_try_link "$LINENO"; then :
5812  ac_cv_sys_largefile_source=1; break
5813fi
5814rm -f core conftest.err conftest.$ac_objext \
5815    conftest$ac_exeext conftest.$ac_ext
5816  ac_cv_sys_largefile_source=unknown
5817  break
5818done
5819fi
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5821$as_echo "$ac_cv_sys_largefile_source" >&6; }
5822case $ac_cv_sys_largefile_source in #(
5823  no | unknown) ;;
5824  *)
5825cat >>confdefs.h <<_ACEOF
5826#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5827_ACEOF
5828;;
5829esac
5830rm -rf conftest*
5831
5832# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5833# in glibc 2.1.3, but that breaks too many other things.
5834# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5835if test $ac_cv_sys_largefile_source != unknown; then
5836
5837$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5838
5839fi
5840
5841for ac_func in fseek64
5842do :
5843  ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64"
5844if test "x$ac_cv_func_fseek64" = xyes; then :
5845  cat >>confdefs.h <<_ACEOF
5846#define HAVE_FSEEK64 1
5847_ACEOF
5848 xpdf_cv_func_fseek64=yes
5849else
5850  xpdf_cv_func_fseek64=no
5851fi
5852done
5853
5854for ac_func in ftell64
5855do :
5856  ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64"
5857if test "x$ac_cv_func_ftell64" = xyes; then :
5858  cat >>confdefs.h <<_ACEOF
5859#define HAVE_FTELL64 1
5860_ACEOF
5861 xpdf_cv_func_ftell64=yes
5862else
5863  xpdf_cv_func_ftell64=no
5864fi
5865done
5866
5867if test "$xpdf_cv_func_fseek64" = yes -a "$xpdf_cv_func_ftell64" = yes; then
5868  $as_echo "#define HAVE_FSEEK64 1" >>confdefs.h
5869
5870fi
5871
5872if test -z "$no_x"; then
5873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5874$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5875if ${ac_cv_path_GREP+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  if test -z "$GREP"; then
5879  ac_path_GREP_found=false
5880  # Loop through the user's path and test for each of PROGNAME-LIST
5881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886    for ac_prog in grep ggrep; do
5887    for ac_exec_ext in '' $ac_executable_extensions; do
5888      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5889      as_fn_executable_p "$ac_path_GREP" || continue
5890# Check for GNU ac_path_GREP and select it if it is found.
5891  # Check for GNU $ac_path_GREP
5892case `"$ac_path_GREP" --version 2>&1` in
5893*GNU*)
5894  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5895*)
5896  ac_count=0
5897  $as_echo_n 0123456789 >"conftest.in"
5898  while :
5899  do
5900    cat "conftest.in" "conftest.in" >"conftest.tmp"
5901    mv "conftest.tmp" "conftest.in"
5902    cp "conftest.in" "conftest.nl"
5903    $as_echo 'GREP' >> "conftest.nl"
5904    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5905    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5906    as_fn_arith $ac_count + 1 && ac_count=$as_val
5907    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5908      # Best one so far, save it but keep looking for a better one
5909      ac_cv_path_GREP="$ac_path_GREP"
5910      ac_path_GREP_max=$ac_count
5911    fi
5912    # 10*(2^10) chars as input seems more than enough
5913    test $ac_count -gt 10 && break
5914  done
5915  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5916esac
5917
5918      $ac_path_GREP_found && break 3
5919    done
5920  done
5921  done
5922IFS=$as_save_IFS
5923  if test -z "$ac_cv_path_GREP"; then
5924    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5925  fi
5926else
5927  ac_cv_path_GREP=$GREP
5928fi
5929
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5932$as_echo "$ac_cv_path_GREP" >&6; }
5933 GREP="$ac_cv_path_GREP"
5934
5935
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5937$as_echo_n "checking for egrep... " >&6; }
5938if ${ac_cv_path_EGREP+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5942   then ac_cv_path_EGREP="$GREP -E"
5943   else
5944     if test -z "$EGREP"; then
5945  ac_path_EGREP_found=false
5946  # Loop through the user's path and test for each of PROGNAME-LIST
5947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5949do
5950  IFS=$as_save_IFS
5951  test -z "$as_dir" && as_dir=.
5952    for ac_prog in egrep; do
5953    for ac_exec_ext in '' $ac_executable_extensions; do
5954      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5955      as_fn_executable_p "$ac_path_EGREP" || continue
5956# Check for GNU ac_path_EGREP and select it if it is found.
5957  # Check for GNU $ac_path_EGREP
5958case `"$ac_path_EGREP" --version 2>&1` in
5959*GNU*)
5960  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5961*)
5962  ac_count=0
5963  $as_echo_n 0123456789 >"conftest.in"
5964  while :
5965  do
5966    cat "conftest.in" "conftest.in" >"conftest.tmp"
5967    mv "conftest.tmp" "conftest.in"
5968    cp "conftest.in" "conftest.nl"
5969    $as_echo 'EGREP' >> "conftest.nl"
5970    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5971    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5972    as_fn_arith $ac_count + 1 && ac_count=$as_val
5973    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5974      # Best one so far, save it but keep looking for a better one
5975      ac_cv_path_EGREP="$ac_path_EGREP"
5976      ac_path_EGREP_max=$ac_count
5977    fi
5978    # 10*(2^10) chars as input seems more than enough
5979    test $ac_count -gt 10 && break
5980  done
5981  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5982esac
5983
5984      $ac_path_EGREP_found && break 3
5985    done
5986  done
5987  done
5988IFS=$as_save_IFS
5989  if test -z "$ac_cv_path_EGREP"; then
5990    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5991  fi
5992else
5993  ac_cv_path_EGREP=$EGREP
5994fi
5995
5996   fi
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5999$as_echo "$ac_cv_path_EGREP" >&6; }
6000 EGREP="$ac_cv_path_EGREP"
6001
6002
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6004$as_echo_n "checking for ANSI C header files... " >&6; }
6005if ${ac_cv_header_stdc+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010#include <stdlib.h>
6011#include <stdarg.h>
6012#include <string.h>
6013#include <float.h>
6014
6015int
6016main ()
6017{
6018
6019  ;
6020  return 0;
6021}
6022_ACEOF
6023if ac_fn_c_try_compile "$LINENO"; then :
6024  ac_cv_header_stdc=yes
6025else
6026  ac_cv_header_stdc=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029
6030if test $ac_cv_header_stdc = yes; then
6031  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033/* end confdefs.h.  */
6034#include <string.h>
6035
6036_ACEOF
6037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038  $EGREP "memchr" >/dev/null 2>&1; then :
6039
6040else
6041  ac_cv_header_stdc=no
6042fi
6043rm -f conftest*
6044
6045fi
6046
6047if test $ac_cv_header_stdc = yes; then
6048  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051#include <stdlib.h>
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055  $EGREP "free" >/dev/null 2>&1; then :
6056
6057else
6058  ac_cv_header_stdc=no
6059fi
6060rm -f conftest*
6061
6062fi
6063
6064if test $ac_cv_header_stdc = yes; then
6065  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6066  if test "$cross_compiling" = yes; then :
6067  :
6068else
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071#include <ctype.h>
6072#include <stdlib.h>
6073#if ((' ' & 0x0FF) == 0x020)
6074# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6075# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076#else
6077# define ISLOWER(c) \
6078		   (('a' <= (c) && (c) <= 'i') \
6079		     || ('j' <= (c) && (c) <= 'r') \
6080		     || ('s' <= (c) && (c) <= 'z'))
6081# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6082#endif
6083
6084#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6085int
6086main ()
6087{
6088  int i;
6089  for (i = 0; i < 256; i++)
6090    if (XOR (islower (i), ISLOWER (i))
6091	|| toupper (i) != TOUPPER (i))
6092      return 2;
6093  return 0;
6094}
6095_ACEOF
6096if ac_fn_c_try_run "$LINENO"; then :
6097
6098else
6099  ac_cv_header_stdc=no
6100fi
6101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6102  conftest.$ac_objext conftest.beam conftest.$ac_ext
6103fi
6104
6105fi
6106fi
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6108$as_echo "$ac_cv_header_stdc" >&6; }
6109if test $ac_cv_header_stdc = yes; then
6110
6111$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6112
6113fi
6114
6115# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6116for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6117		  inttypes.h stdint.h unistd.h
6118do :
6119  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6120ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6121"
6122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6123  cat >>confdefs.h <<_ACEOF
6124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125_ACEOF
6126
6127fi
6128
6129done
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150# Check whether --with-Xpm-library was given.
6151if test "${with_Xpm_library+set}" = set; then :
6152  withval=$with_Xpm_library; smr_cv_with_Xpm_library=$withval
6153fi
6154
6155
6156      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Xpm library" >&5
6157$as_echo_n "checking whether to use Xpm library... " >&6; }
6158if ${smr_cv_with_Xpm_library+:} false; then :
6159  $as_echo_n "(cached) " >&6
6160else
6161  smr_cv_with_Xpm_library=maybe
6162fi
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xpm_library" >&5
6164$as_echo "$smr_cv_with_Xpm_library" >&6; }
6165
6166
6167  case x"$smr_cv_with_Xpm_library" in
6168      xyes | xmaybe)
6169          Xpm_LIBS="-lXpm"
6170          with_Xpm=$smr_cv_with_Xpm_library
6171          ;;
6172      xno)
6173          Xpm_LIBS=
6174          with_Xpm=no
6175          ;;
6176      *)
6177          if test -f "$smr_cv_with_Xpm_library"; then
6178            Xpm_LIBS=$smr_cv_with_Xpm_library
6179          elif test -d "$smr_cv_with_Xpm_library"; then
6180            Xpm_LIBS="-L$smr_cv_with_Xpm_library -lXpm"
6181          else
6182            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
6183          fi
6184          with_Xpm=yes
6185          ;;
6186  esac
6187
6188
6189
6190
6191
6192
6193
6194  if test ! x"$with_Xpm" = xno; then
6195
6196    # If we got this far, then the user didn't explicitly ask not to use
6197    # the library.
6198
6199
6200
6201
6202
6203
6204
6205
6206# Check whether --with-Xpm-includes was given.
6207if test "${with_Xpm_includes+set}" = set; then :
6208  withval=$with_Xpm_includes; smr_cv_with_Xpm_includes=$withval
6209fi
6210
6211
6212      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the Xpm header files" >&5
6213$as_echo_n "checking where to find the Xpm header files... " >&6; }
6214if ${smr_cv_with_Xpm_includes+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  smr_cv_with_Xpm_includes=
6218fi
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xpm_includes" >&5
6220$as_echo "$smr_cv_with_Xpm_includes" >&6; }
6221
6222  if test ! x"$smr_cv_with_Xpm_includes" = x; then
6223    if test -d "$smr_cv_with_Xpm_includes"; then
6224      Xpm_CFLAGS="-I$smr_cv_with_Xpm_includes"
6225    else
6226      as_fn_error $? "argument must be a directory" "$LINENO" 5
6227    fi
6228  else
6229    Xpm_CFLAGS=
6230  fi
6231
6232        smr_test_CPPFLAGS="${CPPFLAGS+set}"
6233  smr_save_CPPFLAGS="$CPPFLAGS"
6234  CPPFLAGS="$CPPFLAGS $Xpm_CFLAGS $X_CFLAGS"
6235
6236      for ac_header in X11/xpm.h
6237do :
6238  ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
6239if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
6240  cat >>confdefs.h <<_ACEOF
6241#define HAVE_X11_XPM_H 1
6242_ACEOF
6243 smr_have_Xpm_header=yes
6244else
6245  smr_have_Xpm_header=no
6246fi
6247
6248done
6249
6250
6251  if test x"$smr_test_CPPFLAGS" = xset; then
6252    CPPFLAGS=$smr_save_CPPFLAGS
6253  else
6254    unset CPPFLAGS
6255  fi
6256
6257
6258
6259
6260
6261
6262
6263    # We need only look for the library if the header has been found
6264    # (or no header is needed).
6265    if test $smr_have_Xpm_header != no; then
6266
6267       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
6268$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
6269if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  ac_check_lib_save_LIBS=$LIBS
6273LIBS="-lXpm $Xpm_CFLAGS $X_CFLAGS $Xpm_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
6274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276
6277/* Override any GCC internal prototype to avoid an error.
6278   Use char because int might match the return type of a GCC
6279   builtin and then its argument prototype would still apply.  */
6280#ifdef __cplusplus
6281extern "C"
6282#endif
6283char XpmCreatePixmapFromData ();
6284int
6285main ()
6286{
6287return XpmCreatePixmapFromData ();
6288  ;
6289  return 0;
6290}
6291_ACEOF
6292if ac_fn_c_try_link "$LINENO"; then :
6293  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
6294else
6295  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
6296fi
6297rm -f core conftest.err conftest.$ac_objext \
6298    conftest$ac_exeext conftest.$ac_ext
6299LIBS=$ac_check_lib_save_LIBS
6300fi
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6302$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
6303if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
6304  smr_have_Xpm_library=yes
6305else
6306  smr_have_Xpm_library=no
6307fi
6308
6309    fi
6310
6311    if test x"$smr_have_Xpm_library" = xyes; then
6312      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Xpm library" >&5
6313$as_echo "using Xpm library" >&6; }
6314    else
6315      Xpm_LIBS=
6316      Xpm_CFLAGS=
6317
6318      if test x"$with_Xpm" = xmaybe; then
6319        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using Xpm library" >&5
6320$as_echo "not using Xpm library" >&6; }
6321      else
6322        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested Xpm library not found!" >&5
6323$as_echo "$as_me: WARNING: requested Xpm library not found!" >&2;}
6324      fi
6325    fi
6326  fi
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340fi
6341
6342if test -z "$no_x"; then
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361# Check whether --with-Xext-library was given.
6362if test "${with_Xext_library+set}" = set; then :
6363  withval=$with_Xext_library; smr_cv_with_Xext_library=$withval
6364fi
6365
6366
6367      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Xext library" >&5
6368$as_echo_n "checking whether to use Xext library... " >&6; }
6369if ${smr_cv_with_Xext_library+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  smr_cv_with_Xext_library=maybe
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xext_library" >&5
6375$as_echo "$smr_cv_with_Xext_library" >&6; }
6376
6377
6378  case x"$smr_cv_with_Xext_library" in
6379      xyes | xmaybe)
6380          Xext_LIBS="-lXext"
6381          with_Xext=$smr_cv_with_Xext_library
6382          ;;
6383      xno)
6384          Xext_LIBS=
6385          with_Xext=no
6386          ;;
6387      *)
6388          if test -f "$smr_cv_with_Xext_library"; then
6389            Xext_LIBS=$smr_cv_with_Xext_library
6390          elif test -d "$smr_cv_with_Xext_library"; then
6391            Xext_LIBS="-L$smr_cv_with_Xext_library -lXext"
6392          else
6393            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
6394          fi
6395          with_Xext=yes
6396          ;;
6397  esac
6398
6399
6400
6401
6402
6403
6404
6405  if test ! x"$with_Xext" = xno; then
6406
6407    # If we got this far, then the user didn't explicitly ask not to use
6408    # the library.
6409
6410
6411
6412
6413
6414
6415
6416
6417# Check whether --with-Xext-includes was given.
6418if test "${with_Xext_includes+set}" = set; then :
6419  withval=$with_Xext_includes; smr_cv_with_Xext_includes=$withval
6420fi
6421
6422
6423      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the Xext header files" >&5
6424$as_echo_n "checking where to find the Xext header files... " >&6; }
6425if ${smr_cv_with_Xext_includes+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  smr_cv_with_Xext_includes=
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xext_includes" >&5
6431$as_echo "$smr_cv_with_Xext_includes" >&6; }
6432
6433  if test ! x"$smr_cv_with_Xext_includes" = x; then
6434    if test -d "$smr_cv_with_Xext_includes"; then
6435      Xext_CFLAGS="-I$smr_cv_with_Xext_includes"
6436    else
6437      as_fn_error $? "argument must be a directory" "$LINENO" 5
6438    fi
6439  else
6440    Xext_CFLAGS=
6441  fi
6442
6443        smr_test_CPPFLAGS="${CPPFLAGS+set}"
6444  smr_save_CPPFLAGS="$CPPFLAGS"
6445  CPPFLAGS="$CPPFLAGS $Xext_CFLAGS $X_CFLAGS"
6446
6447      for ac_header in X11/Xlib.h
6448do :
6449  ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
6450if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
6451  cat >>confdefs.h <<_ACEOF
6452#define HAVE_X11_XLIB_H 1
6453_ACEOF
6454 smr_have_Xext_header=yes
6455else
6456  smr_have_Xext_header=no
6457fi
6458
6459done
6460
6461
6462  if test x"$smr_test_CPPFLAGS" = xset; then
6463    CPPFLAGS=$smr_save_CPPFLAGS
6464  else
6465    unset CPPFLAGS
6466  fi
6467
6468
6469
6470
6471
6472
6473
6474    # We need only look for the library if the header has been found
6475    # (or no header is needed).
6476    if test $smr_have_Xext_header != no; then
6477
6478       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XextAddDisplay in -lXext" >&5
6479$as_echo_n "checking for XextAddDisplay in -lXext... " >&6; }
6480if ${ac_cv_lib_Xext_XextAddDisplay+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  ac_check_lib_save_LIBS=$LIBS
6484LIBS="-lXext $Xext_CFLAGS $X_CFLAGS $Xext_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
6485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h.  */
6487
6488/* Override any GCC internal prototype to avoid an error.
6489   Use char because int might match the return type of a GCC
6490   builtin and then its argument prototype would still apply.  */
6491#ifdef __cplusplus
6492extern "C"
6493#endif
6494char XextAddDisplay ();
6495int
6496main ()
6497{
6498return XextAddDisplay ();
6499  ;
6500  return 0;
6501}
6502_ACEOF
6503if ac_fn_c_try_link "$LINENO"; then :
6504  ac_cv_lib_Xext_XextAddDisplay=yes
6505else
6506  ac_cv_lib_Xext_XextAddDisplay=no
6507fi
6508rm -f core conftest.err conftest.$ac_objext \
6509    conftest$ac_exeext conftest.$ac_ext
6510LIBS=$ac_check_lib_save_LIBS
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
6513$as_echo "$ac_cv_lib_Xext_XextAddDisplay" >&6; }
6514if test "x$ac_cv_lib_Xext_XextAddDisplay" = xyes; then :
6515  smr_have_Xext_library=yes
6516else
6517  smr_have_Xext_library=no
6518fi
6519
6520    fi
6521
6522    if test x"$smr_have_Xext_library" = xyes; then
6523      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Xext library" >&5
6524$as_echo "using Xext library" >&6; }
6525    else
6526      Xext_LIBS=
6527      Xext_CFLAGS=
6528
6529      if test x"$with_Xext" = xmaybe; then
6530        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using Xext library" >&5
6531$as_echo "not using Xext library" >&6; }
6532      else
6533        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested Xext library not found!" >&5
6534$as_echo "$as_me: WARNING: requested Xext library not found!" >&2;}
6535      fi
6536    fi
6537  fi
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569# Check whether --with-Xp-library was given.
6570if test "${with_Xp_library+set}" = set; then :
6571  withval=$with_Xp_library; smr_cv_with_Xp_library=$withval
6572fi
6573
6574
6575      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Xp library" >&5
6576$as_echo_n "checking whether to use Xp library... " >&6; }
6577if ${smr_cv_with_Xp_library+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  smr_cv_with_Xp_library=maybe
6581fi
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xp_library" >&5
6583$as_echo "$smr_cv_with_Xp_library" >&6; }
6584
6585
6586  case x"$smr_cv_with_Xp_library" in
6587      xyes | xmaybe)
6588          Xp_LIBS="-lXp"
6589          with_Xp=$smr_cv_with_Xp_library
6590          ;;
6591      xno)
6592          Xp_LIBS=
6593          with_Xp=no
6594          ;;
6595      *)
6596          if test -f "$smr_cv_with_Xp_library"; then
6597            Xp_LIBS=$smr_cv_with_Xp_library
6598          elif test -d "$smr_cv_with_Xp_library"; then
6599            Xp_LIBS="-L$smr_cv_with_Xp_library -lXp"
6600          else
6601            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
6602          fi
6603          with_Xp=yes
6604          ;;
6605  esac
6606
6607
6608
6609
6610
6611
6612
6613  if test ! x"$with_Xp" = xno; then
6614
6615    # If we got this far, then the user didn't explicitly ask not to use
6616    # the library.
6617
6618
6619
6620
6621
6622
6623
6624
6625# Check whether --with-Xp-includes was given.
6626if test "${with_Xp_includes+set}" = set; then :
6627  withval=$with_Xp_includes; smr_cv_with_Xp_includes=$withval
6628fi
6629
6630
6631      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the Xp header files" >&5
6632$as_echo_n "checking where to find the Xp header files... " >&6; }
6633if ${smr_cv_with_Xp_includes+:} false; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  smr_cv_with_Xp_includes=
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xp_includes" >&5
6639$as_echo "$smr_cv_with_Xp_includes" >&6; }
6640
6641  if test ! x"$smr_cv_with_Xp_includes" = x; then
6642    if test -d "$smr_cv_with_Xp_includes"; then
6643      Xp_CFLAGS="-I$smr_cv_with_Xp_includes"
6644    else
6645      as_fn_error $? "argument must be a directory" "$LINENO" 5
6646    fi
6647  else
6648    Xp_CFLAGS=
6649  fi
6650
6651        smr_test_CPPFLAGS="${CPPFLAGS+set}"
6652  smr_save_CPPFLAGS="$CPPFLAGS"
6653  CPPFLAGS="$CPPFLAGS $Xp_CFLAGS $X_CFLAGS"
6654
6655      for ac_header in X11/extensions/Print.h
6656do :
6657  ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Print.h" "ac_cv_header_X11_extensions_Print_h" "$ac_includes_default"
6658if test "x$ac_cv_header_X11_extensions_Print_h" = xyes; then :
6659  cat >>confdefs.h <<_ACEOF
6660#define HAVE_X11_EXTENSIONS_PRINT_H 1
6661_ACEOF
6662 smr_have_Xp_header=yes
6663else
6664  smr_have_Xp_header=no
6665fi
6666
6667done
6668
6669
6670  if test x"$smr_test_CPPFLAGS" = xset; then
6671    CPPFLAGS=$smr_save_CPPFLAGS
6672  else
6673    unset CPPFLAGS
6674  fi
6675
6676
6677
6678
6679
6680
6681
6682    # We need only look for the library if the header has been found
6683    # (or no header is needed).
6684    if test $smr_have_Xp_header != no; then
6685
6686       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpStartPage in -lXp" >&5
6687$as_echo_n "checking for XpStartPage in -lXp... " >&6; }
6688if ${ac_cv_lib_Xp_XpStartPage+:} false; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  ac_check_lib_save_LIBS=$LIBS
6692LIBS="-lXp $Xp_CFLAGS $X_CFLAGS $Xp_LIBS $X_LIBS $X_PRE_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
6693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h.  */
6695
6696/* Override any GCC internal prototype to avoid an error.
6697   Use char because int might match the return type of a GCC
6698   builtin and then its argument prototype would still apply.  */
6699#ifdef __cplusplus
6700extern "C"
6701#endif
6702char XpStartPage ();
6703int
6704main ()
6705{
6706return XpStartPage ();
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"; then :
6712  ac_cv_lib_Xp_XpStartPage=yes
6713else
6714  ac_cv_lib_Xp_XpStartPage=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext \
6717    conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpStartPage" >&5
6721$as_echo "$ac_cv_lib_Xp_XpStartPage" >&6; }
6722if test "x$ac_cv_lib_Xp_XpStartPage" = xyes; then :
6723  smr_have_Xp_library=yes
6724else
6725  smr_have_Xp_library=no
6726fi
6727
6728    fi
6729
6730    if test x"$smr_have_Xp_library" = xyes; then
6731      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Xp library" >&5
6732$as_echo "using Xp library" >&6; }
6733    else
6734      Xp_LIBS=
6735      Xp_CFLAGS=
6736
6737      if test x"$with_Xp" = xmaybe; then
6738        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using Xp library" >&5
6739$as_echo "not using Xp library" >&6; }
6740      else
6741        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested Xp library not found!" >&5
6742$as_echo "$as_me: WARNING: requested Xp library not found!" >&2;}
6743      fi
6744    fi
6745  fi
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777# Check whether --with-Xt-library was given.
6778if test "${with_Xt_library+set}" = set; then :
6779  withval=$with_Xt_library; smr_cv_with_Xt_library=$withval
6780fi
6781
6782
6783      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Xt library" >&5
6784$as_echo_n "checking whether to use Xt library... " >&6; }
6785if ${smr_cv_with_Xt_library+:} false; then :
6786  $as_echo_n "(cached) " >&6
6787else
6788  smr_cv_with_Xt_library=maybe
6789fi
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xt_library" >&5
6791$as_echo "$smr_cv_with_Xt_library" >&6; }
6792
6793
6794  case x"$smr_cv_with_Xt_library" in
6795      xyes | xmaybe)
6796          Xt_LIBS="-lXt"
6797          with_Xt=$smr_cv_with_Xt_library
6798          ;;
6799      xno)
6800          Xt_LIBS=
6801          with_Xt=no
6802          ;;
6803      *)
6804          if test -f "$smr_cv_with_Xt_library"; then
6805            Xt_LIBS=$smr_cv_with_Xt_library
6806          elif test -d "$smr_cv_with_Xt_library"; then
6807            Xt_LIBS="-L$smr_cv_with_Xt_library -lXt"
6808          else
6809            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
6810          fi
6811          with_Xt=yes
6812          ;;
6813  esac
6814
6815
6816
6817
6818
6819
6820
6821  if test ! x"$with_Xt" = xno; then
6822
6823    # If we got this far, then the user didn't explicitly ask not to use
6824    # the library.
6825
6826
6827
6828
6829
6830
6831
6832
6833# Check whether --with-Xt-includes was given.
6834if test "${with_Xt_includes+set}" = set; then :
6835  withval=$with_Xt_includes; smr_cv_with_Xt_includes=$withval
6836fi
6837
6838
6839      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the Xt header files" >&5
6840$as_echo_n "checking where to find the Xt header files... " >&6; }
6841if ${smr_cv_with_Xt_includes+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  smr_cv_with_Xt_includes=
6845fi
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xt_includes" >&5
6847$as_echo "$smr_cv_with_Xt_includes" >&6; }
6848
6849  if test ! x"$smr_cv_with_Xt_includes" = x; then
6850    if test -d "$smr_cv_with_Xt_includes"; then
6851      Xt_CFLAGS="-I$smr_cv_with_Xt_includes"
6852    else
6853      as_fn_error $? "argument must be a directory" "$LINENO" 5
6854    fi
6855  else
6856    Xt_CFLAGS=
6857  fi
6858
6859        smr_test_CPPFLAGS="${CPPFLAGS+set}"
6860  smr_save_CPPFLAGS="$CPPFLAGS"
6861  CPPFLAGS="$CPPFLAGS $Xt_CFLAGS $X_CFLAGS"
6862
6863      for ac_header in X11/Intrinsic.h
6864do :
6865  ac_fn_c_check_header_mongrel "$LINENO" "X11/Intrinsic.h" "ac_cv_header_X11_Intrinsic_h" "$ac_includes_default"
6866if test "x$ac_cv_header_X11_Intrinsic_h" = xyes; then :
6867  cat >>confdefs.h <<_ACEOF
6868#define HAVE_X11_INTRINSIC_H 1
6869_ACEOF
6870 smr_have_Xt_header=yes
6871else
6872  smr_have_Xt_header=no
6873fi
6874
6875done
6876
6877
6878  if test x"$smr_test_CPPFLAGS" = xset; then
6879    CPPFLAGS=$smr_save_CPPFLAGS
6880  else
6881    unset CPPFLAGS
6882  fi
6883
6884
6885
6886
6887
6888
6889
6890    # We need only look for the library if the header has been found
6891    # (or no header is needed).
6892    if test $smr_have_Xt_header != no; then
6893
6894       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtAppInitialize in -lXt" >&5
6895$as_echo_n "checking for XtAppInitialize in -lXt... " >&6; }
6896if ${ac_cv_lib_Xt_XtAppInitialize+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  ac_check_lib_save_LIBS=$LIBS
6900LIBS="-lXt $Xt_CFLAGS $X_CFLAGS $Xt_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
6901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903
6904/* Override any GCC internal prototype to avoid an error.
6905   Use char because int might match the return type of a GCC
6906   builtin and then its argument prototype would still apply.  */
6907#ifdef __cplusplus
6908extern "C"
6909#endif
6910char XtAppInitialize ();
6911int
6912main ()
6913{
6914return XtAppInitialize ();
6915  ;
6916  return 0;
6917}
6918_ACEOF
6919if ac_fn_c_try_link "$LINENO"; then :
6920  ac_cv_lib_Xt_XtAppInitialize=yes
6921else
6922  ac_cv_lib_Xt_XtAppInitialize=no
6923fi
6924rm -f core conftest.err conftest.$ac_objext \
6925    conftest$ac_exeext conftest.$ac_ext
6926LIBS=$ac_check_lib_save_LIBS
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
6929$as_echo "$ac_cv_lib_Xt_XtAppInitialize" >&6; }
6930if test "x$ac_cv_lib_Xt_XtAppInitialize" = xyes; then :
6931  smr_have_Xt_library=yes
6932else
6933  smr_have_Xt_library=no
6934fi
6935
6936    fi
6937
6938    if test x"$smr_have_Xt_library" = xyes; then
6939      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Xt library" >&5
6940$as_echo "using Xt library" >&6; }
6941    else
6942      Xt_LIBS=
6943      Xt_CFLAGS=
6944
6945      if test x"$with_Xt" = xmaybe; then
6946        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using Xt library" >&5
6947$as_echo "not using Xt library" >&6; }
6948      else
6949        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested Xt library not found!" >&5
6950$as_echo "$as_me: WARNING: requested Xt library not found!" >&2;}
6951      fi
6952    fi
6953  fi
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985# Check whether --with-Xm-library was given.
6986if test "${with_Xm_library+set}" = set; then :
6987  withval=$with_Xm_library; smr_cv_with_Xm_library=$withval
6988fi
6989
6990
6991      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Xm library" >&5
6992$as_echo_n "checking whether to use Xm library... " >&6; }
6993if ${smr_cv_with_Xm_library+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  smr_cv_with_Xm_library=maybe
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xm_library" >&5
6999$as_echo "$smr_cv_with_Xm_library" >&6; }
7000
7001
7002  case x"$smr_cv_with_Xm_library" in
7003      xyes | xmaybe)
7004          Xm_LIBS="-lXm"
7005          with_Xm=$smr_cv_with_Xm_library
7006          ;;
7007      xno)
7008          Xm_LIBS=
7009          with_Xm=no
7010          ;;
7011      *)
7012          if test -f "$smr_cv_with_Xm_library"; then
7013            Xm_LIBS=$smr_cv_with_Xm_library
7014          elif test -d "$smr_cv_with_Xm_library"; then
7015            Xm_LIBS="-L$smr_cv_with_Xm_library -lXm"
7016          else
7017            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
7018          fi
7019          with_Xm=yes
7020          ;;
7021  esac
7022
7023
7024
7025
7026
7027
7028
7029  if test ! x"$with_Xm" = xno; then
7030
7031    # If we got this far, then the user didn't explicitly ask not to use
7032    # the library.
7033
7034
7035
7036
7037
7038
7039
7040
7041# Check whether --with-Xm-includes was given.
7042if test "${with_Xm_includes+set}" = set; then :
7043  withval=$with_Xm_includes; smr_cv_with_Xm_includes=$withval
7044fi
7045
7046
7047      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the Xm header files" >&5
7048$as_echo_n "checking where to find the Xm header files... " >&6; }
7049if ${smr_cv_with_Xm_includes+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  smr_cv_with_Xm_includes=
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Xm_includes" >&5
7055$as_echo "$smr_cv_with_Xm_includes" >&6; }
7056
7057  if test ! x"$smr_cv_with_Xm_includes" = x; then
7058    if test -d "$smr_cv_with_Xm_includes"; then
7059      Xm_CFLAGS="-I$smr_cv_with_Xm_includes"
7060    else
7061      as_fn_error $? "argument must be a directory" "$LINENO" 5
7062    fi
7063  else
7064    Xm_CFLAGS=
7065  fi
7066
7067        smr_test_CPPFLAGS="${CPPFLAGS+set}"
7068  smr_save_CPPFLAGS="$CPPFLAGS"
7069  CPPFLAGS="$CPPFLAGS $Xm_CFLAGS $X_CFLAGS"
7070
7071      for ac_header in Xm/XmAll.h
7072do :
7073  ac_fn_c_check_header_mongrel "$LINENO" "Xm/XmAll.h" "ac_cv_header_Xm_XmAll_h" "$ac_includes_default"
7074if test "x$ac_cv_header_Xm_XmAll_h" = xyes; then :
7075  cat >>confdefs.h <<_ACEOF
7076#define HAVE_XM_XMALL_H 1
7077_ACEOF
7078 smr_have_Xm_header=yes
7079else
7080  smr_have_Xm_header=no
7081fi
7082
7083done
7084
7085
7086  if test x"$smr_test_CPPFLAGS" = xset; then
7087    CPPFLAGS=$smr_save_CPPFLAGS
7088  else
7089    unset CPPFLAGS
7090  fi
7091
7092
7093
7094
7095
7096
7097
7098    # We need only look for the library if the header has been found
7099    # (or no header is needed).
7100    if test $smr_have_Xm_header != no; then
7101
7102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmCreateForm in -lXm" >&5
7103$as_echo_n "checking for XmCreateForm in -lXm... " >&6; }
7104if ${ac_cv_lib_Xm_XmCreateForm+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  ac_check_lib_save_LIBS=$LIBS
7108LIBS="-lXm $Xm_CFLAGS $X_CFLAGS $Xm_LIBS $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
7109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111
7112/* Override any GCC internal prototype to avoid an error.
7113   Use char because int might match the return type of a GCC
7114   builtin and then its argument prototype would still apply.  */
7115#ifdef __cplusplus
7116extern "C"
7117#endif
7118char XmCreateForm ();
7119int
7120main ()
7121{
7122return XmCreateForm ();
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"; then :
7128  ac_cv_lib_Xm_XmCreateForm=yes
7129else
7130  ac_cv_lib_Xm_XmCreateForm=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134LIBS=$ac_check_lib_save_LIBS
7135fi
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmCreateForm" >&5
7137$as_echo "$ac_cv_lib_Xm_XmCreateForm" >&6; }
7138if test "x$ac_cv_lib_Xm_XmCreateForm" = xyes; then :
7139  smr_have_Xm_library=yes
7140else
7141  smr_have_Xm_library=no
7142fi
7143
7144    fi
7145
7146    if test x"$smr_have_Xm_library" = xyes; then
7147      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Xm library" >&5
7148$as_echo "using Xm library" >&6; }
7149    else
7150      Xm_LIBS=
7151      Xm_CFLAGS=
7152
7153      if test x"$with_Xm" = xmaybe; then
7154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using Xm library" >&5
7155$as_echo "not using Xm library" >&6; }
7156      else
7157        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested Xm library not found!" >&5
7158$as_echo "$as_me: WARNING: requested Xm library not found!" >&2;}
7159      fi
7160    fi
7161  fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193# Check whether --with-Sgm-library was given.
7194if test "${with_Sgm_library+set}" = set; then :
7195  withval=$with_Sgm_library; smr_cv_with_Sgm_library=$withval
7196fi
7197
7198
7199      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Sgm library" >&5
7200$as_echo_n "checking whether to use Sgm library... " >&6; }
7201if ${smr_cv_with_Sgm_library+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  smr_cv_with_Sgm_library=maybe
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Sgm_library" >&5
7207$as_echo "$smr_cv_with_Sgm_library" >&6; }
7208
7209
7210  case x"$smr_cv_with_Sgm_library" in
7211      xyes | xmaybe)
7212          Sgm_LIBS="-lSgm"
7213          with_Sgm=$smr_cv_with_Sgm_library
7214          ;;
7215      xno)
7216          Sgm_LIBS=
7217          with_Sgm=no
7218          ;;
7219      *)
7220          if test -f "$smr_cv_with_Sgm_library"; then
7221            Sgm_LIBS=$smr_cv_with_Sgm_library
7222          elif test -d "$smr_cv_with_Sgm_library"; then
7223            Sgm_LIBS="-L$smr_cv_with_Sgm_library -lSgm"
7224          else
7225            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
7226          fi
7227          with_Sgm=yes
7228          ;;
7229  esac
7230
7231
7232
7233
7234
7235
7236
7237  if test ! x"$with_Sgm" = xno; then
7238
7239    # If we got this far, then the user didn't explicitly ask not to use
7240    # the library.
7241
7242
7243
7244
7245
7246
7247
7248
7249# Check whether --with-Sgm-includes was given.
7250if test "${with_Sgm_includes+set}" = set; then :
7251  withval=$with_Sgm_includes; smr_cv_with_Sgm_includes=$withval
7252fi
7253
7254
7255      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the Sgm header files" >&5
7256$as_echo_n "checking where to find the Sgm header files... " >&6; }
7257if ${smr_cv_with_Sgm_includes+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  smr_cv_with_Sgm_includes=
7261fi
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_Sgm_includes" >&5
7263$as_echo "$smr_cv_with_Sgm_includes" >&6; }
7264
7265  if test ! x"$smr_cv_with_Sgm_includes" = x; then
7266    if test -d "$smr_cv_with_Sgm_includes"; then
7267      Sgm_CFLAGS="-I$smr_cv_with_Sgm_includes"
7268    else
7269      as_fn_error $? "argument must be a directory" "$LINENO" 5
7270    fi
7271  else
7272    Sgm_CFLAGS=
7273  fi
7274
7275        smr_test_CPPFLAGS="${CPPFLAGS+set}"
7276  smr_save_CPPFLAGS="$CPPFLAGS"
7277  CPPFLAGS="$CPPFLAGS $Sgm_CFLAGS $X_CFLAGS"
7278
7279      for ac_header in Sgm/HPanedW.h
7280do :
7281  ac_fn_c_check_header_mongrel "$LINENO" "Sgm/HPanedW.h" "ac_cv_header_Sgm_HPanedW_h" "$ac_includes_default"
7282if test "x$ac_cv_header_Sgm_HPanedW_h" = xyes; then :
7283  cat >>confdefs.h <<_ACEOF
7284#define HAVE_SGM_HPANEDW_H 1
7285_ACEOF
7286 smr_have_Sgm_header=yes
7287else
7288  smr_have_Sgm_header=no
7289fi
7290
7291done
7292
7293
7294  if test x"$smr_test_CPPFLAGS" = xset; then
7295    CPPFLAGS=$smr_save_CPPFLAGS
7296  else
7297    unset CPPFLAGS
7298  fi
7299
7300
7301
7302
7303
7304
7305
7306    # We need only look for the library if the header has been found
7307    # (or no header is needed).
7308    if test $smr_have_Sgm_header != no; then
7309
7310       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SgCreateHorzPanedWindow in -lSgm" >&5
7311$as_echo_n "checking for SgCreateHorzPanedWindow in -lSgm... " >&6; }
7312if ${ac_cv_lib_Sgm_SgCreateHorzPanedWindow+:} false; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315  ac_check_lib_save_LIBS=$LIBS
7316LIBS="-lSgm $Sgm_CFLAGS $X_CFLAGS $Sgm_LIBS $Xm_LIBS $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
7317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h.  */
7319
7320/* Override any GCC internal prototype to avoid an error.
7321   Use char because int might match the return type of a GCC
7322   builtin and then its argument prototype would still apply.  */
7323#ifdef __cplusplus
7324extern "C"
7325#endif
7326char SgCreateHorzPanedWindow ();
7327int
7328main ()
7329{
7330return SgCreateHorzPanedWindow ();
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335if ac_fn_c_try_link "$LINENO"; then :
7336  ac_cv_lib_Sgm_SgCreateHorzPanedWindow=yes
7337else
7338  ac_cv_lib_Sgm_SgCreateHorzPanedWindow=no
7339fi
7340rm -f core conftest.err conftest.$ac_objext \
7341    conftest$ac_exeext conftest.$ac_ext
7342LIBS=$ac_check_lib_save_LIBS
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Sgm_SgCreateHorzPanedWindow" >&5
7345$as_echo "$ac_cv_lib_Sgm_SgCreateHorzPanedWindow" >&6; }
7346if test "x$ac_cv_lib_Sgm_SgCreateHorzPanedWindow" = xyes; then :
7347  smr_have_Sgm_library=yes
7348else
7349  smr_have_Sgm_library=no
7350fi
7351
7352    fi
7353
7354    if test x"$smr_have_Sgm_library" = xyes; then
7355      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Sgm library" >&5
7356$as_echo "using Sgm library" >&6; }
7357    else
7358      Sgm_LIBS=
7359      Sgm_CFLAGS=
7360
7361      if test x"$with_Sgm" = xmaybe; then
7362        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using Sgm library" >&5
7363$as_echo "not using Sgm library" >&6; }
7364      else
7365        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested Sgm library not found!" >&5
7366$as_echo "$as_me: WARNING: requested Sgm library not found!" >&2;}
7367      fi
7368    fi
7369  fi
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384    if test "x$smr_have_Xt_library" = xyes; then
7385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtAppSetExitFlag in -lXt" >&5
7386$as_echo_n "checking for XtAppSetExitFlag in -lXt... " >&6; }
7387if ${ac_cv_lib_Xt_XtAppSetExitFlag+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390  ac_check_lib_save_LIBS=$LIBS
7391LIBS="-lXt $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
7392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h.  */
7394
7395/* Override any GCC internal prototype to avoid an error.
7396   Use char because int might match the return type of a GCC
7397   builtin and then its argument prototype would still apply.  */
7398#ifdef __cplusplus
7399extern "C"
7400#endif
7401char XtAppSetExitFlag ();
7402int
7403main ()
7404{
7405return XtAppSetExitFlag ();
7406  ;
7407  return 0;
7408}
7409_ACEOF
7410if ac_fn_c_try_link "$LINENO"; then :
7411  ac_cv_lib_Xt_XtAppSetExitFlag=yes
7412else
7413  ac_cv_lib_Xt_XtAppSetExitFlag=no
7414fi
7415rm -f core conftest.err conftest.$ac_objext \
7416    conftest$ac_exeext conftest.$ac_ext
7417LIBS=$ac_check_lib_save_LIBS
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtAppSetExitFlag" >&5
7420$as_echo "$ac_cv_lib_Xt_XtAppSetExitFlag" >&6; }
7421if test "x$ac_cv_lib_Xt_XtAppSetExitFlag" = xyes; then :
7422  $as_echo "#define HAVE_XTAPPSETEXITFLAG 1" >>confdefs.h
7423
7424fi
7425
7426  fi
7427fi
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447# Check whether --with-freetype2-library was given.
7448if test "${with_freetype2_library+set}" = set; then :
7449  withval=$with_freetype2_library; smr_cv_with_freetype2_library=$withval
7450fi
7451
7452
7453      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use freetype2 library" >&5
7454$as_echo_n "checking whether to use freetype2 library... " >&6; }
7455if ${smr_cv_with_freetype2_library+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  smr_cv_with_freetype2_library=maybe
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_freetype2_library" >&5
7461$as_echo "$smr_cv_with_freetype2_library" >&6; }
7462
7463
7464  case x"$smr_cv_with_freetype2_library" in
7465      xyes | xmaybe)
7466          freetype2_LIBS="-lfreetype"
7467          with_freetype2=$smr_cv_with_freetype2_library
7468          ;;
7469      xno)
7470          freetype2_LIBS=
7471          with_freetype2=no
7472          ;;
7473      *)
7474          if test -f "$smr_cv_with_freetype2_library"; then
7475            freetype2_LIBS=$smr_cv_with_freetype2_library
7476          elif test -d "$smr_cv_with_freetype2_library"; then
7477            freetype2_LIBS="-L$smr_cv_with_freetype2_library -lfreetype"
7478          else
7479            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
7480          fi
7481          with_freetype2=yes
7482          ;;
7483  esac
7484
7485
7486
7487
7488
7489
7490
7491  if test ! x"$with_freetype2" = xno; then
7492
7493    # If we got this far, then the user didn't explicitly ask not to use
7494    # the library.
7495
7496
7497
7498
7499
7500
7501
7502
7503# Check whether --with-freetype2-includes was given.
7504if test "${with_freetype2_includes+set}" = set; then :
7505  withval=$with_freetype2_includes; smr_cv_with_freetype2_includes=$withval
7506fi
7507
7508
7509      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the freetype2 header files" >&5
7510$as_echo_n "checking where to find the freetype2 header files... " >&6; }
7511if ${smr_cv_with_freetype2_includes+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  smr_cv_with_freetype2_includes=
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_freetype2_includes" >&5
7517$as_echo "$smr_cv_with_freetype2_includes" >&6; }
7518
7519  if test ! x"$smr_cv_with_freetype2_includes" = x; then
7520    if test -d "$smr_cv_with_freetype2_includes"; then
7521      freetype2_CFLAGS="-I$smr_cv_with_freetype2_includes"
7522    else
7523      as_fn_error $? "argument must be a directory" "$LINENO" 5
7524    fi
7525  else
7526    freetype2_CFLAGS=
7527  fi
7528
7529        smr_test_CPPFLAGS="${CPPFLAGS+set}"
7530  smr_save_CPPFLAGS="$CPPFLAGS"
7531  CPPFLAGS="$CPPFLAGS $freetype2_CFLAGS "
7532
7533      for ac_header in ft2build.h
7534do :
7535  ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
7536if test "x$ac_cv_header_ft2build_h" = xyes; then :
7537  cat >>confdefs.h <<_ACEOF
7538#define HAVE_FT2BUILD_H 1
7539_ACEOF
7540 smr_have_freetype2_header=yes
7541else
7542  smr_have_freetype2_header=no
7543fi
7544
7545done
7546
7547
7548  if test x"$smr_test_CPPFLAGS" = xset; then
7549    CPPFLAGS=$smr_save_CPPFLAGS
7550  else
7551    unset CPPFLAGS
7552  fi
7553
7554
7555
7556
7557
7558
7559
7560    # We need only look for the library if the header has been found
7561    # (or no header is needed).
7562    if test $smr_have_freetype2_header != no; then
7563
7564       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Get_Name_Index in -lfreetype" >&5
7565$as_echo_n "checking for FT_Get_Name_Index in -lfreetype... " >&6; }
7566if ${ac_cv_lib_freetype_FT_Get_Name_Index+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  ac_check_lib_save_LIBS=$LIBS
7570LIBS="-lfreetype $freetype2_CFLAGS  $freetype2_LIBS -lm $LIBS"
7571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h.  */
7573
7574/* Override any GCC internal prototype to avoid an error.
7575   Use char because int might match the return type of a GCC
7576   builtin and then its argument prototype would still apply.  */
7577#ifdef __cplusplus
7578extern "C"
7579#endif
7580char FT_Get_Name_Index ();
7581int
7582main ()
7583{
7584return FT_Get_Name_Index ();
7585  ;
7586  return 0;
7587}
7588_ACEOF
7589if ac_fn_c_try_link "$LINENO"; then :
7590  ac_cv_lib_freetype_FT_Get_Name_Index=yes
7591else
7592  ac_cv_lib_freetype_FT_Get_Name_Index=no
7593fi
7594rm -f core conftest.err conftest.$ac_objext \
7595    conftest$ac_exeext conftest.$ac_ext
7596LIBS=$ac_check_lib_save_LIBS
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Get_Name_Index" >&5
7599$as_echo "$ac_cv_lib_freetype_FT_Get_Name_Index" >&6; }
7600if test "x$ac_cv_lib_freetype_FT_Get_Name_Index" = xyes; then :
7601  smr_have_freetype2_library=yes
7602else
7603  smr_have_freetype2_library=no
7604fi
7605
7606    fi
7607
7608    if test x"$smr_have_freetype2_library" = xyes; then
7609      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using freetype2 library" >&5
7610$as_echo "using freetype2 library" >&6; }
7611    else
7612      freetype2_LIBS=
7613      freetype2_CFLAGS=
7614
7615      if test x"$with_freetype2" = xmaybe; then
7616        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using freetype2 library" >&5
7617$as_echo "not using freetype2 library" >&6; }
7618      else
7619        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested freetype2 library not found!" >&5
7620$as_echo "$as_me: WARNING: requested freetype2 library not found!" >&2;}
7621      fi
7622    fi
7623  fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637if test "x$smr_have_freetype2_library" = xyes; then
7638  $as_echo "#define HAVE_FREETYPE_FREETYPE_H 1" >>confdefs.h
7639
7640  $as_echo "#define HAVE_SPLASH 1" >>confdefs.h
7641
7642fi
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662# Check whether --with-libpng-library was given.
7663if test "${with_libpng_library+set}" = set; then :
7664  withval=$with_libpng_library; smr_cv_with_libpng_library=$withval
7665fi
7666
7667
7668      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libpng library" >&5
7669$as_echo_n "checking whether to use libpng library... " >&6; }
7670if ${smr_cv_with_libpng_library+:} false; then :
7671  $as_echo_n "(cached) " >&6
7672else
7673  smr_cv_with_libpng_library=maybe
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_libpng_library" >&5
7676$as_echo "$smr_cv_with_libpng_library" >&6; }
7677
7678
7679  case x"$smr_cv_with_libpng_library" in
7680      xyes | xmaybe)
7681          libpng_LIBS="-lpng"
7682          with_libpng=$smr_cv_with_libpng_library
7683          ;;
7684      xno)
7685          libpng_LIBS=
7686          with_libpng=no
7687          ;;
7688      *)
7689          if test -f "$smr_cv_with_libpng_library"; then
7690            libpng_LIBS=$smr_cv_with_libpng_library
7691          elif test -d "$smr_cv_with_libpng_library"; then
7692            libpng_LIBS="-L$smr_cv_with_libpng_library -lpng"
7693          else
7694            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
7695          fi
7696          with_libpng=yes
7697          ;;
7698  esac
7699
7700
7701
7702
7703
7704
7705
7706  if test ! x"$with_libpng" = xno; then
7707
7708    # If we got this far, then the user didn't explicitly ask not to use
7709    # the library.
7710
7711
7712
7713
7714
7715
7716
7717
7718# Check whether --with-libpng-includes was given.
7719if test "${with_libpng_includes+set}" = set; then :
7720  withval=$with_libpng_includes; smr_cv_with_libpng_includes=$withval
7721fi
7722
7723
7724      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the libpng header files" >&5
7725$as_echo_n "checking where to find the libpng header files... " >&6; }
7726if ${smr_cv_with_libpng_includes+:} false; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  smr_cv_with_libpng_includes=
7730fi
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_libpng_includes" >&5
7732$as_echo "$smr_cv_with_libpng_includes" >&6; }
7733
7734  if test ! x"$smr_cv_with_libpng_includes" = x; then
7735    if test -d "$smr_cv_with_libpng_includes"; then
7736      libpng_CFLAGS="-I$smr_cv_with_libpng_includes"
7737    else
7738      as_fn_error $? "argument must be a directory" "$LINENO" 5
7739    fi
7740  else
7741    libpng_CFLAGS=
7742  fi
7743
7744        smr_test_CPPFLAGS="${CPPFLAGS+set}"
7745  smr_save_CPPFLAGS="$CPPFLAGS"
7746  CPPFLAGS="$CPPFLAGS $libpng_CFLAGS "
7747
7748      for ac_header in png.h
7749do :
7750  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
7751if test "x$ac_cv_header_png_h" = xyes; then :
7752  cat >>confdefs.h <<_ACEOF
7753#define HAVE_PNG_H 1
7754_ACEOF
7755 smr_have_libpng_header=yes
7756else
7757  smr_have_libpng_header=no
7758fi
7759
7760done
7761
7762
7763  if test x"$smr_test_CPPFLAGS" = xset; then
7764    CPPFLAGS=$smr_save_CPPFLAGS
7765  else
7766    unset CPPFLAGS
7767  fi
7768
7769
7770
7771
7772
7773
7774
7775    # We need only look for the library if the header has been found
7776    # (or no header is needed).
7777    if test $smr_have_libpng_header != no; then
7778
7779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_row in -lpng" >&5
7780$as_echo_n "checking for png_write_row in -lpng... " >&6; }
7781if ${ac_cv_lib_png_png_write_row+:} false; then :
7782  $as_echo_n "(cached) " >&6
7783else
7784  ac_check_lib_save_LIBS=$LIBS
7785LIBS="-lpng $libpng_CFLAGS  $libpng_LIBS -lz $LIBS"
7786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788
7789/* Override any GCC internal prototype to avoid an error.
7790   Use char because int might match the return type of a GCC
7791   builtin and then its argument prototype would still apply.  */
7792#ifdef __cplusplus
7793extern "C"
7794#endif
7795char png_write_row ();
7796int
7797main ()
7798{
7799return png_write_row ();
7800  ;
7801  return 0;
7802}
7803_ACEOF
7804if ac_fn_c_try_link "$LINENO"; then :
7805  ac_cv_lib_png_png_write_row=yes
7806else
7807  ac_cv_lib_png_png_write_row=no
7808fi
7809rm -f core conftest.err conftest.$ac_objext \
7810    conftest$ac_exeext conftest.$ac_ext
7811LIBS=$ac_check_lib_save_LIBS
7812fi
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_row" >&5
7814$as_echo "$ac_cv_lib_png_png_write_row" >&6; }
7815if test "x$ac_cv_lib_png_png_write_row" = xyes; then :
7816  smr_have_libpng_library=yes
7817else
7818  smr_have_libpng_library=no
7819fi
7820
7821    fi
7822
7823    if test x"$smr_have_libpng_library" = xyes; then
7824      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libpng library" >&5
7825$as_echo "using libpng library" >&6; }
7826    else
7827      libpng_LIBS=
7828      libpng_CFLAGS=
7829
7830      if test x"$with_libpng" = xmaybe; then
7831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using libpng library" >&5
7832$as_echo "not using libpng library" >&6; }
7833      else
7834        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested libpng library not found!" >&5
7835$as_echo "$as_me: WARNING: requested libpng library not found!" >&2;}
7836      fi
7837    fi
7838  fi
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871# Check whether --with-libpaper-library was given.
7872if test "${with_libpaper_library+set}" = set; then :
7873  withval=$with_libpaper_library; smr_cv_with_libpaper_library=$withval
7874fi
7875
7876
7877      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libpaper library" >&5
7878$as_echo_n "checking whether to use libpaper library... " >&6; }
7879if ${smr_cv_with_libpaper_library+:} false; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882  smr_cv_with_libpaper_library=maybe
7883fi
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_libpaper_library" >&5
7885$as_echo "$smr_cv_with_libpaper_library" >&6; }
7886
7887
7888  case x"$smr_cv_with_libpaper_library" in
7889      xyes | xmaybe)
7890          libpaper_LIBS="-lpaper"
7891          with_libpaper=$smr_cv_with_libpaper_library
7892          ;;
7893      xno)
7894          libpaper_LIBS=
7895          with_libpaper=no
7896          ;;
7897      *)
7898          if test -f "$smr_cv_with_libpaper_library"; then
7899            libpaper_LIBS=$smr_cv_with_libpaper_library
7900          elif test -d "$smr_cv_with_libpaper_library"; then
7901            libpaper_LIBS="-L$smr_cv_with_libpaper_library -lpaper"
7902          else
7903            as_fn_error $? "argument must be boolean, file, or directory" "$LINENO" 5
7904          fi
7905          with_libpaper=yes
7906          ;;
7907  esac
7908
7909
7910
7911
7912
7913
7914
7915  if test ! x"$with_libpaper" = xno; then
7916
7917    # If we got this far, then the user didn't explicitly ask not to use
7918    # the library.
7919
7920
7921
7922
7923
7924
7925
7926
7927# Check whether --with-libpaper-includes was given.
7928if test "${with_libpaper_includes+set}" = set; then :
7929  withval=$with_libpaper_includes; smr_cv_with_libpaper_includes=$withval
7930fi
7931
7932
7933      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the libpaper header files" >&5
7934$as_echo_n "checking where to find the libpaper header files... " >&6; }
7935if ${smr_cv_with_libpaper_includes+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  smr_cv_with_libpaper_includes=
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smr_cv_with_libpaper_includes" >&5
7941$as_echo "$smr_cv_with_libpaper_includes" >&6; }
7942
7943  if test ! x"$smr_cv_with_libpaper_includes" = x; then
7944    if test -d "$smr_cv_with_libpaper_includes"; then
7945      libpaper_CFLAGS="-I$smr_cv_with_libpaper_includes"
7946    else
7947      as_fn_error $? "argument must be a directory" "$LINENO" 5
7948    fi
7949  else
7950    libpaper_CFLAGS=
7951  fi
7952
7953        smr_test_CPPFLAGS="${CPPFLAGS+set}"
7954  smr_save_CPPFLAGS="$CPPFLAGS"
7955  CPPFLAGS="$CPPFLAGS $libpaper_CFLAGS "
7956
7957      for ac_header in paper.h
7958do :
7959  ac_fn_c_check_header_mongrel "$LINENO" "paper.h" "ac_cv_header_paper_h" "$ac_includes_default"
7960if test "x$ac_cv_header_paper_h" = xyes; then :
7961  cat >>confdefs.h <<_ACEOF
7962#define HAVE_PAPER_H 1
7963_ACEOF
7964 smr_have_libpaper_header=yes
7965else
7966  smr_have_libpaper_header=no
7967fi
7968
7969done
7970
7971
7972  if test x"$smr_test_CPPFLAGS" = xset; then
7973    CPPFLAGS=$smr_save_CPPFLAGS
7974  else
7975    unset CPPFLAGS
7976  fi
7977
7978
7979
7980
7981
7982
7983
7984    # We need only look for the library if the header has been found
7985    # (or no header is needed).
7986    if test $smr_have_libpaper_header != no; then
7987
7988       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for paperinit in -lpaper" >&5
7989$as_echo_n "checking for paperinit in -lpaper... " >&6; }
7990if ${ac_cv_lib_paper_paperinit+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  ac_check_lib_save_LIBS=$LIBS
7994LIBS="-lpaper $libpaper_CFLAGS  $libpaper_LIBS  $LIBS"
7995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h.  */
7997
7998/* Override any GCC internal prototype to avoid an error.
7999   Use char because int might match the return type of a GCC
8000   builtin and then its argument prototype would still apply.  */
8001#ifdef __cplusplus
8002extern "C"
8003#endif
8004char paperinit ();
8005int
8006main ()
8007{
8008return paperinit ();
8009  ;
8010  return 0;
8011}
8012_ACEOF
8013if ac_fn_c_try_link "$LINENO"; then :
8014  ac_cv_lib_paper_paperinit=yes
8015else
8016  ac_cv_lib_paper_paperinit=no
8017fi
8018rm -f core conftest.err conftest.$ac_objext \
8019    conftest$ac_exeext conftest.$ac_ext
8020LIBS=$ac_check_lib_save_LIBS
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_paperinit" >&5
8023$as_echo "$ac_cv_lib_paper_paperinit" >&6; }
8024if test "x$ac_cv_lib_paper_paperinit" = xyes; then :
8025  smr_have_libpaper_library=yes
8026else
8027  smr_have_libpaper_library=no
8028fi
8029
8030    fi
8031
8032    if test x"$smr_have_libpaper_library" = xyes; then
8033      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libpaper library" >&5
8034$as_echo "using libpaper library" >&6; }
8035    else
8036      libpaper_LIBS=
8037      libpaper_CFLAGS=
8038
8039      if test x"$with_libpaper" = xmaybe; then
8040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not using libpaper library" >&5
8041$as_echo "not using libpaper library" >&6; }
8042      else
8043        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested libpaper library not found!" >&5
8044$as_echo "$as_me: WARNING: requested libpaper library not found!" >&2;}
8045      fi
8046    fi
8047  fi
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062if test -n "$no_x" -o "x$smr_have_Xm_library" != xyes -o "x$smr_have_freetype2_library" != xyes; then
8063  X="#"
8064  XPDF_TARGET="all-no-x"
8065else
8066  X=""
8067  XPDF_TARGET="all"
8068fi
8069
8070
8071
8072EXTRA_LIBS=
8073EXTRA_CFLAGS=
8074
8075
8076
8077ac_config_files="$ac_config_files Makefile goo/Makefile fofi/Makefile splash/Makefile xpdf/Makefile"
8078
8079cat >confcache <<\_ACEOF
8080# This file is a shell script that caches the results of configure
8081# tests run on this system so they can be shared between configure
8082# scripts and configure runs, see configure's option --config-cache.
8083# It is not useful on other systems.  If it contains results you don't
8084# want to keep, you may remove or edit it.
8085#
8086# config.status only pays attention to the cache file if you give it
8087# the --recheck option to rerun configure.
8088#
8089# `ac_cv_env_foo' variables (set or unset) will be overridden when
8090# loading this file, other *unset* `ac_cv_foo' will be assigned the
8091# following values.
8092
8093_ACEOF
8094
8095# The following way of writing the cache mishandles newlines in values,
8096# but we know of no workaround that is simple, portable, and efficient.
8097# So, we kill variables containing newlines.
8098# Ultrix sh set writes to stderr and can't be redirected directly,
8099# and sets the high bit in the cache file unless we assign to the vars.
8100(
8101  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8102    eval ac_val=\$$ac_var
8103    case $ac_val in #(
8104    *${as_nl}*)
8105      case $ac_var in #(
8106      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8108      esac
8109      case $ac_var in #(
8110      _ | IFS | as_nl) ;; #(
8111      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8112      *) { eval $ac_var=; unset $ac_var;} ;;
8113      esac ;;
8114    esac
8115  done
8116
8117  (set) 2>&1 |
8118    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8119    *${as_nl}ac_space=\ *)
8120      # `set' does not quote correctly, so add quotes: double-quote
8121      # substitution turns \\\\ into \\, and sed turns \\ into \.
8122      sed -n \
8123	"s/'/'\\\\''/g;
8124	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8125      ;; #(
8126    *)
8127      # `set' quotes correctly as required by POSIX, so do not add quotes.
8128      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8129      ;;
8130    esac |
8131    sort
8132) |
8133  sed '
8134     /^ac_cv_env_/b end
8135     t clear
8136     :clear
8137     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8138     t end
8139     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8140     :end' >>confcache
8141if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8142  if test -w "$cache_file"; then
8143    if test "x$cache_file" != "x/dev/null"; then
8144      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8145$as_echo "$as_me: updating cache $cache_file" >&6;}
8146      if test ! -f "$cache_file" || test -h "$cache_file"; then
8147	cat confcache >"$cache_file"
8148      else
8149        case $cache_file in #(
8150        */* | ?:*)
8151	  mv -f confcache "$cache_file"$$ &&
8152	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8153        *)
8154	  mv -f confcache "$cache_file" ;;
8155	esac
8156      fi
8157    fi
8158  else
8159    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8160$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8161  fi
8162fi
8163rm -f confcache
8164
8165test "x$prefix" = xNONE && prefix=$ac_default_prefix
8166# Let make expand exec_prefix.
8167test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8168
8169DEFS=-DHAVE_CONFIG_H
8170
8171ac_libobjs=
8172ac_ltlibobjs=
8173U=
8174for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8175  # 1. Remove the extension, and $U if already installed.
8176  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8177  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8178  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8179  #    will be set to the directory where LIBOBJS objects are built.
8180  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8181  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8182done
8183LIBOBJS=$ac_libobjs
8184
8185LTLIBOBJS=$ac_ltlibobjs
8186
8187
8188
8189: "${CONFIG_STATUS=./config.status}"
8190ac_write_fail=0
8191ac_clean_files_save=$ac_clean_files
8192ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8194$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8195as_write_fail=0
8196cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8197#! $SHELL
8198# Generated by $as_me.
8199# Run this file to recreate the current configuration.
8200# Compiler output produced by configure, useful for debugging
8201# configure, is in config.log if it exists.
8202
8203debug=false
8204ac_cs_recheck=false
8205ac_cs_silent=false
8206
8207SHELL=\${CONFIG_SHELL-$SHELL}
8208export SHELL
8209_ASEOF
8210cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8211## -------------------- ##
8212## M4sh Initialization. ##
8213## -------------------- ##
8214
8215# Be more Bourne compatible
8216DUALCASE=1; export DUALCASE # for MKS sh
8217if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8218  emulate sh
8219  NULLCMD=:
8220  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8221  # is contrary to our usage.  Disable this feature.
8222  alias -g '${1+"$@"}'='"$@"'
8223  setopt NO_GLOB_SUBST
8224else
8225  case `(set -o) 2>/dev/null` in #(
8226  *posix*) :
8227    set -o posix ;; #(
8228  *) :
8229     ;;
8230esac
8231fi
8232
8233
8234as_nl='
8235'
8236export as_nl
8237# Printing a long string crashes Solaris 7 /usr/bin/printf.
8238as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8239as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8240as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8241# Prefer a ksh shell builtin over an external printf program on Solaris,
8242# but without wasting forks for bash or zsh.
8243if test -z "$BASH_VERSION$ZSH_VERSION" \
8244    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8245  as_echo='print -r --'
8246  as_echo_n='print -rn --'
8247elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8248  as_echo='printf %s\n'
8249  as_echo_n='printf %s'
8250else
8251  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8252    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8253    as_echo_n='/usr/ucb/echo -n'
8254  else
8255    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8256    as_echo_n_body='eval
8257      arg=$1;
8258      case $arg in #(
8259      *"$as_nl"*)
8260	expr "X$arg" : "X\\(.*\\)$as_nl";
8261	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8262      esac;
8263      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8264    '
8265    export as_echo_n_body
8266    as_echo_n='sh -c $as_echo_n_body as_echo'
8267  fi
8268  export as_echo_body
8269  as_echo='sh -c $as_echo_body as_echo'
8270fi
8271
8272# The user is always right.
8273if test "${PATH_SEPARATOR+set}" != set; then
8274  PATH_SEPARATOR=:
8275  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8276    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8277      PATH_SEPARATOR=';'
8278  }
8279fi
8280
8281
8282# IFS
8283# We need space, tab and new line, in precisely that order.  Quoting is
8284# there to prevent editors from complaining about space-tab.
8285# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8286# splitting by setting IFS to empty value.)
8287IFS=" ""	$as_nl"
8288
8289# Find who we are.  Look in the path if we contain no directory separator.
8290as_myself=
8291case $0 in #((
8292  *[\\/]* ) as_myself=$0 ;;
8293  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296  IFS=$as_save_IFS
8297  test -z "$as_dir" && as_dir=.
8298    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8299  done
8300IFS=$as_save_IFS
8301
8302     ;;
8303esac
8304# We did not find ourselves, most probably we were run as `sh COMMAND'
8305# in which case we are not to be found in the path.
8306if test "x$as_myself" = x; then
8307  as_myself=$0
8308fi
8309if test ! -f "$as_myself"; then
8310  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8311  exit 1
8312fi
8313
8314# Unset variables that we do not need and which cause bugs (e.g. in
8315# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8316# suppresses any "Segmentation fault" message there.  '((' could
8317# trigger a bug in pdksh 5.2.14.
8318for as_var in BASH_ENV ENV MAIL MAILPATH
8319do eval test x\${$as_var+set} = xset \
8320  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8321done
8322PS1='$ '
8323PS2='> '
8324PS4='+ '
8325
8326# NLS nuisances.
8327LC_ALL=C
8328export LC_ALL
8329LANGUAGE=C
8330export LANGUAGE
8331
8332# CDPATH.
8333(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8334
8335
8336# as_fn_error STATUS ERROR [LINENO LOG_FD]
8337# ----------------------------------------
8338# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8339# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8340# script with STATUS, using 1 if that was 0.
8341as_fn_error ()
8342{
8343  as_status=$1; test $as_status -eq 0 && as_status=1
8344  if test "$4"; then
8345    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8346    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8347  fi
8348  $as_echo "$as_me: error: $2" >&2
8349  as_fn_exit $as_status
8350} # as_fn_error
8351
8352
8353# as_fn_set_status STATUS
8354# -----------------------
8355# Set $? to STATUS, without forking.
8356as_fn_set_status ()
8357{
8358  return $1
8359} # as_fn_set_status
8360
8361# as_fn_exit STATUS
8362# -----------------
8363# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8364as_fn_exit ()
8365{
8366  set +e
8367  as_fn_set_status $1
8368  exit $1
8369} # as_fn_exit
8370
8371# as_fn_unset VAR
8372# ---------------
8373# Portably unset VAR.
8374as_fn_unset ()
8375{
8376  { eval $1=; unset $1;}
8377}
8378as_unset=as_fn_unset
8379# as_fn_append VAR VALUE
8380# ----------------------
8381# Append the text in VALUE to the end of the definition contained in VAR. Take
8382# advantage of any shell optimizations that allow amortized linear growth over
8383# repeated appends, instead of the typical quadratic growth present in naive
8384# implementations.
8385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8386  eval 'as_fn_append ()
8387  {
8388    eval $1+=\$2
8389  }'
8390else
8391  as_fn_append ()
8392  {
8393    eval $1=\$$1\$2
8394  }
8395fi # as_fn_append
8396
8397# as_fn_arith ARG...
8398# ------------------
8399# Perform arithmetic evaluation on the ARGs, and store the result in the
8400# global $as_val. Take advantage of shells that can avoid forks. The arguments
8401# must be portable across $(()) and expr.
8402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8403  eval 'as_fn_arith ()
8404  {
8405    as_val=$(( $* ))
8406  }'
8407else
8408  as_fn_arith ()
8409  {
8410    as_val=`expr "$@" || test $? -eq 1`
8411  }
8412fi # as_fn_arith
8413
8414
8415if expr a : '\(a\)' >/dev/null 2>&1 &&
8416   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8417  as_expr=expr
8418else
8419  as_expr=false
8420fi
8421
8422if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8423  as_basename=basename
8424else
8425  as_basename=false
8426fi
8427
8428if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8429  as_dirname=dirname
8430else
8431  as_dirname=false
8432fi
8433
8434as_me=`$as_basename -- "$0" ||
8435$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8436	 X"$0" : 'X\(//\)$' \| \
8437	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8438$as_echo X/"$0" |
8439    sed '/^.*\/\([^/][^/]*\)\/*$/{
8440	    s//\1/
8441	    q
8442	  }
8443	  /^X\/\(\/\/\)$/{
8444	    s//\1/
8445	    q
8446	  }
8447	  /^X\/\(\/\).*/{
8448	    s//\1/
8449	    q
8450	  }
8451	  s/.*/./; q'`
8452
8453# Avoid depending upon Character Ranges.
8454as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8455as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8456as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8457as_cr_digits='0123456789'
8458as_cr_alnum=$as_cr_Letters$as_cr_digits
8459
8460ECHO_C= ECHO_N= ECHO_T=
8461case `echo -n x` in #(((((
8462-n*)
8463  case `echo 'xy\c'` in
8464  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8465  xy)  ECHO_C='\c';;
8466  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8467       ECHO_T='	';;
8468  esac;;
8469*)
8470  ECHO_N='-n';;
8471esac
8472
8473rm -f conf$$ conf$$.exe conf$$.file
8474if test -d conf$$.dir; then
8475  rm -f conf$$.dir/conf$$.file
8476else
8477  rm -f conf$$.dir
8478  mkdir conf$$.dir 2>/dev/null
8479fi
8480if (echo >conf$$.file) 2>/dev/null; then
8481  if ln -s conf$$.file conf$$ 2>/dev/null; then
8482    as_ln_s='ln -s'
8483    # ... but there are two gotchas:
8484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8486    # In both cases, we have to default to `cp -pR'.
8487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8488      as_ln_s='cp -pR'
8489  elif ln conf$$.file conf$$ 2>/dev/null; then
8490    as_ln_s=ln
8491  else
8492    as_ln_s='cp -pR'
8493  fi
8494else
8495  as_ln_s='cp -pR'
8496fi
8497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8498rmdir conf$$.dir 2>/dev/null
8499
8500
8501# as_fn_mkdir_p
8502# -------------
8503# Create "$as_dir" as a directory, including parents if necessary.
8504as_fn_mkdir_p ()
8505{
8506
8507  case $as_dir in #(
8508  -*) as_dir=./$as_dir;;
8509  esac
8510  test -d "$as_dir" || eval $as_mkdir_p || {
8511    as_dirs=
8512    while :; do
8513      case $as_dir in #(
8514      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8515      *) as_qdir=$as_dir;;
8516      esac
8517      as_dirs="'$as_qdir' $as_dirs"
8518      as_dir=`$as_dirname -- "$as_dir" ||
8519$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8520	 X"$as_dir" : 'X\(//\)[^/]' \| \
8521	 X"$as_dir" : 'X\(//\)$' \| \
8522	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8523$as_echo X"$as_dir" |
8524    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8525	    s//\1/
8526	    q
8527	  }
8528	  /^X\(\/\/\)[^/].*/{
8529	    s//\1/
8530	    q
8531	  }
8532	  /^X\(\/\/\)$/{
8533	    s//\1/
8534	    q
8535	  }
8536	  /^X\(\/\).*/{
8537	    s//\1/
8538	    q
8539	  }
8540	  s/.*/./; q'`
8541      test -d "$as_dir" && break
8542    done
8543    test -z "$as_dirs" || eval "mkdir $as_dirs"
8544  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8545
8546
8547} # as_fn_mkdir_p
8548if mkdir -p . 2>/dev/null; then
8549  as_mkdir_p='mkdir -p "$as_dir"'
8550else
8551  test -d ./-p && rmdir ./-p
8552  as_mkdir_p=false
8553fi
8554
8555
8556# as_fn_executable_p FILE
8557# -----------------------
8558# Test if FILE is an executable regular file.
8559as_fn_executable_p ()
8560{
8561  test -f "$1" && test -x "$1"
8562} # as_fn_executable_p
8563as_test_x='test -x'
8564as_executable_p=as_fn_executable_p
8565
8566# Sed expression to map a string onto a valid CPP name.
8567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8568
8569# Sed expression to map a string onto a valid variable name.
8570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8571
8572
8573exec 6>&1
8574## ----------------------------------- ##
8575## Main body of $CONFIG_STATUS script. ##
8576## ----------------------------------- ##
8577_ASEOF
8578test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8579
8580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8581# Save the log message, to keep $0 and so on meaningful, and to
8582# report actual input values of CONFIG_FILES etc. instead of their
8583# values after options handling.
8584ac_log="
8585This file was extended by $as_me, which was
8586generated by GNU Autoconf 2.69.  Invocation command line was
8587
8588  CONFIG_FILES    = $CONFIG_FILES
8589  CONFIG_HEADERS  = $CONFIG_HEADERS
8590  CONFIG_LINKS    = $CONFIG_LINKS
8591  CONFIG_COMMANDS = $CONFIG_COMMANDS
8592  $ $0 $@
8593
8594on `(hostname || uname -n) 2>/dev/null | sed 1q`
8595"
8596
8597_ACEOF
8598
8599case $ac_config_files in *"
8600"*) set x $ac_config_files; shift; ac_config_files=$*;;
8601esac
8602
8603case $ac_config_headers in *"
8604"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8605esac
8606
8607
8608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8609# Files that config.status was made for.
8610config_files="$ac_config_files"
8611config_headers="$ac_config_headers"
8612
8613_ACEOF
8614
8615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8616ac_cs_usage="\
8617\`$as_me' instantiates files and other configuration actions
8618from templates according to the current configuration.  Unless the files
8619and actions are specified as TAGs, all are instantiated by default.
8620
8621Usage: $0 [OPTION]... [TAG]...
8622
8623  -h, --help       print this help, then exit
8624  -V, --version    print version number and configuration settings, then exit
8625      --config     print configuration, then exit
8626  -q, --quiet, --silent
8627                   do not print progress messages
8628  -d, --debug      don't remove temporary files
8629      --recheck    update $as_me by reconfiguring in the same conditions
8630      --file=FILE[:TEMPLATE]
8631                   instantiate the configuration file FILE
8632      --header=FILE[:TEMPLATE]
8633                   instantiate the configuration header FILE
8634
8635Configuration files:
8636$config_files
8637
8638Configuration headers:
8639$config_headers
8640
8641Report bugs to the package provider."
8642
8643_ACEOF
8644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8645ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8646ac_cs_version="\\
8647config.status
8648configured by $0, generated by GNU Autoconf 2.69,
8649  with options \\"\$ac_cs_config\\"
8650
8651Copyright (C) 2012 Free Software Foundation, Inc.
8652This config.status script is free software; the Free Software Foundation
8653gives unlimited permission to copy, distribute and modify it."
8654
8655ac_pwd='$ac_pwd'
8656srcdir='$srcdir'
8657INSTALL='$INSTALL'
8658test -n "\$AWK" || AWK=awk
8659_ACEOF
8660
8661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8662# The default lists apply if the user does not specify any file.
8663ac_need_defaults=:
8664while test $# != 0
8665do
8666  case $1 in
8667  --*=?*)
8668    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8669    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8670    ac_shift=:
8671    ;;
8672  --*=)
8673    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8674    ac_optarg=
8675    ac_shift=:
8676    ;;
8677  *)
8678    ac_option=$1
8679    ac_optarg=$2
8680    ac_shift=shift
8681    ;;
8682  esac
8683
8684  case $ac_option in
8685  # Handling of the options.
8686  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8687    ac_cs_recheck=: ;;
8688  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8689    $as_echo "$ac_cs_version"; exit ;;
8690  --config | --confi | --conf | --con | --co | --c )
8691    $as_echo "$ac_cs_config"; exit ;;
8692  --debug | --debu | --deb | --de | --d | -d )
8693    debug=: ;;
8694  --file | --fil | --fi | --f )
8695    $ac_shift
8696    case $ac_optarg in
8697    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8698    '') as_fn_error $? "missing file argument" ;;
8699    esac
8700    as_fn_append CONFIG_FILES " '$ac_optarg'"
8701    ac_need_defaults=false;;
8702  --header | --heade | --head | --hea )
8703    $ac_shift
8704    case $ac_optarg in
8705    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8706    esac
8707    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8708    ac_need_defaults=false;;
8709  --he | --h)
8710    # Conflict between --help and --header
8711    as_fn_error $? "ambiguous option: \`$1'
8712Try \`$0 --help' for more information.";;
8713  --help | --hel | -h )
8714    $as_echo "$ac_cs_usage"; exit ;;
8715  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8716  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8717    ac_cs_silent=: ;;
8718
8719  # This is an error.
8720  -*) as_fn_error $? "unrecognized option: \`$1'
8721Try \`$0 --help' for more information." ;;
8722
8723  *) as_fn_append ac_config_targets " $1"
8724     ac_need_defaults=false ;;
8725
8726  esac
8727  shift
8728done
8729
8730ac_configure_extra_args=
8731
8732if $ac_cs_silent; then
8733  exec 6>/dev/null
8734  ac_configure_extra_args="$ac_configure_extra_args --silent"
8735fi
8736
8737_ACEOF
8738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8739if \$ac_cs_recheck; then
8740  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8741  shift
8742  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8743  CONFIG_SHELL='$SHELL'
8744  export CONFIG_SHELL
8745  exec "\$@"
8746fi
8747
8748_ACEOF
8749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8750exec 5>>config.log
8751{
8752  echo
8753  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8754## Running $as_me. ##
8755_ASBOX
8756  $as_echo "$ac_log"
8757} >&5
8758
8759_ACEOF
8760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8761_ACEOF
8762
8763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8764
8765# Handling of arguments.
8766for ac_config_target in $ac_config_targets
8767do
8768  case $ac_config_target in
8769    "aconf.h") CONFIG_HEADERS="$CONFIG_HEADERS aconf.h" ;;
8770    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8771    "goo/Makefile") CONFIG_FILES="$CONFIG_FILES goo/Makefile" ;;
8772    "fofi/Makefile") CONFIG_FILES="$CONFIG_FILES fofi/Makefile" ;;
8773    "splash/Makefile") CONFIG_FILES="$CONFIG_FILES splash/Makefile" ;;
8774    "xpdf/Makefile") CONFIG_FILES="$CONFIG_FILES xpdf/Makefile" ;;
8775
8776  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8777  esac
8778done
8779
8780
8781# If the user did not use the arguments to specify the items to instantiate,
8782# then the envvar interface is used.  Set only those that are not.
8783# We use the long form for the default assignment because of an extremely
8784# bizarre bug on SunOS 4.1.3.
8785if $ac_need_defaults; then
8786  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8787  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8788fi
8789
8790# Have a temporary directory for convenience.  Make it in the build tree
8791# simply because there is no reason against having it here, and in addition,
8792# creating and moving files from /tmp can sometimes cause problems.
8793# Hook for its removal unless debugging.
8794# Note that there is a small window in which the directory will not be cleaned:
8795# after its creation but before its name has been assigned to `$tmp'.
8796$debug ||
8797{
8798  tmp= ac_tmp=
8799  trap 'exit_status=$?
8800  : "${ac_tmp:=$tmp}"
8801  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8802' 0
8803  trap 'as_fn_exit 1' 1 2 13 15
8804}
8805# Create a (secure) tmp directory for tmp files.
8806
8807{
8808  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8809  test -d "$tmp"
8810}  ||
8811{
8812  tmp=./conf$$-$RANDOM
8813  (umask 077 && mkdir "$tmp")
8814} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8815ac_tmp=$tmp
8816
8817# Set up the scripts for CONFIG_FILES section.
8818# No need to generate them if there are no CONFIG_FILES.
8819# This happens for instance with `./config.status config.h'.
8820if test -n "$CONFIG_FILES"; then
8821
8822
8823ac_cr=`echo X | tr X '\015'`
8824# On cygwin, bash can eat \r inside `` if the user requested igncr.
8825# But we know of no other shell where ac_cr would be empty at this
8826# point, so we can use a bashism as a fallback.
8827if test "x$ac_cr" = x; then
8828  eval ac_cr=\$\'\\r\'
8829fi
8830ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8831if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8832  ac_cs_awk_cr='\\r'
8833else
8834  ac_cs_awk_cr=$ac_cr
8835fi
8836
8837echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8838_ACEOF
8839
8840
8841{
8842  echo "cat >conf$$subs.awk <<_ACEOF" &&
8843  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8844  echo "_ACEOF"
8845} >conf$$subs.sh ||
8846  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8847ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8848ac_delim='%!_!# '
8849for ac_last_try in false false false false false :; do
8850  . ./conf$$subs.sh ||
8851    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8852
8853  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8854  if test $ac_delim_n = $ac_delim_num; then
8855    break
8856  elif $ac_last_try; then
8857    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8858  else
8859    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8860  fi
8861done
8862rm -f conf$$subs.sh
8863
8864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8865cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8866_ACEOF
8867sed -n '
8868h
8869s/^/S["/; s/!.*/"]=/
8870p
8871g
8872s/^[^!]*!//
8873:repl
8874t repl
8875s/'"$ac_delim"'$//
8876t delim
8877:nl
8878h
8879s/\(.\{148\}\)..*/\1/
8880t more1
8881s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8882p
8883n
8884b repl
8885:more1
8886s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8887p
8888g
8889s/.\{148\}//
8890t nl
8891:delim
8892h
8893s/\(.\{148\}\)..*/\1/
8894t more2
8895s/["\\]/\\&/g; s/^/"/; s/$/"/
8896p
8897b
8898:more2
8899s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8900p
8901g
8902s/.\{148\}//
8903t delim
8904' <conf$$subs.awk | sed '
8905/^[^""]/{
8906  N
8907  s/\n//
8908}
8909' >>$CONFIG_STATUS || ac_write_fail=1
8910rm -f conf$$subs.awk
8911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8912_ACAWK
8913cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8914  for (key in S) S_is_set[key] = 1
8915  FS = ""
8916
8917}
8918{
8919  line = $ 0
8920  nfields = split(line, field, "@")
8921  substed = 0
8922  len = length(field[1])
8923  for (i = 2; i < nfields; i++) {
8924    key = field[i]
8925    keylen = length(key)
8926    if (S_is_set[key]) {
8927      value = S[key]
8928      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8929      len += length(value) + length(field[++i])
8930      substed = 1
8931    } else
8932      len += 1 + keylen
8933  }
8934
8935  print line
8936}
8937
8938_ACAWK
8939_ACEOF
8940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8941if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8942  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8943else
8944  cat
8945fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8946  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8947_ACEOF
8948
8949# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8950# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8951# trailing colons and then remove the whole line if VPATH becomes empty
8952# (actually we leave an empty line to preserve line numbers).
8953if test "x$srcdir" = x.; then
8954  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8955h
8956s///
8957s/^/:/
8958s/[	 ]*$/:/
8959s/:\$(srcdir):/:/g
8960s/:\${srcdir}:/:/g
8961s/:@srcdir@:/:/g
8962s/^:*//
8963s/:*$//
8964x
8965s/\(=[	 ]*\).*/\1/
8966G
8967s/\n//
8968s/^[^=]*=[	 ]*$//
8969}'
8970fi
8971
8972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8973fi # test -n "$CONFIG_FILES"
8974
8975# Set up the scripts for CONFIG_HEADERS section.
8976# No need to generate them if there are no CONFIG_HEADERS.
8977# This happens for instance with `./config.status Makefile'.
8978if test -n "$CONFIG_HEADERS"; then
8979cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8980BEGIN {
8981_ACEOF
8982
8983# Transform confdefs.h into an awk script `defines.awk', embedded as
8984# here-document in config.status, that substitutes the proper values into
8985# config.h.in to produce config.h.
8986
8987# Create a delimiter string that does not exist in confdefs.h, to ease
8988# handling of long lines.
8989ac_delim='%!_!# '
8990for ac_last_try in false false :; do
8991  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8992  if test -z "$ac_tt"; then
8993    break
8994  elif $ac_last_try; then
8995    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8996  else
8997    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8998  fi
8999done
9000
9001# For the awk script, D is an array of macro values keyed by name,
9002# likewise P contains macro parameters if any.  Preserve backslash
9003# newline sequences.
9004
9005ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9006sed -n '
9007s/.\{148\}/&'"$ac_delim"'/g
9008t rset
9009:rset
9010s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9011t def
9012d
9013:def
9014s/\\$//
9015t bsnl
9016s/["\\]/\\&/g
9017s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9018D["\1"]=" \3"/p
9019s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9020d
9021:bsnl
9022s/["\\]/\\&/g
9023s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9024D["\1"]=" \3\\\\\\n"\\/p
9025t cont
9026s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9027t cont
9028d
9029:cont
9030n
9031s/.\{148\}/&'"$ac_delim"'/g
9032t clear
9033:clear
9034s/\\$//
9035t bsnlc
9036s/["\\]/\\&/g; s/^/"/; s/$/"/p
9037d
9038:bsnlc
9039s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9040b cont
9041' <confdefs.h | sed '
9042s/'"$ac_delim"'/"\\\
9043"/g' >>$CONFIG_STATUS || ac_write_fail=1
9044
9045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9046  for (key in D) D_is_set[key] = 1
9047  FS = ""
9048}
9049/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9050  line = \$ 0
9051  split(line, arg, " ")
9052  if (arg[1] == "#") {
9053    defundef = arg[2]
9054    mac1 = arg[3]
9055  } else {
9056    defundef = substr(arg[1], 2)
9057    mac1 = arg[2]
9058  }
9059  split(mac1, mac2, "(") #)
9060  macro = mac2[1]
9061  prefix = substr(line, 1, index(line, defundef) - 1)
9062  if (D_is_set[macro]) {
9063    # Preserve the white space surrounding the "#".
9064    print prefix "define", macro P[macro] D[macro]
9065    next
9066  } else {
9067    # Replace #undef with comments.  This is necessary, for example,
9068    # in the case of _POSIX_SOURCE, which is predefined and required
9069    # on some systems where configure will not decide to define it.
9070    if (defundef == "undef") {
9071      print "/*", prefix defundef, macro, "*/"
9072      next
9073    }
9074  }
9075}
9076{ print }
9077_ACAWK
9078_ACEOF
9079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9080  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9081fi # test -n "$CONFIG_HEADERS"
9082
9083
9084eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
9085shift
9086for ac_tag
9087do
9088  case $ac_tag in
9089  :[FHLC]) ac_mode=$ac_tag; continue;;
9090  esac
9091  case $ac_mode$ac_tag in
9092  :[FHL]*:*);;
9093  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9094  :[FH]-) ac_tag=-:-;;
9095  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9096  esac
9097  ac_save_IFS=$IFS
9098  IFS=:
9099  set x $ac_tag
9100  IFS=$ac_save_IFS
9101  shift
9102  ac_file=$1
9103  shift
9104
9105  case $ac_mode in
9106  :L) ac_source=$1;;
9107  :[FH])
9108    ac_file_inputs=
9109    for ac_f
9110    do
9111      case $ac_f in
9112      -) ac_f="$ac_tmp/stdin";;
9113      *) # Look for the file first in the build tree, then in the source tree
9114	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9115	 # because $ac_f cannot contain `:'.
9116	 test -f "$ac_f" ||
9117	   case $ac_f in
9118	   [\\/$]*) false;;
9119	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9120	   esac ||
9121	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9122      esac
9123      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9124      as_fn_append ac_file_inputs " '$ac_f'"
9125    done
9126
9127    # Let's still pretend it is `configure' which instantiates (i.e., don't
9128    # use $as_me), people would be surprised to read:
9129    #    /* config.h.  Generated by config.status.  */
9130    configure_input='Generated from '`
9131	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9132	`' by configure.'
9133    if test x"$ac_file" != x-; then
9134      configure_input="$ac_file.  $configure_input"
9135      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9136$as_echo "$as_me: creating $ac_file" >&6;}
9137    fi
9138    # Neutralize special characters interpreted by sed in replacement strings.
9139    case $configure_input in #(
9140    *\&* | *\|* | *\\* )
9141       ac_sed_conf_input=`$as_echo "$configure_input" |
9142       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9143    *) ac_sed_conf_input=$configure_input;;
9144    esac
9145
9146    case $ac_tag in
9147    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9148      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9149    esac
9150    ;;
9151  esac
9152
9153  ac_dir=`$as_dirname -- "$ac_file" ||
9154$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9155	 X"$ac_file" : 'X\(//\)[^/]' \| \
9156	 X"$ac_file" : 'X\(//\)$' \| \
9157	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9158$as_echo X"$ac_file" |
9159    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9160	    s//\1/
9161	    q
9162	  }
9163	  /^X\(\/\/\)[^/].*/{
9164	    s//\1/
9165	    q
9166	  }
9167	  /^X\(\/\/\)$/{
9168	    s//\1/
9169	    q
9170	  }
9171	  /^X\(\/\).*/{
9172	    s//\1/
9173	    q
9174	  }
9175	  s/.*/./; q'`
9176  as_dir="$ac_dir"; as_fn_mkdir_p
9177  ac_builddir=.
9178
9179case "$ac_dir" in
9180.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9181*)
9182  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9183  # A ".." for each directory in $ac_dir_suffix.
9184  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9185  case $ac_top_builddir_sub in
9186  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9187  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9188  esac ;;
9189esac
9190ac_abs_top_builddir=$ac_pwd
9191ac_abs_builddir=$ac_pwd$ac_dir_suffix
9192# for backward compatibility:
9193ac_top_builddir=$ac_top_build_prefix
9194
9195case $srcdir in
9196  .)  # We are building in place.
9197    ac_srcdir=.
9198    ac_top_srcdir=$ac_top_builddir_sub
9199    ac_abs_top_srcdir=$ac_pwd ;;
9200  [\\/]* | ?:[\\/]* )  # Absolute name.
9201    ac_srcdir=$srcdir$ac_dir_suffix;
9202    ac_top_srcdir=$srcdir
9203    ac_abs_top_srcdir=$srcdir ;;
9204  *) # Relative name.
9205    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9206    ac_top_srcdir=$ac_top_build_prefix$srcdir
9207    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9208esac
9209ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9210
9211
9212  case $ac_mode in
9213  :F)
9214  #
9215  # CONFIG_FILE
9216  #
9217
9218  case $INSTALL in
9219  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9220  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9221  esac
9222_ACEOF
9223
9224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9225# If the template does not know about datarootdir, expand it.
9226# FIXME: This hack should be removed a few years after 2.60.
9227ac_datarootdir_hack=; ac_datarootdir_seen=
9228ac_sed_dataroot='
9229/datarootdir/ {
9230  p
9231  q
9232}
9233/@datadir@/p
9234/@docdir@/p
9235/@infodir@/p
9236/@localedir@/p
9237/@mandir@/p'
9238case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9239*datarootdir*) ac_datarootdir_seen=yes;;
9240*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9241  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9242$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9243_ACEOF
9244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9245  ac_datarootdir_hack='
9246  s&@datadir@&$datadir&g
9247  s&@docdir@&$docdir&g
9248  s&@infodir@&$infodir&g
9249  s&@localedir@&$localedir&g
9250  s&@mandir@&$mandir&g
9251  s&\\\${datarootdir}&$datarootdir&g' ;;
9252esac
9253_ACEOF
9254
9255# Neutralize VPATH when `$srcdir' = `.'.
9256# Shell code in configure.ac might set extrasub.
9257# FIXME: do we really want to maintain this feature?
9258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9259ac_sed_extra="$ac_vpsub
9260$extrasub
9261_ACEOF
9262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9263:t
9264/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9265s|@configure_input@|$ac_sed_conf_input|;t t
9266s&@top_builddir@&$ac_top_builddir_sub&;t t
9267s&@top_build_prefix@&$ac_top_build_prefix&;t t
9268s&@srcdir@&$ac_srcdir&;t t
9269s&@abs_srcdir@&$ac_abs_srcdir&;t t
9270s&@top_srcdir@&$ac_top_srcdir&;t t
9271s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9272s&@builddir@&$ac_builddir&;t t
9273s&@abs_builddir@&$ac_abs_builddir&;t t
9274s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9275s&@INSTALL@&$ac_INSTALL&;t t
9276$ac_datarootdir_hack
9277"
9278eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9279  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9280
9281test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9282  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9283  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9284      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9285  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9286which seems to be undefined.  Please make sure it is defined" >&5
9287$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9288which seems to be undefined.  Please make sure it is defined" >&2;}
9289
9290  rm -f "$ac_tmp/stdin"
9291  case $ac_file in
9292  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9293  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9294  esac \
9295  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9296 ;;
9297  :H)
9298  #
9299  # CONFIG_HEADER
9300  #
9301  if test x"$ac_file" != x-; then
9302    {
9303      $as_echo "/* $configure_input  */" \
9304      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9305    } >"$ac_tmp/config.h" \
9306      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9307    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9308      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9309$as_echo "$as_me: $ac_file is unchanged" >&6;}
9310    else
9311      rm -f "$ac_file"
9312      mv "$ac_tmp/config.h" "$ac_file" \
9313	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9314    fi
9315  else
9316    $as_echo "/* $configure_input  */" \
9317      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9318      || as_fn_error $? "could not create -" "$LINENO" 5
9319  fi
9320 ;;
9321
9322
9323  esac
9324
9325done # for ac_tag
9326
9327
9328as_fn_exit 0
9329_ACEOF
9330ac_clean_files=$ac_clean_files_save
9331
9332test $ac_write_fail = 0 ||
9333  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9334
9335
9336# configure is writing to config.log, and then calls config.status.
9337# config.status does its own redirection, appending to config.log.
9338# Unfortunately, on DOS this fails, as config.log is still kept open
9339# by configure, so config.status won't be able to write to it; its
9340# output is simply discarded.  So we exec the FD to /dev/null,
9341# effectively closing config.log, so it can be properly (re)opened and
9342# appended to by config.status.  When coming back to configure, we
9343# need to make the FD available again.
9344if test "$no_create" != yes; then
9345  ac_cs_success=:
9346  ac_config_status_args=
9347  test "$silent" = yes &&
9348    ac_config_status_args="$ac_config_status_args --quiet"
9349  exec 5>/dev/null
9350  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9351  exec 5>>config.log
9352  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9353  # would make configure fail if this is the last instruction.
9354  $ac_cs_success || as_fn_exit 1
9355fi
9356if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9357  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9358$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9359fi
9360
9361
9362if test -n "$no_x" -o "x$smr_have_Xm_library" != xyes -o "x$smr_have_freetype2_library" != xyes; then
9363  if test -n "$no_x"; then
9364    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find X" >&5
9365$as_echo "$as_me: WARNING: Couldn't find X" >&2;};
9366  fi
9367  if test "x$smr_have_Xm_library" != xyes; then
9368    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find Motif" >&5
9369$as_echo "$as_me: WARNING: Couldn't find Motif" >&2;};
9370  fi
9371  if test "x$smr_have_freetype2_library" != xyes; then
9372    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find FreeType" >&5
9373$as_echo "$as_me: WARNING: Couldn't find FreeType" >&2;};
9374  fi
9375  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -- You will be able to compile pdftops, pdftotext,
9376        pdfinfo, pdffonts, pdfdetach, and pdfimages, but not xpdf
9377        or pdftoppm" >&5
9378$as_echo "$as_me: WARNING: -- You will be able to compile pdftops, pdftotext,
9379        pdfinfo, pdffonts, pdfdetach, and pdfimages, but not xpdf
9380        or pdftoppm" >&2;}
9381fi
9382
9383if test "x$smr_have_libpng_library" != xyes; then
9384  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find libpng -- you will not be able to build pdftohtml or pdftopng" >&5
9385$as_echo "$as_me: WARNING: Couldn't find libpng -- you will not be able to build pdftohtml or pdftopng" >&2;}
9386fi
9387