source: trunk/third/eog/configure @ 21327

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