annotate configure @ 8:9a30825849ce

small build fixes
author masneyb
date Fri, 23 Aug 2002 12:53:47 +0000
parents 5551ab2301fe
children ddb983d8574b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 #! /bin/sh
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3 # Guess values for system-dependent variables and create Makefiles.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4 # Generated automatically using autoconf version 2.13
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7 # This configure script is free software; the Free Software Foundation
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
8 # gives unlimited permission to copy, distribute and modify it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
9
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
10 # Defaults:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
11 ac_help=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
12 ac_default_prefix=/usr/local
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
13 # Any additions from configure.in:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
14 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
15 --enable-gtk20 Try and compile with GTK+ 2.0 if available"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
16 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
17 --disable-gtkport Disable compiling the GTK+ port"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
18 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
19 --disable-textport Disable compiling the text port"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
20 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
21 --enable-dmalloc Enable the dmalloc library"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
24 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
26 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 --disable-glibtest Do not try to compile and run a test GLIB program"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 --with-readline turn on readline [default=yes, default tries -lncurses, -lcurses, -ltermcap]"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
31 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
32 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
33 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
34 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
35 --disable-gtktest Do not try to compile and run a test GTK program"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
36 ac_help="$ac_help
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
37 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
38 ac_help="$ac_help
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
39 --disable-rpath do not hardcode runtime library paths"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
40 ac_help="$ac_help
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
41 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
42 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
43 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
44 --disable-nls do not use Native Language Support"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
45 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
46 --with-included-gettext use the GNU gettext library included here"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
47 ac_help="$ac_help
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
48 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
49 --without-libintl-prefix don't search for libintl in includedir and libdir"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
50
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
51 # Initialize some variables set by options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
52 # The variables have the same names as the options, with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
53 # dashes changed to underlines.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
54 build=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
55 cache_file=./config.cache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
56 exec_prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
57 host=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
58 no_create=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
59 nonopt=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
60 no_recursion=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
61 prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
62 program_prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
63 program_suffix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
64 program_transform_name=s,x,x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
65 silent=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
66 site=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
67 srcdir=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
68 target=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
69 verbose=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
70 x_includes=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
71 x_libraries=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
72 bindir='${exec_prefix}/bin'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
73 sbindir='${exec_prefix}/sbin'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
74 libexecdir='${exec_prefix}/libexec'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
75 datadir='${prefix}/share'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
76 sysconfdir='${prefix}/etc'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
77 sharedstatedir='${prefix}/com'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
78 localstatedir='${prefix}/var'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
79 libdir='${exec_prefix}/lib'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
80 includedir='${prefix}/include'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
81 oldincludedir='/usr/include'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
82 infodir='${prefix}/info'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83 mandir='${prefix}/man'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 # Initialize some other variables.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86 subdirs=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87 MFLAGS= MAKEFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
88 SHELL=${CONFIG_SHELL-/bin/sh}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 # Maximum number of lines to put in a shell here document.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 ac_max_here_lines=12
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
92 ac_prev=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93 for ac_option
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
94 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
95
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
96 # If the previous option needs an argument, assign it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
97 if test -n "$ac_prev"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
98 eval "$ac_prev=\$ac_option"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
99 ac_prev=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
100 continue
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
101 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
102
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
105 *) ac_optarg= ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
106 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
107
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108 # Accept the important Cygnus configure options, so we can diagnose typos.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113 ac_prev=bindir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115 bindir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117 -build | --build | --buil | --bui | --bu)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
118 ac_prev=build ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
120 build="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
121
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
124 ac_prev=cache_file ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 cache_file="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130 ac_prev=datadir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 | --da=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 datadir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135 -disable-* | --disable-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
142 eval "enable_${ac_feature}=no" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 -enable-* | --enable-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
146 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
149 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
151 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
152 *=*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
153 *) ac_optarg=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
154 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
156
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
159 | --exec | --exe | --ex)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
160 ac_prev=exec_prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
163 | --exec=* | --exe=* | --ex=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
164 exec_prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
165
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
166 -gas | --gas | --ga | --g)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
167 # Obsolete; use --with-gas.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
168 with_gas=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
169
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
170 -help | --help | --hel | --he)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
171 # Omit some internal or obsolete options to make the list less imposing.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
172 # This message is too long to be a string in the A/UX 3.1 sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
173 cat << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
174 Usage: configure [options] [host]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
175 Options: [defaults in brackets after descriptions]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
176 Configuration:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177 --cache-file=FILE cache test results in FILE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
178 --help print this message
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179 --no-create do not create output files
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 --quiet, --silent do not print \`checking...' messages
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
181 --version print the version of autoconf that created configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182 Directory and file names:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
183 --prefix=PREFIX install architecture-independent files in PREFIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184 [$ac_default_prefix]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
186 [same as prefix]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187 --bindir=DIR user executables in DIR [EPREFIX/bin]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190 --datadir=DIR read-only architecture-independent data in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191 [PREFIX/share]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
194 [PREFIX/com]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
197 --includedir=DIR C header files in DIR [PREFIX/include]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199 --infodir=DIR info documentation in DIR [PREFIX/info]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200 --mandir=DIR man documentation in DIR [PREFIX/man]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201 --srcdir=DIR find the sources in DIR [configure dir or ..]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202 --program-prefix=PREFIX prepend PREFIX to installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203 --program-suffix=SUFFIX append SUFFIX to installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 --program-transform-name=PROGRAM
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205 run sed PROGRAM on installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207 cat << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 Host type:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210 --host=HOST configure for HOST [guessed]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 --target=TARGET configure for TARGET [TARGET=HOST]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212 Features and packages:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217 --x-includes=DIR X include files are in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 --x-libraries=DIR X library files are in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
220 if test -n "$ac_help"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
221 echo "--enable and --with options recognized:$ac_help"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225 -host | --host | --hos | --ho)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 ac_prev=host ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227 -host=* | --host=* | --hos=* | --ho=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228 host="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230 -includedir | --includedir | --includedi | --included | --include \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231 | --includ | --inclu | --incl | --inc)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 ac_prev=includedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 includedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238 ac_prev=infodir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240 infodir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242 -libdir | --libdir | --libdi | --libd)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243 ac_prev=libdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245 libdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
248 | --libexe | --libex | --libe)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
249 ac_prev=libexecdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
251 | --libexe=* | --libex=* | --libe=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
252 libexecdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
253
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
255 | --localstate | --localstat | --localsta | --localst \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
256 | --locals | --local | --loca | --loc | --lo)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
257 ac_prev=localstatedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
261 localstatedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
262
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
264 ac_prev=mandir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
266 mandir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
267
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
268 -nfp | --nfp | --nf)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
269 # Obsolete; use --without-fp.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
270 with_fp=no ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
271
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273 | --no-cr | --no-c)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274 no_create=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278 no_recursion=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
282 | --oldin | --oldi | --old | --ol | --o)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283 ac_prev=oldincludedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
287 oldincludedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
288
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290 ac_prev=prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
292 prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
293
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
295 | --program-pre | --program-pr | --program-p)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
296 ac_prev=program_prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
299 program_prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
300
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
302 | --program-suf | --program-su | --program-s)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
303 ac_prev=program_suffix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
306 program_suffix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
307
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
308 -program-transform-name | --program-transform-name \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
309 | --program-transform-nam | --program-transform-na \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
310 | --program-transform-n | --program-transform- \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
311 | --program-transform | --program-transfor \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
312 | --program-transfo | --program-transf \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
313 | --program-trans | --program-tran \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
314 | --progr-tra | --program-tr | --program-t)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
315 ac_prev=program_transform_name ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
316 -program-transform-name=* | --program-transform-name=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
317 | --program-transform-nam=* | --program-transform-na=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
318 | --program-transform-n=* | --program-transform-=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
319 | --program-transform=* | --program-transfor=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
320 | --program-transfo=* | --program-transf=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
321 | --program-trans=* | --program-tran=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
322 | --progr-tra=* | --program-tr=* | --program-t=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
323 program_transform_name="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
324
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
326 | -silent | --silent | --silen | --sile | --sil)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
327 silent=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
328
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
330 ac_prev=sbindir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
332 | --sbi=* | --sb=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
333 sbindir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
334
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
337 | --sharedst | --shareds | --shared | --share | --shar \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
338 | --sha | --sh)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
339 ac_prev=sharedstatedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
343 | --sha=* | --sh=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
344 sharedstatedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
345
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
346 -site | --site | --sit)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
347 ac_prev=site ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
348 -site=* | --site=* | --sit=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
349 site="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
350
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
352 ac_prev=srcdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
354 srcdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
355
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
357 | --syscon | --sysco | --sysc | --sys | --sy)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
358 ac_prev=sysconfdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
361 sysconfdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
362
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
363 -target | --target | --targe | --targ | --tar | --ta | --t)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
364 ac_prev=target ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
366 target="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
367
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
369 verbose=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
370
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
371 -version | --version | --versio | --versi | --vers)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
372 echo "configure generated by autoconf version 2.13"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
373 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
374
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
375 -with-* | --with-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
377 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
380 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
382 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
383 *=*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
384 *) ac_optarg=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
385 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
386 eval "with_${ac_package}='$ac_optarg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
387
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
388 -without-* | --without-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
390 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
393 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
395 eval "with_${ac_package}=no" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
396
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
397 --x)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
398 # Obsolete; use --with-x.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
399 with_x=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
400
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
402 | --x-incl | --x-inc | --x-in | --x-i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
403 ac_prev=x_includes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
406 x_includes="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
407
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
410 ac_prev=x_libraries ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
413 x_libraries="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
414
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
416 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
417
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
418 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
421 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
422 if test "x$nonopt" != xNONE; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
424 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
425 nonopt="$ac_option"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
426 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
427
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
428 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
429 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
430
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
431 if test -n "$ac_prev"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
433 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
434
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
436
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
437 # File descriptor usage:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
438 # 0 standard input
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
439 # 1 file creation
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
440 # 2 errors and warnings
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
441 # 3 some systems may open it to /dev/tty
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
442 # 4 used on the Kubota Titan
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
443 # 6 checking for... messages and results
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
444 # 5 compiler messages saved in config.log
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
445 if test "$silent" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
446 exec 6>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
447 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
448 exec 6>&1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
449 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
450 exec 5>./config.log
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
451
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
452 echo "\
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
453 This file contains any messages produced by compilers while
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
454 running configure, to aid debugging if configure makes a mistake.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
455 " 1>&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
456
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
457 # Strip out --no-create and --no-recursion so they do not pile up.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
458 # Also quote any args containing shell metacharacters.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
459 ac_configure_args=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
460 for ac_arg
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
461 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
462 case "$ac_arg" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
464 | --no-cr | --no-c) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
470 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
471 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
472
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
473 # NLS nuisances.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
474 # Only set these to C if already set. These must not be set unconditionally
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
475 # because not all systems understand e.g. LANG=C (notably SCO).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
477 # Non-C LC_CTYPE values break the ctype check.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
482
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
484 rm -rf conftest* confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
486 echo > confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
487
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
488 # A filename unique to this package, relative to the directory that
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
489 # configure is in, which we can look for to find out if srcdir is correct.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
490 ac_unique_file=lib/gftp.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
491
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
492 # Find the source files, if location was not specified.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
493 if test -z "$srcdir"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
494 ac_srcdir_defaulted=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
495 # Try the directory containing this script, then its parent.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
496 ac_prog=$0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
499 srcdir=$ac_confdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
500 if test ! -r $srcdir/$ac_unique_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
501 srcdir=..
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
502 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
503 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
504 ac_srcdir_defaulted=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
505 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
506 if test ! -r $srcdir/$ac_unique_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
507 if test "$ac_srcdir_defaulted" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
509 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
511 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
512 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
514
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
515 # Prefer explicitly selected file to automatically selected ones.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
516 if test -z "$CONFIG_SITE"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
517 if test "x$prefix" != xNONE; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
519 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
521 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
522 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
523 for ac_site_file in $CONFIG_SITE; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
524 if test -r "$ac_site_file"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
525 echo "loading site script $ac_site_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
526 . "$ac_site_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
527 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
528 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
529
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
530 if test -r "$cache_file"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
531 echo "loading cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
532 . $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
533 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
534 echo "creating cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
535 > $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
536 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
537
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
538 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
540 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
543 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
544
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
545 ac_exeext=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
546 ac_objext=o
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
550 ac_n= ac_c='
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
551 ' ac_t=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
552 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
553 ac_n=-n ac_c= ac_t=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
554 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
555 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
556 ac_n= ac_c='\c' ac_t=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
557 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
558
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
559 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
560 if test "${with_gnu_ld+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
561 withval="$with_gnu_ld"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
562 test "$withval" = no || with_gnu_ld=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
563 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
564 with_gnu_ld=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
565 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
566
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
567 ac_prog=ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
568 if test "$GCC" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
569 # Check if gcc -print-prog-name=ld gives a path.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
570 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
571 echo "configure:572: checking for ld used by GCC" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
572 case $host in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
573 *-*-mingw*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
574 # gcc leaves a trailing carriage return which upsets mingw
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
576 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
578 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
579 case $ac_prog in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
580 # Accept absolute paths.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
581 [\\/]* | [A-Za-z]:[\\/]*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
582 re_direlt='/[^/][^/]*/\.\./'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
583 # Canonicalize the path of ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
584 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
586 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
587 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
588 test -z "$LD" && LD="$ac_prog"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
589 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
590 "")
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
591 # If it fails, then pretend we aren't using GCC.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
592 ac_prog=ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
593 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
594 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
595 # If it is relative, then search for the first ld in PATH.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
596 with_gnu_ld=unknown
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
597 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
598 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
599 elif test "$with_gnu_ld" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
600 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
601 echo "configure:602: checking for GNU ld" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
602 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
603 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
604 echo "configure:605: checking for non-GNU ld" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
605 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
606 if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
607 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
608 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
609 if test -z "$LD"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
611 for ac_dir in $PATH; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
612 test -z "$ac_dir" && ac_dir=.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
614 acl_cv_path_LD="$ac_dir/$ac_prog"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
615 # Check to see if the program is GNU ld. I'd rather use --version,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
616 # but apparently some GNU ld's only accept -v.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
617 # Break only if it was the GNU/non-GNU ld that we prefer.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
618 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
619 test "$with_gnu_ld" != no && break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
620 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
621 test "$with_gnu_ld" != yes && break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
622 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
623 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
624 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
625 IFS="$ac_save_ifs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
626 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
627 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
628 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
629 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
630
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
631 LD="$acl_cv_path_LD"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
632 if test -n "$LD"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
633 echo "$ac_t""$LD" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
634 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
635 echo "$ac_t""no" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
636 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
637 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
638 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
639 echo "configure:640: checking if the linker ($LD) is GNU ld" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
640 if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
641 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
642 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
643 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
644 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
645 acl_cv_prog_gnu_ld=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
646 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
647 acl_cv_prog_gnu_ld=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
648 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
649 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
650
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
651 echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
652 with_gnu_ld=$acl_cv_prog_gnu_ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
653
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
654
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
655
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
656
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
657
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
658
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
659
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
660 ac_aux_dir=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
661 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
662 if test -f $ac_dir/install-sh; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
663 ac_aux_dir=$ac_dir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
664 ac_install_sh="$ac_aux_dir/install-sh -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
665 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
666 elif test -f $ac_dir/install.sh; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
667 ac_aux_dir=$ac_dir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
668 ac_install_sh="$ac_aux_dir/install.sh -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
669 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
670 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
671 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
672 if test -z "$ac_aux_dir"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
673 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
674 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
675 ac_config_guess=$ac_aux_dir/config.guess
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
676 ac_config_sub=$ac_aux_dir/config.sub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
677 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
678
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
679 # Find a good install program. We prefer a C program (faster),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
680 # so one script is as good as another. But avoid the broken or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
681 # incompatible versions:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
682 # SysV /etc/install, /usr/sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
683 # SunOS /usr/etc/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
684 # IRIX /sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
685 # AIX /bin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
689 # ./install, which can be erroneously created by make from ./install.sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
690 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
691 echo "configure:692: checking for a BSD compatible install" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
692 if test -z "$INSTALL"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
693 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
694 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
695 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
696 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
697 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
698 # Account for people who put trailing slashes in PATH elements.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
699 case "$ac_dir/" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
700 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
701 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
702 # OSF1 and SCO ODT 3.0 have their own names for install.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
703 # Don't use installbsd from OSF since it installs stuff as root
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
704 # by default.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
705 for ac_prog in ginstall scoinst install; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
706 if test -f $ac_dir/$ac_prog; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
707 if test $ac_prog = install &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
708 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
709 # AIX install. It has an incompatible calling convention.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
710 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
711 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
712 ac_cv_path_install="$ac_dir/$ac_prog -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
713 break 2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
714 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
715 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
716 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
717 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
718 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
719 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
720 IFS="$ac_save_IFS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
721
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
722 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
723 if test "${ac_cv_path_install+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
724 INSTALL="$ac_cv_path_install"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
725 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
726 # As a last resort, use the slow shell script. We don't cache a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
727 # path for INSTALL within a source directory, because that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
728 # break other packages using the cache if that directory is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
729 # removed, or if the path is relative.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
730 INSTALL="$ac_install_sh"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
731 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
732 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
733 echo "$ac_t""$INSTALL" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
734
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
736 # It thinks the first close brace ends the variable substitution.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
738
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
740
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
742
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
743 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
744 echo "configure:745: checking whether build environment is sane" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
745 # Just in case
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
746 sleep 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
747 echo timestamp > conftestfile
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
748 # Do `set' in a subshell so we don't clobber the current shell's
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
749 # arguments. Must try -L first in case configure is actually a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
750 # symlink; some systems play weird games with the mod time of symlinks
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
751 # (eg FreeBSD returns the mod time of the symlink's containing
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
752 # directory).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
753 if (
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
754 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
755 if test "$*" = "X"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
756 # -L didn't work.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
757 set X `ls -t $srcdir/configure conftestfile`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
758 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
759 if test "$*" != "X $srcdir/configure conftestfile" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
760 && test "$*" != "X conftestfile $srcdir/configure"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
761
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
762 # If neither matched, then we have a broken ls. This can happen
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
763 # if, for instance, CONFIG_SHELL is bash and it inherits a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
764 # broken ls alias from the environment. This has actually
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
765 # happened. Such a system could not be considered "sane".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
766 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
767 alias in your environment" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
768 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
769
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
770 test "$2" = conftestfile
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
771 )
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
772 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
773 # Ok.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
774 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
775 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
776 { echo "configure: error: newly created file is older than distributed files!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
777 Check your system clock" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
778 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
779 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
780 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
781 if test "$program_transform_name" = s,x,x,; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
782 program_transform_name=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
783 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
784 # Double any \ or $. echo might interpret backslashes.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
785 cat <<\EOF_SED > conftestsed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
786 s,\\,\\\\,g; s,\$,$$,g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
787 EOF_SED
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
788 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
789 rm -f conftestsed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
790 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
791 test "$program_prefix" != NONE &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
792 program_transform_name="s,^,${program_prefix},; $program_transform_name"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
793 # Use a double $ so make ignores it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
794 test "$program_suffix" != NONE &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
795 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
796
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
797 # sed with no file args requires a program.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
798 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
799
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
800 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
801 echo "configure:802: checking whether ${MAKE-make} sets \${MAKE}" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
803 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
804 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
805 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
806 cat > conftestmake <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
807 all:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
808 @echo 'ac_maketemp="${MAKE}"'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
809 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
811 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
812 if test -n "$ac_maketemp"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
813 eval ac_cv_prog_make_${ac_make}_set=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
814 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
815 eval ac_cv_prog_make_${ac_make}_set=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
816 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
817 rm -f conftestmake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
818 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
820 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
821 SET_MAKE=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
822 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
823 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
824 SET_MAKE="MAKE=${MAKE-make}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
825 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
826
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
827
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
828 PACKAGE=gftp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
829
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
830 VERSION=2.0.13
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
831
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
832 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
833 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
834 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
835 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
836 #define PACKAGE "$PACKAGE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
837 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
838
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
839 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
840 #define VERSION "$VERSION"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
841 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
842
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
843
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
844
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
845 missing_dir=`cd $ac_aux_dir && pwd`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
846 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
847 echo "configure:848: checking for working aclocal" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
848 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
849 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
850 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
851 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
852 ACLOCAL=aclocal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
853 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
854 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
855 ACLOCAL="$missing_dir/missing aclocal"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
856 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
857 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
858
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
859 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
860 echo "configure:861: checking for working autoconf" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
861 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
862 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
863 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
864 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
865 AUTOCONF=autoconf
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
866 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
867 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
868 AUTOCONF="$missing_dir/missing autoconf"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
869 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
870 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
871
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
872 echo $ac_n "checking for working automake""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
873 echo "configure:874: checking for working automake" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
874 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
875 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
876 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
877 if (automake --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
878 AUTOMAKE=automake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
879 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
880 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
881 AUTOMAKE="$missing_dir/missing automake"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
882 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
883 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
884
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
885 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
886 echo "configure:887: checking for working autoheader" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
887 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
888 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
889 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
890 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
891 AUTOHEADER=autoheader
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
892 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
893 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
894 AUTOHEADER="$missing_dir/missing autoheader"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
895 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
896 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
897
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
898 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
899 echo "configure:900: checking for working makeinfo" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
900 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
901 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
902 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
903 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
904 MAKEINFO=makeinfo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
905 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
906 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
907 MAKEINFO="$missing_dir/missing makeinfo"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
908 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
909 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
910
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
911
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
912
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
913 # Check whether --enable-gtk20 or --disable-gtk20 was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
914 if test "${enable_gtk20+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
915 enableval="$enable_gtk20"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
916 enable_gtk20=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
917 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
918 enable_gtk20=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
919 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
920
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
921 # Check whether --enable-gtkport or --disable-gtkport was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
922 if test "${enable_gtkport+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
923 enableval="$enable_gtkport"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
924 enable_gtkport=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
925 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
926 enable_gtkport=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
927 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
928
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
929 # Check whether --enable-textport or --disable-textport was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
930 if test "${enable_textport+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
931 enableval="$enable_textport"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
932 enable_textport=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
933 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
934 enable_textport=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
935 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
936
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
937 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
938 if test "${enable_dmalloc+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
939 enableval="$enable_dmalloc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
940 enable_dmalloc=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
941 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
942 enable_dmalloc=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
943 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
944
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
945
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
946
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
947
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
948
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
949
8
9a30825849ce small build fixes
masneyb
parents: 7
diff changeset
950 ALL_LINGUAS="bg cs da de es fi fr it ja ko nl no pl pt_BR ru sv tr zh_CN zh_TW"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
951
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
952
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
953 # Make sure we can run config.sub.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
954 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
955 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
956 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
957
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
958 echo $ac_n "checking host system type""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
959 echo "configure:960: checking host system type" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
960
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
961 host_alias=$host
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
962 case "$host_alias" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
963 NONE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
964 case $nonopt in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
965 NONE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
966 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
967 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
968 fi ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
969 *) host_alias=$nonopt ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
970 esac ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
971 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
972
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
973 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
974 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
975 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
976 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
977 echo "$ac_t""$host" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
978
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
979
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
980 for ac_prog in mawk gawk nawk awk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
981 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
982 # Extract the first word of "$ac_prog", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
983 set dummy $ac_prog; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
985 echo "configure:986: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
986 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
987 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
988 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
989 if test -n "$AWK"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
990 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
991 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
993 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
994 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
995 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
996 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
997 ac_cv_prog_AWK="$ac_prog"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
998 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
999 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1000 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1001 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1002 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1003 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1004 AWK="$ac_cv_prog_AWK"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1005 if test -n "$AWK"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1006 echo "$ac_t""$AWK" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1007 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1008 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1009 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1010
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1011 test -n "$AWK" && break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1012 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1013
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1014 # Extract the first word of "gcc", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1015 set dummy gcc; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1017 echo "configure:1018: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1019 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1020 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1021 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1022 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1023 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1025 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1026 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1027 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1028 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1029 ac_cv_prog_CC="gcc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1030 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1031 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1032 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1033 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1034 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1035 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1036 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1037 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1038 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1039 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1040 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1041 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1042
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1043 if test -z "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1044 # Extract the first word of "cc", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1045 set dummy cc; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1047 echo "configure:1048: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1048 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1049 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1050 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1051 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1052 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1053 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1055 ac_prog_rejected=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1056 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1057 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1058 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1059 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1060 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1061 ac_prog_rejected=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1062 continue
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1063 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1064 ac_cv_prog_CC="cc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1065 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1066 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1067 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1068 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1069 if test $ac_prog_rejected = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1070 # We found a bogon in the path, so make sure we never use it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1071 set dummy $ac_cv_prog_CC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1072 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1073 if test $# -gt 0; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1074 # We chose a different compiler from the bogus one.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1075 # However, it has the same basename, so the bogon will be chosen
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1076 # first if we set CC to just the basename; use the full file name.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1077 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1078 set dummy "$ac_dir/$ac_word" "$@"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1079 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1080 ac_cv_prog_CC="$@"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1081 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1082 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1083 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1084 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1085 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1086 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1087 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1088 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1089 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1090 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1091
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1092 if test -z "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1093 case "`uname -s`" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1094 *win32* | *WIN32*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1095 # Extract the first word of "cl", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1096 set dummy cl; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1098 echo "configure:1099: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1099 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1100 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1101 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1102 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1103 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1104 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1106 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1107 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1108 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1109 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1110 ac_cv_prog_CC="cl"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1111 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1112 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1113 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1114 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1115 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1116 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1117 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1118 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1119 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1120 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1121 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1122 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1123 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1124 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1125 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1126 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1127 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1128
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1129 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1130 echo "configure:1131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1131
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1132 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1134 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1137 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1138
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1139 cat > conftest.$ac_ext << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1140
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1141 #line 1142 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1142 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1143
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1144 main(){return(0);}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1145 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1146 if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1147 ac_cv_prog_cc_works=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1148 # If we can't run a trivial program, we are probably using a cross compiler.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1149 if (./conftest; exit) 2>/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1150 ac_cv_prog_cc_cross=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1151 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1152 ac_cv_prog_cc_cross=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1153 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1154 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1155 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1156 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1157 ac_cv_prog_cc_works=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1158 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1159 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1160 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1162 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1165 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1166
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1167 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1168 if test $ac_cv_prog_cc_works = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1169 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1170 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1171 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1172 echo "configure:1173: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1173 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1174 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1175
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1176 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1177 echo "configure:1178: checking whether we are using GNU C" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1178 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1179 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1180 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1181 cat > conftest.c <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1182 #ifdef __GNUC__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1183 yes;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1184 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1185 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1186 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1187 ac_cv_prog_gcc=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1188 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1189 ac_cv_prog_gcc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1190 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1191 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1192
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1193 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1194
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1195 if test $ac_cv_prog_gcc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1196 GCC=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1197 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1198 GCC=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1199 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1200
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1201 ac_test_CFLAGS="${CFLAGS+set}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1202 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1203 CFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1204 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1205 echo "configure:1206: checking whether ${CC-cc} accepts -g" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1206 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1207 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1208 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1209 echo 'void f(){}' > conftest.c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1210 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1211 ac_cv_prog_cc_g=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1212 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1213 ac_cv_prog_cc_g=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1214 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1215 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1216
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1217 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1218
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1219 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1220 if test "$ac_test_CFLAGS" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1221 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1222 elif test $ac_cv_prog_cc_g = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1223 if test "$GCC" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1224 CFLAGS="-g -O2"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1225 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1226 CFLAGS="-g"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1227 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1228 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1229 if test "$GCC" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1230 CFLAGS="-O2"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1231 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1232 CFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1233 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1234 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1235
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1236 # Find a good install program. We prefer a C program (faster),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1237 # so one script is as good as another. But avoid the broken or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1238 # incompatible versions:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1239 # SysV /etc/install, /usr/sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1240 # SunOS /usr/etc/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1241 # IRIX /sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1242 # AIX /bin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1246 # ./install, which can be erroneously created by make from ./install.sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1247 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1248 echo "configure:1249: checking for a BSD compatible install" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1249 if test -z "$INSTALL"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1250 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1251 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1252 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1253 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1254 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1255 # Account for people who put trailing slashes in PATH elements.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1256 case "$ac_dir/" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1257 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1258 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1259 # OSF1 and SCO ODT 3.0 have their own names for install.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1260 # Don't use installbsd from OSF since it installs stuff as root
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1261 # by default.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1262 for ac_prog in ginstall scoinst install; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1263 if test -f $ac_dir/$ac_prog; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1264 if test $ac_prog = install &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1265 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1266 # AIX install. It has an incompatible calling convention.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1267 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1268 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1269 ac_cv_path_install="$ac_dir/$ac_prog -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1270 break 2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1271 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1272 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1273 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1274 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1275 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1276 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1277 IFS="$ac_save_IFS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1278
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1279 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1280 if test "${ac_cv_path_install+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1281 INSTALL="$ac_cv_path_install"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1282 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1283 # As a last resort, use the slow shell script. We don't cache a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1284 # path for INSTALL within a source directory, because that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1285 # break other packages using the cache if that directory is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1286 # removed, or if the path is relative.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1287 INSTALL="$ac_install_sh"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1288 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1289 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1290 echo "$ac_t""$INSTALL" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1291
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1293 # It thinks the first close brace ends the variable substitution.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1295
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1297
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1299
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1300 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1301 echo "configure:1302: checking whether ln -s works" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1302 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1303 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1304 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1305 rm -f conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1306 if ln -s X conftestdata 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1307 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1308 rm -f conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1309 ac_cv_prog_LN_S="ln -s"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1310 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1311 ac_cv_prog_LN_S=ln
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1312 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1313 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1314 LN_S="$ac_cv_prog_LN_S"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1315 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1316 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1317 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1318 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1319 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1320
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1321 # Extract the first word of "ranlib", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1322 set dummy ranlib; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1324 echo "configure:1325: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1326 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1327 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1328 if test -n "$RANLIB"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1330 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1332 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1333 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1334 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1335 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1336 ac_cv_prog_RANLIB="ranlib"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1337 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1338 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1339 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1340 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1342 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1343 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1344 RANLIB="$ac_cv_prog_RANLIB"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1345 if test -n "$RANLIB"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1346 echo "$ac_t""$RANLIB" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1347 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1348 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1349 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1350
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1351 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1352 echo "configure:1353: checking whether ${MAKE-make} sets \${MAKE}" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1353 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1354 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1355 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1356 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1357 cat > conftestmake <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1358 all:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1359 @echo 'ac_maketemp="${MAKE}"'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1360 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1362 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1363 if test -n "$ac_maketemp"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1364 eval ac_cv_prog_make_${ac_make}_set=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1365 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1366 eval ac_cv_prog_make_${ac_make}_set=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1367 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1368 rm -f conftestmake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1369 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1370 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1371 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1372 SET_MAKE=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1373 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1374 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1375 SET_MAKE="MAKE=${MAKE-make}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1376 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1377
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1378
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1379 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1380 echo "configure:1381: checking for strerror in -lcposix" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1381 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1383 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1384 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1385 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1386 LIBS="-lcposix $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1387 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1388 #line 1389 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1389 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1390 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1391 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1392 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1393 char strerror();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1394
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1395 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1396 strerror()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1397 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1398 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1399 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1400 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1401 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1402 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1403 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1404 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1405 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1406 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1407 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1408 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1409 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1410
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1411 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1413 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1414 LIBS="$LIBS -lcposix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1415 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1416 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1417 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1418
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1419
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1420
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1421
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1422 ac_header_dirent=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1423 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1424 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1426 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1427 echo "configure:1428: checking for $ac_hdr that defines DIR" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1428 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1429 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1430 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1431 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1432 #line 1433 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1433 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1434 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1435 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1436 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1437 DIR *dirp = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1438 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1439 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1440 if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1441 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1442 eval "ac_cv_header_dirent_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1443 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1444 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1445 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1446 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1447 eval "ac_cv_header_dirent_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1448 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1449 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1450 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1451 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1452 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1454 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1455 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1456 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1457 ac_header_dirent=$ac_hdr; break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1458 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1459 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1460 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1461 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1463 if test $ac_header_dirent = dirent.h; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1464 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1465 echo "configure:1466: checking for opendir in -ldir" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1466 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1468 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1469 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1470 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1471 LIBS="-ldir $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1472 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1473 #line 1474 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1474 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1475 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1476 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1477 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1478 char opendir();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1479
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1480 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1481 opendir()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1482 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1483 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1484 if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1485 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1486 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1487 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1488 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1489 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1490 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1491 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1492 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1493 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1494 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1495
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1496 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1498 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1499 LIBS="$LIBS -ldir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1500 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1501 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1502 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1503
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1504 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1505 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1506 echo "configure:1507: checking for opendir in -lx" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1507 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1509 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1510 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1511 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1512 LIBS="-lx $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1513 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1514 #line 1515 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1515 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1516 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1517 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1518 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1519 char opendir();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1520
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1521 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1522 opendir()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1523 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1524 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1526 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1527 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1528 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1529 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1530 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1531 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1532 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1533 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1534 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1535 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1536
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1537 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1539 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1540 LIBS="$LIBS -lx"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1541 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1542 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1543 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1544
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1545 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1546
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1547 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1548 echo "configure:1549: checking how to run the C preprocessor" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1549 # On Suns, sometimes $CPP names a directory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1550 if test -n "$CPP" && test -d "$CPP"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1551 CPP=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1552 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1553 if test -z "$CPP"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1554 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1555 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1556 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1557 # This must be in double quotes, not single quotes, because CPP may get
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1558 # substituted into the Makefile and "${CC-cc}" will confuse make.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1559 CPP="${CC-cc} -E"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1560 # On the NeXT, cc -E runs the code through the compiler's parser,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1561 # not just through cpp.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1562 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1563 #line 1564 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1564 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1565 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1566 Syntax Error
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1567 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1569 { (eval echo configure:1570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1571 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1572 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1573 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1574 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1575 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1576 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1577 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1578 CPP="${CC-cc} -E -traditional-cpp"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1579 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1580 #line 1581 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1581 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1582 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1583 Syntax Error
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1584 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1586 { (eval echo configure:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1588 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1589 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1590 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1591 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1592 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1593 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1594 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1595 CPP="${CC-cc} -nologo -E"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1596 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1597 #line 1598 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1598 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1599 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1600 Syntax Error
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1601 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1603 { (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1605 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1606 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1607 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1608 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1609 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1610 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1611 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1612 CPP=/lib/cpp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1613 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1614 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1615 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1616 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1617 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1618 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1619 ac_cv_prog_CPP="$CPP"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1620 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1621 CPP="$ac_cv_prog_CPP"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1622 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1623 ac_cv_prog_CPP="$CPP"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1624 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1625 echo "$ac_t""$CPP" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1626
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1627 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1628 echo "configure:1629: checking for ANSI C header files" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1629 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1630 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1631 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1632 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1633 #line 1634 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1634 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1635 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1636 #include <stdarg.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1637 #include <string.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1638 #include <float.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1639 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1641 { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1643 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1644 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1645 ac_cv_header_stdc=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1646 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1647 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1648 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1649 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1650 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1651 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1652 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1653 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1654
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1655 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1657 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1658 #line 1659 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1659 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1660 #include <string.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1661 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1663 egrep "memchr" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1664 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1665 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1666 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1667 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1668 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1669 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1670
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1671 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1672
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1673 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1675 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1676 #line 1677 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1677 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1678 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1679 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1681 egrep "free" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1682 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1683 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1684 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1685 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1686 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1687 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1688
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1689 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1690
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1691 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1693 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1694 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1695 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1696 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1697 #line 1698 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1698 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1699 #include <ctype.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1700 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1701 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1703 int main () { int i; for (i = 0; i < 256; i++)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1704 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1705 exit (0); }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1706
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1707 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1709 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1710 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1711 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1712 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1713 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1714 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1715 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1716 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1717 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1718 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1719
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1720 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1721 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1722
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1723 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1724 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1725 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1726 #define STDC_HEADERS 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1727 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1728
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1729 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1730
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1731 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1732 echo "configure:1733: checking for sys/wait.h that is POSIX.1 compatible" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1733 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1734 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1735 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1736 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1737 #line 1738 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1738 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1739 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1740 #include <sys/wait.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1741 #ifndef WEXITSTATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1742 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1743 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1744 #ifndef WIFEXITED
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1745 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1746 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1747 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1748 int s;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1749 wait (&s);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1750 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1751 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1752 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1753 if { (eval echo configure:1754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1754 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1755 ac_cv_header_sys_wait_h=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1756 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1757 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1758 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1759 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1760 ac_cv_header_sys_wait_h=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1761 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1762 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1763 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1764
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1765 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1766 if test $ac_cv_header_sys_wait_h = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1767 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1768 #define HAVE_SYS_WAIT_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1769 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1770
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1771 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1772
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1773 for ac_hdr in fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1774 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1777 echo "configure:1778: checking for $ac_hdr" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1779 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1780 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1781 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1782 #line 1783 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1783 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1784 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1785 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1787 { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1789 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1790 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1791 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1792 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1793 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1794 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1795 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1796 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1797 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1798 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1799 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1800 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1802 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1804 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1805 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1806 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1807
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1808 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1809 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1810 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1811 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1812
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1813
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1814 echo $ac_n "checking for working const""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1815 echo "configure:1816: checking for working const" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1816 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1817 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1818 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1819 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1820 #line 1821 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1821 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1822
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1823 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1824
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1825 /* Ultrix mips cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1826 typedef int charset[2]; const charset x;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1827 /* SunOS 4.1.1 cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1828 char const *const *ccp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1829 char **p;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1830 /* NEC SVR4.0.2 mips cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1831 struct point {int x, y;};
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1832 static struct point const zero = {0,0};
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1833 /* AIX XL C 1.02.0.0 rejects this.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1834 It does not let you subtract one const X* pointer from another in an arm
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1835 of an if-expression whose if-part is not a constant expression */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1836 const char *g = "string";
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1837 ccp = &g + (g ? g-g : 0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1838 /* HPUX 7.0 cc rejects these. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1839 ++ccp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1840 p = (char**) ccp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1841 ccp = (char const *const *) p;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1842 { /* SCO 3.2v4 cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1843 char *t;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1844 char const *s = 0 ? (char *) 0 : (char const *) 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1845
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1846 *t++ = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1847 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1848 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1849 int x[] = {25, 17};
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1850 const int *foo = &x[0];
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1851 ++foo;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1852 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1853 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1854 typedef const int *iptr;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1855 iptr p = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1856 ++p;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1857 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1858 { /* AIX XL C 1.02.0.0 rejects this saying
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1859 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1860 struct s { int j; const int *ap[3]; };
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1861 struct s *b; b->j = 5;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1862 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1863 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1864 const int foo = 10;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1865 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1866
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1867 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1868 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1869 if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1870 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1871 ac_cv_c_const=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1872 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1873 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1874 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1875 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1876 ac_cv_c_const=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1877 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1878 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1879 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1880
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1881 echo "$ac_t""$ac_cv_c_const" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1882 if test $ac_cv_c_const = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1883 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1884 #define const
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1885 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1886
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1887 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1888
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1889 echo $ac_n "checking for inline""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1890 echo "configure:1891: checking for inline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1891 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1892 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1893 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1894 ac_cv_c_inline=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1895 for ac_kw in inline __inline__ __inline; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1896 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1897 #line 1898 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1898 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1899
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1900 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1901 } $ac_kw foo() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1902 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1903 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1904 if { (eval echo configure:1905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1905 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1906 ac_cv_c_inline=$ac_kw; break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1907 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1908 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1909 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1910 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1911 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1912 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1913
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1914 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1915
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1916 echo "$ac_t""$ac_cv_c_inline" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1917 case "$ac_cv_c_inline" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1918 inline | yes) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1919 no) cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1920 #define inline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1921 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1922 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1923 *) cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1924 #define inline $ac_cv_c_inline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1925 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1926 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1927 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1928
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1929 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1930 echo "configure:1931: checking for mode_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1931 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1932 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1933 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1934 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1935 #line 1936 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1936 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1937 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1938 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1939 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1940 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1941 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1942 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1944 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1945 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1946 ac_cv_type_mode_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1947 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1948 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1949 ac_cv_type_mode_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1950 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1951 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1952
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1953 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1954 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1955 if test $ac_cv_type_mode_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1956 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1957 #define mode_t int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1958 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1959
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1960 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1961
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1962 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1963 echo "configure:1964: checking for pid_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1964 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1965 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1966 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1967 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1968 #line 1969 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1969 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1970 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1971 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1972 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1973 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1974 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1975 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1977 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1978 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1979 ac_cv_type_pid_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1980 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1981 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1982 ac_cv_type_pid_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1983 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1984 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1985
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1986 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1987 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1988 if test $ac_cv_type_pid_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1989 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1990 #define pid_t int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1991 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1992
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1993 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1994
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1995 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
1996 echo "configure:1997: checking for size_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1997 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1998 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1999 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2000 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2001 #line 2002 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2002 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2003 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2004 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2005 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2006 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2007 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2008 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2010 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2011 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2012 ac_cv_type_size_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2013 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2014 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2015 ac_cv_type_size_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2016 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2017 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2018
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2019 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2020 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2021 if test $ac_cv_type_size_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2022 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2023 #define size_t unsigned
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2024 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2025
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2026 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2027
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2028 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2029 echo "configure:2030: checking whether time.h and sys/time.h may both be included" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2030 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2031 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2032 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2033 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2034 #line 2035 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2035 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2036 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2037 #include <sys/time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2038 #include <time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2039 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2040 struct tm *tp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2041 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2042 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2043 if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2044 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2045 ac_cv_header_time=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2046 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2047 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2048 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2049 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2050 ac_cv_header_time=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2051 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2052 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2053 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2054
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2055 echo "$ac_t""$ac_cv_header_time" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2056 if test $ac_cv_header_time = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2057 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2058 #define TIME_WITH_SYS_TIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2059 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2060
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2061 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2062
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2063 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2064 echo "configure:2065: checking whether struct tm is in sys/time.h or time.h" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2065 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2066 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2067 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2068 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2069 #line 2070 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2070 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2071 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2072 #include <time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2073 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2074 struct tm *tp; tp->tm_sec;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2075 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2076 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2077 if { (eval echo configure:2078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2078 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2079 ac_cv_struct_tm=time.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2080 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2081 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2082 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2083 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2084 ac_cv_struct_tm=sys/time.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2085 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2086 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2087 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2088
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2089 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2090 if test $ac_cv_struct_tm = sys/time.h; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2091 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2092 #define TM_IN_SYS_TIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2093 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2094
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2095 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2096
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2097
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2098 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2099 # for constant arguments. Useless!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2100 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2101 echo "configure:2102: checking for working alloca.h" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2102 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2103 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2104 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2105 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2106 #line 2107 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2107 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2108 #include <alloca.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2109 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2110 char *p = alloca(2 * sizeof(int));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2111 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2112 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2113 if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2114 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2115 ac_cv_header_alloca_h=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2116 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2117 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2118 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2119 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2120 ac_cv_header_alloca_h=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2121 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2122 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2123 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2124
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2125 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2126 if test $ac_cv_header_alloca_h = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2127 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2128 #define HAVE_ALLOCA_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2129 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2130
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2131 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2132
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2133 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2134 echo "configure:2135: checking for alloca" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2135 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2136 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2137 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2138 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2139 #line 2140 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2140 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2141
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2142 #ifdef __GNUC__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2143 # define alloca __builtin_alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2144 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2145 # ifdef _MSC_VER
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2146 # include <malloc.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2147 # define alloca _alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2148 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2149 # if HAVE_ALLOCA_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2150 # include <alloca.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2151 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2152 # ifdef _AIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2153 #pragma alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2154 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2155 # ifndef alloca /* predefined by HP cc +Olibcalls */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2156 char *alloca ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2157 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2158 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2159 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2160 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2161 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2162
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2163 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2164 char *p = (char *) alloca(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2165 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2166 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2168 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2169 ac_cv_func_alloca_works=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2170 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2171 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2172 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2173 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2174 ac_cv_func_alloca_works=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2175 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2176 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2177 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2178
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2179 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2180 if test $ac_cv_func_alloca_works = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2181 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2182 #define HAVE_ALLOCA 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2183 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2184
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2185 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2186
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2187 if test $ac_cv_func_alloca_works = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2188 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2189 # that cause trouble. Some versions do not even contain alloca or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2190 # contain a buggy version. If you still want to use their alloca,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2191 # use ar to extract alloca.o from them instead of compiling alloca.c.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2192 ALLOCA=alloca.${ac_objext}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2193 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2194 #define C_ALLOCA 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2195 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2196
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2197
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2198 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2199 echo "configure:2200: checking whether alloca needs Cray hooks" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2200 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2201 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2202 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2203 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2204 #line 2205 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2205 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2206 #if defined(CRAY) && ! defined(CRAY2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2207 webecray
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2208 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2209 wenotbecray
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2210 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2211
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2212 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2214 egrep "webecray" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2215 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2216 ac_cv_os_cray=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2217 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2218 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2219 ac_cv_os_cray=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2220 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2221 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2222
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2223 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2224
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2225 echo "$ac_t""$ac_cv_os_cray" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2226 if test $ac_cv_os_cray = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2227 for ac_func in _getb67 GETB67 getb67; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2229 echo "configure:2230: checking for $ac_func" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2231 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2232 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2233 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2234 #line 2235 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2235 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2236 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2237 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2238 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2239 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2240 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2241 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2242 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2243
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2244 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2245
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2246 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2247 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2248 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2250 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2251 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2252 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2253 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2254
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2255 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2256 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2258 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2259 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2260 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2261 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2262 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2263 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2264 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2265 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2266 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2267 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2268
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2270 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2271 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2272 #define CRAY_STACKSEG_END $ac_func
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2273 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2274
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2275 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2276 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2277 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2278 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2279
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2280 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2281 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2282
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2283 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2284 echo "configure:2285: checking stack direction for C alloca" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2285 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2286 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2287 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2288 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2289 ac_cv_c_stack_direction=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2290 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2291 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2292 #line 2293 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2293 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2294 find_stack_direction ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2295 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2296 static char *addr = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2297 auto char dummy;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2298 if (addr == 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2299 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2300 addr = &dummy;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2301 return find_stack_direction ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2302 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2303 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2304 return (&dummy > addr) ? 1 : -1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2305 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2306 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2307 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2308 exit (find_stack_direction() < 0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2309 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2310 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2312 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2313 ac_cv_c_stack_direction=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2314 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2315 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2316 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2317 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2318 ac_cv_c_stack_direction=-1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2319 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2320 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2321 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2322
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2323 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2324
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2325 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2326 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2327 #define STACK_DIRECTION $ac_cv_c_stack_direction
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2328 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2329
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2330 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2331
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2332 if test $ac_cv_prog_gcc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2333 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2334 echo "configure:2335: checking whether ${CC-cc} needs -traditional" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2335 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2336 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2337 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2338 ac_pattern="Autoconf.*'x'"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2339 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2340 #line 2341 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2341 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2342 #include <sgtty.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2343 Autoconf TIOCGETP
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2344 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2346 egrep "$ac_pattern" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2347 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2348 ac_cv_prog_gcc_traditional=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2349 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2350 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2351 ac_cv_prog_gcc_traditional=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2352 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2353 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2354
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2355
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2356 if test $ac_cv_prog_gcc_traditional = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2357 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2358 #line 2359 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2359 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2360 #include <termio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2361 Autoconf TCGETA
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2362 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2364 egrep "$ac_pattern" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2365 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2366 ac_cv_prog_gcc_traditional=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2367 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2368 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2369
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2370 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2371 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2372
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2373 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2374 if test $ac_cv_prog_gcc_traditional = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2375 CC="$CC -traditional"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2376 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2377 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2378
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2379 for ac_hdr in unistd.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2380 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2383 echo "configure:2384: checking for $ac_hdr" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2385 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2386 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2387 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2388 #line 2389 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2389 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2390 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2391 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2395 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2396 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2397 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2398 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2399 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2400 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2401 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2402 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2403 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2404 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2405 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2406 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2408 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2410 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2411 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2412 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2413
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2414 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2415 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2416 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2417 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2418
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2419 for ac_func in getpagesize
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2420 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2422 echo "configure:2423: checking for $ac_func" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2424 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2425 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2426 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2427 #line 2428 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2428 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2429 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2430 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2431 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2432 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2433 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2434 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2435 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2436
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2437 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2438
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2439 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2440 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2441 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2443 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2444 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2445 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2446 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2447
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2448 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2449 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2451 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2452 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2453 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2454 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2455 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2456 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2457 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2458 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2459 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2460 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2461
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2463 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2465 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2466 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2467 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2468
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2469 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2470 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2471 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2472 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2473
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2474 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2475 echo "configure:2476: checking for working mmap" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2476 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2477 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2478 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2479 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2480 ac_cv_func_mmap_fixed_mapped=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2481 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2482 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2483 #line 2484 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2484 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2485
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2486 /* Thanks to Mike Haertel and Jim Avera for this test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2487 Here is a matrix of mmap possibilities:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2488 mmap private not fixed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2489 mmap private fixed at somewhere currently unmapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2490 mmap private fixed at somewhere already mapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2491 mmap shared not fixed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2492 mmap shared fixed at somewhere currently unmapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2493 mmap shared fixed at somewhere already mapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2494 For private mappings, we should verify that changes cannot be read()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2495 back from the file, nor mmap's back from the file at a different
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2496 address. (There have been systems where private was not correctly
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2497 implemented like the infamous i386 svr4.0, and systems where the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2498 VM page cache was not coherent with the filesystem buffer cache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2499 like early versions of FreeBSD and possibly contemporary NetBSD.)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2500 For shared mappings, we should conversely verify that changes get
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2501 propogated back to all the places they're supposed to be.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2502
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2503 Grep wants private fixed already mapped.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2504 The main things grep needs to know about mmap are:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2505 * does it exist and is it safe to write into the mmap'd area
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2506 * how to use it (BSD variants) */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2507 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2508 #include <fcntl.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2509 #include <sys/mman.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2510
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2511 /* This mess was copied from the GNU getpagesize.h. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2512 #ifndef HAVE_GETPAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2513 # ifdef HAVE_UNISTD_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2514 # include <unistd.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2515 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2516
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2517 /* Assume that all systems that can run configure have sys/param.h. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2518 # ifndef HAVE_SYS_PARAM_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2519 # define HAVE_SYS_PARAM_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2520 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2521
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2522 # ifdef _SC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2523 # define getpagesize() sysconf(_SC_PAGESIZE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2524 # else /* no _SC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2525 # ifdef HAVE_SYS_PARAM_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2526 # include <sys/param.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2527 # ifdef EXEC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2528 # define getpagesize() EXEC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2529 # else /* no EXEC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2530 # ifdef NBPG
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2531 # define getpagesize() NBPG * CLSIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2532 # ifndef CLSIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2533 # define CLSIZE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2534 # endif /* no CLSIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2535 # else /* no NBPG */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2536 # ifdef NBPC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2537 # define getpagesize() NBPC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2538 # else /* no NBPC */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2539 # ifdef PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2540 # define getpagesize() PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2541 # endif /* PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2542 # endif /* no NBPC */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2543 # endif /* no NBPG */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2544 # endif /* no EXEC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2545 # else /* no HAVE_SYS_PARAM_H */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2546 # define getpagesize() 8192 /* punt totally */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2547 # endif /* no HAVE_SYS_PARAM_H */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2548 # endif /* no _SC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2549
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2550 #endif /* no HAVE_GETPAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2551
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2552 #ifdef __cplusplus
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2553 extern "C" { void *malloc(unsigned); }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2554 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2555 char *malloc();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2556 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2557
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2558 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2559 main()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2560 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2561 char *data, *data2, *data3;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2562 int i, pagesize;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2563 int fd;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2564
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2565 pagesize = getpagesize();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2566
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2567 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2568 * First, make a file with some known garbage in it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2569 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2570 data = malloc(pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2571 if (!data)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2572 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2573 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2574 *(data + i) = rand();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2575 umask(0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2576 fd = creat("conftestmmap", 0600);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2577 if (fd < 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2578 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2579 if (write(fd, data, pagesize) != pagesize)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2580 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2581 close(fd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2582
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2583 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2584 * Next, try to mmap the file at a fixed address which
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2585 * already has something else allocated at it. If we can,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2586 * also make sure that we see the same garbage.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2587 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2588 fd = open("conftestmmap", O_RDWR);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2589 if (fd < 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2590 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2591 data2 = malloc(2 * pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2592 if (!data2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2593 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2594 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2595 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2596 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2597 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2598 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2599 if (*(data + i) != *(data2 + i))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2600 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2601
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2602 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2603 * Finally, make sure that changes to the mapped area
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2604 * do not percolate back to the file as seen by read().
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2605 * (This is a bug on some variants of i386 svr4.0.)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2606 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2607 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2608 *(data2 + i) = *(data2 + i) + 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2609 data3 = malloc(pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2610 if (!data3)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2611 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2612 if (read(fd, data3, pagesize) != pagesize)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2613 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2614 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2615 if (*(data + i) != *(data3 + i))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2616 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2617 close(fd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2618 unlink("conftestmmap");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2619 exit(0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2620 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2621
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2622 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2624 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2625 ac_cv_func_mmap_fixed_mapped=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2626 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2627 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2628 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2629 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2630 ac_cv_func_mmap_fixed_mapped=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2631 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2632 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2633 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2634
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2635 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2636
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2637 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2638 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2639 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2640 #define HAVE_MMAP 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2641 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2642
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2643 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2644
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2645 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2646 echo "configure:2647: checking return type of signal handlers" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2647 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2648 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2649 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2650 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2651 #line 2652 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2652 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2653 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2654 #include <signal.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2655 #ifdef signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2656 #undef signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2657 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2658 #ifdef __cplusplus
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2659 extern "C" void (*signal (int, void (*)(int)))(int);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2660 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2661 void (*signal ()) ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2662 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2663
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2664 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2665 int i;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2666 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2667 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2668 if { (eval echo configure:2669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2669 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2670 ac_cv_type_signal=void
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2671 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2672 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2673 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2674 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2675 ac_cv_type_signal=int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2676 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2677 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2678 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2679
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2680 echo "$ac_t""$ac_cv_type_signal" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2681 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2682 #define RETSIGTYPE $ac_cv_type_signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2683 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2684
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2685
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2686 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2687 echo "configure:2688: checking for strftime" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2688 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2689 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2690 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2691 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2692 #line 2693 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2693 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2694 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2695 which can conflict with char strftime(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2696 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2697 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2698 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2699 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2700 char strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2701
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2702 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2703
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2704 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2705 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2706 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2707 #if defined (__stub_strftime) || defined (__stub___strftime)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2708 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2709 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2710 strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2711 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2712
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2713 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2714 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2716 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2717 eval "ac_cv_func_strftime=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2718 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2719 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2720 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2721 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2722 eval "ac_cv_func_strftime=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2723 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2724 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2725 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2726
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2727 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2728 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2729 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2730 #define HAVE_STRFTIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2731 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2732
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2733 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2734 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2735 # strftime is in -lintl on SCO UNIX.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2736 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2737 echo "configure:2738: checking for strftime in -lintl" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2738 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2740 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2741 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2742 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2743 LIBS="-lintl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2744 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2745 #line 2746 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2746 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2747 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2748 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2749 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2750 char strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2751
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2752 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2753 strftime()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2754 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2755 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2756 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2757 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2758 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2759 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2760 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2761 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2762 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2763 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2764 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2765 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2766 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2767
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2768 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2770 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2771 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2772 #define HAVE_STRFTIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2773 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2774
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2775 LIBS="-lintl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2776 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2777 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2778 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2779
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2780 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2781
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2782 echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2783 echo "configure:2784: checking whether utime accepts a null argument" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2784 if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2785 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2786 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2787 rm -f conftestdata; > conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2788 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2789 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2790 ac_cv_func_utime_null=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2791 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2792 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2793 #line 2794 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2794 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2795 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2796 #include <sys/stat.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2797 main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2798 struct stat s, t;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2799 exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2800 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2801 && t.st_mtime - s.st_mtime < 120));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2802 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2803 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2804 if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2805 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2806 ac_cv_func_utime_null=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2807 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2808 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2809 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2810 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2811 ac_cv_func_utime_null=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2812 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2813 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2814 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2815
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2816 rm -f core core.* *.core
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2817 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2818
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2819 echo "$ac_t""$ac_cv_func_utime_null" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2820 if test $ac_cv_func_utime_null = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2821 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2822 #define HAVE_UTIME_NULL 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2823 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2824
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2825 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2826
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2827 for ac_func in gai_strerror getaddrinfo getcwd gettimeofday getwd mkdir mktime putenv rmdir select socket strdup strstr strtod strtol uname
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2828 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2830 echo "configure:2831: checking for $ac_func" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2832 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2833 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2834 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2835 #line 2836 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2836 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2837 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2838 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2839 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2840 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2841 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2842 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2843 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2844
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2845 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2846
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2847 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2848 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2849 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2851 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2852 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2853 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2854 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2855
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2856 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2857 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2858 if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2859 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2860 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2861 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2862 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2863 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2864 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2865 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2866 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2867 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2868 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2869
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2871 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2873 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2874 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2875 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2876
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2877 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2878 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2879 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2880 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2881
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2882
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2883 if test "x$enable_gtk20" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2884
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2885 succeeded=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2886
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2887 if test -z "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2888 # Extract the first word of "pkg-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2889 set dummy pkg-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2891 echo "configure:2892: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2892 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2893 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2894 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2895 case "$PKG_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2896 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2897 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2898 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2899 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2901 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2902 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2904 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2905 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2906 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2907 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2908 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2909 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2910 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2911 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2912 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2914 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2915 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2916 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2917 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2918 if test -n "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2919 echo "$ac_t""$PKG_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2920 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2921 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2922 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2923
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2924 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2925
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2926 if test "$PKG_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2927 echo "*** The pkg-config script could not be found. Make sure it is"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2928 echo "*** in your path, or set the PKG_CONFIG environment variable"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2929 echo "*** to the full path to pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2930 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2931 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2932 PKG_CONFIG_MIN_VERSION=0.9.0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2934 echo $ac_n "checking for glib-2.0 >= 1.3.8""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2935 echo "configure:2936: checking for glib-2.0 >= 1.3.8" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2936
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2937 if $PKG_CONFIG --exists "glib-2.0 >= 1.3.8" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2938 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2939 succeeded=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2940
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2941 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2942 echo "configure:2943: checking GLIB_CFLAGS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2943 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2944 echo "$ac_t""$GLIB_CFLAGS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2945
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2946 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
2947 echo "configure:2948: checking GLIB_LIBS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2948 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2949 echo "$ac_t""$GLIB_LIBS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2950 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2951 GLIB_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2952 GLIB_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2953 ## If we have a custom action on failure, don't print errors, but
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2954 ## do set a variable so people can do so.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2955 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2956 echo $GLIB_PKG_ERRORS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2957 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2958
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2959
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2960
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2961 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2964 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2965 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2966
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2967 if test $succeeded = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2968 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2969 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2970 { echo "configure: error: Library requirements (glib-2.0 >= 1.3.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2971 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2972
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2973 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2974
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2975 if test "x$GFTP_TEXT" = "x" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2976 # Check whether --with-glib-prefix or --without-glib-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2977 if test "${with_glib_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2978 withval="$with_glib_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2979 glib_config_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2980 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2981 glib_config_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2982 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2983
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2984 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2985 if test "${with_glib_exec_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2986 withval="$with_glib_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2987 glib_config_exec_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2988 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2989 glib_config_exec_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2990 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2991
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2992 # Check whether --enable-glibtest or --disable-glibtest was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2993 if test "${enable_glibtest+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2994 enableval="$enable_glibtest"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2995 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2996 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2997 enable_glibtest=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2998 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2999
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3000
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3001 if test x$glib_config_exec_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3002 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3003 if test x${GLIB_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3004 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3005 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3006 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3007 if test x$glib_config_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3008 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3009 if test x${GLIB_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3010 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3011 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3012 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3013
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3014 for module in .
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3015 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3016 case "$module" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3017 gmodule)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3018 glib_config_args="$glib_config_args gmodule"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3019 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3020 gthread)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3021 glib_config_args="$glib_config_args gthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3022 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3023 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3024 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3025
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3026 # Extract the first word of "glib-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3027 set dummy glib-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3029 echo "configure:3030: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3030 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3031 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3032 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3033 case "$GLIB_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3034 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3035 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3036 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3037 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3038 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3039 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3040 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3042 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3043 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3044 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3045 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3046 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3047 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3048 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3049 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3050 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3051 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3052 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3053 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3054 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3055 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3056 if test -n "$GLIB_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3057 echo "$ac_t""$GLIB_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3058 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3059 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3060 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3061
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3062 min_glib_version=1.2.3
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3063 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3064 echo "configure:3065: checking for GLIB - version >= $min_glib_version" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3065 no_glib=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3066 if test "$GLIB_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3067 no_glib=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3068 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3069 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3070 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3071 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3072 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3073 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3074 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3075 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3076 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3077 if test "x$enable_glibtest" = "xyes" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3078 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3079 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3080 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3081 LIBS="$GLIB_LIBS $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3082 rm -f conf.glibtest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3083 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3084 echo $ac_n "cross compiling; assumed OK... $ac_c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3085 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3086 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3087 #line 3088 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3088 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3089
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3090 #include <glib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3091 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3092 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3093
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3094 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3095 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3096 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3097 int major, minor, micro;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3098 char *tmp_version;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3099
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3100 system ("touch conf.glibtest");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3101
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3102 /* HP/UX 9 (%@#!) writes to sscanf strings */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3103 tmp_version = g_strdup("$min_glib_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3104 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3105 printf("%s, bad version string\n", "$min_glib_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3106 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3107 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3108
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3109 if ((glib_major_version != $glib_config_major_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3110 (glib_minor_version != $glib_config_minor_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3111 (glib_micro_version != $glib_config_micro_version))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3112 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3113 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3114 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3115 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3116 printf ("*** was found! If glib-config was correct, then it is best\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3117 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3118 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3119 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3120 printf("*** required on your system.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3121 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3122 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3123 printf("*** before re-running configure\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3124 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3125 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3126 (glib_minor_version != GLIB_MINOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3127 (glib_micro_version != GLIB_MICRO_VERSION))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3128 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3129 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3130 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3131 printf("*** library (version %d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3132 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3133 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3134 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3135 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3136 if ((glib_major_version > major) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3137 ((glib_major_version == major) && (glib_minor_version > minor)) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3138 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3139 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3140 return 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3141 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3142 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3143 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3144 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3145 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3146 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3147 major, minor, micro);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3148 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3149 printf("***\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3150 printf("*** If you have already installed a sufficiently new version, this error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3151 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3152 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3153 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3154 printf("*** correct copy of glib-config. (In this case, you will have to\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3155 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3156 printf("*** so that the correct libraries are found at run-time))\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3157 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3158 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3159 return 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3160 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3161
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3162 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3163 if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3164 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3165 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3166 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3167 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3168 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3169 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3170 no_glib=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3171 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3172 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3173 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3174
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3175 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3176 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3177 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3178 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3179 if test "x$no_glib" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3180 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3181 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3182 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3183 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3184 if test "$GLIB_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3185 echo "*** The glib-config script installed by GLIB could not be found"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3186 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3187 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3188 echo "*** full path to glib-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3189 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3190 if test -f conf.glibtest ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3191 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3192 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3193 echo "*** Could not run GLIB test program, checking why..."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3194 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3195 LIBS="$LIBS $GLIB_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3196 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3197 #line 3198 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3198 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3199
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3200 #include <glib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3201 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3202
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3203 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3204 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3205 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3206 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3208 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3209 echo "*** The test program compiled, but did not run. This usually means"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3210 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3211 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3212 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3213 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3214 echo "*** is required on your system"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3215 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3216 echo "*** If you have an old version installed, it is best to remove it, although"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3217 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3218 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3219 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3220 echo "*** came with the system with the command"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3221 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3222 echo "*** rpm --erase --nodeps gtk gtk-devel"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3223 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3224 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3225 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3226 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3227 echo "*** The test program failed to compile or link. See the file config.log for the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3228 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3229 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3230 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3231 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3232 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3233 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3234 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3235 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3236 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3237 GLIB_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3238 GLIB_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3239 { echo "configure: error: gFTP needs GLIB 1.2.3 or higher" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3240 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3241
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3242
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3243 rm -f conf.glibtest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3244
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3245 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3246
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3247 GFTP_TEXT=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3248 EXTRA_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3249 USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3250 READLINE_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3251 if test "x$enable_textport" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3252 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3253 echo "configure:3254: checking for socket in -lsocket" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3254 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3256 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3257 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3258 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3259 LIBS="-lsocket $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3260 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3261 #line 3262 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3262 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3263 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3264 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3265 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3266 char socket();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3267
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3268 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3269 socket()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3270 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3271 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3272 if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3273 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3274 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3275 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3276 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3277 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3278 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3279 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3280 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3281 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3282 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3283
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3284 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3286 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3287 EXTRA_LIBS="-lsocket"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3288 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3289 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3290 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3291
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3292
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3293 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3294 echo "configure:3295: checking for gethostbyname in -lnsl" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3295 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3297 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3298 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3299 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3300 LIBS="-lnsl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3301 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3302 #line 3303 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3303 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3304 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3305 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3306 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3307 char gethostbyname();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3308
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3309 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3310 gethostbyname()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3311 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3312 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3314 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3315 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3316 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3317 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3318 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3319 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3320 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3321 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3322 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3323 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3324
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3325 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3327 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3328 EXTRA_LIBS="$EXTRA_LIBS -lnsl"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3329 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3330 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3331 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3332
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3333
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3334 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3335 echo "configure:3336: checking whether to use readline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3336 # Check whether --with-readline or --without-readline was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3337 if test "${with_readline+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3338 withval="$with_readline"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3339 case "${withval}" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3340 yes) USE_READLINE="yes" ; echo "$ac_t""yes" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3341 no) USE_READLINE="no" ; echo "$ac_t""no" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3342 only) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3343 EXTRA_LIBREADLINE_DEPS=" "
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3344 echo "$ac_t""yes (using only readline)" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3345 *) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3346 EXTRA_LIBREADLINE_DEPS="${withval}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3347 echo "$ac_t""yes (using extra libraries ${withval})" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3348 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3349 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3350 echo "$ac_t""${USE_READLINE}" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3351 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3352
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3353
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3354 if test "$USE_READLINE" = yes ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3355 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3356 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3357 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3358 echo "configure:3359: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3359 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3361 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3362 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3363 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3364 LIBS="-lreadline -lncurses $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3365 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3366 #line 3367 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3367 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3368 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3369 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3370 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3371 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3372
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3373 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3374 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3375 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3376 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3378 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3379 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3380 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3381 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3382 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3383 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3384 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3385 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3386 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3387 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3388
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3389 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3391 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3392 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3393 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3394 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3395 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3396 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3397
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3398 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3399 echo " Using -lreadline -lncurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3400 EXTRA_LIBREADLINE_DEPS=-lncurses
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3401 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3402 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3403 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3404
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3405 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3406 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3407 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3408 echo "configure:3409: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3409 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3411 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3412 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3413 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3414 LIBS="-lreadline -lcurses $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3415 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3416 #line 3417 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3417 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3418 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3419 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3420 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3421 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3422
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3423 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3424 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3425 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3426 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3427 if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3428 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3429 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3430 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3431 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3432 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3433 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3434 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3435 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3436 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3437 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3438
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3439 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3441 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3442 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3443 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3444 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3445 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3446 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3447
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3448 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3449 echo " Using -lreadline -lcurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3450 EXTRA_LIBREADLINE_DEPS=-lcurses
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3451 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3452 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3453 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3454
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3455 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3456 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3457 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3458 echo "configure:3459: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3459 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3461 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3462 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3463 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3464 LIBS="-lreadline -ltermcap $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3465 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3466 #line 3467 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3467 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3468 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3469 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3470 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3471 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3472
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3473 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3474 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3475 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3476 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3478 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3479 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3480 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3481 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3482 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3483 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3484 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3485 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3486 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3487 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3488
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3489 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3491 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3492 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3493 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3494 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3495 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3496 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3497
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3498 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3499 echo " Using -lreadline -ltermcap"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3500 EXTRA_LIBREADLINE_DEPS=-ltermcap
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3501 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3502 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3503 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3504
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3505 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3506 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3507 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3508 echo "configure:3509: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3509 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3511 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3512 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3513 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3514 LIBS="-lreadline $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3515 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3516 #line 3517 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3517 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3518 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3519 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3520 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3521 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3522
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3523 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3524 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3525 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3526 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3527 if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3528 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3529 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3530 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3531 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3532 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3533 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3534 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3535 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3536 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3537 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3538
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3539 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3541 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3542 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3543 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3544 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3545 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3546 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3547
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3548 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3549 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3550 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3551 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3552
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3553 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3554 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3555 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3556 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3557
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3558 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3559 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3560 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3561 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3562 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3563 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3564 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3565 echo "configure:3566: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3566 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3568 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3569 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3570 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3571 LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS} $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3572 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3573 #line 3574 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3574 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3575 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3576 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3577 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3578 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3579
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3580 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3581 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3582 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3583 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3585 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3586 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3587 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3588 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3589 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3590 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3591 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3592 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3593 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3594 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3595
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3596 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3598 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3599 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3600 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3601 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3602 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3603 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3604
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3605 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3606 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3607 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3608 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3609 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3610
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3611 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3612 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3613 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3614 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3615
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3616 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3617 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3618 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3619 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3620 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3621 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3622 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3623
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3624 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3625 if test x${HAVE_LIBREADLINE} = xtrue; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3626 READLINE_LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3627 GFTP_TEXT="gftp-text"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3628 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3629 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3630
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3631 echo $ac_n "checking for log10 in -lm""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3632 echo "configure:3633: checking for log10 in -lm" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3633 ac_lib_var=`echo m'_'log10 | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3635 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3636 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3637 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3638 LIBS="-lm $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3639 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3640 #line 3641 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3641 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3642 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3643 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3644 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3645 char log10();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3646
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3647 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3648 log10()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3649 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3650 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3651 if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3652 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3653 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3654 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3655 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3656 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3657 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3658 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3659 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3660 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3661 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3662
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3663 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3665 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3666 EXTRA_LIBS="$EXTRA_LIBS -lm"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3667 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3668 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3669 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3670
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3671
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3672 if test "x$enable_dmalloc" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3673 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3674 echo "configure:3675: checking for dmalloc_shutdown in -ldmalloc" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3675 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3677 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3678 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3679 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3680 LIBS="-ldmalloc $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3681 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3682 #line 3683 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3683 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3684 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3685 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3686 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3687 char dmalloc_shutdown();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3688
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3689 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3690 dmalloc_shutdown()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3691 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3692 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3694 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3695 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3696 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3697 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3698 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3699 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3700 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3701 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3702 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3703 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3704
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3705 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3707 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3708
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3709 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3710 #define HAVE_DMALLOC 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3711 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3712
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3713 EXTRA_LIBS="$EXTRA_LIBS -ldmalloc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3714 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3715 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3716 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3717
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3718 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3719
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3720
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3721
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3722
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3723
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3724 GFTP_GTK=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3725 PTHREAD_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3726 PTHREAD_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3727 if test "x$enable_gtkport" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3728 if test "x$enable_gtk20" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3729
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3730 succeeded=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3731
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3732 if test -z "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3733 # Extract the first word of "pkg-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3734 set dummy pkg-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3736 echo "configure:3737: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3737 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3738 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3739 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3740 case "$PKG_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3741 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3743 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3744 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3746 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3747 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3749 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3750 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3751 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3752 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3753 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3754 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3755 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3756 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3757 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3758 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3759 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3760 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3761 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3762 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3763 if test -n "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3764 echo "$ac_t""$PKG_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3765 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3766 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3767 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3768
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3769 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3770
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3771 if test "$PKG_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3772 echo "*** The pkg-config script could not be found. Make sure it is"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3773 echo "*** in your path, or set the PKG_CONFIG environment variable"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3774 echo "*** to the full path to pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3775 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3776 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3777 PKG_CONFIG_MIN_VERSION=0.9.0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3778 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3779 echo $ac_n "checking for gtk+-2.0 >= 1.3.8""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3780 echo "configure:3781: checking for gtk+-2.0 >= 1.3.8" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3781
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3782 if $PKG_CONFIG --exists "gtk+-2.0 >= 1.3.8" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3783 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3784 succeeded=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3785
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3786 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3787 echo "configure:3788: checking GTK_CFLAGS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3788 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3789 echo "$ac_t""$GTK_CFLAGS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3790
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3791 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3792 echo "configure:3793: checking GTK_LIBS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3793 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3794 echo "$ac_t""$GTK_LIBS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3795 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3796 GTK_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3797 GTK_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3798 ## If we have a custom action on failure, don't print errors, but
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3799 ## do set a variable so people can do so.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3800 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3801 echo $GTK_PKG_ERRORS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3802 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3803
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3804
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3805
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3806 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3807 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3808 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3809 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3810 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3811
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3812 if test $succeeded = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3813 GFTP_GTK=gftp-gtk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3814 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3815 { echo "configure: error: Library requirements (gtk+-2.0 >= 1.3.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3816 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3817
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3818 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3819
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3820 if test "x$GFTP_GTK" = "x" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3821 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3822 if test "${with_gtk_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3823 withval="$with_gtk_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3824 gtk_config_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3825 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3826 gtk_config_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3827 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3828
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3829 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3830 if test "${with_gtk_exec_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3831 withval="$with_gtk_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3832 gtk_config_exec_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3833 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3834 gtk_config_exec_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3835 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3836
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3837 # Check whether --enable-gtktest or --disable-gtktest was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3838 if test "${enable_gtktest+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3839 enableval="$enable_gtktest"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3840 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3841 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3842 enable_gtktest=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3843 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3844
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3845
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3846 for module in .
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3847 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3848 case "$module" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3849 gthread)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3850 gtk_config_args="$gtk_config_args gthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3851 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3852 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3853 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3854
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3855 if test x$gtk_config_exec_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3856 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3857 if test x${GTK_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3858 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3859 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3860 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3861 if test x$gtk_config_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3862 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3863 if test x${GTK_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3864 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3865 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3866 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3867
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3868 # Extract the first word of "gtk-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3869 set dummy gtk-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3871 echo "configure:3872: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3872 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3873 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3874 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3875 case "$GTK_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3876 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3877 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3878 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3879 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3880 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3881 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3882 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3884 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3885 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3886 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3887 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3888 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3889 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3890 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3891 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3892 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3893 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3894 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3895 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3896 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3897 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3898 if test -n "$GTK_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3899 echo "$ac_t""$GTK_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3900 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3901 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3902 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3903
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3904 min_gtk_version=1.2.3
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3905 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3906 echo "configure:3907: checking for GTK - version >= $min_gtk_version" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3907 no_gtk=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3908 if test "$GTK_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3909 no_gtk=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3910 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3911 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3912 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3913 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3915 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3917 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3919 if test "x$enable_gtktest" = "xyes" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3920 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3921 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3922 CFLAGS="$CFLAGS $GTK_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3923 LIBS="$GTK_LIBS $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3924 rm -f conf.gtktest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3925 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3926 echo $ac_n "cross compiling; assumed OK... $ac_c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3927 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3928 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
3929 #line 3930 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3930 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3931
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3932 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3933 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3934 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3935
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3936 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3937 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3938 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3939 int major, minor, micro;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3940 char *tmp_version;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3941
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3942 system ("touch conf.gtktest");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3943
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3944 /* HP/UX 9 (%@#!) writes to sscanf strings */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3945 tmp_version = g_strdup("$min_gtk_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3946 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3947 printf("%s, bad version string\n", "$min_gtk_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3948 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3949 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3950
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3951 if ((gtk_major_version != $gtk_config_major_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3952 (gtk_minor_version != $gtk_config_minor_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3953 (gtk_micro_version != $gtk_config_micro_version))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3954 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3955 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3956 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3957 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3958 printf ("*** was found! If gtk-config was correct, then it is best\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3959 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3960 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3961 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3962 printf("*** required on your system.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3963 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3964 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3965 printf("*** before re-running configure\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3966 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3967 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3968 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3969 (gtk_minor_version != GTK_MINOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3970 (gtk_micro_version != GTK_MICRO_VERSION))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3971 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3972 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3973 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3974 printf("*** library (version %d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3975 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3976 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3977 #endif /* defined (GTK_MAJOR_VERSION) ... */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3978 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3979 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3980 if ((gtk_major_version > major) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3981 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3982 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3983 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3984 return 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3985 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3986 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3987 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3988 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3989 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3990 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3991 major, minor, micro);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3992 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3993 printf("***\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3994 printf("*** If you have already installed a sufficiently new version, this error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3995 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3996 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3997 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3998 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3999 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4000 printf("*** so that the correct libraries are found at run-time))\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4001 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4002 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4003 return 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4004 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4005
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4006 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4008 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4009 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4010 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4011 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4012 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4013 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4014 no_gtk=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4015 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4016 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4017 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4018
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4019 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4020 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4021 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4022 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4023 if test "x$no_gtk" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4024 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4025 GFTP_GTK=gftp-gtk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4026 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4027 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4028 if test "$GTK_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4029 echo "*** The gtk-config script installed by GTK could not be found"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4030 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4031 echo "*** your path, or set the GTK_CONFIG environment variable to the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4032 echo "*** full path to gtk-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4033 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4034 if test -f conf.gtktest ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4035 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4036 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4037 echo "*** Could not run GTK test program, checking why..."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4038 CFLAGS="$CFLAGS $GTK_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4039 LIBS="$LIBS $GTK_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4040 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4041 #line 4042 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4042 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4043
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4044 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4045 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4046
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4047 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4048 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4049 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4050 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4052 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4053 echo "*** The test program compiled, but did not run. This usually means"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4054 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4055 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4056 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4057 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4058 echo "*** is required on your system"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4059 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4060 echo "*** If you have an old version installed, it is best to remove it, although"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4061 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4062 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4063 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4064 echo "*** came with the system with the command"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4065 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4066 echo "*** rpm --erase --nodeps gtk gtk-devel"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4067 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4068 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4069 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4070 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4071 echo "*** The test program failed to compile or link. See the file config.log for the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4072 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4073 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4074 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4075 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4076 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4077 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4078 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4079 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4080 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4081 GTK_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4082 GTK_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4083 echo "configure: warning: gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version" 1>&2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4084 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4085
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4086
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4087 rm -f conf.gtktest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4088
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4089 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4090
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4091 if test "x$GFTP_GTK" = xgftp-gtk; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4092 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4093 echo "configure:4094: checking for pthread_create in -lpthread" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4094 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4096 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4097 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4098 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4099 LIBS="-lpthread $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4100 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4101 #line 4102 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4102 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4103 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4104 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4105 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4106 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4107
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4108 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4109 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4110 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4111 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4113 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4114 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4115 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4116 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4117 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4118 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4119 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4120 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4121 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4122 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4123
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4124 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4126 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4127 PTHREAD_LIBS="-lpthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4128 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4129 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4130 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4131
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4132
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4133 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4134 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4135 echo "configure:4136: checking for pthread_create in -lpthreads" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4136 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4138 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4139 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4140 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4141 LIBS="-lpthreads $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4142 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4143 #line 4144 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4144 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4145 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4146 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4147 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4148 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4149
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4150 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4151 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4152 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4153 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4155 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4156 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4157 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4158 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4159 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4160 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4161 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4162 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4163 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4164 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4165
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4166 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4168 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4169 PTHREAD_LIBS="-lpthreads"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4170 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4171 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4172 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4173
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4174 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4175
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4176 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4177 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4178 echo "configure:4179: checking for pthread_create in -lc_r" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4179 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4181 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4182 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4183 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4184 LIBS="-lc_r $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4185 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4186 #line 4187 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4187 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4188 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4189 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4190 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4191 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4192
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4193 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4194 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4195 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4196 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4198 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4199 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4200 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4201 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4202 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4203 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4204 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4205 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4206 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4207 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4208
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4209 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4211 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4212 PTHREAD_LIBS="-lc_r"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4213 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4214 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4215 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4216
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4217 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4218
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4219 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4220 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4221 echo "Error: Cannot find the pthread libraries. If you don't have them installed," ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4222 echo "your X libraries probably aren't thread safe either. You can download the" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4223 echo "pthread library and the thread safe X libraries from my webpage at" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4224 echo "http://www.gftp.org/. Note the pthread library and the thread safe" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4225 echo "X libraries on my webpage are for Linux libc5 machines ONLY" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4226 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4227 exit
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4228 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4229
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4230 PTHREAD_CFLAGS="-D_REENTRANT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4231
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4232 # I took some of these from the glib 1.3.3 configure.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4233 case $host in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4234 *-hpux*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4235 # From H.Merijn Brand <h.m.brand@hccnet.nl>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4236 echo '#define pthread_attr_init(x) __pthread_attr_init_system(x)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4237 +>>confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4238 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4239 *-aix*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4240 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4241 if test x"$GCC" = xyes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4242 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -mthreads"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4243 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4244 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4245 *-freebsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4246 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4247
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4248 # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4249 # -mthreads flag.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4250 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4251 *-openbsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4252 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4253 if test "x$PTHREAD_LIBS" = "x-lc_r"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4254 PTHREAD_LIBS="-pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4255 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4256 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4257 *-sysv5uw7*) # UnixWare 7
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4258 if test "$GCC" != "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4259 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -Kthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4260 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4261 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4262 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4263 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4264 *-dg-dgux*) # DG/UX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4265 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4266 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4267 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4268 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4269
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4270
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4271
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4272
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4273
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4274 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4275 echo "configure:4276: checking for inttypes.h" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4276 if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4277 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4278 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4279 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4280 #line 4281 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4281 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4282 #include <sys/types.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4283 #include <inttypes.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4284 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4285 uintmax_t i = (uintmax_t) -1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4286 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4287 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4288 if { (eval echo configure:4289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4289 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4290 jm_ac_cv_header_inttypes_h=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4291 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4292 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4293 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4294 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4295 jm_ac_cv_header_inttypes_h=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4296 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4297 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4298 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4299
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4300 echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4301 if test $jm_ac_cv_header_inttypes_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4302 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4303 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4304 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4305
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4306 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4307
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4308
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4309 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4310 echo "configure:4311: checking for stdint.h" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4311 if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4312 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4313 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4314 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4315 #line 4316 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4316 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4317 #include <sys/types.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4318 #include <stdint.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4319 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4320 uintmax_t i = (uintmax_t) -1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4321 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4322 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4324 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4325 jm_ac_cv_header_stdint_h=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4326 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4327 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4328 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4329 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4330 jm_ac_cv_header_stdint_h=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4331 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4332 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4333 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4334
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4335 echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4336 if test $jm_ac_cv_header_stdint_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4337 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4338 #define HAVE_STDINT_H_WITH_UINTMAX 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4339 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4340
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4341 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4342
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4343
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4344 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4345 echo "configure:4346: checking for unsigned long long" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4346 if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4347 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4348 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4349 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4350 #line 4351 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4351 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4352 unsigned long long ull = 1; int i = 63;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4353 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4354 unsigned long long ullmax = (unsigned long long) -1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4355 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4356 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4357 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4359 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4360 ac_cv_type_unsigned_long_long=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4361 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4362 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4363 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4364 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4365 ac_cv_type_unsigned_long_long=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4366 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4367 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4368 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4369
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4370 echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4371 if test $ac_cv_type_unsigned_long_long = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4372 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4373 #define HAVE_UNSIGNED_LONG_LONG 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4374 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4375
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4376 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4377
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4378
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4379 if test "X$prefix" = "XNONE"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4380 acl_final_prefix="$ac_default_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4381 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4382 acl_final_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4383 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4384 if test "X$exec_prefix" = "XNONE"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4385 acl_final_exec_prefix='${prefix}'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4386 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4387 acl_final_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4388 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4389 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4390 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4391 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4392 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4393
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4394
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4395 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4396 echo "configure:4397: checking for shared library run path origin" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4397 if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4398 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4399 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4400
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4401 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4402 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4403 . ./conftest.sh
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4404 rm -f ./conftest.sh
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4405 acl_cv_rpath=done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4406
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4407 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4408
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4409 echo "$ac_t""$acl_cv_rpath" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4410 wl="$acl_cv_wl"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4411 libext="$acl_cv_libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4412 shlibext="$acl_cv_shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4413 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4414 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4415 hardcode_direct="$acl_cv_hardcode_direct"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4416 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4417 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4418 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4419 # Check whether --enable-rpath or --disable-rpath was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4420 if test "${enable_rpath+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4421 enableval="$enable_rpath"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4422 :
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4423 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4424 enable_rpath=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4425 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4426
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4427
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4428
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4429 MKINSTALLDIRS=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4430 if test -n "$ac_aux_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4431 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4432 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4433 if test -z "$MKINSTALLDIRS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4434 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4435 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4436
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4437
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4438 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4439 echo "configure:4440: checking for off_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4440 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4441 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4442 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4443 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4444 #line 4445 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4445 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4446 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4447 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4448 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4449 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4450 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4451 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4453 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4454 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4455 ac_cv_type_off_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4456 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4457 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4458 ac_cv_type_off_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4459 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4460 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4461
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4462 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4463 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4464 if test $ac_cv_type_off_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4465 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4466 #define off_t long
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4467 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4468
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4469 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4470
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4471
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4472 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4473 echo "configure:4474: checking whether we are using the GNU C Library 2.1 or newer" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4474 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4475 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4476 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4477 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4478 #line 4479 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4479 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4480
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4481 #include <features.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4482 #ifdef __GNU_LIBRARY__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4483 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4484 Lucky GNU user
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4485 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4486 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4487
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4488 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4490 egrep "Lucky GNU user" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4491 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4492 ac_cv_gnu_library_2_1=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4493 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4494 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4495 ac_cv_gnu_library_2_1=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4496 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4497 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4498
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4499
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4500
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4501 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4502
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4503 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4504
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4505 GLIBC21="$ac_cv_gnu_library_2_1"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4506
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4507
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4508
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4509
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4510 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4511 echo "configure:4512: checking whether integer division by zero raises SIGFPE" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4512 if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4513 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4514 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4515
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4516 if test "$cross_compiling" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4517
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4518 # Guess based on the CPU.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4519 case "$host_cpu" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4520 alpha* | i3456786 | m68k | s390*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4521 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4522 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4523 gt_cv_int_divbyzero_sigfpe="guessing no";;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4524 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4525
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4526 else
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4527 cat > conftest.$ac_ext <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4528 #line 4529 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4529 #include "confdefs.h"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4530
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4531 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4532 #include <signal.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4533
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4534 static void
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4535 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4536 sigfpe_handler (int sig)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4537 #else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4538 sigfpe_handler (sig) int sig;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4539 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4540 {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4541 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4542 exit (sig != SIGFPE);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4543 }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4544
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4545 int x = 1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4546 int y = 0;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4547 int z;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4548 int nan;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4549
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4550 int main ()
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4551 {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4552 signal (SIGFPE, sigfpe_handler);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4553 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4554 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4555 signal (SIGTRAP, sigfpe_handler);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4556 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4557 /* Linux/SPARC yields signal SIGILL. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4558 #if defined (__sparc__) && defined (__linux__)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4559 signal (SIGILL, sigfpe_handler);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4560 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4561
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4562 z = x / y;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4563 nan = y / y;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4564 exit (1);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4565 }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4566
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4567 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4568 if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4569 then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4570 gt_cv_int_divbyzero_sigfpe=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4571 else
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4572 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4573 cat conftest.$ac_ext >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4574 rm -fr conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4575 gt_cv_int_divbyzero_sigfpe=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4576 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4577 rm -fr conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4578 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4579
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4580
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4581 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4582
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4583 echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4584 case "$gt_cv_int_divbyzero_sigfpe" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4585 *yes) value=1;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4586 *) value=0;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4587 esac
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4588 cat >> confdefs.h <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4589 #define INTDIV0_RAISES_SIGFPE $value
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4590 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4591
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4592
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4593
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4594
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4595
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4596 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4597
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4598 test $ac_cv_type_unsigned_long_long = yes \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4599 && ac_type='unsigned long long' \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4600 || ac_type='unsigned long'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4601 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4602 #define uintmax_t $ac_type
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4603 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4604
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4605 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4606
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4607
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4608 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4609 echo "configure:4610: checking for inttypes.h" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4610 if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4611 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4612 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4613
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4614 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4615 #line 4616 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4616 #include "confdefs.h"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4617 #include <sys/types.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4618 #include <inttypes.h>
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4619 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4620
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4621 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4622 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4623 if { (eval echo configure:4624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4624 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4625 gt_cv_header_inttypes_h=yes
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4626 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4627 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4628 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4629 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4630 gt_cv_header_inttypes_h=no
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4631 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4632 rm -f conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4633
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4634 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4635
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4636 echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4637 if test $gt_cv_header_inttypes_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4638 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4639 #define HAVE_INTTYPES_H 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4640 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4641
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4642 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4643
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4644
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4645
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4646 if test $gt_cv_header_inttypes_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4647 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4648 echo "configure:4649: checking whether the inttypes.h PRIxNN macros are broken" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4649 if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4650 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4651 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4652
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4653 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4654 #line 4655 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4655 #include "confdefs.h"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4656 #include <inttypes.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4657 #ifdef PRId32
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4658 char *p = PRId32;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4659 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4660
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4661 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4662
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4663 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4664 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4665 if { (eval echo configure:4666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4666 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4667 gt_cv_inttypes_pri_broken=no
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4668 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4669 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4670 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4671 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4672 gt_cv_inttypes_pri_broken=yes
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4673 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4674 rm -f conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4675
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4676 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4677
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4678 echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4679 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4680 if test "$gt_cv_inttypes_pri_broken" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4681 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4682 #define PRI_MACROS_BROKEN 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4683 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4684
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4685 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4686
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4687
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4688
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4689
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4690
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4691
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4692
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4693 use_additional=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4694
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4695 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4696 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4697 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4698 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4699
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4700 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4701 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4702
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4703 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4704 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4705
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4706 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4707 if test "${with_libiconv_prefix+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4708 withval="$with_libiconv_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4709
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4710 if test "X$withval" = "Xno"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4711 use_additional=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4712 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4713 if test "X$withval" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4714
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4715 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4716 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4717 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4718 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4719
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4720 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4721 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4722
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4723 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4724 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4725
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4726 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4727 additional_includedir="$withval/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4728 additional_libdir="$withval/lib"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4729 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4730 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4731
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4732 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4733
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4734 LIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4735 LTLIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4736 INCICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4737 rpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4738 ltrpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4739 names_already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4740 names_next_round='iconv '
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4741 while test -n "$names_next_round"; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4742 names_this_round="$names_next_round"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4743 names_next_round=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4744 for name in $names_this_round; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4745 already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4746 for n in $names_already_handled; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4747 if test "$n" = "$name"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4748 already_handled=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4749 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4750 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4751 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4752 if test -z "$already_handled"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4753 names_already_handled="$names_already_handled $name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4754 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4755 eval value=\"\$HAVE_LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4756 if test -n "$value"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4757 if test "$value" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4758 eval value=\"\$LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4759 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4760 eval value=\"\$LTLIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4761 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4762 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4763 :
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4764 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4765 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4766 found_dir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4767 found_la=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4768 found_so=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4769 found_a=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4770 if test $use_additional = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4771 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4772 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4773 found_so="$additional_libdir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4774 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4775 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4776 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4777 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4778 if test -f "$additional_libdir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4779 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4780 found_a="$additional_libdir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4781 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4782 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4783 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4784 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4785 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4786 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4787 if test "X$found_dir" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4788 for x in $LDFLAGS $LTLIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4789
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4790 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4791 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4792 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4793 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4794 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4795 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4796 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4797
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4798 case "$x" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4799 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4800 dir=`echo "X$x" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4801 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4802 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4803 found_so="$dir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4804 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4805 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4806 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4807 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4808 if test -f "$dir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4809 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4810 found_a="$dir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4811 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4812 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4813 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4814 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4815 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4816 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4817 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4818 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4819 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4820 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4821 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4822 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4823 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4825 if test "X$found_so" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4826 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4827 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4828 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4829 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4830 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4831 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4832 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4833 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4834 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4835 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4836 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4837 ltrpathdirs="$ltrpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4838 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4839 if test "$hardcode_direct" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4840 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4841 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4842 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4844 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4845 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4846 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4847 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4848 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4849 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4850 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4851 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4852 rpathdirs="$rpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4853 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4854 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4855 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4856 for x in $LDFLAGS $LIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4857
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4858 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4859 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4860 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4861 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4862 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4863 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4864 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4865
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4866 if test "X$x" = "X-L$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4867 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4868 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4869 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4870 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4871 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4872 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4873 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4874 if test "$hardcode_minus_L" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4876 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4877 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4878 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4879 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4880 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4881 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4882 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4883 if test "X$found_a" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4885 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4887 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4888 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4889 additional_includedir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4890 case "$found_dir" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4891 */lib | */lib/)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4892 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4893 additional_includedir="$basedir/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4894 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4895 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4896 if test "X$additional_includedir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4897 if test "X$additional_includedir" != "X/usr/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4898 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4899 if test "X$additional_includedir" = "X/usr/local/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4900 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4901 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4902 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4903 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4904 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4905 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4906 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4907 for x in $CPPFLAGS $INCICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4908
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4909 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4910 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4911 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4912 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4913 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4914 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4915 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4916
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4917 if test "X$x" = "X-I$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4918 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4919 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4920 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4921 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4922 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4923 if test -d "$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4924 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4925 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4926 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4927 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4928 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4929 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4930 if test -n "$found_la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4931 save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4932 case "$found_la" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4933 */* | *\\*) . "$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4934 *) . "./$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4935 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4936 libdir="$save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4937 for dep in $dependency_libs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4938 case "$dep" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4939 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4940 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4941 if test "X$additional_libdir" != "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4942 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4943 if test "X$additional_libdir" = "X/usr/local/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4944 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4945 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4946 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4947 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4948 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4949 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4950 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4951 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4952 for x in $LDFLAGS $LIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4953
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4954 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4955 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4956 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4957 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4958 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4959 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4960 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4961
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4962 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4963 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4964 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4965 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4966 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4967 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4968 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4969 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4970 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4971 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4972 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4973 for x in $LDFLAGS $LTLIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4974
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4975 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4976 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4977 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4978 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4979 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4980 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4981 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4982
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4983 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4984 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4985 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4986 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4987 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4988 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4989 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4990 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4991 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4992 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4993 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4994 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4995 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4996 -R*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4997 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4998 if test "$enable_rpath" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4999 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5000 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5001 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5002 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5003 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5004 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5005 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5006 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5007 rpathdirs="$rpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5008 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5009 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5010 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5011 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5012 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5013 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5014 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5015 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5016 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5017 ltrpathdirs="$ltrpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5018 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5019 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5020 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5021 -l*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5022 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5023 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5024 *.la)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5025 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5026 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5027 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5028 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5030 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5031 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5032 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5033 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5034 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5035 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5037 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5038 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5039 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5040 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5041 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5042 if test "X$rpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5043 if test -n "$hardcode_libdir_separator"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5044 alldirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5045 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5046 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5047 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5048 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5049 libdir="$alldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5050 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5051 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5052 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5053 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5054 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5055 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5056 libdir="$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5057 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5058 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5059 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5060 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5061 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5062 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5063 if test "X$ltrpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5064 for found_dir in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5066 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5067 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5068
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5069
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5070
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5071
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5072
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5073 # Extract the first word of "msgfmt", so it can be a program name with args.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5074 set dummy msgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5076 echo "configure:5077: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5077 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5078 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5079 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5080 case "$MSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5081 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5082 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5083 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5084 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5086 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5087 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5088 if test -f $ac_dir/$ac_word; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5089 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5090 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5091 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5092 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5093 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5094 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5095 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5096 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5097 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5098 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5099 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5100 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5101 MSGFMT="$ac_cv_path_MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5102 if test "$MSGFMT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5103 echo "$ac_t""$MSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5104 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5105 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5106 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5107
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5108 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5109 set dummy gmsgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5111 echo "configure:5112: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5112 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5113 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5114 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5115 case "$GMSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5116 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5117 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5118 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5119 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5120 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5121 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5122 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5124 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5125 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5126 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5127 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5128 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5129 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5130 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5131 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5132 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5133 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5134 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5135 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5136 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5137 GMSGFMT="$ac_cv_path_GMSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5138 if test -n "$GMSGFMT"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5139 echo "$ac_t""$GMSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5140 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5141 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5142 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5143
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5144
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5145 # Extract the first word of "xgettext", so it can be a program name with args.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5146 set dummy xgettext; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5148 echo "configure:5149: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5149 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5150 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5151 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5152 case "$XGETTEXT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5153 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5154 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5155 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5156 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5158 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5159 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5160 if test -f $ac_dir/$ac_word; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5161 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5162 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5163 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5164 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5165 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5166 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5167 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5168 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5169 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5170 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5171 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5172 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5173 XGETTEXT="$ac_cv_path_XGETTEXT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5174 if test "$XGETTEXT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5175 echo "$ac_t""$XGETTEXT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5176 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5177 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5178 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5179
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5180 rm -f messages.po
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5181
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5182 # Extract the first word of "msgmerge", so it can be a program name with args.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5183 set dummy msgmerge; ac_word=$2
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5185 echo "configure:5186: checking for $ac_word" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5186 if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5187 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5188 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5189 case "$MSGMERGE" in
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5190 /*)
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5191 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5192 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5193 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5195 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5196 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5197 if test -f $ac_dir/$ac_word; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5198 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5199 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5200 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5201 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5202 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5203 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5204 IFS="$ac_save_ifs"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5205 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5206 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5207 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5208 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5209 MSGMERGE="$ac_cv_path_MSGMERGE"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5210 if test "$MSGMERGE" != ":"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5211 echo "$ac_t""$MSGMERGE" 1>&6
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5212 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5213 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5214 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5215
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5216
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5217 if test "$GMSGFMT" != ":"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5218 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5219 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5220 : ;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5221 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5222 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5223 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5224 GMSGFMT=":"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5225 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5226 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5227
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5228 if test "$XGETTEXT" != ":"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5229 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5230 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5231 : ;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5232 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5233 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5234 XGETTEXT=":"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5235 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5236 rm -f messages.po
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5237 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5238
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5239
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5240
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5241
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5242
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5243 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5244 stdlib.h string.h unistd.h sys/param.h
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5245 do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5248 echo "configure:5249: checking for $ac_hdr" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5250 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5251 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5252 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5253 #line 5254 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5254 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5255 #include <$ac_hdr>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5256 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5258 { (eval echo configure:5259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5260 if test -z "$ac_err"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5261 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5262 eval "ac_cv_header_$ac_safe=yes"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5263 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5264 echo "$ac_err" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5265 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5266 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5267 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5268 eval "ac_cv_header_$ac_safe=no"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5269 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5270 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5271 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5273 echo "$ac_t""yes" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5275 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5276 #define $ac_tr_hdr 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5277 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5278
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5279 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5280 echo "$ac_t""no" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5281 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5282 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5283
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5284 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5285 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5286 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5287 do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5289 echo "configure:5290: checking for $ac_func" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5291 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5292 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5293 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5294 #line 5295 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5295 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5296 /* System header to define __stub macros and hopefully few prototypes,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5297 which can conflict with char $ac_func(); below. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5298 #include <assert.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5299 /* Override any gcc2 internal prototype to avoid an error. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5300 /* We use char because int might match the return type of a gcc2
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5301 builtin and then its argument prototype would still apply. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5302 char $ac_func();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5303
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5304 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5305
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5306 /* The GNU C library defines this for functions which it implements
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5307 to always fail with ENOSYS. Some functions are actually named
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5308 something starting with __ and the normal name is an alias. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5310 choke me
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5311 #else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5312 $ac_func();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5313 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5314
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5315 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5316 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5318 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5319 eval "ac_cv_func_$ac_func=yes"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5320 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5321 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5322 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5323 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5324 eval "ac_cv_func_$ac_func=no"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5325 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5326 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5327 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5328
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5330 echo "$ac_t""yes" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5332 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5333 #define $ac_tr_func 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5334 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5335
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5336 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5337 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5338 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5339 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5340
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5341
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5342
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5343
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5344
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5345
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5346
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5347 am_save_CPPFLAGS="$CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5348
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5349 for element in $INCICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5350 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5351 for x in $CPPFLAGS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5352
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5353 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5354 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5355 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5356 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5357 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5358 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5359 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5360
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5361 if test "X$x" = "X$element"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5362 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5363 break
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5364 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5365 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5366 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5367 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5368 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5369 done
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5370
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5371
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5372 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5373 echo "configure:5374: checking for iconv" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5374 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5375 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5376 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5377
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5378 am_cv_func_iconv="no, consider installing GNU libiconv"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5379 am_cv_lib_iconv=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5380 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5381 #line 5382 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5382 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5383 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5384 #include <iconv.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5385 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5386 iconv_t cd = iconv_open("","");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5387 iconv(cd,NULL,NULL,NULL,NULL);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5388 iconv_close(cd);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5389 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5390 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5391 if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5392 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5393 am_cv_func_iconv=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5394 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5395 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5396 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5397 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5398 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5399 if test "$am_cv_func_iconv" != yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5400 am_save_LIBS="$LIBS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5401 LIBS="$LIBS $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5402 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5403 #line 5404 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5404 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5405 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5406 #include <iconv.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5407 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5408 iconv_t cd = iconv_open("","");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5409 iconv(cd,NULL,NULL,NULL,NULL);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5410 iconv_close(cd);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5411 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5412 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5414 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5415 am_cv_lib_iconv=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5416 am_cv_func_iconv=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5417 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5418 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5419 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5420 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5421 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5422 LIBS="$am_save_LIBS"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5423 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5424
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5425 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5426
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5427 echo "$ac_t""$am_cv_func_iconv" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5428 if test "$am_cv_func_iconv" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5429 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5430 #define HAVE_ICONV 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5431 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5432
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5433 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5434 if test "$am_cv_lib_iconv" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5435 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5436 echo "configure:5437: checking how to link with libiconv" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5437 echo "$ac_t""$LIBICONV" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5438 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5439 CPPFLAGS="$am_save_CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5440 LIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5441 LTLIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5442 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5443
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5444
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5445
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5446 if test "$am_cv_func_iconv" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5447 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5448 echo "configure:5449: checking for iconv declaration" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5449 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5450 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5451 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5452
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5453 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5454 #line 5455 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5455 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5456
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5457 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5458 #include <iconv.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5459 extern
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5460 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5461 "C"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5462 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5463 #if defined(__STDC__) || defined(__cplusplus)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5464 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5465 #else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5466 size_t iconv();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5467 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5468
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5469 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5470
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5471 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5472 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5473 if { (eval echo configure:5474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5474 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5475 am_cv_proto_iconv_arg1=""
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5476 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5477 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5478 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5479 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5480 am_cv_proto_iconv_arg1="const"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5481 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5482 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5483 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5484 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5485
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5486 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5487 echo "$ac_t""${ac_t:-
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5488 }$am_cv_proto_iconv" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5489 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5490 #define ICONV_CONST $am_cv_proto_iconv_arg1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5491 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5492
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5493 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5494
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5495
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5496 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5497 echo "configure:5498: checking for nl_langinfo and CODESET" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5498 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5499 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5500 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5501 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5502 #line 5503 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5503 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5504 #include <langinfo.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5505 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5506 char* cs = nl_langinfo(CODESET);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5507 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5508 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5510 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5511 am_cv_langinfo_codeset=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5512 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5513 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5514 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5515 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5516 am_cv_langinfo_codeset=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5517 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5518 rm -f conftest*
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5519
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5520 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5521
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5522 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5523 if test $am_cv_langinfo_codeset = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5524 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5525 #define HAVE_LANGINFO_CODESET 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5526 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5527
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5528 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5529
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5530 if test $ac_cv_header_locale_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5531
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5532 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5533 echo "configure:5534: checking for LC_MESSAGES" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5534 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5535 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5536 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5537 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5538 #line 5539 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5539 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5540 #include <locale.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5541 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5542 return LC_MESSAGES
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5543 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5544 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5545 if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5546 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5547 am_cv_val_LC_MESSAGES=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5548 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5549 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5550 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5551 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5552 am_cv_val_LC_MESSAGES=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5553 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5554 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5555 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5556
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5557 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5558 if test $am_cv_val_LC_MESSAGES = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5559 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5560 #define HAVE_LC_MESSAGES 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5561 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5562
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5563 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5564
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5565 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5566
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5567 for ac_prog in bison
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5568 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5570 set dummy $ac_prog; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5572 echo "configure:5573: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5573 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5574 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5575 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5576 if test -n "$INTLBISON"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5577 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5578 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5580 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5581 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5582 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5583 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5584 ac_cv_prog_INTLBISON="$ac_prog"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5585 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5586 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5587 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5588 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5589 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5590 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5591 INTLBISON="$ac_cv_prog_INTLBISON"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5592 if test -n "$INTLBISON"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5593 echo "$ac_t""$INTLBISON" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5594 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5595 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5596 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5597
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5598 test -n "$INTLBISON" && break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5599 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5600
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5601 if test -z "$INTLBISON"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5602 ac_verc_fail=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5603 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5604 echo $ac_n "checking version of bison""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5605 echo "configure:5606: checking version of bison" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5606 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5607 case $ac_prog_version in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5608 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5609 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5610 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5611 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5612 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5613 echo "$ac_t""$ac_prog_version" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5614 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5615 if test $ac_verc_fail = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5616 INTLBISON=:
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5617 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5618
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5619
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5620
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5621
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5622
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5623
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5624
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5625
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5626
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5627
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5628
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5629
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5630
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5631
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5632
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5633 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5634 echo "configure:5635: checking whether NLS is requested" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5635 # Check whether --enable-nls or --disable-nls was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5636 if test "${enable_nls+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5637 enableval="$enable_nls"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5638 USE_NLS=$enableval
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5639 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5640 USE_NLS=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5641 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5642
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5643 echo "$ac_t""$USE_NLS" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5644
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5645
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5646
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5647 BUILD_INCLUDED_LIBINTL=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5648 USE_INCLUDED_LIBINTL=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5649
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5650 LIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5651 LTLIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5652 POSUB=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5653
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5654 if test "$USE_NLS" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5655 gt_use_preinstalled_gnugettext=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5656
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5657 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5658 echo "configure:5659: checking whether included gettext is requested" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5659 # Check whether --with-included-gettext or --without-included-gettext was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5660 if test "${with_included_gettext+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5661 withval="$with_included_gettext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5662 nls_cv_force_use_gnu_gettext=$withval
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5663 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5664 nls_cv_force_use_gnu_gettext=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5665 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5666
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5667 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5668
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5669 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5670 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5671
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5672
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5673
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5674
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5675
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5676
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5677 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5678 echo "configure:5679: checking for GNU gettext in libc" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5679 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5680 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5681 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5682 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5683 #line 5684 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5684 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5685 #include <libintl.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5686 extern int _nl_msg_cat_cntr;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5687 extern int *_nl_domain_bindings;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5688 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5689 bindtextdomain ("", "");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5690 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5691 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5692 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5694 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5695 gt_cv_func_gnugettext1_libc=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5696 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5697 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5698 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5699 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5700 gt_cv_func_gnugettext1_libc=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5701 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5702 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5703 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5704
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5705 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5706
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5707 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5708
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5709
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5710
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5711 use_additional=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5712
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5713 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5714 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5715 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5716 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5717
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5718 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5719 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5720
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5721 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5722 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5723
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5724 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5725 if test "${with_libintl_prefix+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5726 withval="$with_libintl_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5727
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5728 if test "X$withval" = "Xno"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5729 use_additional=no
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5730 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5731 if test "X$withval" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5732
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5733 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5734 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5735 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5736 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5737
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5738 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5739 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5740
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5741 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5742 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5743
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5744 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5745 additional_includedir="$withval/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5746 additional_libdir="$withval/lib"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5747 fi
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5748 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5749
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5750 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5751
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5752 LIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5753 LTLIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5754 INCINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5755 rpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5756 ltrpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5757 names_already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5758 names_next_round='intl '
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5759 while test -n "$names_next_round"; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5760 names_this_round="$names_next_round"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5761 names_next_round=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5762 for name in $names_this_round; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5763 already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5764 for n in $names_already_handled; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5765 if test "$n" = "$name"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5766 already_handled=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5767 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5768 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5769 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5770 if test -z "$already_handled"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5771 names_already_handled="$names_already_handled $name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5772 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5773 eval value=\"\$HAVE_LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5774 if test -n "$value"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5775 if test "$value" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5776 eval value=\"\$LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5777 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5778 eval value=\"\$LTLIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5779 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5780 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5781 :
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5782 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5783 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5784 found_dir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5785 found_la=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5786 found_so=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5787 found_a=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5788 if test $use_additional = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5789 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5790 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5791 found_so="$additional_libdir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5792 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5793 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5794 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5795 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5796 if test -f "$additional_libdir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5797 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5798 found_a="$additional_libdir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5799 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5800 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5801 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5802 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5803 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5804 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5805 if test "X$found_dir" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5806 for x in $LDFLAGS $LTLIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5807
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5808 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5809 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5810 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5811 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5812 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5813 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5814 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5815
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5816 case "$x" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5817 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5818 dir=`echo "X$x" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5819 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5820 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5821 found_so="$dir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5822 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5823 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5824 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5825 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5826 if test -f "$dir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5827 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5828 found_a="$dir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5829 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5830 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5831 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5832 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5833 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5834 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5835 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5836 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5837 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5838 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5839 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5840 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5841 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5842 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5843 if test "X$found_so" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5844 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5845 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5846 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5847 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5848 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5849 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5850 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5851 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5852 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5853 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5854 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5855 ltrpathdirs="$ltrpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5856 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5857 if test "$hardcode_direct" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5858 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5859 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5860 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5861 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5862 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5863 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5864 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5865 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5866 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5867 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5868 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5869 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5870 rpathdirs="$rpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5871 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5872 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5873 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5874 for x in $LDFLAGS $LIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5875
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5876 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5877 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5878 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5879 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5880 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5881 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5882 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5883
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5884 if test "X$x" = "X-L$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5885 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5886 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5887 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5888 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5889 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5890 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5891 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5892 if test "$hardcode_minus_L" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5893 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5894 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5895 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5896 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5897 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5898 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5899 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5900 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5901 if test "X$found_a" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5902 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5903 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5904 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5905 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5906 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5907 additional_includedir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5908 case "$found_dir" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5909 */lib | */lib/)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5910 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5911 additional_includedir="$basedir/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5912 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5913 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5914 if test "X$additional_includedir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5915 if test "X$additional_includedir" != "X/usr/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5916 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5917 if test "X$additional_includedir" = "X/usr/local/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5918 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5919 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5920 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5921 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5922 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5923 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5924 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5925 for x in $CPPFLAGS $INCINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5926
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5927 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5928 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5929 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5930 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5931 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5932 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5933 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5934
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5935 if test "X$x" = "X-I$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5936 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5937 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5938 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5939 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5940 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5941 if test -d "$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5942 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5943 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5944 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5945 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5946 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5947 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5948 if test -n "$found_la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5949 save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5950 case "$found_la" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5951 */* | *\\*) . "$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5952 *) . "./$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5953 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5954 libdir="$save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5955 for dep in $dependency_libs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5956 case "$dep" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5957 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5958 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5959 if test "X$additional_libdir" != "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5960 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5961 if test "X$additional_libdir" = "X/usr/local/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5962 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5963 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5964 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5965 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5966 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5967 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5968 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5969 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5970 for x in $LDFLAGS $LIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5971
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5972 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5973 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5974 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5975 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5976 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5977 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5978 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5979
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5980 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5981 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5982 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5983 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5984 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5985 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5986 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5987 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5988 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5989 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5990 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5991 for x in $LDFLAGS $LTLIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5992
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5993 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5994 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5995 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5996 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5997 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5998 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5999 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6000
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6001 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6002 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6003 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6004 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6005 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6006 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6007 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6008 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6009 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6010 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6011 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6012 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6013 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6014 -R*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6015 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6016 if test "$enable_rpath" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6017 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6018 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6019 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6020 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6021 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6022 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6023 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6024 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6025 rpathdirs="$rpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6026 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6027 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6028 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6029 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6030 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6031 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6032 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6033 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6034 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6035 ltrpathdirs="$ltrpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6036 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6037 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6038 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6039 -l*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6040 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6041 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6042 *.la)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6043 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6044 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6045 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6046 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6047 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6048 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6049 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6050 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6051 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6052 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6053 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6054 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6055 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6056 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6057 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6058 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6059 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6060 if test "X$rpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6061 if test -n "$hardcode_libdir_separator"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6062 alldirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6063 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6064 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6065 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6066 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6067 libdir="$alldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6068 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6069 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6070 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6071 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6072 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6073 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6074 libdir="$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6075 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6076 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6077 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6078 done
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6079 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6080 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6081 if test "X$ltrpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6082 for found_dir in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6083 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6084 done
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6085 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6086
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6087 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6088 echo "configure:6089: checking for GNU gettext in libintl" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6089 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6090 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6091 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6092 gt_save_CPPFLAGS="$CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6093 CPPFLAGS="$CPPFLAGS $INCINTL"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6094 gt_save_LIBS="$LIBS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6095 LIBS="$LIBS $LIBINTL"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6096 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6097 #line 6098 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6098 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6099 #include <libintl.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6100 extern int _nl_msg_cat_cntr;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6101 extern
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6102 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6103 "C"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6104 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6105 const char *_nl_expand_alias ();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6106 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6107 bindtextdomain ("", "");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6108 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6109 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6110 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6112 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6113 gt_cv_func_gnugettext1_libintl=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6114 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6115 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6116 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6117 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6118 gt_cv_func_gnugettext1_libintl=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6119 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6120 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6121 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6122 LIBS="$LIBS $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6123 cat > conftest.$ac_ext <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6124 #line 6125 "configure"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6125 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6126 #include <libintl.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6127 extern int _nl_msg_cat_cntr;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6128 extern
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6129 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6130 "C"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6131 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6132 const char *_nl_expand_alias ();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6133 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6134 bindtextdomain ("", "");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6135 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6136 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6137 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6139 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6140 LIBINTL="$LIBINTL $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6141 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6142 gt_cv_func_gnugettext1_libintl=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6143
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6144 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6145 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6146 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6147 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6148 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6149 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6150 CPPFLAGS="$gt_save_CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6151 LIBS="$gt_save_LIBS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6152 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6153
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6154 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6155 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6156
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6157 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6158 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6159 && test "$PACKAGE" != gettext; }; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6160 gt_use_preinstalled_gnugettext=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6161 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6162 LIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6163 LTLIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6164 INCINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6165 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6166
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6167
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6168 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6169 nls_cv_use_gnu_gettext=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6170 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6171 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6172
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6173 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6174 INTLOBJS="\$(GETTOBJS)"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6175 BUILD_INCLUDED_LIBINTL=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6176 USE_INCLUDED_LIBINTL=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6177 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6178 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6179 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6180 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6181
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6182 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6183 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6184 CATOBJEXT=.gmo
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6185 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6186
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6187
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6188 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6189 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6190 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6191 #define ENABLE_NLS 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6192 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6193
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6194 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6195 USE_NLS=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6196 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6197 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6198
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6199 if test "$USE_NLS" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6200
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6201 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6202 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6203 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6204 echo "configure:6205: checking how to link with libintl" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6205 echo "$ac_t""$LIBINTL" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6206
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6207 for element in $INCINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6208 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6209 for x in $CPPFLAGS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6210
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6211 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6212 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6213 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6214 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6215 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6216 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6217 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6218
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6219 if test "X$x" = "X$element"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6220 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6221 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6222 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6223 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6224 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6225 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6226 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6227 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6228
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6229 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6230
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6231 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6232 #define HAVE_GETTEXT 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6233 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6234
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6235 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6236 #define HAVE_DCGETTEXT 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6237 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6238
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6239 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6240
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6241 POSUB=po
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6242 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6243
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6244
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6245 if test "$PACKAGE" = gettext; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6246 BUILD_INCLUDED_LIBINTL=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6247 fi
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6248
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6249
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6250
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6251
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6252
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6253
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6254 nls_cv_header_intl=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6255 nls_cv_header_libgt=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6256
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6257 DATADIRNAME=share
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6258
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6259
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6260 INSTOBJEXT=.mo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6261
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6262
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6263 GENCAT=gencat
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6264
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6265
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6266 INTL_LIBTOOL_SUFFIX_PREFIX=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6267
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6268
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6269
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6270 INTLLIBS="$LIBINTL"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6271
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6272
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6273
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6274
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6275
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6276
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6277
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6278 trap '' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6279 cat > confcache <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6280 # This file is a shell script that caches the results of configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6281 # tests run on this system so they can be shared between configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6282 # scripts and configure runs. It is not useful on other systems.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6283 # If it contains results you don't want to keep, you may remove or edit it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6284 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6285 # By default, configure uses ./config.cache as the cache file,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6286 # creating it if it does not exist already. You can give configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6287 # the --cache-file=FILE option to use a different cache file; that is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6288 # what configure does when it calls configure scripts in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6289 # subdirectories, so they share the cache.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6290 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6291 # config.status only pays attention to the cache file if you give it the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6292 # --recheck option to rerun configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6293 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6294 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6295 # The following way of writing the cache mishandles newlines in values,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6296 # but we know of no workaround that is simple, portable, and efficient.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6297 # So, don't put newlines in cache variables' values.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6298 # Ultrix sh set writes to stderr and can't be redirected directly,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6299 # and sets the high bit in the cache file unless we assign to the vars.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6300 (set) 2>&1 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6301 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6302 *ac_space=\ *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6303 # `set' does not quote correctly, so add quotes (double-quote substitution
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6304 # turns \\\\ into \\, and sed turns \\ into \).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6305 sed -n \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6306 -e "s/'/'\\\\''/g" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6307 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6308 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6309 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6310 # `set' quotes correctly as required by POSIX, so do not add quotes.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6311 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6312 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6313 esac >> confcache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6314 if cmp -s $cache_file confcache; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6315 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6316 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6317 if test -w $cache_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6318 echo "updating cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6319 cat confcache > $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6320 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6321 echo "not updating unwritable cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6322 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6323 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6324 rm -f confcache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6325
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6326 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6327
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6329 # Let make expand exec_prefix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6331
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6332 # Any assignment to VPATH causes Sun make to only execute
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6333 # the first set of double-colon rules, so remove it if not needed.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6334 # If there is a colon in the path, we need to keep it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6335 if test "x$srcdir" = x.; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6336 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6337 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6338
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6339 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6340
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6341 DEFS=-DHAVE_CONFIG_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6342
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6343 # Without the "./", some shells look in PATH for config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6344 : ${CONFIG_STATUS=./config.status}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6345
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6346 echo creating $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6347 rm -f $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6348 cat > $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6349 #! /bin/sh
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6350 # Generated automatically by configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6351 # Run this file to recreate the current configuration.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6352 # This directory was configured as follows,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6353 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6354 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6355 # $0 $ac_configure_args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6356 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6357 # Compiler output produced by configure, useful for debugging
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6358 # configure, is in ./config.log if it exists.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6359
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6360 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6361 for ac_option
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6362 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6363 case "\$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6365 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6366 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6367 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6368 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6369 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6370 -help | --help | --hel | --he | --h)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6371 echo "\$ac_cs_usage"; exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6372 *) echo "\$ac_cs_usage"; exit 1 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6373 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6374 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6375
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6376 ac_given_srcdir=$srcdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6377 ac_given_INSTALL="$INSTALL"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6378
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6379 trap 'rm -fr `echo "Makefile intl/Makefile po/Makefile.in docs/Makefile docs/sample.gftp/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile lib/Makefile gftp.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6380 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6381 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6382
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6383 # Protect against being on the right side of a sed subst in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6384 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6385 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6386 $ac_vpsub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6387 $extrasub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6388 s%@SHELL@%$SHELL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6389 s%@CFLAGS@%$CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6390 s%@CPPFLAGS@%$CPPFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6391 s%@CXXFLAGS@%$CXXFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6392 s%@FFLAGS@%$FFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6393 s%@DEFS@%$DEFS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6394 s%@LDFLAGS@%$LDFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6395 s%@LIBS@%$LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6396 s%@exec_prefix@%$exec_prefix%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6397 s%@prefix@%$prefix%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6398 s%@program_transform_name@%$program_transform_name%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6399 s%@bindir@%$bindir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6400 s%@sbindir@%$sbindir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6401 s%@libexecdir@%$libexecdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6402 s%@datadir@%$datadir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6403 s%@sysconfdir@%$sysconfdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6404 s%@sharedstatedir@%$sharedstatedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6405 s%@localstatedir@%$localstatedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6406 s%@libdir@%$libdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6407 s%@includedir@%$includedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6408 s%@oldincludedir@%$oldincludedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6409 s%@infodir@%$infodir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6410 s%@mandir@%$mandir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6411 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6412 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6413 s%@INSTALL_DATA@%$INSTALL_DATA%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6414 s%@PACKAGE@%$PACKAGE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6415 s%@VERSION@%$VERSION%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6416 s%@ACLOCAL@%$ACLOCAL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6417 s%@AUTOCONF@%$AUTOCONF%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6418 s%@AUTOMAKE@%$AUTOMAKE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6419 s%@AUTOHEADER@%$AUTOHEADER%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6420 s%@MAKEINFO@%$MAKEINFO%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6421 s%@SET_MAKE@%$SET_MAKE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6422 s%@PREFIX@%$PREFIX%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6423 s%@host@%$host%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6424 s%@host_alias@%$host_alias%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6425 s%@host_cpu@%$host_cpu%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6426 s%@host_vendor@%$host_vendor%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6427 s%@host_os@%$host_os%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6428 s%@AWK@%$AWK%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6429 s%@CC@%$CC%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6430 s%@LN_S@%$LN_S%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6431 s%@RANLIB@%$RANLIB%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6432 s%@CPP@%$CPP%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6433 s%@ALLOCA@%$ALLOCA%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6434 s%@PKG_CONFIG@%$PKG_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6435 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6436 s%@GLIB_LIBS@%$GLIB_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6437 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6438 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6439 s%@READLINE_LIBS@%$READLINE_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6440 s%@GFTP_TEXT@%$GFTP_TEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6441 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6442 s%@GTK_LIBS@%$GTK_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6443 s%@GTK_CONFIG@%$GTK_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6444 s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6445 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6446 s%@GFTP_GTK@%$GFTP_GTK%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6447 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6448 s%@MSGFMT@%$MSGFMT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6449 s%@GMSGFMT@%$GMSGFMT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6450 s%@XGETTEXT@%$XGETTEXT%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6451 s%@MSGMERGE@%$MSGMERGE%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6452 s%@GLIBC21@%$GLIBC21%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6453 s%@LIBICONV@%$LIBICONV%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6454 s%@LTLIBICONV@%$LTLIBICONV%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6455 s%@INTLBISON@%$INTLBISON%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6456 s%@USE_NLS@%$USE_NLS%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6457 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6458 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6459 s%@CATOBJEXT@%$CATOBJEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6460 s%@INTLOBJS@%$INTLOBJS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6461 s%@DATADIRNAME@%$DATADIRNAME%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6462 s%@INSTOBJEXT@%$INSTOBJEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6463 s%@GENCAT@%$GENCAT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6464 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6465 s%@INTLLIBS@%$INTLLIBS%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6466 s%@LIBINTL@%$LIBINTL%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6467 s%@LTLIBINTL@%$LTLIBINTL%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6468 s%@POSUB@%$POSUB%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6469
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6470 CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6471 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6472
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6473 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6474
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6475 # Split the substitutions into bite-sized pieces for seds with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6476 # small command number limits, like on Digital OSF/1 and HP-UX.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6477 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6478 ac_file=1 # Number of current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6479 ac_beg=1 # First line for current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6480 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6481 ac_more_lines=:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6482 ac_sed_cmds=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6483 while $ac_more_lines; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6484 if test $ac_beg -gt 1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6485 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6486 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6487 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6488 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6489 if test ! -s conftest.s$ac_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6490 ac_more_lines=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6491 rm -f conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6492 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6493 if test -z "$ac_sed_cmds"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6494 ac_sed_cmds="sed -f conftest.s$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6495 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6496 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6497 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6498 ac_file=`expr $ac_file + 1`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6499 ac_beg=$ac_end
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6500 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6501 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6502 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6503 if test -z "$ac_sed_cmds"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6504 ac_sed_cmds=cat
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6505 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6506 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6507
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6508 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6509
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6510 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile po/Makefile.in docs/Makefile docs/sample.gftp/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile lib/Makefile gftp.spec"}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6511 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6512 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6513 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6514 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6515 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6516 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6517 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6518 *) ac_file_in="${ac_file}.in" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6519 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6520
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6521 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6522
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6523 # Remove last slash and all that follows it. Not all systems have dirname.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6524 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6525 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6526 # The file is in a subdirectory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6527 test ! -d "$ac_dir" && mkdir "$ac_dir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6528 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6529 # A "../" for each directory in $ac_dir_suffix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6530 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6531 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6532 ac_dir_suffix= ac_dots=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6533 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6534
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6535 case "$ac_given_srcdir" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6536 .) srcdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6537 if test -z "$ac_dots"; then top_srcdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6538 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6539 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6540 *) # Relative path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6541 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6542 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6543 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6544
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6545 case "$ac_given_INSTALL" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6546 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6547 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6548 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6549
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6550 echo creating "$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6551 rm -f "$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6552 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6553 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6554 *Makefile*) ac_comsub="1i\\
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6555 # $configure_input" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6556 *) ac_comsub= ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6557 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6558
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6559 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6560 sed -e "$ac_comsub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6561 s%@configure_input@%$configure_input%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6562 s%@srcdir@%$srcdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6563 s%@top_srcdir@%$top_srcdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6564 s%@INSTALL@%$INSTALL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6565 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6566 fi; done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6567 rm -f conftest.s*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6568
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6569 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6570 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6571 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6572 # ac_d sets the value in "#define NAME VALUE" lines.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6573 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6574 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6575 ac_dC='\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6576 ac_dD='%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6577 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6578 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6579 ac_uB='\([ ]\)%\1#\2define\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6580 ac_uC=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6581 ac_uD='\4%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6582 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6583 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6584 ac_eB='$%\1#\2define\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6585 ac_eC=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6586 ac_eD='%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6587
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6588 if test "${CONFIG_HEADERS+set}" != set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6589 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6590 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6591 CONFIG_HEADERS="config.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6592 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6593 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6594 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6595 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6597 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6598 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6599 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6600 *) ac_file_in="${ac_file}.in" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6601 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6602
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6603 echo creating $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6604
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6605 rm -f conftest.frag conftest.in conftest.out
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6606 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6607 cat $ac_file_inputs > conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6608
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6609 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6610
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6611 # Transform confdefs.h into a sed script conftest.vals that substitutes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6612 # the proper values into config.h.in to produce config.h. And first:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6613 # Protect against being on the right side of a sed subst in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6614 # Protect against being in an unquoted here document in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6615 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6616 cat > conftest.hdr <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6617 s/[\\&%]/\\&/g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6618 s%[\\$`]%\\&%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6619 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6620 s%ac_d%ac_u%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6621 s%ac_u%ac_e%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6622 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6623 sed -n -f conftest.hdr confdefs.h > conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6624 rm -f conftest.hdr
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6625
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6626 # This sed command replaces #undef with comments. This is necessary, for
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6627 # example, in the case of _POSIX_SOURCE, which is predefined and required
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6628 # on some systems where configure will not decide to define it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6629 cat >> conftest.vals <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6630 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6631 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6632
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6633 # Break up conftest.vals because some shells have a limit on
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6634 # the size of here documents, and old seds have small limits too.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6635
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6636 rm -f conftest.tail
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6637 while :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6638 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6639 ac_lines=`grep -c . conftest.vals`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6640 # grep -c gives empty output for an empty file on some AIX systems.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6641 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6642 # Write a limited-size here document to conftest.frag.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6643 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6644 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6645 echo 'CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6646 sed -f conftest.frag conftest.in > conftest.out
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6647 rm -f conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6648 mv conftest.out conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6649 ' >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6650 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6651 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6652 mv conftest.tail conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6653 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6654 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6655
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6656 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6657 rm -f conftest.frag conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6658 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6659 cat conftest.in >> conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6660 rm -f conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6661 if cmp -s $ac_file conftest.h 2>/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6662 echo "$ac_file is unchanged"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6663 rm -f conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6664 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6665 # Remove last slash and all that follows it. Not all systems have dirname.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6666 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6668 # The file is in a subdirectory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6669 test ! -d "$ac_dir" && mkdir "$ac_dir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6670 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6671 rm -f $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6672 mv conftest.h $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6673 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6674 fi; done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6675
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6676 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6677 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6678
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6679 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6680 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6681 # from automake.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6682 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6683 # Capture the value of LINGUAS because we need it to compute CATALOGS.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6684 LINGUAS="${LINGUAS-%UNSET%}"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6685
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6686
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6687 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6688 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6689 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6690
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6691 for ac_file in $CONFIG_FILES; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6692 # Support "outfile[:infile[:infile...]]"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6693 case "$ac_file" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6694 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6695 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6696 # PO directories have a Makefile.in generated from Makefile.in.in.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6697 case "$ac_file" in */Makefile.in)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6698 # Adjust a relative srcdir.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6699 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6700 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6701 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6702 # In autoconf-2.13 it is called $ac_given_srcdir.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6703 # In autoconf-2.50 it is called $srcdir.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6704 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6705 case "$ac_given_srcdir" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6706 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6707 /*) top_srcdir="$ac_given_srcdir" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6708 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6709 esac
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6710 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6711 rm -f "$ac_dir/POTFILES"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6712 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6713 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6714 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6715 # on $ac_dir but don't depend on user-specified configuration
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6716 # parameters.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6717 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6718 # The LINGUAS file contains the set of available languages.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6719 if test -n "$ALL_LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6720 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6721 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6722 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6723 # Hide the ALL_LINGUAS assigment from automake.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6724 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6725 fi
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6726 case "$ac_given_srcdir" in
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6727 .) srcdirpre= ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6728 *) srcdirpre='$(srcdir)/' ;;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6729 esac
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6730 POFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6731 GMOFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6732 UPDATEPOFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6733 DUMMYPOFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6734 for lang in $ALL_LINGUAS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6735 POFILES="$POFILES $srcdirpre$lang.po"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6736 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6737 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6738 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6739 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6740 # CATALOGS depends on both $ac_dir and the user's LINGUAS
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6741 # environment variable.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6742 INST_LINGUAS=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6743 if test -n "$ALL_LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6744 for presentlang in $ALL_LINGUAS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6745 useit=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6746 if test "%UNSET%" != "$LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6747 desiredlanguages="$LINGUAS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6748 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6749 desiredlanguages="$ALL_LINGUAS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6750 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6751 for desiredlang in $desiredlanguages; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6752 # Use the presentlang catalog if desiredlang is
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6753 # a. equal to presentlang, or
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6754 # b. a variant of presentlang (because in this case,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6755 # presentlang can be used as a fallback for messages
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6756 # which are not translated in the desiredlang catalog).
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6757 case "$desiredlang" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6758 "$presentlang"*) useit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6759 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6760 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6761 if test $useit = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6762 INST_LINGUAS="$INST_LINGUAS $presentlang"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6763 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6764 done
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6765 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6766 CATALOGS=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6767 if test -n "$INST_LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6768 for lang in $INST_LINGUAS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6769 CATALOGS="$CATALOGS $lang.gmo"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6770 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6771 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6772 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6773 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6774 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6775 if test -f "$f"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6776 case "$f" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6777 *.orig | *.bak | *~) ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6778 *) cat "$f" >> "$ac_dir/Makefile" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6779 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6780 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6781 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6782 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6783 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6784 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6785 done
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6786
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6787 exit 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6788 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6789 chmod +x $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6790 rm -fr confdefs* $ac_clean_files
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6791 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6792