source: trunk/third/rep-gtk/configure @ 15765

Revision 15765, 91.7 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15764, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
RevLine 
[15285]1#! /bin/sh
2
[15764]3# From configure.in Revision: 1.33
[15285]4
5
6
7
8
9
10# Configure paths for GLIB
11# Owen Taylor     97-11-3
12
13
14
15# Configure paths for GTK+
16# Owen Taylor     97-11-3
17
18
19
20# a macro to get the libs/cflags for libglade
21# serial 1
22
23
24# Configure paths for gdk-pixbuf
25# Elliot Lee 2000-01-10
26# stolen from Raph Levien 98-11-18
27# stolen from Manish Singh    98-9-30
28# stolen back from Frank Belew
29# stolen from Manish Singh
30# Shamelessly stolen from Owen Taylor
31
32
33
34# Guess values for system-dependent variables and create Makefiles.
35# Generated automatically using autoconf version 2.13
36# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
37#
38# This configure script is free software; the Free Software Foundation
39# gives unlimited permission to copy, distribute and modify it.
40
41# Defaults:
42ac_help=
43ac_default_prefix=/usr/local
44# Any additions from configure.in:
45ac_help="$ac_help
46  --with-rep-prefix=PFX   Prefix where rep is installed (optional)"
47ac_help="$ac_help
48  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
49ac_help="$ac_help
50  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
51ac_help="$ac_help
52  --disable-glibtest       Do not try to compile and run a test GLIB program"
53ac_help="$ac_help
54  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
55ac_help="$ac_help
56  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
57ac_help="$ac_help
58  --disable-gtktest       Do not try to compile and run a test GTK program"
59ac_help="$ac_help
60  --with-gnome            Build GNOME wrappers
61  --without-gnome         Don't wrap GNOME"
62ac_help="$ac_help
63  --with-libglade         Build libglade wrappers (dynamic GUI builder)
64  --without-libglade      Don't wrap libglade"
65ac_help="$ac_help
66  --with-libglade-config=LIBGLADE_CONFIG  Location of libglade-config"
67ac_help="$ac_help
68  --with-gdk-pixbuf       Build gdk-pixbuf wrappers"
69ac_help="$ac_help
70  --with-gdk-pixbuf-prefix=PFX   Prefix where GDK_PIXBUF is installed (optional)"
71ac_help="$ac_help
72  --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional)"
73ac_help="$ac_help
74  --disable-gdk_pixbuftest       Do not try to compile and run a test GDK_PIXBUF program"
75ac_help="$ac_help
76  --with-gnome-canvas-pixbuf
77  --without-gnome-canvas-pixbuf"
78
79# Initialize some variables set by options.
80# The variables have the same names as the options, with
81# dashes changed to underlines.
82build=NONE
83cache_file=./config.cache
84exec_prefix=NONE
85host=NONE
86no_create=
87nonopt=NONE
88no_recursion=
89prefix=NONE
90program_prefix=NONE
91program_suffix=NONE
92program_transform_name=s,x,x,
93silent=
94site=
95srcdir=
96target=NONE
97verbose=
98x_includes=NONE
99x_libraries=NONE
100bindir='${exec_prefix}/bin'
101sbindir='${exec_prefix}/sbin'
102libexecdir='${exec_prefix}/libexec'
103datadir='${prefix}/share'
104sysconfdir='${prefix}/etc'
105sharedstatedir='${prefix}/com'
106localstatedir='${prefix}/var'
107libdir='${exec_prefix}/lib'
108includedir='${prefix}/include'
109oldincludedir='/usr/include'
110infodir='${prefix}/info'
111mandir='${prefix}/man'
112
113# Initialize some other variables.
114subdirs=
115MFLAGS= MAKEFLAGS=
116SHELL=${CONFIG_SHELL-/bin/sh}
117# Maximum number of lines to put in a shell here document.
118ac_max_here_lines=12
119
120ac_prev=
121for ac_option
122do
123
124  # If the previous option needs an argument, assign it.
125  if test -n "$ac_prev"; then
126    eval "$ac_prev=\$ac_option"
127    ac_prev=
128    continue
129  fi
130
131  case "$ac_option" in
132  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133  *) ac_optarg= ;;
134  esac
135
136  # Accept the important Cygnus configure options, so we can diagnose typos.
137
138  case "$ac_option" in
139
140  -bindir | --bindir | --bindi | --bind | --bin | --bi)
141    ac_prev=bindir ;;
142  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143    bindir="$ac_optarg" ;;
144
145  -build | --build | --buil | --bui | --bu)
146    ac_prev=build ;;
147  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148    build="$ac_optarg" ;;
149
150  -cache-file | --cache-file | --cache-fil | --cache-fi \
151  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152    ac_prev=cache_file ;;
153  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155    cache_file="$ac_optarg" ;;
156
157  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
158    ac_prev=datadir ;;
159  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
160  | --da=*)
161    datadir="$ac_optarg" ;;
162
163  -disable-* | --disable-*)
164    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165    # Reject names that are not valid shell variable names.
166    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168    fi
169    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170    eval "enable_${ac_feature}=no" ;;
171
172  -enable-* | --enable-*)
173    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174    # Reject names that are not valid shell variable names.
175    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177    fi
178    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179    case "$ac_option" in
180      *=*) ;;
181      *) ac_optarg=yes ;;
182    esac
183    eval "enable_${ac_feature}='$ac_optarg'" ;;
184
185  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187  | --exec | --exe | --ex)
188    ac_prev=exec_prefix ;;
189  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191  | --exec=* | --exe=* | --ex=*)
192    exec_prefix="$ac_optarg" ;;
193
194  -gas | --gas | --ga | --g)
195    # Obsolete; use --with-gas.
196    with_gas=yes ;;
197
198  -help | --help | --hel | --he)
199    # Omit some internal or obsolete options to make the list less imposing.
200    # This message is too long to be a string in the A/UX 3.1 sh.
201    cat << EOF
202Usage: configure [options] [host]
203Options: [defaults in brackets after descriptions]
204Configuration:
205  --cache-file=FILE       cache test results in FILE
206  --help                  print this message
207  --no-create             do not create output files
208  --quiet, --silent       do not print \`checking...' messages
209  --version               print the version of autoconf that created configure
210Directory and file names:
211  --prefix=PREFIX         install architecture-independent files in PREFIX
212                          [$ac_default_prefix]
213  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
214                          [same as prefix]
215  --bindir=DIR            user executables in DIR [EPREFIX/bin]
216  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
217  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
218  --datadir=DIR           read-only architecture-independent data in DIR
219                          [PREFIX/share]
220  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
221  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
222                          [PREFIX/com]
223  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
224  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
225  --includedir=DIR        C header files in DIR [PREFIX/include]
226  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
227  --infodir=DIR           info documentation in DIR [PREFIX/info]
228  --mandir=DIR            man documentation in DIR [PREFIX/man]
229  --srcdir=DIR            find the sources in DIR [configure dir or ..]
230  --program-prefix=PREFIX prepend PREFIX to installed program names
231  --program-suffix=SUFFIX append SUFFIX to installed program names
232  --program-transform-name=PROGRAM
233                          run sed PROGRAM on installed program names
234EOF
235    cat << EOF
236Host type:
237  --build=BUILD           configure for building on BUILD [BUILD=HOST]
238  --host=HOST             configure for HOST [guessed]
239  --target=TARGET         configure for TARGET [TARGET=HOST]
240Features and packages:
241  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
242  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
243  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
244  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
245  --x-includes=DIR        X include files are in DIR
246  --x-libraries=DIR       X library files are in DIR
247EOF
248    if test -n "$ac_help"; then
249      echo "--enable and --with options recognized:$ac_help"
250    fi
251    exit 0 ;;
252
253  -host | --host | --hos | --ho)
254    ac_prev=host ;;
255  -host=* | --host=* | --hos=* | --ho=*)
256    host="$ac_optarg" ;;
257
258  -includedir | --includedir | --includedi | --included | --include \
259  | --includ | --inclu | --incl | --inc)
260    ac_prev=includedir ;;
261  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262  | --includ=* | --inclu=* | --incl=* | --inc=*)
263    includedir="$ac_optarg" ;;
264
265  -infodir | --infodir | --infodi | --infod | --info | --inf)
266    ac_prev=infodir ;;
267  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268    infodir="$ac_optarg" ;;
269
270  -libdir | --libdir | --libdi | --libd)
271    ac_prev=libdir ;;
272  -libdir=* | --libdir=* | --libdi=* | --libd=*)
273    libdir="$ac_optarg" ;;
274
275  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276  | --libexe | --libex | --libe)
277    ac_prev=libexecdir ;;
278  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279  | --libexe=* | --libex=* | --libe=*)
280    libexecdir="$ac_optarg" ;;
281
282  -localstatedir | --localstatedir | --localstatedi | --localstated \
283  | --localstate | --localstat | --localsta | --localst \
284  | --locals | --local | --loca | --loc | --lo)
285    ac_prev=localstatedir ;;
286  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289    localstatedir="$ac_optarg" ;;
290
291  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
292    ac_prev=mandir ;;
293  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294    mandir="$ac_optarg" ;;
295
296  -nfp | --nfp | --nf)
297    # Obsolete; use --without-fp.
298    with_fp=no ;;
299
300  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301  | --no-cr | --no-c)
302    no_create=yes ;;
303
304  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306    no_recursion=yes ;;
307
308  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310  | --oldin | --oldi | --old | --ol | --o)
311    ac_prev=oldincludedir ;;
312  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315    oldincludedir="$ac_optarg" ;;
316
317  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
318    ac_prev=prefix ;;
319  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320    prefix="$ac_optarg" ;;
321
322  -program-prefix | --program-prefix | --program-prefi | --program-pref \
323  | --program-pre | --program-pr | --program-p)
324    ac_prev=program_prefix ;;
325  -program-prefix=* | --program-prefix=* | --program-prefi=* \
326  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327    program_prefix="$ac_optarg" ;;
328
329  -program-suffix | --program-suffix | --program-suffi | --program-suff \
330  | --program-suf | --program-su | --program-s)
331    ac_prev=program_suffix ;;
332  -program-suffix=* | --program-suffix=* | --program-suffi=* \
333  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334    program_suffix="$ac_optarg" ;;
335
336  -program-transform-name | --program-transform-name \
337  | --program-transform-nam | --program-transform-na \
338  | --program-transform-n | --program-transform- \
339  | --program-transform | --program-transfor \
340  | --program-transfo | --program-transf \
341  | --program-trans | --program-tran \
342  | --progr-tra | --program-tr | --program-t)
343    ac_prev=program_transform_name ;;
344  -program-transform-name=* | --program-transform-name=* \
345  | --program-transform-nam=* | --program-transform-na=* \
346  | --program-transform-n=* | --program-transform-=* \
347  | --program-transform=* | --program-transfor=* \
348  | --program-transfo=* | --program-transf=* \
349  | --program-trans=* | --program-tran=* \
350  | --progr-tra=* | --program-tr=* | --program-t=*)
351    program_transform_name="$ac_optarg" ;;
352
353  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354  | -silent | --silent | --silen | --sile | --sil)
355    silent=yes ;;
356
357  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
358    ac_prev=sbindir ;;
359  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
360  | --sbi=* | --sb=*)
361    sbindir="$ac_optarg" ;;
362
363  -sharedstatedir | --sharedstatedir | --sharedstatedi \
364  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365  | --sharedst | --shareds | --shared | --share | --shar \
366  | --sha | --sh)
367    ac_prev=sharedstatedir ;;
368  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
371  | --sha=* | --sh=*)
372    sharedstatedir="$ac_optarg" ;;
373
374  -site | --site | --sit)
375    ac_prev=site ;;
376  -site=* | --site=* | --sit=*)
377    site="$ac_optarg" ;;
378
379  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380    ac_prev=srcdir ;;
381  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382    srcdir="$ac_optarg" ;;
383
384  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385  | --syscon | --sysco | --sysc | --sys | --sy)
386    ac_prev=sysconfdir ;;
387  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389    sysconfdir="$ac_optarg" ;;
390
391  -target | --target | --targe | --targ | --tar | --ta | --t)
392    ac_prev=target ;;
393  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394    target="$ac_optarg" ;;
395
396  -v | -verbose | --verbose | --verbos | --verbo | --verb)
397    verbose=yes ;;
398
399  -version | --version | --versio | --versi | --vers)
400    echo "configure generated by autoconf version 2.13"
401    exit 0 ;;
402
403  -with-* | --with-*)
404    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405    # Reject names that are not valid shell variable names.
406    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408    fi
409    ac_package=`echo $ac_package| sed 's/-/_/g'`
410    case "$ac_option" in
411      *=*) ;;
412      *) ac_optarg=yes ;;
413    esac
414    eval "with_${ac_package}='$ac_optarg'" ;;
415
416  -without-* | --without-*)
417    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418    # Reject names that are not valid shell variable names.
419    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421    fi
422    ac_package=`echo $ac_package| sed 's/-/_/g'`
423    eval "with_${ac_package}=no" ;;
424
425  --x)
426    # Obsolete; use --with-x.
427    with_x=yes ;;
428
429  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430  | --x-incl | --x-inc | --x-in | --x-i)
431    ac_prev=x_includes ;;
432  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434    x_includes="$ac_optarg" ;;
435
436  -x-libraries | --x-libraries | --x-librarie | --x-librari \
437  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438    ac_prev=x_libraries ;;
439  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441    x_libraries="$ac_optarg" ;;
442
443  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444    ;;
445
446  *)
447    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448      echo "configure: warning: $ac_option: invalid host type" 1>&2
449    fi
450    if test "x$nonopt" != xNONE; then
451      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452    fi
453    nonopt="$ac_option"
454    ;;
455
456  esac
457done
458
459if test -n "$ac_prev"; then
460  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461fi
462
463trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464
465# File descriptor usage:
466# 0 standard input
467# 1 file creation
468# 2 errors and warnings
469# 3 some systems may open it to /dev/tty
470# 4 used on the Kubota Titan
471# 6 checking for... messages and results
472# 5 compiler messages saved in config.log
473if test "$silent" = yes; then
474  exec 6>/dev/null
475else
476  exec 6>&1
477fi
478exec 5>./config.log
479
480echo "\
481This file contains any messages produced by compilers while
482running configure, to aid debugging if configure makes a mistake.
483" 1>&5
484
485# Strip out --no-create and --no-recursion so they do not pile up.
486# Also quote any args containing shell metacharacters.
487ac_configure_args=
488for ac_arg
489do
490  case "$ac_arg" in
491  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492  | --no-cr | --no-c) ;;
493  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498  esac
499done
500
501# NLS nuisances.
502# Only set these to C if already set.  These must not be set unconditionally
503# because not all systems understand e.g. LANG=C (notably SCO).
504# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505# Non-C LC_CTYPE values break the ctype check.
506if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
507if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
510
511# confdefs.h avoids OS command line length limits that DEFS can exceed.
512rm -rf conftest* confdefs.h
513# AIX cpp loses on an empty file, so make sure it contains at least a newline.
514echo > confdefs.h
515
516# A filename unique to this package, relative to the directory that
517# configure is in, which we can look for to find out if srcdir is correct.
518ac_unique_file=rep-gtk.h
519
520# Find the source files, if location was not specified.
521if test -z "$srcdir"; then
522  ac_srcdir_defaulted=yes
523  # Try the directory containing this script, then its parent.
524  ac_prog=$0
525  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527  srcdir=$ac_confdir
528  if test ! -r $srcdir/$ac_unique_file; then
529    srcdir=..
530  fi
531else
532  ac_srcdir_defaulted=no
533fi
534if test ! -r $srcdir/$ac_unique_file; then
535  if test "$ac_srcdir_defaulted" = yes; then
536    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537  else
538    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539  fi
540fi
541srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542
543# Prefer explicitly selected file to automatically selected ones.
544if test -z "$CONFIG_SITE"; then
545  if test "x$prefix" != xNONE; then
546    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
547  else
548    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549  fi
550fi
551for ac_site_file in $CONFIG_SITE; do
552  if test -r "$ac_site_file"; then
553    echo "loading site script $ac_site_file"
554    . "$ac_site_file"
555  fi
556done
557
558if test -r "$cache_file"; then
559  echo "loading cache $cache_file"
560  . $cache_file
561else
562  echo "creating cache $cache_file"
563  > $cache_file
564fi
565
566ac_ext=c
567# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568ac_cpp='$CPP $CPPFLAGS'
569ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571cross_compiling=$ac_cv_prog_cc_cross
572
573ac_exeext=
574ac_objext=o
575if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
578    ac_n= ac_c='
579' ac_t='        '
580  else
581    ac_n=-n ac_c= ac_t=
582  fi
583else
584  ac_n= ac_c='\c' ac_t=
585fi
586
587
588
589
[15764]590version="0.15"
[15285]591
592OUT="gtk/types.la gtk/gtk.la"
593
594
595ac_aux_dir=
596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
597  if test -f $ac_dir/install-sh; then
598    ac_aux_dir=$ac_dir
599    ac_install_sh="$ac_aux_dir/install-sh -c"
600    break
601  elif test -f $ac_dir/install.sh; then
602    ac_aux_dir=$ac_dir
603    ac_install_sh="$ac_aux_dir/install.sh -c"
604    break
605  fi
606done
607if test -z "$ac_aux_dir"; then
608  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
609fi
610ac_config_guess=$ac_aux_dir/config.guess
611ac_config_sub=$ac_aux_dir/config.sub
612ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
613
614
615# Make sure we can run config.sub.
616if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
617else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618fi
619
620echo $ac_n "checking host system type""... $ac_c" 1>&6
621echo "configure:622: checking host system type" >&5
622
623host_alias=$host
624case "$host_alias" in
625NONE)
626  case $nonopt in
627  NONE)
628    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
629    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
630    fi ;;
631  *) host_alias=$nonopt ;;
632  esac ;;
633esac
634
635host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
636host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639echo "$ac_t""$host" 1>&6
640
641
642# Extract the first word of "gcc", so it can be a program name with args.
643set dummy gcc; ac_word=$2
644echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645echo "configure:646: checking for $ac_word" >&5
646if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647  echo $ac_n "(cached) $ac_c" 1>&6
648else
649  if test -n "$CC"; then
650  ac_cv_prog_CC="$CC" # Let the user override the test.
651else
652  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
653  ac_dummy="$PATH"
654  for ac_dir in $ac_dummy; do
655    test -z "$ac_dir" && ac_dir=.
656    if test -f $ac_dir/$ac_word; then
657      ac_cv_prog_CC="gcc"
658      break
659    fi
660  done
661  IFS="$ac_save_ifs"
662fi
663fi
664CC="$ac_cv_prog_CC"
665if test -n "$CC"; then
666  echo "$ac_t""$CC" 1>&6
667else
668  echo "$ac_t""no" 1>&6
669fi
670
671if test -z "$CC"; then
672  # Extract the first word of "cc", so it can be a program name with args.
673set dummy cc; ac_word=$2
674echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675echo "configure:676: checking for $ac_word" >&5
676if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677  echo $ac_n "(cached) $ac_c" 1>&6
678else
679  if test -n "$CC"; then
680  ac_cv_prog_CC="$CC" # Let the user override the test.
681else
682  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
683  ac_prog_rejected=no
684  ac_dummy="$PATH"
685  for ac_dir in $ac_dummy; do
686    test -z "$ac_dir" && ac_dir=.
687    if test -f $ac_dir/$ac_word; then
688      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
689        ac_prog_rejected=yes
690        continue
691      fi
692      ac_cv_prog_CC="cc"
693      break
694    fi
695  done
696  IFS="$ac_save_ifs"
697if test $ac_prog_rejected = yes; then
698  # We found a bogon in the path, so make sure we never use it.
699  set dummy $ac_cv_prog_CC
700  shift
701  if test $# -gt 0; then
702    # We chose a different compiler from the bogus one.
703    # However, it has the same basename, so the bogon will be chosen
704    # first if we set CC to just the basename; use the full file name.
705    shift
706    set dummy "$ac_dir/$ac_word" "$@"
707    shift
708    ac_cv_prog_CC="$@"
709  fi
710fi
711fi
712fi
713CC="$ac_cv_prog_CC"
714if test -n "$CC"; then
715  echo "$ac_t""$CC" 1>&6
716else
717  echo "$ac_t""no" 1>&6
718fi
719
720  if test -z "$CC"; then
721    case "`uname -s`" in
722    *win32* | *WIN32*)
723      # Extract the first word of "cl", so it can be a program name with args.
724set dummy cl; ac_word=$2
725echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726echo "configure:727: checking for $ac_word" >&5
727if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
728  echo $ac_n "(cached) $ac_c" 1>&6
729else
730  if test -n "$CC"; then
731  ac_cv_prog_CC="$CC" # Let the user override the test.
732else
733  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
734  ac_dummy="$PATH"
735  for ac_dir in $ac_dummy; do
736    test -z "$ac_dir" && ac_dir=.
737    if test -f $ac_dir/$ac_word; then
738      ac_cv_prog_CC="cl"
739      break
740    fi
741  done
742  IFS="$ac_save_ifs"
743fi
744fi
745CC="$ac_cv_prog_CC"
746if test -n "$CC"; then
747  echo "$ac_t""$CC" 1>&6
748else
749  echo "$ac_t""no" 1>&6
750fi
751 ;;
752    esac
753  fi
754  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755fi
756
757echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
758echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
759
760ac_ext=c
761# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762ac_cpp='$CPP $CPPFLAGS'
763ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765cross_compiling=$ac_cv_prog_cc_cross
766
767cat > conftest.$ac_ext << EOF
768
769#line 770 "configure"
770#include "confdefs.h"
771
772main(){return(0);}
773EOF
774if { (eval echo configure:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
775  ac_cv_prog_cc_works=yes
776  # If we can't run a trivial program, we are probably using a cross compiler.
777  if (./conftest; exit) 2>/dev/null; then
778    ac_cv_prog_cc_cross=no
779  else
780    ac_cv_prog_cc_cross=yes
781  fi
782else
783  echo "configure: failed program was:" >&5
784  cat conftest.$ac_ext >&5
785  ac_cv_prog_cc_works=no
786fi
787rm -fr conftest*
788ac_ext=c
789# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790ac_cpp='$CPP $CPPFLAGS'
791ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793cross_compiling=$ac_cv_prog_cc_cross
794
795echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796if test $ac_cv_prog_cc_works = no; then
797  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
798fi
799echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802cross_compiling=$ac_cv_prog_cc_cross
803
804echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805echo "configure:806: checking whether we are using GNU C" >&5
806if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807  echo $ac_n "(cached) $ac_c" 1>&6
808else
809  cat > conftest.c <<EOF
810#ifdef __GNUC__
811  yes;
812#endif
813EOF
814if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
815  ac_cv_prog_gcc=yes
816else
817  ac_cv_prog_gcc=no
818fi
819fi
820
821echo "$ac_t""$ac_cv_prog_gcc" 1>&6
822
823if test $ac_cv_prog_gcc = yes; then
824  GCC=yes
825else
826  GCC=
827fi
828
829ac_test_CFLAGS="${CFLAGS+set}"
830ac_save_CFLAGS="$CFLAGS"
831CFLAGS=
832echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835  echo $ac_n "(cached) $ac_c" 1>&6
836else
837  echo 'void f(){}' > conftest.c
838if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
839  ac_cv_prog_cc_g=yes
840else
841  ac_cv_prog_cc_g=no
842fi
843rm -f conftest*
844
845fi
846
847echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848if test "$ac_test_CFLAGS" = set; then
849  CFLAGS="$ac_save_CFLAGS"
850elif test $ac_cv_prog_cc_g = yes; then
851  if test "$GCC" = yes; then
852    CFLAGS="-g -O2"
853  else
854    CFLAGS="-g"
855  fi
856else
857  if test "$GCC" = yes; then
858    CFLAGS="-O2"
859  else
860    CFLAGS=
861  fi
862fi
863
864echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
865echo "configure:866: checking how to run the C preprocessor" >&5
866# On Suns, sometimes $CPP names a directory.
867if test -n "$CPP" && test -d "$CPP"; then
868  CPP=
869fi
870if test -z "$CPP"; then
871if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
872  echo $ac_n "(cached) $ac_c" 1>&6
873else
874    # This must be in double quotes, not single quotes, because CPP may get
875  # substituted into the Makefile and "${CC-cc}" will confuse make.
876  CPP="${CC-cc} -E"
877  # On the NeXT, cc -E runs the code through the compiler's parser,
878  # not just through cpp.
879  cat > conftest.$ac_ext <<EOF
880#line 881 "configure"
881#include "confdefs.h"
882#include <assert.h>
883Syntax Error
884EOF
885ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
886{ (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
887ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
888if test -z "$ac_err"; then
889  :
890else
891  echo "$ac_err" >&5
892  echo "configure: failed program was:" >&5
893  cat conftest.$ac_ext >&5
894  rm -rf conftest*
895  CPP="${CC-cc} -E -traditional-cpp"
896  cat > conftest.$ac_ext <<EOF
897#line 898 "configure"
898#include "confdefs.h"
899#include <assert.h>
900Syntax Error
901EOF
902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903{ (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905if test -z "$ac_err"; then
906  :
907else
908  echo "$ac_err" >&5
909  echo "configure: failed program was:" >&5
910  cat conftest.$ac_ext >&5
911  rm -rf conftest*
912  CPP="${CC-cc} -nologo -E"
913  cat > conftest.$ac_ext <<EOF
914#line 915 "configure"
915#include "confdefs.h"
916#include <assert.h>
917Syntax Error
918EOF
919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920{ (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922if test -z "$ac_err"; then
923  :
924else
925  echo "$ac_err" >&5
926  echo "configure: failed program was:" >&5
927  cat conftest.$ac_ext >&5
928  rm -rf conftest*
929  CPP=/lib/cpp
930fi
931rm -f conftest*
932fi
933rm -f conftest*
934fi
935rm -f conftest*
936  ac_cv_prog_CPP="$CPP"
937fi
938  CPP="$ac_cv_prog_CPP"
939else
940  ac_cv_prog_CPP="$CPP"
941fi
942echo "$ac_t""$CPP" 1>&6
943
944# Find a good install program.  We prefer a C program (faster),
945# so one script is as good as another.  But avoid the broken or
946# incompatible versions:
947# SysV /etc/install, /usr/sbin/install
948# SunOS /usr/etc/install
949# IRIX /sbin/install
950# AIX /bin/install
951# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
952# AFS /usr/afsws/bin/install, which mishandles nonexistent args
953# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
954# ./install, which can be erroneously created by make from ./install.sh.
955echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
956echo "configure:957: checking for a BSD compatible install" >&5
957if test -z "$INSTALL"; then
958if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
959  echo $ac_n "(cached) $ac_c" 1>&6
960else
961    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
962  for ac_dir in $PATH; do
963    # Account for people who put trailing slashes in PATH elements.
964    case "$ac_dir/" in
965    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
966    *)
967      # OSF1 and SCO ODT 3.0 have their own names for install.
968      # Don't use installbsd from OSF since it installs stuff as root
969      # by default.
970      for ac_prog in ginstall scoinst install; do
971        if test -f $ac_dir/$ac_prog; then
972          if test $ac_prog = install &&
973            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
974            # AIX install.  It has an incompatible calling convention.
975            :
976          else
977            ac_cv_path_install="$ac_dir/$ac_prog -c"
978            break 2
979          fi
980        fi
981      done
982      ;;
983    esac
984  done
985  IFS="$ac_save_IFS"
986
987fi
988  if test "${ac_cv_path_install+set}" = set; then
989    INSTALL="$ac_cv_path_install"
990  else
991    # As a last resort, use the slow shell script.  We don't cache a
992    # path for INSTALL within a source directory, because that will
993    # break other packages using the cache if that directory is
994    # removed, or if the path is relative.
995    INSTALL="$ac_install_sh"
996  fi
997fi
998echo "$ac_t""$INSTALL" 1>&6
999
1000# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1001# It thinks the first close brace ends the variable substitution.
1002test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1003
1004test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1005
1006test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1007
1008echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1009echo "configure:1010: checking whether ln -s works" >&5
1010if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1011  echo $ac_n "(cached) $ac_c" 1>&6
1012else
1013  rm -f conftestdata
1014if ln -s X conftestdata 2>/dev/null
1015then
1016  rm -f conftestdata
1017  ac_cv_prog_LN_S="ln -s"
1018else
1019  ac_cv_prog_LN_S=ln
1020fi
1021fi
1022LN_S="$ac_cv_prog_LN_S"
1023if test "$ac_cv_prog_LN_S" = "ln -s"; then
1024  echo "$ac_t""yes" 1>&6
1025else
1026  echo "$ac_t""no" 1>&6
1027fi
1028
1029echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1030echo "configure:1031: checking whether ${MAKE-make} sets \${MAKE}" >&5
1031set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1032if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1033  echo $ac_n "(cached) $ac_c" 1>&6
1034else
1035  cat > conftestmake <<\EOF
1036all:
1037        @echo 'ac_maketemp="${MAKE}"'
1038EOF
1039# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1040eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1041if test -n "$ac_maketemp"; then
1042  eval ac_cv_prog_make_${ac_make}_set=yes
1043else
1044  eval ac_cv_prog_make_${ac_make}_set=no
1045fi
1046rm -f conftestmake
1047fi
1048if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1049  echo "$ac_t""yes" 1>&6
1050  SET_MAKE=
1051else
1052  echo "$ac_t""no" 1>&6
1053  SET_MAKE="MAKE=${MAKE-make}"
1054fi
1055
1056if test $ac_cv_prog_gcc = yes; then
1057    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1058echo "configure:1059: checking whether ${CC-cc} needs -traditional" >&5
1059if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1060  echo $ac_n "(cached) $ac_c" 1>&6
1061else
1062    ac_pattern="Autoconf.*'x'"
1063  cat > conftest.$ac_ext <<EOF
1064#line 1065 "configure"
1065#include "confdefs.h"
1066#include <sgtty.h>
1067Autoconf TIOCGETP
1068EOF
1069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1070  egrep "$ac_pattern" >/dev/null 2>&1; then
1071  rm -rf conftest*
1072  ac_cv_prog_gcc_traditional=yes
1073else
1074  rm -rf conftest*
1075  ac_cv_prog_gcc_traditional=no
1076fi
1077rm -f conftest*
1078
1079
1080  if test $ac_cv_prog_gcc_traditional = no; then
1081    cat > conftest.$ac_ext <<EOF
1082#line 1083 "configure"
1083#include "confdefs.h"
1084#include <termio.h>
1085Autoconf TCGETA
1086EOF
1087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1088  egrep "$ac_pattern" >/dev/null 2>&1; then
1089  rm -rf conftest*
1090  ac_cv_prog_gcc_traditional=yes
1091fi
1092rm -f conftest*
1093
1094  fi
1095fi
1096
1097echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1098  if test $ac_cv_prog_gcc_traditional = yes; then
1099    CC="$CC -traditional"
1100  fi
1101fi
1102
1103
1104if test "x${GCC}" = "xyes" -a "x$CFLAGS" = "x-g -O2"; then
1105  CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes -Wno-implicit-int"
1106fi
1107
1108  # Check whether --with-rep_prefix or --without-rep_prefix was given.
1109if test "${with_rep_prefix+set}" = set; then
1110  withval="$with_rep_prefix"
1111  rep_prefix="$withval"
1112else
1113  rep_prefix=""
1114fi
1115
1116  if test "x$rep_prefix" = "x"; then
1117    rep_config="rep-config"
1118  else
1119    rep_config="${rep_prefix}/bin/rep-config"
1120  fi
1121  min_rep_version=0.13
1122  echo $ac_n "checking for rep - version >= $min_rep_version""... $ac_c" 1>&6
1123echo "configure:1124: checking for rep - version >= $min_rep_version" >&5
1124  rep_version=`$rep_config --version`
1125  if test $? -eq 0; then
1126    rep_major=`echo $rep_version \
1127        | sed -e 's/\([0-9]*\)\..*/\1/'`
1128    rep_minor=`echo $rep_version \
1129        | sed -e 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
1130    min_rep_major=`echo $min_rep_version \
1131        | sed -e 's/\([0-9]*\)\..*/\1/'`
1132    min_rep_minor=`echo $min_rep_version \
1133        | sed -e 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
1134    if test '(' $rep_major -gt $min_rep_major ')' \
1135        -o '(' $rep_major -eq $min_rep_major \
1136               -a $rep_minor -ge $min_rep_minor ')';
1137    then
1138      REP_VERSION="${rep_version}"
1139      REP_CFLAGS="`$rep_config --cflags`"
1140      REP_LIBS="`$rep_config --libs`"
1141      REP_EXECDIR="`$rep_config --execdir`"
1142     
1143     
1144     
1145     
1146      echo "$ac_t""version ${rep_version}" 1>&6
1147    else
1148      { echo "configure: error: version ${rep_version}; require $min_rep_version" 1>&2; exit 1; }
1149    fi
1150  else
1151    { echo "configure: error: can't find librep; is it installed?" 1>&2; exit 1; }
1152  fi
1153
1154    echo $ac_n "checking for GNU msgfmt""... $ac_c" 1>&6
1155echo "configure:1156: checking for GNU msgfmt" >&5
1156  REP_MSGFMT=
1157  for p in `echo "$PATH" | sed -e 's/:/ /g'`; do
1158    if test -x $p/msgfmt; then
1159      if $p/msgfmt --version 2>&1 | grep GNU >/dev/null; then
1160        REP_MSGFMT=$p/msgfmt
1161      fi
1162    fi
1163  done
1164  if test x$REP_MSGFMT != x; then
1165    echo "$ac_t""$REP_MSGFMT" 1>&6
1166  else
1167    echo "$ac_t""unavailable" 1>&6
1168    REP_MSGFMT=true
1169  fi
1170 
1171
1172
1173# Check whether --with-glib-prefix or --without-glib-prefix was given.
1174if test "${with_glib_prefix+set}" = set; then
1175  withval="$with_glib_prefix"
1176  glib_config_prefix="$withval"
1177else
1178  glib_config_prefix=""
1179fi
1180
1181# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1182if test "${with_glib_exec_prefix+set}" = set; then
1183  withval="$with_glib_exec_prefix"
1184  glib_config_exec_prefix="$withval"
1185else
1186  glib_config_exec_prefix=""
1187fi
1188
1189# Check whether --enable-glibtest or --disable-glibtest was given.
1190if test "${enable_glibtest+set}" = set; then
1191  enableval="$enable_glibtest"
1192  :
1193else
1194  enable_glibtest=yes
1195fi
1196
1197
1198  if test x$glib_config_exec_prefix != x ; then
1199     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1200     if test x${GLIB_CONFIG+set} != xset ; then
1201        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1202     fi
1203  fi
1204  if test x$glib_config_prefix != x ; then
1205     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1206     if test x${GLIB_CONFIG+set} != xset ; then
1207        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1208     fi
1209  fi
1210
1211  for module in .
1212  do
1213      case "$module" in
1214         gmodule)
1215             glib_config_args="$glib_config_args gmodule"
1216         ;;
1217         gthread)
1218             glib_config_args="$glib_config_args gthread"
1219         ;;
1220      esac
1221  done
1222
1223  # Extract the first word of "glib-config", so it can be a program name with args.
1224set dummy glib-config; ac_word=$2
1225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226echo "configure:1227: checking for $ac_word" >&5
1227if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1228  echo $ac_n "(cached) $ac_c" 1>&6
1229else
1230  case "$GLIB_CONFIG" in
1231  /*)
1232  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1233  ;;
1234  ?:/*)                 
1235  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1236  ;;
1237  *)
1238  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1239  ac_dummy="$PATH"
1240  for ac_dir in $ac_dummy; do
1241    test -z "$ac_dir" && ac_dir=.
1242    if test -f $ac_dir/$ac_word; then
1243      ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1244      break
1245    fi
1246  done
1247  IFS="$ac_save_ifs"
1248  test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1249  ;;
1250esac
1251fi
1252GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1253if test -n "$GLIB_CONFIG"; then
1254  echo "$ac_t""$GLIB_CONFIG" 1>&6
1255else
1256  echo "$ac_t""no" 1>&6
1257fi
1258
1259  min_glib_version=0.99.7
1260  echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1261echo "configure:1262: checking for GLIB - version >= $min_glib_version" >&5
1262  no_glib=""
1263  if test "$GLIB_CONFIG" = "no" ; then
1264    no_glib=yes
1265  else
1266    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1267    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1268    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1269           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1270    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1271           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1272    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1273           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1274    if test "x$enable_glibtest" = "xyes" ; then
1275      ac_save_CFLAGS="$CFLAGS"
1276      ac_save_LIBS="$LIBS"
1277      CFLAGS="$CFLAGS $GLIB_CFLAGS"
1278      LIBS="$GLIB_LIBS $LIBS"
1279      rm -f conf.glibtest
1280      if test "$cross_compiling" = yes; then
1281  echo $ac_n "cross compiling; assumed OK... $ac_c"
1282else
1283  cat > conftest.$ac_ext <<EOF
1284#line 1285 "configure"
1285#include "confdefs.h"
1286
1287#include <glib.h>
1288#include <stdio.h>
1289#include <stdlib.h>
1290
1291int
1292main ()
1293{
1294  int major, minor, micro;
1295  char *tmp_version;
1296
1297  system ("touch conf.glibtest");
1298
1299  /* HP/UX 9 (%@#!) writes to sscanf strings */
1300  tmp_version = g_strdup("$min_glib_version");
1301  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1302     printf("%s, bad version string\n", "$min_glib_version");
1303     exit(1);
1304   }
1305
1306  if ((glib_major_version != $glib_config_major_version) ||
1307      (glib_minor_version != $glib_config_minor_version) ||
1308      (glib_micro_version != $glib_config_micro_version))
1309    {
1310      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1311             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1312             glib_major_version, glib_minor_version, glib_micro_version);
1313      printf ("*** was found! If glib-config was correct, then it is best\n");
1314      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1315      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1316      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1317      printf("*** required on your system.\n");
1318      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1319      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1320      printf("*** before re-running configure\n");
1321    }
1322  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1323           (glib_minor_version != GLIB_MINOR_VERSION) ||
1324           (glib_micro_version != GLIB_MICRO_VERSION))
1325    {
1326      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1327             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1328      printf("*** library (version %d.%d.%d)\n",
1329             glib_major_version, glib_minor_version, glib_micro_version);
1330    }
1331  else
1332    {
1333      if ((glib_major_version > major) ||
1334        ((glib_major_version == major) && (glib_minor_version > minor)) ||
1335        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1336      {
1337        return 0;
1338       }
1339     else
1340      {
1341        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1342               glib_major_version, glib_minor_version, glib_micro_version);
1343        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1344               major, minor, micro);
1345        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1346        printf("***\n");
1347        printf("*** If you have already installed a sufficiently new version, this error\n");
1348        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1349        printf("*** being found. The easiest way to fix this is to remove the old version\n");
1350        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1351        printf("*** correct copy of glib-config. (In this case, you will have to\n");
1352        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1353        printf("*** so that the correct libraries are found at run-time))\n");
1354      }
1355    }
1356  return 1;
1357}
1358
1359EOF
1360if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1361then
1362  :
1363else
1364  echo "configure: failed program was:" >&5
1365  cat conftest.$ac_ext >&5
1366  rm -fr conftest*
1367  no_glib=yes
1368fi
1369rm -fr conftest*
1370fi
1371
1372       CFLAGS="$ac_save_CFLAGS"
1373       LIBS="$ac_save_LIBS"
1374     fi
1375  fi
1376  if test "x$no_glib" = x ; then
1377     echo "$ac_t""yes" 1>&6
1378     :     
1379  else
1380     echo "$ac_t""no" 1>&6
1381     if test "$GLIB_CONFIG" = "no" ; then
1382       echo "*** The glib-config script installed by GLIB could not be found"
1383       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1384       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1385       echo "*** full path to glib-config."
1386     else
1387       if test -f conf.glibtest ; then
1388        :
1389       else
1390          echo "*** Could not run GLIB test program, checking why..."
1391          CFLAGS="$CFLAGS $GLIB_CFLAGS"
1392          LIBS="$LIBS $GLIB_LIBS"
1393          cat > conftest.$ac_ext <<EOF
1394#line 1395 "configure"
1395#include "confdefs.h"
1396
1397#include <glib.h>
1398#include <stdio.h>
1399
1400int main() {
1401 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
1402; return 0; }
1403EOF
1404if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405  rm -rf conftest*
1406   echo "*** The test program compiled, but did not run. This usually means"
1407          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1408          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1409          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1410          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1411          echo "*** is required on your system"
1412          echo "***"
1413          echo "*** If you have an old version installed, it is best to remove it, although"
1414          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1415          echo "***"
1416          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1417          echo "*** came with the system with the command"
1418          echo "***"
1419          echo "***    rpm --erase --nodeps gtk gtk-devel"
1420else
1421  echo "configure: failed program was:" >&5
1422  cat conftest.$ac_ext >&5
1423  rm -rf conftest*
1424   echo "*** The test program failed to compile or link. See the file config.log for the"
1425          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1426          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1427          echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
1428fi
1429rm -f conftest*
1430          CFLAGS="$ac_save_CFLAGS"
1431          LIBS="$ac_save_LIBS"
1432       fi
1433     fi
1434     GLIB_CFLAGS=""
1435     GLIB_LIBS=""
1436     :
1437  fi
1438 
1439 
1440  rm -f conf.glibtest
1441
1442
1443# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1444if test "${with_gtk_prefix+set}" = set; then
1445  withval="$with_gtk_prefix"
1446  gtk_config_prefix="$withval"
1447else
1448  gtk_config_prefix=""
1449fi
1450
1451# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1452if test "${with_gtk_exec_prefix+set}" = set; then
1453  withval="$with_gtk_exec_prefix"
1454  gtk_config_exec_prefix="$withval"
1455else
1456  gtk_config_exec_prefix=""
1457fi
1458
1459# Check whether --enable-gtktest or --disable-gtktest was given.
1460if test "${enable_gtktest+set}" = set; then
1461  enableval="$enable_gtktest"
1462  :
1463else
1464  enable_gtktest=yes
1465fi
1466
1467
1468  for module in .
1469  do
1470      case "$module" in
1471         gthread)
1472             gtk_config_args="$gtk_config_args gthread"
1473         ;;
1474      esac
1475  done
1476
1477  if test x$gtk_config_exec_prefix != x ; then
1478     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1479     if test x${GTK_CONFIG+set} != xset ; then
1480        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1481     fi
1482  fi
1483  if test x$gtk_config_prefix != x ; then
1484     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1485     if test x${GTK_CONFIG+set} != xset ; then
1486        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1487     fi
1488  fi
1489
1490  # Extract the first word of "gtk-config", so it can be a program name with args.
1491set dummy gtk-config; ac_word=$2
1492echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1493echo "configure:1494: checking for $ac_word" >&5
1494if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1495  echo $ac_n "(cached) $ac_c" 1>&6
1496else
1497  case "$GTK_CONFIG" in
1498  /*)
1499  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
1500  ;;
1501  ?:/*)                 
1502  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
1503  ;;
1504  *)
1505  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1506  ac_dummy="$PATH"
1507  for ac_dir in $ac_dummy; do
1508    test -z "$ac_dir" && ac_dir=.
1509    if test -f $ac_dir/$ac_word; then
1510      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
1511      break
1512    fi
1513  done
1514  IFS="$ac_save_ifs"
1515  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
1516  ;;
1517esac
1518fi
1519GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1520if test -n "$GTK_CONFIG"; then
1521  echo "$ac_t""$GTK_CONFIG" 1>&6
1522else
1523  echo "$ac_t""no" 1>&6
1524fi
1525
1526  min_gtk_version=1.2.0
1527  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1528echo "configure:1529: checking for GTK - version >= $min_gtk_version" >&5
1529  no_gtk=""
1530  if test "$GTK_CONFIG" = "no" ; then
1531    no_gtk=yes
1532  else
1533    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
1534    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
1535    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
1536           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1537    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
1538           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1539    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
1540           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1541    if test "x$enable_gtktest" = "xyes" ; then
1542      ac_save_CFLAGS="$CFLAGS"
1543      ac_save_LIBS="$LIBS"
1544      CFLAGS="$CFLAGS $GTK_CFLAGS"
1545      LIBS="$GTK_LIBS $LIBS"
1546      rm -f conf.gtktest
1547      if test "$cross_compiling" = yes; then
1548  echo $ac_n "cross compiling; assumed OK... $ac_c"
1549else
1550  cat > conftest.$ac_ext <<EOF
1551#line 1552 "configure"
1552#include "confdefs.h"
1553
1554#include <gtk/gtk.h>
1555#include <stdio.h>
1556#include <stdlib.h>
1557
1558int
1559main ()
1560{
1561  int major, minor, micro;
1562  char *tmp_version;
1563
1564  system ("touch conf.gtktest");
1565
1566  /* HP/UX 9 (%@#!) writes to sscanf strings */
1567  tmp_version = g_strdup("$min_gtk_version");
1568  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1569     printf("%s, bad version string\n", "$min_gtk_version");
1570     exit(1);
1571   }
1572
1573  if ((gtk_major_version != $gtk_config_major_version) ||
1574      (gtk_minor_version != $gtk_config_minor_version) ||
1575      (gtk_micro_version != $gtk_config_micro_version))
1576    {
1577      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1578             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1579             gtk_major_version, gtk_minor_version, gtk_micro_version);
1580      printf ("*** was found! If gtk-config was correct, then it is best\n");
1581      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1582      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1583      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1584      printf("*** required on your system.\n");
1585      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
1586      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
1587      printf("*** before re-running configure\n");
1588    }
1589#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
1590  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1591           (gtk_minor_version != GTK_MINOR_VERSION) ||
1592           (gtk_micro_version != GTK_MICRO_VERSION))
1593    {
1594      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1595             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1596      printf("*** library (version %d.%d.%d)\n",
1597             gtk_major_version, gtk_minor_version, gtk_micro_version);
1598    }
1599#endif /* defined (GTK_MAJOR_VERSION) ... */
1600  else
1601    {
1602      if ((gtk_major_version > major) ||
1603        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1604        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1605      {
1606        return 0;
1607       }
1608     else
1609      {
1610        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1611               gtk_major_version, gtk_minor_version, gtk_micro_version);
1612        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1613               major, minor, micro);
1614        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1615        printf("***\n");
1616        printf("*** If you have already installed a sufficiently new version, this error\n");
1617        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
1618        printf("*** being found. The easiest way to fix this is to remove the old version\n");
1619        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
1620        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
1621        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1622        printf("*** so that the correct libraries are found at run-time))\n");
1623      }
1624    }
1625  return 1;
1626}
1627
1628EOF
1629if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1630then
1631  :
1632else
1633  echo "configure: failed program was:" >&5
1634  cat conftest.$ac_ext >&5
1635  rm -fr conftest*
1636  no_gtk=yes
1637fi
1638rm -fr conftest*
1639fi
1640
1641       CFLAGS="$ac_save_CFLAGS"
1642       LIBS="$ac_save_LIBS"
1643     fi
1644  fi
1645  if test "x$no_gtk" = x ; then
1646     echo "$ac_t""yes" 1>&6
1647     :     
1648  else
1649     echo "$ac_t""no" 1>&6
1650     if test "$GTK_CONFIG" = "no" ; then
1651       echo "*** The gtk-config script installed by GTK could not be found"
1652       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
1653       echo "*** your path, or set the GTK_CONFIG environment variable to the"
1654       echo "*** full path to gtk-config."
1655     else
1656       if test -f conf.gtktest ; then
1657        :
1658       else
1659          echo "*** Could not run GTK test program, checking why..."
1660          CFLAGS="$CFLAGS $GTK_CFLAGS"
1661          LIBS="$LIBS $GTK_LIBS"
1662          cat > conftest.$ac_ext <<EOF
1663#line 1664 "configure"
1664#include "confdefs.h"
1665
1666#include <gtk/gtk.h>
1667#include <stdio.h>
1668
1669int main() {
1670 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
1671; return 0; }
1672EOF
1673if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1674  rm -rf conftest*
1675   echo "*** The test program compiled, but did not run. This usually means"
1676          echo "*** that the run-time linker is not finding GTK or finding the wrong"
1677          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
1678          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1679          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1680          echo "*** is required on your system"
1681          echo "***"
1682          echo "*** If you have an old version installed, it is best to remove it, although"
1683          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1684          echo "***"
1685          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1686          echo "*** came with the system with the command"
1687          echo "***"
1688          echo "***    rpm --erase --nodeps gtk gtk-devel"
1689else
1690  echo "configure: failed program was:" >&5
1691  cat conftest.$ac_ext >&5
1692  rm -rf conftest*
1693   echo "*** The test program failed to compile or link. See the file config.log for the"
1694          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
1695          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
1696          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
1697fi
1698rm -f conftest*
1699          CFLAGS="$ac_save_CFLAGS"
1700          LIBS="$ac_save_LIBS"
1701       fi
1702     fi
1703     GTK_CFLAGS=""
1704     GTK_LIBS=""
1705     { echo "configure: error: need at least Gtk+ version 1.2" 1>&2; exit 1; }
1706  fi
1707 
1708 
1709  rm -f conf.gtktest
1710
1711
1712echo $ac_n "checking for GNOME libs""... $ac_c" 1>&6
1713echo "configure:1714: checking for GNOME libs" >&5
1714# Check whether --with-gnome or --without-gnome was given.
1715if test "${with_gnome+set}" = set; then
1716  withval="$with_gnome"
1717  :
1718else
1719  with_gnome=maybe
1720fi
1721
1722if test "$with_gnome" != "no"; then
1723  GNOME_VERSION="`gnome-config --version`"
1724  if test $? -eq 0; then
1725    GNOME_LIBS="`gnome-config --libs gnome`"
1726    GNOMEUI_LIBS="`gnome-config --libs gnomeui`"
1727    GNOME_CFLAGS="`gnome-config --cflags gnomeui`"
1728    echo "$ac_t""$GNOME_VERSION" 1>&6
1729    OUT="$OUT gnome/lib.la gnome/ui.la gnome/canvas.la"
1730    with_gnome=yes
1731  elif test "$with_gnome" = "yes"; then
1732    { echo "configure: error: can't run gnome-config" 1>&2; exit 1; };
1733  else
1734    with_gnome=no
1735  fi
1736fi
1737
1738
1739
1740
1741
1742# Check whether --with-libglade or --without-libglade was given.
1743if test "${with_libglade+set}" = set; then
1744  withval="$with_libglade"
1745  :
1746else
1747  with_libglade=yes
1748fi
1749
1750if test "$with_libglade" = "yes"; then
1751  # Check whether --with-libglade-config or --without-libglade-config was given.
1752if test "${with_libglade_config+set}" = set; then
1753  withval="$with_libglade_config"
1754  LIBGLADE_CONFIG="$withval"
1755fi
1756
1757
1758module_args=
1759for module in . ; do
1760  case "$module" in
1761    gnome)
1762      module_args="$module_args gnome"
1763      ;;
1764    bonobo)
1765      module_args="$module_args bonobo"
1766      ;;
1767  esac
1768done
1769
1770# Extract the first word of "libglade-config", so it can be a program name with args.
1771set dummy libglade-config; ac_word=$2
1772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773echo "configure:1774: checking for $ac_word" >&5
1774if eval "test \"`echo '$''{'ac_cv_path_LIBGLADE_CONFIG'+set}'`\" = set"; then
1775  echo $ac_n "(cached) $ac_c" 1>&6
1776else
1777  case "$LIBGLADE_CONFIG" in
1778  /*)
1779  ac_cv_path_LIBGLADE_CONFIG="$LIBGLADE_CONFIG" # Let the user override the test with a path.
1780  ;;
1781  ?:/*)                 
1782  ac_cv_path_LIBGLADE_CONFIG="$LIBGLADE_CONFIG" # Let the user override the test with a dos path.
1783  ;;
1784  *)
1785  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1786  ac_dummy="$PATH"
1787  for ac_dir in $ac_dummy; do
1788    test -z "$ac_dir" && ac_dir=.
1789    if test -f $ac_dir/$ac_word; then
1790      ac_cv_path_LIBGLADE_CONFIG="$ac_dir/$ac_word"
1791      break
1792    fi
1793  done
1794  IFS="$ac_save_ifs"
1795  test -z "$ac_cv_path_LIBGLADE_CONFIG" && ac_cv_path_LIBGLADE_CONFIG="no"
1796  ;;
1797esac
1798fi
1799LIBGLADE_CONFIG="$ac_cv_path_LIBGLADE_CONFIG"
1800if test -n "$LIBGLADE_CONFIG"; then
1801  echo "$ac_t""$LIBGLADE_CONFIG" 1>&6
1802else
1803  echo "$ac_t""no" 1>&6
1804fi
1805
1806echo $ac_n "checking for libglade""... $ac_c" 1>&6
1807echo "configure:1808: checking for libglade" >&5
1808if test "$LIBGLADE_CONFIG" = "no"; then
1809  echo "$ac_t""no" 1>&6
1810  :
1811else
1812  if $LIBGLADE_CONFIG --check $module_args; then
1813    LIBGLADE_CFLAGS=`$LIBGLADE_CONFIG --cflags $module_args`
1814    LIBGLADE_LIBS=`$LIBGLADE_CONFIG --libs $module_args`
1815    echo "$ac_t""yes" 1>&6
1816    OUT="$OUT gtk/libglade.la"
1817  else
1818    echo "*** libglade was not compiled with support for $module_args" 1>&2
1819    echo "$ac_t""no" 1>&6
1820    :
1821  fi
1822fi
1823
1824
1825
1826fi
1827
1828if test "$with_libglade" = "yes" -a "$with_gnome" = "yes"; then
1829  echo $ac_n "checking for libglade GNOME support""... $ac_c" 1>&6
1830echo "configure:1831: checking for libglade GNOME support" >&5
1831  if $LIBGLADE_CONFIG --check gnome; then
1832    echo "$ac_t""yes" 1>&6
1833    GNOME_LIBGLADE_CFLAGS=`$LIBGLADE_CONFIG --cflags gnome`
1834    GNOME_LIBGLADE_LIBS=`$LIBGLADE_CONFIG --libs gnome`
1835   
1836   
1837    echo $ac_n "checking whether <glade/glade-xml.h> has "txtdomain" field""... $ac_c" 1>&6
1838echo "configure:1839: checking whether <glade/glade-xml.h> has "txtdomain" field" >&5
1839    _cppflags=${CPPFLAGS}
1840    CPPFLAGS="${CPPFLAGS} ${LIBGLADE_CFLAGS}"
1841    cat > conftest.$ac_ext <<EOF
1842#line 1843 "configure"
1843#include "confdefs.h"
1844#include <glade/glade-xml.h>
1845EOF
1846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1847  egrep "char \*txtdomain;" >/dev/null 2>&1; then
1848  rm -rf conftest*
1849  echo "$ac_t""yes" 1>&6
1850                     cat >> confdefs.h <<\EOF
1851#define LIBGLADE_XML_TXTDOMAIN 1
1852EOF
1853
1854else
1855  rm -rf conftest*
1856  echo "$ac_t""no" 1>&6
1857fi
1858rm -f conftest*
1859
1860    CPPFLAGS="${_cppflags}"
1861    OUT="$OUT gnome/libglade.la"
1862  else
1863    { echo "configure: error: libglade wasn't compiled with GNOME support" 1>&2; exit 1; }
1864  fi
1865fi
1866
1867# Check whether --with-gdk-pixbuf or --without-gdk-pixbuf was given.
1868if test "${with_gdk_pixbuf+set}" = set; then
1869  withval="$with_gdk_pixbuf"
1870  :
1871else
1872  with_gdk_pixbuf=maybe
1873fi
1874
1875if test "$with_gdk_pixbuf" != "no"; then
1876  # Check whether --with-gdk-pixbuf-prefix or --without-gdk-pixbuf-prefix was given.
1877if test "${with_gdk_pixbuf_prefix+set}" = set; then
1878  withval="$with_gdk_pixbuf_prefix"
1879  gdk_pixbuf_prefix="$withval"
1880else
1881  gdk_pixbuf_prefix=""
1882fi
1883
1884# Check whether --with-gdk-pixbuf-exec-prefix or --without-gdk-pixbuf-exec-prefix was given.
1885if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then
1886  withval="$with_gdk_pixbuf_exec_prefix"
1887  gdk_pixbuf_exec_prefix="$withval"
1888else
1889  gdk_pixbuf_exec_prefix=""
1890fi
1891
1892# Check whether --enable-gdk_pixbuftest or --disable-gdk_pixbuftest was given.
1893if test "${enable_gdk_pixbuftest+set}" = set; then
1894  enableval="$enable_gdk_pixbuftest"
1895  :
1896else
1897  enable_gdk_pixbuftest=yes
1898fi
1899
1900
1901  if test x$gdk_pixbuf_exec_prefix != x ; then
1902     gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix"
1903     if test x${GDK_PIXBUF_CONFIG+set} != xset ; then
1904        GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/bin/gdk-pixbuf-config
1905     fi
1906  fi
1907  if test x$gdk_pixbuf_prefix != x ; then
1908     gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix"
1909     if test x${GDK_PIXBUF_CONFIG+set} != xset ; then
1910        GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config
1911     fi
1912  fi
1913
1914  # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args.
1915set dummy gdk-pixbuf-config; ac_word=$2
1916echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1917echo "configure:1918: checking for $ac_word" >&5
1918if eval "test \"`echo '$''{'ac_cv_path_GDK_PIXBUF_CONFIG'+set}'`\" = set"; then
1919  echo $ac_n "(cached) $ac_c" 1>&6
1920else
1921  case "$GDK_PIXBUF_CONFIG" in
1922  /*)
1923  ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path.
1924  ;;
1925  ?:/*)                 
1926  ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a dos path.
1927  ;;
1928  *)
1929  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1930  ac_dummy="$PATH"
1931  for ac_dir in $ac_dummy; do
1932    test -z "$ac_dir" && ac_dir=.
1933    if test -f $ac_dir/$ac_word; then
1934      ac_cv_path_GDK_PIXBUF_CONFIG="$ac_dir/$ac_word"
1935      break
1936    fi
1937  done
1938  IFS="$ac_save_ifs"
1939  test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG="no"
1940  ;;
1941esac
1942fi
1943GDK_PIXBUF_CONFIG="$ac_cv_path_GDK_PIXBUF_CONFIG"
1944if test -n "$GDK_PIXBUF_CONFIG"; then
1945  echo "$ac_t""$GDK_PIXBUF_CONFIG" 1>&6
1946else
1947  echo "$ac_t""no" 1>&6
1948fi
1949
1950  min_gdk_pixbuf_version=0.2.5
1951  echo $ac_n "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version""... $ac_c" 1>&6
1952echo "configure:1953: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5
1953  no_gdk_pixbuf=""
1954  if test "$GDK_PIXBUF_CONFIG" = "no" ; then
1955    no_gdk_pixbuf=yes
1956  else
1957    GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags`
1958    GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs`
1959
1960    gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
1961           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1962    gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
1963           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1964    gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \
1965           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1966    if test "x$enable_gdk_pixbuftest" = "xyes" ; then
1967      ac_save_CFLAGS="$CFLAGS"
1968      ac_save_LIBS="$LIBS"
1969      CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
1970      LIBS="$LIBS $GDK_PIXBUF_LIBS"
1971      rm -f conf.gdk_pixbuftest
1972      if test "$cross_compiling" = yes; then
1973  echo $ac_n "cross compiling; assumed OK... $ac_c"
1974else
1975  cat > conftest.$ac_ext <<EOF
1976#line 1977 "configure"
1977#include "confdefs.h"
1978
1979#include <stdio.h>
1980#include <stdlib.h>
1981#include <string.h>
1982#include <gdk-pixbuf/gdk-pixbuf.h>
1983
1984char*
1985my_strdup (char *str)
1986{
1987  char *new_str;
1988 
1989  if (str)
1990    {
1991      new_str = malloc ((strlen (str) + 1) * sizeof(char));
1992      strcpy (new_str, str);
1993    }
1994  else
1995    new_str = NULL;
1996 
1997  return new_str;
1998}
1999
2000int main ()
2001{
2002  int major, minor, micro;
2003  char *tmp_version;
2004
2005  system ("touch conf.gdk_pixbuftest");
2006
2007  /* HP/UX 9 (%@#!) writes to sscanf strings */
2008  tmp_version = my_strdup("$min_gdk_pixbuf_version");
2009  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2010     printf("%s, bad version string\n", "$min_gdk_pixbuf_version");
2011     exit(1);
2012   }
2013
2014   if (($gdk_pixbuf_major_version > major) ||
2015      (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) ||
2016      (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro)))
2017    {
2018      return 0;
2019    }
2020  else
2021    {
2022      printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version);
2023      printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro);
2024      printf("*** best to upgrade to the required version.\n");
2025      printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n");
2026      printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n");
2027      printf("*** config.cache before re-running configure\n");
2028      return 1;
2029    }
2030}
2031
2032
2033EOF
2034if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2035then
2036  :
2037else
2038  echo "configure: failed program was:" >&5
2039  cat conftest.$ac_ext >&5
2040  rm -fr conftest*
2041  no_gdk_pixbuf=yes
2042fi
2043rm -fr conftest*
2044fi
2045
2046       CFLAGS="$ac_save_CFLAGS"
2047       LIBS="$ac_save_LIBS"
2048     fi
2049  fi
2050  if test "x$no_gdk_pixbuf" = x ; then
2051     echo "$ac_t""yes" 1>&6
2052     with_gdk_pixbuf="yes"; OUT="$OUT gtk/gdk-pixbuf.la"     
2053  else
2054     echo "$ac_t""no" 1>&6
2055     if test "$GDK_PIXBUF_CONFIG" = "no" ; then
2056       echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found"
2057       echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in"
2058       echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the"
2059       echo "*** full path to gdk-pixbuf-config."
2060     else
2061       if test -f conf.gdk_pixbuftest ; then
2062        :
2063       else
2064          echo "*** Could not run GDK_PIXBUF test program, checking why..."
2065          CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
2066          LIBS="$LIBS $GDK_PIXBUF_LIBS"
2067          cat > conftest.$ac_ext <<EOF
2068#line 2069 "configure"
2069#include "confdefs.h"
2070
2071#include <stdio.h>
2072#include <gdk-pixbuf/gdk-pixbuf.h>
2073
2074int main() {
2075 return 0;
2076; return 0; }
2077EOF
2078if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079  rm -rf conftest*
2080   echo "*** The test program compiled, but did not run. This usually means"
2081          echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong"
2082          echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your"
2083          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2084          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2085          echo "*** is required on your system"
2086          echo "***"
2087          echo "*** If you have an old version installed, it is best to remove it, although"
2088          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2089else
2090  echo "configure: failed program was:" >&5
2091  cat conftest.$ac_ext >&5
2092  rm -rf conftest*
2093   echo "*** The test program failed to compile or link. See the file config.log for the"
2094          echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed"
2095          echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you"
2096          echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG"
2097fi
2098rm -f conftest*
2099          CFLAGS="$ac_save_CFLAGS"
2100          LIBS="$ac_save_LIBS"
2101       fi
2102     fi
2103     GDK_PIXBUF_CFLAGS=""
2104     GDK_PIXBUF_LIBS=""
2105     with_gdk_pixbuf=no
2106  fi
2107 
2108 
2109  rm -f conf.gdk_pixbuftest
2110
2111fi
2112
2113if test "$with_gdk_pixbuf" = "yes" -a "$with_gnome" = "yes"; then
2114  echo $ac_n "checking for GNOME canvas pixbuf support""... $ac_c" 1>&6
2115echo "configure:2116: checking for GNOME canvas pixbuf support" >&5
2116  # Check whether --with-gnome-canvas-pixbuf or --without-gnome-canvas-pixbuf was given.
2117if test "${with_gnome_canvas_pixbuf+set}" = set; then
2118  withval="$with_gnome_canvas_pixbuf"
2119  :
2120else
2121  with_gnome_canvas_pixbuf=maybe
2122fi
2123
2124  if test "$with_gnome_canvas_pixbuf" != "no"; then
2125    GNOME_CANVAS_PIXBUF_VERSION="`gnome-config --modversion gnomecanvaspixbuf`"
2126    if test $? -eq 0; then
2127      GNOME_CANVAS_PIXBUF_LIBS="`gnome-config --libs gnomecanvaspixbuf`"
2128      GNOME_CANVAS_PIXBUF_CFLAGS="`gnome-config --cflags gnomecanvaspixbuf`"
2129      echo "$ac_t""$GNOME_CANVAS_PIXBUF_VERSION" 1>&6
2130      OUT="$OUT gnome/canvas-pixbuf.la"
2131    elif test "$with_gnome_canvas_pixbuf" = "yes"; then
2132      { echo "configure: error: can't run gnome-config" 1>&2; exit 1; };
2133    fi
2134  fi
2135fi
2136
2137
2138
2139
2140echo $ac_n "checking for working const""... $ac_c" 1>&6
2141echo "configure:2142: checking for working const" >&5
2142if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2143  echo $ac_n "(cached) $ac_c" 1>&6
2144else
2145  cat > conftest.$ac_ext <<EOF
2146#line 2147 "configure"
2147#include "confdefs.h"
2148
2149int main() {
2150
2151/* Ultrix mips cc rejects this.  */
2152typedef int charset[2]; const charset x;
2153/* SunOS 4.1.1 cc rejects this.  */
2154char const *const *ccp;
2155char **p;
2156/* NEC SVR4.0.2 mips cc rejects this.  */
2157struct point {int x, y;};
2158static struct point const zero = {0,0};
2159/* AIX XL C 1.02.0.0 rejects this.
2160   It does not let you subtract one const X* pointer from another in an arm
2161   of an if-expression whose if-part is not a constant expression */
2162const char *g = "string";
2163ccp = &g + (g ? g-g : 0);
2164/* HPUX 7.0 cc rejects these. */
2165++ccp;
2166p = (char**) ccp;
2167ccp = (char const *const *) p;
2168{ /* SCO 3.2v4 cc rejects this.  */
2169  char *t;
2170  char const *s = 0 ? (char *) 0 : (char const *) 0;
2171
2172  *t++ = 0;
2173}
2174{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2175  int x[] = {25, 17};
2176  const int *foo = &x[0];
2177  ++foo;
2178}
2179{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2180  typedef const int *iptr;
2181  iptr p = 0;
2182  ++p;
2183}
2184{ /* AIX XL C 1.02.0.0 rejects this saying
2185     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2186  struct s { int j; const int *ap[3]; };
2187  struct s *b; b->j = 5;
2188}
2189{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2190  const int foo = 10;
2191}
2192
2193; return 0; }
2194EOF
2195if { (eval echo configure:2196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2196  rm -rf conftest*
2197  ac_cv_c_const=yes
2198else
2199  echo "configure: failed program was:" >&5
2200  cat conftest.$ac_ext >&5
2201  rm -rf conftest*
2202  ac_cv_c_const=no
2203fi
2204rm -f conftest*
2205fi
2206
2207echo "$ac_t""$ac_cv_c_const" 1>&6
2208if test $ac_cv_c_const = no; then
2209  cat >> confdefs.h <<\EOF
2210#define const
2211EOF
2212
2213fi
2214
2215echo $ac_n "checking for inline""... $ac_c" 1>&6
2216echo "configure:2217: checking for inline" >&5
2217if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2218  echo $ac_n "(cached) $ac_c" 1>&6
2219else
2220  ac_cv_c_inline=no
2221for ac_kw in inline __inline__ __inline; do
2222  cat > conftest.$ac_ext <<EOF
2223#line 2224 "configure"
2224#include "confdefs.h"
2225
2226int main() {
2227} $ac_kw foo() {
2228; return 0; }
2229EOF
2230if { (eval echo configure:2231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2231  rm -rf conftest*
2232  ac_cv_c_inline=$ac_kw; break
2233else
2234  echo "configure: failed program was:" >&5
2235  cat conftest.$ac_ext >&5
2236fi
2237rm -f conftest*
2238done
2239
2240fi
2241
2242echo "$ac_t""$ac_cv_c_inline" 1>&6
2243case "$ac_cv_c_inline" in
2244  inline | yes) ;;
2245  no) cat >> confdefs.h <<\EOF
2246#define inline
2247EOF
2248 ;;
2249  *)  cat >> confdefs.h <<EOF
2250#define inline $ac_cv_c_inline
2251EOF
2252 ;;
2253esac
2254
2255echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2256echo "configure:2257: checking for ANSI C header files" >&5
2257if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2258  echo $ac_n "(cached) $ac_c" 1>&6
2259else
2260  cat > conftest.$ac_ext <<EOF
2261#line 2262 "configure"
2262#include "confdefs.h"
2263#include <stdlib.h>
2264#include <stdarg.h>
2265#include <string.h>
2266#include <float.h>
2267EOF
2268ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269{ (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2271if test -z "$ac_err"; then
2272  rm -rf conftest*
2273  ac_cv_header_stdc=yes
2274else
2275  echo "$ac_err" >&5
2276  echo "configure: failed program was:" >&5
2277  cat conftest.$ac_ext >&5
2278  rm -rf conftest*
2279  ac_cv_header_stdc=no
2280fi
2281rm -f conftest*
2282
2283if test $ac_cv_header_stdc = yes; then
2284  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2285cat > conftest.$ac_ext <<EOF
2286#line 2287 "configure"
2287#include "confdefs.h"
2288#include <string.h>
2289EOF
2290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2291  egrep "memchr" >/dev/null 2>&1; then
2292  :
2293else
2294  rm -rf conftest*
2295  ac_cv_header_stdc=no
2296fi
2297rm -f conftest*
2298
2299fi
2300
2301if test $ac_cv_header_stdc = yes; then
2302  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2303cat > conftest.$ac_ext <<EOF
2304#line 2305 "configure"
2305#include "confdefs.h"
2306#include <stdlib.h>
2307EOF
2308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2309  egrep "free" >/dev/null 2>&1; then
2310  :
2311else
2312  rm -rf conftest*
2313  ac_cv_header_stdc=no
2314fi
2315rm -f conftest*
2316
2317fi
2318
2319if test $ac_cv_header_stdc = yes; then
2320  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2321if test "$cross_compiling" = yes; then
2322  :
2323else
2324  cat > conftest.$ac_ext <<EOF
2325#line 2326 "configure"
2326#include "confdefs.h"
2327#include <ctype.h>
2328#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2329#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2331int main () { int i; for (i = 0; i < 256; i++)
2332if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2333exit (0); }
2334
2335EOF
2336if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2337then
2338  :
2339else
2340  echo "configure: failed program was:" >&5
2341  cat conftest.$ac_ext >&5
2342  rm -fr conftest*
2343  ac_cv_header_stdc=no
2344fi
2345rm -fr conftest*
2346fi
2347
2348fi
2349fi
2350
2351echo "$ac_t""$ac_cv_header_stdc" 1>&6
2352if test $ac_cv_header_stdc = yes; then
2353  cat >> confdefs.h <<\EOF
2354#define STDC_HEADERS 1
2355EOF
2356
2357fi
2358
2359echo $ac_n "checking for size_t""... $ac_c" 1>&6
2360echo "configure:2361: checking for size_t" >&5
2361if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2362  echo $ac_n "(cached) $ac_c" 1>&6
2363else
2364  cat > conftest.$ac_ext <<EOF
2365#line 2366 "configure"
2366#include "confdefs.h"
2367#include <sys/types.h>
2368#if STDC_HEADERS
2369#include <stdlib.h>
2370#include <stddef.h>
2371#endif
2372EOF
2373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2374  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2375  rm -rf conftest*
2376  ac_cv_type_size_t=yes
2377else
2378  rm -rf conftest*
2379  ac_cv_type_size_t=no
2380fi
2381rm -f conftest*
2382
2383fi
2384echo "$ac_t""$ac_cv_type_size_t" 1>&6
2385if test $ac_cv_type_size_t = no; then
2386  cat >> confdefs.h <<\EOF
2387#define size_t unsigned
2388EOF
2389
2390fi
2391
2392
2393saved_LIBS="$LIBS"
2394LIBS="$GTK_LIBS $saved_LIBS"
2395for ac_func in gdk_color_copy gtk_widget_peek_colormap gtk_type_get_info gtk_signal_set_class_function_full
2396do
2397echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2398echo "configure:2399: checking for $ac_func" >&5
2399if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2400  echo $ac_n "(cached) $ac_c" 1>&6
2401else
2402  cat > conftest.$ac_ext <<EOF
2403#line 2404 "configure"
2404#include "confdefs.h"
2405/* System header to define __stub macros and hopefully few prototypes,
2406    which can conflict with char $ac_func(); below.  */
2407#include <assert.h>
2408/* Override any gcc2 internal prototype to avoid an error.  */
2409/* We use char because int might match the return type of a gcc2
2410    builtin and then its argument prototype would still apply.  */
2411char $ac_func();
2412
2413int main() {
2414
2415/* The GNU C library defines this for functions which it implements
2416    to always fail with ENOSYS.  Some functions are actually named
2417    something starting with __ and the normal name is an alias.  */
2418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2419choke me
2420#else
2421$ac_func();
2422#endif
2423
2424; return 0; }
2425EOF
2426if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2427  rm -rf conftest*
2428  eval "ac_cv_func_$ac_func=yes"
2429else
2430  echo "configure: failed program was:" >&5
2431  cat conftest.$ac_ext >&5
2432  rm -rf conftest*
2433  eval "ac_cv_func_$ac_func=no"
2434fi
2435rm -f conftest*
2436fi
2437
2438if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2439  echo "$ac_t""yes" 1>&6
2440    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2441  cat >> confdefs.h <<EOF
2442#define $ac_tr_func 1
2443EOF
2444 
2445else
2446  echo "$ac_t""no" 1>&6
2447fi
2448done
2449
2450LIBS="$saved_LIBS"
2451
2452for ac_func in setlocale
2453do
2454echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2455echo "configure:2456: checking for $ac_func" >&5
2456if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2457  echo $ac_n "(cached) $ac_c" 1>&6
2458else
2459  cat > conftest.$ac_ext <<EOF
2460#line 2461 "configure"
2461#include "confdefs.h"
2462/* System header to define __stub macros and hopefully few prototypes,
2463    which can conflict with char $ac_func(); below.  */
2464#include <assert.h>
2465/* Override any gcc2 internal prototype to avoid an error.  */
2466/* We use char because int might match the return type of a gcc2
2467    builtin and then its argument prototype would still apply.  */
2468char $ac_func();
2469
2470int main() {
2471
2472/* The GNU C library defines this for functions which it implements
2473    to always fail with ENOSYS.  Some functions are actually named
2474    something starting with __ and the normal name is an alias.  */
2475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2476choke me
2477#else
2478$ac_func();
2479#endif
2480
2481; return 0; }
2482EOF
2483if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484  rm -rf conftest*
2485  eval "ac_cv_func_$ac_func=yes"
2486else
2487  echo "configure: failed program was:" >&5
2488  cat conftest.$ac_ext >&5
2489  rm -rf conftest*
2490  eval "ac_cv_func_$ac_func=no"
2491fi
2492rm -f conftest*
2493fi
2494
2495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2496  echo "$ac_t""yes" 1>&6
2497    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2498  cat >> confdefs.h <<EOF
2499#define $ac_tr_func 1
2500EOF
2501 
2502else
2503  echo "$ac_t""no" 1>&6
2504fi
2505done
2506
2507for ac_hdr in locale.h
2508do
2509ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2510echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2511echo "configure:2512: checking for $ac_hdr" >&5
2512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2513  echo $ac_n "(cached) $ac_c" 1>&6
2514else
2515  cat > conftest.$ac_ext <<EOF
2516#line 2517 "configure"
2517#include "confdefs.h"
2518#include <$ac_hdr>
2519EOF
2520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521{ (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2523if test -z "$ac_err"; then
2524  rm -rf conftest*
2525  eval "ac_cv_header_$ac_safe=yes"
2526else
2527  echo "$ac_err" >&5
2528  echo "configure: failed program was:" >&5
2529  cat conftest.$ac_ext >&5
2530  rm -rf conftest*
2531  eval "ac_cv_header_$ac_safe=no"
2532fi
2533rm -f conftest*
2534fi
2535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2536  echo "$ac_t""yes" 1>&6
2537    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2538  cat >> confdefs.h <<EOF
2539#define $ac_tr_hdr 1
2540EOF
2541 
2542else
2543  echo "$ac_t""no" 1>&6
2544fi
2545done
2546
2547
2548
2549
2550
2551
2552
2553
2554cat >> confdefs.h <<EOF
2555#define REP_GTK_VERSION "${version}"
2556EOF
2557
2558
2559trap '' 1 2 15
2560cat > confcache <<\EOF
2561# This file is a shell script that caches the results of configure
2562# tests run on this system so they can be shared between configure
2563# scripts and configure runs.  It is not useful on other systems.
2564# If it contains results you don't want to keep, you may remove or edit it.
2565#
2566# By default, configure uses ./config.cache as the cache file,
2567# creating it if it does not exist already.  You can give configure
2568# the --cache-file=FILE option to use a different cache file; that is
2569# what configure does when it calls configure scripts in
2570# subdirectories, so they share the cache.
2571# Giving --cache-file=/dev/null disables caching, for debugging configure.
2572# config.status only pays attention to the cache file if you give it the
2573# --recheck option to rerun configure.
2574#
2575EOF
2576# The following way of writing the cache mishandles newlines in values,
2577# but we know of no workaround that is simple, portable, and efficient.
2578# So, don't put newlines in cache variables' values.
2579# Ultrix sh set writes to stderr and can't be redirected directly,
2580# and sets the high bit in the cache file unless we assign to the vars.
2581(set) 2>&1 |
2582  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2583  *ac_space=\ *)
2584    # `set' does not quote correctly, so add quotes (double-quote substitution
2585    # turns \\\\ into \\, and sed turns \\ into \).
2586    sed -n \
2587      -e "s/'/'\\\\''/g" \
2588      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2589    ;;
2590  *)
2591    # `set' quotes correctly as required by POSIX, so do not add quotes.
2592    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2593    ;;
2594  esac >> confcache
2595if cmp -s $cache_file confcache; then
2596  :
2597else
2598  if test -w $cache_file; then
2599    echo "updating cache $cache_file"
2600    cat confcache > $cache_file
2601  else
2602    echo "not updating unwritable cache $cache_file"
2603  fi
2604fi
2605rm -f confcache
2606
2607trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2608
2609test "x$prefix" = xNONE && prefix=$ac_default_prefix
2610# Let make expand exec_prefix.
2611test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2612
2613# Any assignment to VPATH causes Sun make to only execute
2614# the first set of double-colon rules, so remove it if not needed.
2615# If there is a colon in the path, we need to keep it.
2616if test "x$srcdir" = x.; then
2617  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2618fi
2619
2620trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2621
2622DEFS=-DHAVE_CONFIG_H
2623
2624# Without the "./", some shells look in PATH for config.status.
2625: ${CONFIG_STATUS=./config.status}
2626
2627echo creating $CONFIG_STATUS
2628rm -f $CONFIG_STATUS
2629cat > $CONFIG_STATUS <<EOF
2630#! /bin/sh
2631# Generated automatically by configure.
2632# Run this file to recreate the current configuration.
2633# This directory was configured as follows,
2634# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2635#
2636# $0 $ac_configure_args
2637#
2638# Compiler output produced by configure, useful for debugging
2639# configure, is in ./config.log if it exists.
2640
2641ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2642for ac_option
2643do
2644  case "\$ac_option" in
2645  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2646    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2647    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2648  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2649    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2650    exit 0 ;;
2651  -help | --help | --hel | --he | --h)
2652    echo "\$ac_cs_usage"; exit 0 ;;
2653  *) echo "\$ac_cs_usage"; exit 1 ;;
2654  esac
2655done
2656
2657ac_given_srcdir=$srcdir
2658ac_given_INSTALL="$INSTALL"
2659
2660trap 'rm -fr `echo "Makefile rep-gtk.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2661EOF
2662cat >> $CONFIG_STATUS <<EOF
2663
2664# Protect against being on the right side of a sed subst in config.status.
2665sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2666 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2667$ac_vpsub
2668$extrasub
2669s%@SHELL@%$SHELL%g
2670s%@CFLAGS@%$CFLAGS%g
2671s%@CPPFLAGS@%$CPPFLAGS%g
2672s%@CXXFLAGS@%$CXXFLAGS%g
2673s%@FFLAGS@%$FFLAGS%g
2674s%@DEFS@%$DEFS%g
2675s%@LDFLAGS@%$LDFLAGS%g
2676s%@LIBS@%$LIBS%g
2677s%@exec_prefix@%$exec_prefix%g
2678s%@prefix@%$prefix%g
2679s%@program_transform_name@%$program_transform_name%g
2680s%@bindir@%$bindir%g
2681s%@sbindir@%$sbindir%g
2682s%@libexecdir@%$libexecdir%g
2683s%@datadir@%$datadir%g
2684s%@sysconfdir@%$sysconfdir%g
2685s%@sharedstatedir@%$sharedstatedir%g
2686s%@localstatedir@%$localstatedir%g
2687s%@libdir@%$libdir%g
2688s%@includedir@%$includedir%g
2689s%@oldincludedir@%$oldincludedir%g
2690s%@infodir@%$infodir%g
2691s%@mandir@%$mandir%g
2692s%@OUT@%$OUT%g
2693s%@host@%$host%g
2694s%@host_alias@%$host_alias%g
2695s%@host_cpu@%$host_cpu%g
2696s%@host_vendor@%$host_vendor%g
2697s%@host_os@%$host_os%g
2698s%@CC@%$CC%g
2699s%@CPP@%$CPP%g
2700s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2701s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2702s%@INSTALL_DATA@%$INSTALL_DATA%g
2703s%@LN_S@%$LN_S%g
2704s%@SET_MAKE@%$SET_MAKE%g
2705s%@REP_VERSION@%$REP_VERSION%g
2706s%@REP_CFLAGS@%$REP_CFLAGS%g
2707s%@REP_LIBS@%$REP_LIBS%g
2708s%@REP_EXECDIR@%$REP_EXECDIR%g
2709s%@REP_MSGFMT@%$REP_MSGFMT%g
2710s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2711s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2712s%@GLIB_LIBS@%$GLIB_LIBS%g
2713s%@GTK_CONFIG@%$GTK_CONFIG%g
2714s%@GTK_CFLAGS@%$GTK_CFLAGS%g
2715s%@GTK_LIBS@%$GTK_LIBS%g
2716s%@GNOME_VERSION@%$GNOME_VERSION%g
2717s%@GNOME_LIBS@%$GNOME_LIBS%g
2718s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
2719s%@GNOME_CFLAGS@%$GNOME_CFLAGS%g
2720s%@LIBGLADE_CONFIG@%$LIBGLADE_CONFIG%g
2721s%@LIBGLADE_CFLAGS@%$LIBGLADE_CFLAGS%g
2722s%@LIBGLADE_LIBS@%$LIBGLADE_LIBS%g
2723s%@GNOME_LIBGLADE_LIBS@%$GNOME_LIBGLADE_LIBS%g
2724s%@GNOME_LIBGLADE_CFLAGS@%$GNOME_LIBGLADE_CFLAGS%g
2725s%@GDK_PIXBUF_CONFIG@%$GDK_PIXBUF_CONFIG%g
2726s%@GDK_PIXBUF_CFLAGS@%$GDK_PIXBUF_CFLAGS%g
2727s%@GDK_PIXBUF_LIBS@%$GDK_PIXBUF_LIBS%g
2728s%@GNOME_CANVAS_PIXBUF_VERSION@%$GNOME_CANVAS_PIXBUF_VERSION%g
2729s%@GNOME_CANVAS_PIXBUF_LIBS@%$GNOME_CANVAS_PIXBUF_LIBS%g
2730s%@GNOME_CANVAS_PIXBUF_CFLAGS@%$GNOME_CANVAS_PIXBUF_CFLAGS%g
2731s%@version@%$version%g
2732s%@repexecdir@%$repexecdir%g
2733
2734CEOF
2735EOF
2736
2737cat >> $CONFIG_STATUS <<\EOF
2738
2739# Split the substitutions into bite-sized pieces for seds with
2740# small command number limits, like on Digital OSF/1 and HP-UX.
2741ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2742ac_file=1 # Number of current file.
2743ac_beg=1 # First line for current file.
2744ac_end=$ac_max_sed_cmds # Line after last line for current file.
2745ac_more_lines=:
2746ac_sed_cmds=""
2747while $ac_more_lines; do
2748  if test $ac_beg -gt 1; then
2749    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2750  else
2751    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2752  fi
2753  if test ! -s conftest.s$ac_file; then
2754    ac_more_lines=false
2755    rm -f conftest.s$ac_file
2756  else
2757    if test -z "$ac_sed_cmds"; then
2758      ac_sed_cmds="sed -f conftest.s$ac_file"
2759    else
2760      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2761    fi
2762    ac_file=`expr $ac_file + 1`
2763    ac_beg=$ac_end
2764    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2765  fi
2766done
2767if test -z "$ac_sed_cmds"; then
2768  ac_sed_cmds=cat
2769fi
2770EOF
2771
2772cat >> $CONFIG_STATUS <<EOF
2773
2774CONFIG_FILES=\${CONFIG_FILES-"Makefile rep-gtk.spec"}
2775EOF
2776cat >> $CONFIG_STATUS <<\EOF
2777for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2778  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2779  case "$ac_file" in
2780  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2781       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2782  *) ac_file_in="${ac_file}.in" ;;
2783  esac
2784
2785  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2786
2787  # Remove last slash and all that follows it.  Not all systems have dirname.
2788  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2789  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2790    # The file is in a subdirectory.
2791    test ! -d "$ac_dir" && mkdir "$ac_dir"
2792    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2793    # A "../" for each directory in $ac_dir_suffix.
2794    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2795  else
2796    ac_dir_suffix= ac_dots=
2797  fi
2798
2799  case "$ac_given_srcdir" in
2800  .)  srcdir=.
2801      if test -z "$ac_dots"; then top_srcdir=.
2802      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2803  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2804  *) # Relative path.
2805    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2806    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2807  esac
2808
2809  case "$ac_given_INSTALL" in
2810  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2811  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2812  esac
2813
2814  echo creating "$ac_file"
2815  rm -f "$ac_file"
2816  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2817  case "$ac_file" in
2818  *Makefile*) ac_comsub="1i\\
2819# $configure_input" ;;
2820  *) ac_comsub= ;;
2821  esac
2822
2823  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2824  sed -e "$ac_comsub
2825s%@configure_input@%$configure_input%g
2826s%@srcdir@%$srcdir%g
2827s%@top_srcdir@%$top_srcdir%g
2828s%@INSTALL@%$INSTALL%g
2829" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2830fi; done
2831rm -f conftest.s*
2832
2833# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2834# NAME is the cpp macro being defined and VALUE is the value it is being given.
2835#
2836# ac_d sets the value in "#define NAME VALUE" lines.
2837ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2838ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2839ac_dC='\3'
2840ac_dD='%g'
2841# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2842ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2843ac_uB='\([      ]\)%\1#\2define\3'
2844ac_uC=' '
2845ac_uD='\4%g'
2846# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2847ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2848ac_eB='$%\1#\2define\3'
2849ac_eC=' '
2850ac_eD='%g'
2851
2852if test "${CONFIG_HEADERS+set}" != set; then
2853EOF
2854cat >> $CONFIG_STATUS <<EOF
2855  CONFIG_HEADERS="config.h"
2856EOF
2857cat >> $CONFIG_STATUS <<\EOF
2858fi
2859for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2860  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2861  case "$ac_file" in
2862  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2863       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2864  *) ac_file_in="${ac_file}.in" ;;
2865  esac
2866
2867  echo creating $ac_file
2868
2869  rm -f conftest.frag conftest.in conftest.out
2870  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2871  cat $ac_file_inputs > conftest.in
2872
2873EOF
2874
2875# Transform confdefs.h into a sed script conftest.vals that substitutes
2876# the proper values into config.h.in to produce config.h.  And first:
2877# Protect against being on the right side of a sed subst in config.status.
2878# Protect against being in an unquoted here document in config.status.
2879rm -f conftest.vals
2880cat > conftest.hdr <<\EOF
2881s/[\\&%]/\\&/g
2882s%[\\$`]%\\&%g
2883s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2884s%ac_d%ac_u%gp
2885s%ac_u%ac_e%gp
2886EOF
2887sed -n -f conftest.hdr confdefs.h > conftest.vals
2888rm -f conftest.hdr
2889
2890# This sed command replaces #undef with comments.  This is necessary, for
2891# example, in the case of _POSIX_SOURCE, which is predefined and required
2892# on some systems where configure will not decide to define it.
2893cat >> conftest.vals <<\EOF
2894s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2895EOF
2896
2897# Break up conftest.vals because some shells have a limit on
2898# the size of here documents, and old seds have small limits too.
2899
2900rm -f conftest.tail
2901while :
2902do
2903  ac_lines=`grep -c . conftest.vals`
2904  # grep -c gives empty output for an empty file on some AIX systems.
2905  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2906  # Write a limited-size here document to conftest.frag.
2907  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2908  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2909  echo 'CEOF
2910  sed -f conftest.frag conftest.in > conftest.out
2911  rm -f conftest.in
2912  mv conftest.out conftest.in
2913' >> $CONFIG_STATUS
2914  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2915  rm -f conftest.vals
2916  mv conftest.tail conftest.vals
2917done
2918rm -f conftest.vals
2919
2920cat >> $CONFIG_STATUS <<\EOF
2921  rm -f conftest.frag conftest.h
2922  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2923  cat conftest.in >> conftest.h
2924  rm -f conftest.in
2925  if cmp -s $ac_file conftest.h 2>/dev/null; then
2926    echo "$ac_file is unchanged"
2927    rm -f conftest.h
2928  else
2929    # Remove last slash and all that follows it.  Not all systems have dirname.
2930      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2931      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2932      # The file is in a subdirectory.
2933      test ! -d "$ac_dir" && mkdir "$ac_dir"
2934    fi
2935    rm -f $ac_file
2936    mv conftest.h $ac_file
2937  fi
2938fi; done
2939
2940EOF
2941cat >> $CONFIG_STATUS <<EOF
2942
2943EOF
2944cat >> $CONFIG_STATUS <<\EOF
2945
2946exit 0
2947EOF
2948chmod +x $CONFIG_STATUS
2949rm -fr confdefs* $ac_clean_files
2950test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2951
2952
Note: See TracBrowser for help on using the repository browser.