*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
CommitLineData
d6e9fb05 1#! /bin/sh
d6e9fb05 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
d6e9fb05
JK
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bec39cab 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bec39cab 31fi
bec39cab 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
bec39cab 50else
81ecdfbb
RW
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
bec39cab
AC
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
bec39cab
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
bec39cab 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
bec39cab 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
bec39cab 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bec39cab 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bec39cab
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
bec39cab 410
dae5f5cf
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
b80864fb 417
bec39cab 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
bec39cab 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bec39cab 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 436 t loop
81ecdfbb 437 s/-\n.*//
bec39cab 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
bec39cab
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bec39cab
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
bec39cab
AC
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bec39cab 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bec39cab 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
dae5f5cf 483 fi
bec39cab
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bec39cab
AC
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
d6e9fb05 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
bec39cab
AC
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
bec39cab
AC
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
bec39cab
AC
534#
535# Initializations.
536#
d6e9fb05 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
dae5f5cf 545
bec39cab
AC
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="server.c"
e28b3332 555ac_config_libobj_dir=../gnulib
bec39cab
AC
556# Factoring default headers for most tests.
557ac_includes_default="\
558#include <stdio.h>
81ecdfbb 559#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
560# include <sys/types.h>
561#endif
81ecdfbb 562#ifdef HAVE_SYS_STAT_H
bec39cab
AC
563# include <sys/stat.h>
564#endif
81ecdfbb 565#ifdef STDC_HEADERS
bec39cab
AC
566# include <stdlib.h>
567# include <stddef.h>
568#else
81ecdfbb 569# ifdef HAVE_STDLIB_H
bec39cab
AC
570# include <stdlib.h>
571# endif
572#endif
81ecdfbb
RW
573#ifdef HAVE_STRING_H
574# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
575# include <memory.h>
576# endif
577# include <string.h>
578#endif
81ecdfbb 579#ifdef HAVE_STRINGS_H
bec39cab
AC
580# include <strings.h>
581#endif
81ecdfbb 582#ifdef HAVE_INTTYPES_H
bec39cab 583# include <inttypes.h>
bec39cab 584#endif
81ecdfbb
RW
585#ifdef HAVE_STDINT_H
586# include <stdint.h>
587#endif
588#ifdef HAVE_UNISTD_H
bec39cab
AC
589# include <unistd.h>
590#endif"
591
81ecdfbb 592ac_subst_vars='LTLIBOBJS
fa593d66
PA
593extra_libraries
594IPA_DEPFILES
81ecdfbb
RW
595srv_xmlfiles
596srv_xmlbuiltin
597USE_THREAD_DB
598GDBSERVER_LIBS
599GDBSERVER_DEPFILES
600RDYNAMIC
601REPORT_BUGS_TEXI
602REPORT_BUGS_TO
603PKGVERSION
d4596a3d
PA
604WERROR_CFLAGS
605WARN_CFLAGS
0fb4aa4b
PA
606ustinc
607ustlibs
81ecdfbb
RW
608LIBOBJS
609INSTALL_DATA
610INSTALL_SCRIPT
611INSTALL_PROGRAM
612target_os
613target_vendor
614target_cpu
615target
616host_os
617host_vendor
618host_cpu
619host
620build_os
621build_vendor
622build_cpu
623build
624EGREP
625GREP
626CPP
627OBJEXT
628EXEEXT
629ac_ct_CC
630CPPFLAGS
631LDFLAGS
632CFLAGS
633CC
634target_alias
635host_alias
636build_alias
637LIBS
638ECHO_T
639ECHO_N
640ECHO_C
641DEFS
642mandir
643localedir
644libdir
645psdir
646pdfdir
647dvidir
648htmldir
649infodir
650docdir
651oldincludedir
652includedir
653localstatedir
654sharedstatedir
655sysconfdir
656datadir
657datarootdir
658libexecdir
659sbindir
660bindir
661program_transform_name
662prefix
663exec_prefix
664PACKAGE_URL
665PACKAGE_BUGREPORT
666PACKAGE_STRING
667PACKAGE_VERSION
668PACKAGE_TARNAME
669PACKAGE_NAME
670PATH_SEPARATOR
671SHELL'
bec39cab 672ac_subst_files=''
81ecdfbb
RW
673ac_user_opts='
674enable_option_checking
0fb4aa4b
PA
675with_ust
676with_ust_include
677with_ust_lib
d4596a3d 678enable_werror
81ecdfbb
RW
679with_pkgversion
680with_bugurl
96f15937 681with_libthread_db
81ecdfbb
RW
682'
683 ac_precious_vars='build_alias
684host_alias
685target_alias
686CC
687CFLAGS
688LDFLAGS
689LIBS
690CPPFLAGS
691CPP'
692
d6e9fb05
JK
693
694# Initialize some variables set by options.
bec39cab
AC
695ac_init_help=
696ac_init_version=false
81ecdfbb
RW
697ac_unrecognized_opts=
698ac_unrecognized_sep=
d6e9fb05
JK
699# The variables have the same names as the options, with
700# dashes changed to underlines.
bec39cab 701cache_file=/dev/null
d6e9fb05 702exec_prefix=NONE
d6e9fb05 703no_create=
d6e9fb05
JK
704no_recursion=
705prefix=NONE
706program_prefix=NONE
707program_suffix=NONE
708program_transform_name=s,x,x,
709silent=
710site=
711srcdir=
d6e9fb05
JK
712verbose=
713x_includes=NONE
714x_libraries=NONE
bec39cab
AC
715
716# Installation directory options.
717# These are left unexpanded so users can "make install exec_prefix=/foo"
718# and all the variables that are supposed to be based on exec_prefix
719# by default will actually change.
720# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 721# (The list follows the same order as the GNU Coding Standards.)
d6e9fb05
JK
722bindir='${exec_prefix}/bin'
723sbindir='${exec_prefix}/sbin'
724libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
725datarootdir='${prefix}/share'
726datadir='${datarootdir}'
d6e9fb05
JK
727sysconfdir='${prefix}/etc'
728sharedstatedir='${prefix}/com'
729localstatedir='${prefix}/var'
d6e9fb05
JK
730includedir='${prefix}/include'
731oldincludedir='/usr/include'
81ecdfbb
RW
732docdir='${datarootdir}/doc/${PACKAGE}'
733infodir='${datarootdir}/info'
734htmldir='${docdir}'
735dvidir='${docdir}'
736pdfdir='${docdir}'
737psdir='${docdir}'
738libdir='${exec_prefix}/lib'
739localedir='${datarootdir}/locale'
740mandir='${datarootdir}/man'
d6e9fb05 741
d6e9fb05 742ac_prev=
81ecdfbb 743ac_dashdash=
d6e9fb05
JK
744for ac_option
745do
d6e9fb05
JK
746 # If the previous option needs an argument, assign it.
747 if test -n "$ac_prev"; then
81ecdfbb 748 eval $ac_prev=\$ac_option
d6e9fb05
JK
749 ac_prev=
750 continue
751 fi
752
81ecdfbb
RW
753 case $ac_option in
754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755 *) ac_optarg=yes ;;
756 esac
d6e9fb05
JK
757
758 # Accept the important Cygnus configure options, so we can diagnose typos.
759
81ecdfbb
RW
760 case $ac_dashdash$ac_option in
761 --)
762 ac_dashdash=yes ;;
d6e9fb05
JK
763
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
765 ac_prev=bindir ;;
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 767 bindir=$ac_optarg ;;
d6e9fb05
JK
768
769 -build | --build | --buil | --bui | --bu)
bec39cab 770 ac_prev=build_alias ;;
d6e9fb05 771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 772 build_alias=$ac_optarg ;;
d6e9fb05
JK
773
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
779 cache_file=$ac_optarg ;;
780
781 --config-cache | -C)
782 cache_file=config.cache ;;
d6e9fb05 783
81ecdfbb 784 -datadir | --datadir | --datadi | --datad)
d6e9fb05 785 ac_prev=datadir ;;
81ecdfbb 786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 787 datadir=$ac_optarg ;;
d6e9fb05 788
81ecdfbb
RW
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
795
d6e9fb05 796 -disable-* | --disable-*)
81ecdfbb 797 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 798 # Reject names that are not valid shell variable names.
81ecdfbb
RW
799 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
800 as_fn_error "invalid feature name: $ac_useropt"
801 ac_useropt_orig=$ac_useropt
802 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
803 case $ac_user_opts in
804 *"
805"enable_$ac_useropt"
806"*) ;;
807 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
808 ac_unrecognized_sep=', ';;
809 esac
810 eval enable_$ac_useropt=no ;;
811
812 -docdir | --docdir | --docdi | --doc | --do)
813 ac_prev=docdir ;;
814 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815 docdir=$ac_optarg ;;
816
817 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
818 ac_prev=dvidir ;;
819 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820 dvidir=$ac_optarg ;;
d6e9fb05
JK
821
822 -enable-* | --enable-*)
81ecdfbb 823 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 824 # Reject names that are not valid shell variable names.
81ecdfbb
RW
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831"enable_$ac_useropt"
832"*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
dae5f5cf 835 esac
81ecdfbb 836 eval enable_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
837
838 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840 | --exec | --exe | --ex)
841 ac_prev=exec_prefix ;;
842 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844 | --exec=* | --exe=* | --ex=*)
bec39cab 845 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
846
847 -gas | --gas | --ga | --g)
848 # Obsolete; use --with-gas.
849 with_gas=yes ;;
850
bec39cab
AC
851 -help | --help | --hel | --he | -h)
852 ac_init_help=long ;;
853 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854 ac_init_help=recursive ;;
855 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856 ac_init_help=short ;;
d6e9fb05
JK
857
858 -host | --host | --hos | --ho)
bec39cab 859 ac_prev=host_alias ;;
d6e9fb05 860 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 861 host_alias=$ac_optarg ;;
d6e9fb05 862
81ecdfbb
RW
863 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864 ac_prev=htmldir ;;
865 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866 | --ht=*)
867 htmldir=$ac_optarg ;;
868
d6e9fb05
JK
869 -includedir | --includedir | --includedi | --included | --include \
870 | --includ | --inclu | --incl | --inc)
871 ac_prev=includedir ;;
872 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 874 includedir=$ac_optarg ;;
d6e9fb05
JK
875
876 -infodir | --infodir | --infodi | --infod | --info | --inf)
877 ac_prev=infodir ;;
878 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 879 infodir=$ac_optarg ;;
d6e9fb05
JK
880
881 -libdir | --libdir | --libdi | --libd)
882 ac_prev=libdir ;;
883 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 884 libdir=$ac_optarg ;;
d6e9fb05
JK
885
886 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887 | --libexe | --libex | --libe)
888 ac_prev=libexecdir ;;
889 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890 | --libexe=* | --libex=* | --libe=*)
bec39cab 891 libexecdir=$ac_optarg ;;
d6e9fb05 892
81ecdfbb
RW
893 -localedir | --localedir | --localedi | --localed | --locale)
894 ac_prev=localedir ;;
895 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896 localedir=$ac_optarg ;;
897
d6e9fb05 898 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 899 | --localstate | --localstat | --localsta | --localst | --locals)
d6e9fb05
JK
900 ac_prev=localstatedir ;;
901 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 902 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 903 localstatedir=$ac_optarg ;;
d6e9fb05
JK
904
905 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906 ac_prev=mandir ;;
907 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 908 mandir=$ac_optarg ;;
d6e9fb05
JK
909
910 -nfp | --nfp | --nf)
911 # Obsolete; use --without-fp.
912 with_fp=no ;;
913
914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 915 | --no-cr | --no-c | -n)
d6e9fb05
JK
916 no_create=yes ;;
917
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920 no_recursion=yes ;;
921
922 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924 | --oldin | --oldi | --old | --ol | --o)
925 ac_prev=oldincludedir ;;
926 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 929 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
930
931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932 ac_prev=prefix ;;
933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 934 prefix=$ac_optarg ;;
d6e9fb05
JK
935
936 -program-prefix | --program-prefix | --program-prefi | --program-pref \
937 | --program-pre | --program-pr | --program-p)
938 ac_prev=program_prefix ;;
939 -program-prefix=* | --program-prefix=* | --program-prefi=* \
940 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 941 program_prefix=$ac_optarg ;;
d6e9fb05
JK
942
943 -program-suffix | --program-suffix | --program-suffi | --program-suff \
944 | --program-suf | --program-su | --program-s)
945 ac_prev=program_suffix ;;
946 -program-suffix=* | --program-suffix=* | --program-suffi=* \
947 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 948 program_suffix=$ac_optarg ;;
d6e9fb05
JK
949
950 -program-transform-name | --program-transform-name \
951 | --program-transform-nam | --program-transform-na \
952 | --program-transform-n | --program-transform- \
953 | --program-transform | --program-transfor \
954 | --program-transfo | --program-transf \
955 | --program-trans | --program-tran \
956 | --progr-tra | --program-tr | --program-t)
957 ac_prev=program_transform_name ;;
958 -program-transform-name=* | --program-transform-name=* \
959 | --program-transform-nam=* | --program-transform-na=* \
960 | --program-transform-n=* | --program-transform-=* \
961 | --program-transform=* | --program-transfor=* \
962 | --program-transfo=* | --program-transf=* \
963 | --program-trans=* | --program-tran=* \
964 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 965 program_transform_name=$ac_optarg ;;
d6e9fb05 966
81ecdfbb
RW
967 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968 ac_prev=pdfdir ;;
969 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 pdfdir=$ac_optarg ;;
971
972 -psdir | --psdir | --psdi | --psd | --ps)
973 ac_prev=psdir ;;
974 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 psdir=$ac_optarg ;;
976
d6e9fb05
JK
977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978 | -silent | --silent | --silen | --sile | --sil)
979 silent=yes ;;
980
981 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982 ac_prev=sbindir ;;
983 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984 | --sbi=* | --sb=*)
bec39cab 985 sbindir=$ac_optarg ;;
d6e9fb05
JK
986
987 -sharedstatedir | --sharedstatedir | --sharedstatedi \
988 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989 | --sharedst | --shareds | --shared | --share | --shar \
990 | --sha | --sh)
991 ac_prev=sharedstatedir ;;
992 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995 | --sha=* | --sh=*)
bec39cab 996 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
997
998 -site | --site | --sit)
999 ac_prev=site ;;
1000 -site=* | --site=* | --sit=*)
bec39cab 1001 site=$ac_optarg ;;
434c4c77 1002
d6e9fb05
JK
1003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004 ac_prev=srcdir ;;
1005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1006 srcdir=$ac_optarg ;;
d6e9fb05
JK
1007
1008 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009 | --syscon | --sysco | --sysc | --sys | --sy)
1010 ac_prev=sysconfdir ;;
1011 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1013 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
1014
1015 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1016 ac_prev=target_alias ;;
d6e9fb05 1017 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1018 target_alias=$ac_optarg ;;
d6e9fb05
JK
1019
1020 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021 verbose=yes ;;
1022
bec39cab
AC
1023 -version | --version | --versio | --versi | --vers | -V)
1024 ac_init_version=: ;;
d6e9fb05
JK
1025
1026 -with-* | --with-*)
81ecdfbb 1027 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 1028 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error "invalid package name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035"with_$ac_useropt"
1036"*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
dae5f5cf 1039 esac
81ecdfbb 1040 eval with_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
1041
1042 -without-* | --without-*)
81ecdfbb 1043 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 1044 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error "invalid package name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051"with_$ac_useropt"
1052"*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval with_$ac_useropt=no ;;
d6e9fb05
JK
1057
1058 --x)
1059 # Obsolete; use --with-x.
1060 with_x=yes ;;
1061
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev=x_includes ;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1067 x_includes=$ac_optarg ;;
d6e9fb05
JK
1068
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev=x_libraries ;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1074 x_libraries=$ac_optarg ;;
d6e9fb05 1075
81ecdfbb
RW
1076 -*) as_fn_error "unrecognized option: \`$ac_option'
1077Try \`$0 --help' for more information."
d6e9fb05
JK
1078 ;;
1079
bec39cab
AC
1080 *=*)
1081 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1082 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1083 case $ac_envvar in #(
1084 '' | [0-9]* | *[!_$as_cr_alnum]* )
1085 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1086 esac
1087 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1088 export $ac_envvar ;;
1089
d6e9fb05 1090 *)
bec39cab 1091 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1092 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1094 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
1096 ;;
1097
1098 esac
1099done
1100
1101if test -n "$ac_prev"; then
bec39cab 1102 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1103 as_fn_error "missing argument to $ac_option"
d6e9fb05 1104fi
d6e9fb05 1105
81ecdfbb
RW
1106if test -n "$ac_unrecognized_opts"; then
1107 case $enable_option_checking in
1108 no) ;;
1109 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1110 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
dae5f5cf 1111 esac
81ecdfbb 1112fi
dae5f5cf 1113
81ecdfbb
RW
1114# Check all directory arguments for consistency.
1115for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
dae5f5cf 1119do
81ecdfbb
RW
1120 eval ac_val=\$$ac_var
1121 # Remove trailing slashes.
1122 case $ac_val in
1123 */ )
1124 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1125 eval $ac_var=\$ac_val;;
1126 esac
1127 # Be sure to have absolute directory names.
dae5f5cf 1128 case $ac_val in
81ecdfbb
RW
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d6e9fb05 1131 esac
81ecdfbb 1132 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
d6e9fb05
JK
1133done
1134
bec39cab
AC
1135# There might be people who depend on the old broken behavior: `$host'
1136# used to hold the argument of --host etc.
1137# FIXME: To remove some day.
1138build=$build_alias
1139host=$host_alias
1140target=$target_alias
1141
1142# FIXME: To remove some day.
1143if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
81ecdfbb 1146 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1150 fi
1151fi
d6e9fb05 1152
bec39cab
AC
1153ac_tool_prefix=
1154test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156test "$silent" = yes && exec 6>/dev/null
d6e9fb05 1157
d6e9fb05 1158
81ecdfbb
RW
1159ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160ac_ls_di=`ls -di .` &&
1161ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 as_fn_error "working directory cannot be determined"
1163test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 as_fn_error "pwd does not report name of working directory"
1165
1166
d6e9fb05
JK
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169 ac_srcdir_defaulted=yes
81ecdfbb
RW
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir=`$as_dirname -- "$as_myself" ||
1172$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173 X"$as_myself" : 'X\(//\)[^/]' \| \
1174 X"$as_myself" : 'X\(//\)$' \| \
1175 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1176$as_echo X"$as_myself" |
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\/\)[^/].*/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\).*/{
1190 s//\1/
1191 q
1192 }
1193 s/.*/./; q'`
d6e9fb05 1194 srcdir=$ac_confdir
81ecdfbb 1195 if test ! -r "$srcdir/$ac_unique_file"; then
d6e9fb05
JK
1196 srcdir=..
1197 fi
1198else
1199 ac_srcdir_defaulted=no
1200fi
81ecdfbb
RW
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1204fi
1205ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206ac_abs_confdir=`(
1207 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1208 pwd)`
1209# When building in place, set srcdir=.
1210if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 srcdir=.
1212fi
1213# Remove unnecessary trailing slashes from srcdir.
1214# Double slashes in file names in object file debugging info
1215# mess up M-x gdb in Emacs.
1216case $srcdir in
1217*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1218esac
1219for ac_var in $ac_precious_vars; do
1220 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_env_${ac_var}_value=\$${ac_var}
1222 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224done
d6e9fb05 1225
bec39cab
AC
1226#
1227# Report the --help message.
1228#
1229if test "$ac_init_help" = "long"; then
1230 # Omit some internal or obsolete options to make the list less imposing.
1231 # This message is too long to be a string in the A/UX 3.1 sh.
1232 cat <<_ACEOF
1233\`configure' configures this package to adapt to many kinds of systems.
1234
1235Usage: $0 [OPTION]... [VAR=VALUE]...
1236
1237To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238VAR=VALUE. See below for descriptions of some of the useful variables.
1239
1240Defaults for the options are specified in brackets.
1241
1242Configuration:
1243 -h, --help display this help and exit
1244 --help=short display options specific to this package
1245 --help=recursive display the short help of all the included packages
1246 -V, --version display version information and exit
1247 -q, --quiet, --silent do not print \`checking...' messages
1248 --cache-file=FILE cache test results in FILE [disabled]
1249 -C, --config-cache alias for \`--cache-file=config.cache'
1250 -n, --no-create do not create output files
1251 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1252
bec39cab
AC
1253Installation directories:
1254 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1255 [$ac_default_prefix]
bec39cab 1256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1257 [PREFIX]
bec39cab
AC
1258
1259By default, \`make install' will install all the files in
1260\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1261an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262for instance \`--prefix=\$HOME'.
1263
1264For better control, use the options below.
1265
1266Fine tuning of the installation directories:
81ecdfbb
RW
1267 --bindir=DIR user executables [EPREFIX/bin]
1268 --sbindir=DIR system admin executables [EPREFIX/sbin]
1269 --libexecdir=DIR program executables [EPREFIX/libexec]
1270 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1271 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1272 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1273 --libdir=DIR object code libraries [EPREFIX/lib]
1274 --includedir=DIR C header files [PREFIX/include]
1275 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1276 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1277 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1278 --infodir=DIR info documentation [DATAROOTDIR/info]
1279 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1280 --mandir=DIR man documentation [DATAROOTDIR/man]
1281 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1282 --htmldir=DIR html documentation [DOCDIR]
1283 --dvidir=DIR dvi documentation [DOCDIR]
1284 --pdfdir=DIR pdf documentation [DOCDIR]
1285 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1286_ACEOF
1287
1288 cat <<\_ACEOF
1289
dcdb98d2
DJ
1290Program names:
1291 --program-prefix=PREFIX prepend PREFIX to installed program names
1292 --program-suffix=SUFFIX append SUFFIX to installed program names
1293 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1294
bec39cab
AC
1295System types:
1296 --build=BUILD configure for building on BUILD [guessed]
1297 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1298 --target=TARGET configure for building compilers for TARGET [HOST]
1299_ACEOF
1300fi
1301
1302if test -n "$ac_init_help"; then
1303
1304 cat <<\_ACEOF
1305
d4596a3d
PA
1306Optional Features:
1307 --disable-option-checking ignore unrecognized --enable/--with options
1308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1310 --enable-werror treat compile warnings as errors
1311
c16158bc
JM
1312Optional Packages:
1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0fb4aa4b
PA
1315 --with-ust=PATH Specify prefix directory for the installed UST package
1316 Equivalent to --with-ust-include=PATH/include
1317 plus --with-ust-lib=PATH/lib
1318 --with-ust-include=PATH Specify directory for installed UST include files
1319 --with-ust-lib=PATH Specify the directory for the installed UST library
c16158bc
JM
1320 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1321 --with-bugurl=URL Direct users to URL to report a bug
96f15937
PP
1322 --with-libthread-db=PATH
1323 use given libthread_db directly
c16158bc 1324
bec39cab
AC
1325Some influential environment variables:
1326 CC C compiler command
1327 CFLAGS C compiler flags
1328 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1329 nonstandard directory <lib dir>
81ecdfbb
RW
1330 LIBS libraries to pass to the linker, e.g. -l<library>
1331 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1332 you have headers in a nonstandard directory <include dir>
bec39cab
AC
1333 CPP C preprocessor
1334
1335Use these variables to override the choices made by `configure' or to help
1336it to find libraries and programs with nonstandard names/locations.
1337
81ecdfbb 1338Report bugs to the package provider.
bec39cab 1339_ACEOF
81ecdfbb 1340ac_status=$?
bec39cab
AC
1341fi
1342
1343if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
bec39cab 1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1346 test -d "$ac_dir" ||
1347 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1348 continue
bec39cab
AC
1349 ac_builddir=.
1350
81ecdfbb
RW
1351case "$ac_dir" in
1352.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353*)
1354 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 esac ;;
1361esac
1362ac_abs_top_builddir=$ac_pwd
1363ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364# for backward compatibility:
1365ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1366
1367case $srcdir in
81ecdfbb 1368 .) # We are building in place.
bec39cab 1369 ac_srcdir=.
81ecdfbb
RW
1370 ac_top_srcdir=$ac_top_builddir_sub
1371 ac_abs_top_srcdir=$ac_pwd ;;
1372 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1373 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1374 ac_top_srcdir=$srcdir
1375 ac_abs_top_srcdir=$srcdir ;;
1376 *) # Relative name.
1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dae5f5cf 1380esac
81ecdfbb
RW
1381ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383 cd "$ac_dir" || { ac_status=$?; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1386 echo &&
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure" --help=recursive
434c4c77 1391 else
81ecdfbb
RW
1392 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 fi || ac_status=$?
1394 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1395 done
1396fi
1397
81ecdfbb 1398test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1399if $ac_init_version; then
1400 cat <<\_ACEOF
81ecdfbb
RW
1401configure
1402generated by GNU Autoconf 2.64
bec39cab 1403
81ecdfbb 1404Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1405This configure script is free software; the Free Software Foundation
1406gives unlimited permission to copy, distribute and modify it.
1407_ACEOF
81ecdfbb 1408 exit
bec39cab 1409fi
bec39cab 1410
81ecdfbb
RW
1411## ------------------------ ##
1412## Autoconf initialization. ##
1413## ------------------------ ##
bec39cab 1414
81ecdfbb
RW
1415# ac_fn_c_try_compile LINENO
1416# --------------------------
1417# Try to compile conftest.$ac_ext, and return whether this succeeded.
1418ac_fn_c_try_compile ()
bec39cab 1419{
81ecdfbb
RW
1420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421 rm -f conftest.$ac_objext
1422 if { { ac_try="$ac_compile"
1423case "(($ac_try" in
1424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1426esac
1427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428$as_echo "$ac_try_echo"; } >&5
1429 (eval "$ac_compile") 2>conftest.err
1430 ac_status=$?
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1435 fi
1436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } && {
1438 test -z "$ac_c_werror_flag" ||
1439 test ! -s conftest.err
1440 } && test -s conftest.$ac_objext; then :
1441 ac_retval=0
1442else
1443 $as_echo "$as_me: failed program was:" >&5
1444sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1445
81ecdfbb
RW
1446 ac_retval=1
1447fi
1448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1449 return $ac_retval
bec39cab 1450
81ecdfbb 1451} # ac_fn_c_try_compile
bec39cab 1452
81ecdfbb
RW
1453# ac_fn_c_try_cpp LINENO
1454# ----------------------
1455# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1456ac_fn_c_try_cpp ()
1457{
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 if { { ac_try="$ac_cpp conftest.$ac_ext"
1460case "(($ac_try" in
1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462 *) ac_try_echo=$ac_try;;
1463esac
1464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465$as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1467 ac_status=$?
1468 if test -s conftest.err; then
1469 grep -v '^ *+' conftest.err >conftest.er1
1470 cat conftest.er1 >&5
1471 mv -f conftest.er1 conftest.err
1472 fi
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } >/dev/null && {
1475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1477 }; then :
1478 ac_retval=0
1479else
1480 $as_echo "$as_me: failed program was:" >&5
1481sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1482
81ecdfbb
RW
1483 ac_retval=1
1484fi
1485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1486 return $ac_retval
bec39cab 1487
81ecdfbb
RW
1488} # ac_fn_c_try_cpp
1489
1490# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1491# -------------------------------------------------------
1492# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1493# the include files in INCLUDES and setting the cache variable VAR
1494# accordingly.
1495ac_fn_c_check_header_mongrel ()
1496{
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500$as_echo_n "checking for $2... " >&6; }
1501if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1502 $as_echo_n "(cached) " >&6
1503fi
1504eval ac_res=\$$3
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506$as_echo "$ac_res" >&6; }
1507else
1508 # Is the header compilable?
1509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1510$as_echo_n "checking $2 usability... " >&6; }
1511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512/* end confdefs.h. */
1513$4
1514#include <$2>
1515_ACEOF
1516if ac_fn_c_try_compile "$LINENO"; then :
1517 ac_header_compiler=yes
1518else
1519 ac_header_compiler=no
1520fi
1521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1523$as_echo "$ac_header_compiler" >&6; }
1524
1525# Is the header present?
1526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1527$as_echo_n "checking $2 presence... " >&6; }
1528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529/* end confdefs.h. */
1530#include <$2>
1531_ACEOF
1532if ac_fn_c_try_cpp "$LINENO"; then :
1533 ac_header_preproc=yes
1534else
1535 ac_header_preproc=no
1536fi
1537rm -f conftest.err conftest.$ac_ext
1538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1539$as_echo "$ac_header_preproc" >&6; }
1540
1541# So? What about this header?
1542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1543 yes:no: )
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1545$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1547$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1548 ;;
1549 no:yes:* )
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1551$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1553$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1555$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1557$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1559$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1560 ;;
1561esac
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563$as_echo_n "checking for $2... " >&6; }
1564if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565 $as_echo_n "(cached) " >&6
1566else
1567 eval "$3=\$ac_header_compiler"
1568fi
1569eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572fi
1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574
1575} # ac_fn_c_check_header_mongrel
1576
1577# ac_fn_c_try_run LINENO
1578# ----------------------
1579# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580# that executables *can* be run.
1581ac_fn_c_try_run ()
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_link"
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>&5
1592 ac_status=$?
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595 { { case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_try") 2>&5
1602 ac_status=$?
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; }; }; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: program exited with status $ac_status" >&5
1608 $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=$ac_status
1612fi
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 return $ac_retval
1616
1617} # ac_fn_c_try_run
1618
1619# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620# -------------------------------------------------------
1621# Tests whether HEADER exists and can be compiled using the include files in
1622# INCLUDES, setting the cache variable VAR accordingly.
1623ac_fn_c_check_header_compile ()
1624{
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627$as_echo_n "checking for $2... " >&6; }
1628if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1629 $as_echo_n "(cached) " >&6
1630else
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h. */
1633$4
1634#include <$2>
1635_ACEOF
1636if ac_fn_c_try_compile "$LINENO"; then :
1637 eval "$3=yes"
1638else
1639 eval "$3=no"
1640fi
1641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642fi
1643eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645$as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647
1648} # ac_fn_c_check_header_compile
1649
1650# ac_fn_c_try_link LINENO
1651# -----------------------
1652# Try to link conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_link ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext conftest$ac_exeext
1657 if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest$ac_exeext && {
1676 test "$cross_compiling" = yes ||
1677 $as_test_x conftest$ac_exeext
1678 }; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 return $ac_retval
1693
1694} # ac_fn_c_try_link
1695
1696# ac_fn_c_check_func LINENO FUNC VAR
1697# ----------------------------------
1698# Tests whether FUNC exists, setting the cache variable VAR accordingly
1699ac_fn_c_check_func ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
1704if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1705 $as_echo_n "(cached) " >&6
1706else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1711#define $2 innocuous_$2
1712
1713/* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char $2 (); below.
1715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1716 <limits.h> exists even on freestanding compilers. */
1717
1718#ifdef __STDC__
1719# include <limits.h>
1720#else
1721# include <assert.h>
1722#endif
1723
1724#undef $2
1725
1726/* Override any GCC internal prototype to avoid an error.
1727 Use char because int might match the return type of a GCC
1728 builtin and then its argument prototype would still apply. */
1729#ifdef __cplusplus
1730extern "C"
1731#endif
1732char $2 ();
1733/* The GNU C library defines this for functions which it implements
1734 to always fail with ENOSYS. Some functions are actually named
1735 something starting with __ and the normal name is an alias. */
1736#if defined __stub_$2 || defined __stub___$2
1737choke me
1738#endif
1739
1740int
1741main ()
1742{
1743return $2 ();
1744 ;
1745 return 0;
1746}
1747_ACEOF
1748if ac_fn_c_try_link "$LINENO"; then :
1749 eval "$3=yes"
1750else
1751 eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext \
1754 conftest$ac_exeext conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760
1761} # ac_fn_c_check_func
1762
1763# ac_fn_c_check_decl LINENO SYMBOL VAR
1764# ------------------------------------
1765# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1766ac_fn_c_check_decl ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0fb4aa4b
PA
1769 as_decl_name=`echo $2|sed 's/ *(.*//'`
1770 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1772$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1773if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h. */
1778$4
1779int
1780main ()
1781{
0fb4aa4b
PA
1782#ifndef $as_decl_name
1783#ifdef __cplusplus
1784 (void) $as_decl_use;
1785#else
1786 (void) $as_decl_name;
1787#endif
81ecdfbb
RW
1788#endif
1789
1790 ;
1791 return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796else
1797 eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
1806} # ac_fn_c_check_decl
1807
1808# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809# -------------------------------------------
1810# Tests whether TYPE exists after having included INCLUDES, setting cache
1811# variable VAR accordingly.
1812ac_fn_c_check_type ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819else
1820 eval "$3=no"
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h. */
1823$4
1824int
1825main ()
1826{
1827if (sizeof ($2))
1828 return 0;
1829 ;
1830 return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836$4
1837int
1838main ()
1839{
1840if (sizeof (($2)))
1841 return 0;
1842 ;
1843 return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_compile "$LINENO"; then :
1847
1848else
1849 eval "$3=yes"
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852fi
1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860} # ac_fn_c_check_type
1861cat >config.log <<_ACEOF
1862This file contains any messages produced by compilers while
1863running configure, to aid debugging if configure makes a mistake.
1864
1865It was created by $as_me, which was
1866generated by GNU Autoconf 2.64. Invocation command line was
1867
1868 $ $0 $@
1869
1870_ACEOF
1871exec 5>>config.log
1872{
1873cat <<_ASUNAME
1874## --------- ##
1875## Platform. ##
1876## --------- ##
1877
1878hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886
1887/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1891/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894
1895_ASUNAME
1896
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 $as_echo "PATH: $as_dir"
1903 done
1904IFS=$as_save_IFS
1905
1906} >&5
1907
1908cat >&5 <<_ACEOF
1909
1910
1911## ----------- ##
1912## Core tests. ##
1913## ----------- ##
bec39cab
AC
1914
1915_ACEOF
1916
1917
1918# Keep a trace of the command line.
1919# Strip out --no-create and --no-recursion so they do not pile up.
1920# Strip out --silent because we don't want to record it for future runs.
1921# Also quote any args containing shell meta-characters.
1922# Make two passes to allow for proper duplicate-argument suppression.
1923ac_configure_args=
1924ac_configure_args0=
1925ac_configure_args1=
bec39cab
AC
1926ac_must_keep_next=false
1927for ac_pass in 1 2
1928do
1929 for ac_arg
1930 do
1931 case $ac_arg in
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1935 continue ;;
81ecdfbb
RW
1936 *\'*)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1938 esac
1939 case $ac_pass in
81ecdfbb 1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 1941 2)
81ecdfbb 1942 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1945 else
1946 case $ac_arg in
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953 esac
1954 ;;
1955 -* ) ac_must_keep_next=true ;;
1956 esac
1957 fi
81ecdfbb 1958 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
1959 ;;
1960 esac
1961 done
1962done
81ecdfbb
RW
1963{ ac_configure_args0=; unset ac_configure_args0;}
1964{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
1965
1966# When interrupted or exit'd, cleanup temporary files, and complete
1967# config.log. We remove comments because anyway the quotes in there
1968# would cause problems or look ugly.
81ecdfbb
RW
1969# WARNING: Use '\'' to represent an apostrophe within the trap.
1970# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
1971trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 cat <<\_ASBOX
1977## ---------------- ##
1978## Cache variables. ##
1979## ---------------- ##
1980_ASBOX
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1983(
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
bec39cab 1999 (set) 2>&1 |
81ecdfbb
RW
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
bec39cab 2002 sed -n \
81ecdfbb
RW
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
bec39cab 2006 *)
81ecdfbb 2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 2008 ;;
81ecdfbb
RW
2009 esac |
2010 sort
2011)
bec39cab
AC
2012 echo
2013
2014 cat <<\_ASBOX
2015## ----------------- ##
2016## Output variables. ##
2017## ----------------- ##
2018_ASBOX
2019 echo
2020 for ac_var in $ac_subst_vars
2021 do
81ecdfbb
RW
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2027 done | sort
2028 echo
2029
2030 if test -n "$ac_subst_files"; then
2031 cat <<\_ASBOX
81ecdfbb
RW
2032## ------------------- ##
2033## File substitutions. ##
2034## ------------------- ##
bec39cab
AC
2035_ASBOX
2036 echo
2037 for ac_var in $ac_subst_files
2038 do
81ecdfbb
RW
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2044 done | sort
2045 echo
434c4c77 2046 fi
bec39cab
AC
2047
2048 if test -s confdefs.h; then
2049 cat <<\_ASBOX
2050## ----------- ##
2051## confdefs.h. ##
2052## ----------- ##
2053_ASBOX
2054 echo
81ecdfbb 2055 cat confdefs.h
bec39cab
AC
2056 echo
2057 fi
2058 test "$ac_signal" != 0 &&
81ecdfbb
RW
2059 $as_echo "$as_me: caught signal $ac_signal"
2060 $as_echo "$as_me: exit $exit_status"
bec39cab 2061 } >&5
81ecdfbb
RW
2062 rm -f core *.core core.conftest.* &&
2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 2064 exit $exit_status
81ecdfbb 2065' 0
bec39cab 2066for ac_signal in 1 2 13 15; do
81ecdfbb 2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
2068done
2069ac_signal=0
2070
2071# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2072rm -f -r conftest* confdefs.h
2073
2074$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
2075
2076# Predefined preprocessor variables.
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_NAME "$PACKAGE_NAME"
2080_ACEOF
2081
bec39cab
AC
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084_ACEOF
2085
bec39cab
AC
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_VERSION "$PACKAGE_VERSION"
2088_ACEOF
2089
bec39cab
AC
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_STRING "$PACKAGE_STRING"
2092_ACEOF
2093
bec39cab
AC
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096_ACEOF
2097
81ecdfbb
RW
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_URL "$PACKAGE_URL"
2100_ACEOF
2101
bec39cab
AC
2102
2103# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2104# Prefer an explicitly selected file to automatically selected ones.
2105ac_site_file1=NONE
2106ac_site_file2=NONE
2107if test -n "$CONFIG_SITE"; then
2108 ac_site_file1=$CONFIG_SITE
2109elif test "x$prefix" != xNONE; then
2110 ac_site_file1=$prefix/share/config.site
2111 ac_site_file2=$prefix/etc/config.site
2112else
2113 ac_site_file1=$ac_default_prefix/share/config.site
2114 ac_site_file2=$ac_default_prefix/etc/config.site
d6e9fb05 2115fi
81ecdfbb
RW
2116for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117do
2118 test "x$ac_site_file" = xNONE && continue
d6e9fb05 2119 if test -r "$ac_site_file"; then
81ecdfbb
RW
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 2122 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
2123 . "$ac_site_file"
2124 fi
2125done
2126
2127if test -r "$cache_file"; then
bec39cab
AC
2128 # Some versions of bash will fail to source /dev/null (special
2129 # files actually), so we avoid doing that.
2130 if test -f "$cache_file"; then
81ecdfbb
RW
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 2133 case $cache_file in
81ecdfbb
RW
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
bec39cab
AC
2136 esac
2137 fi
d6e9fb05 2138else
81ecdfbb
RW
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 2141 >$cache_file
d6e9fb05
JK
2142fi
2143
bec39cab
AC
2144# Check that the precious variables saved in the cache have kept the same
2145# value.
2146ac_cache_corrupted=false
81ecdfbb 2147for ac_var in $ac_precious_vars; do
bec39cab
AC
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
2152 case $ac_old_set,$ac_new_set in
2153 set,)
81ecdfbb
RW
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
2156 ac_cache_corrupted=: ;;
2157 ,set)
81ecdfbb
RW
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
2160 ac_cache_corrupted=: ;;
2161 ,);;
2162 *)
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w=`echo x $ac_old_val`
2166 ac_new_val_w=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted=:
2171 else
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\$ac_old_val
2175 fi
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2177$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2179$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
2180 fi;;
2181 esac
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2184 case $ac_new_val in
81ecdfbb 2185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2186 *) ac_arg=$ac_var=$ac_new_val ;;
2187 esac
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2190 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 2191 esac
d6e9fb05 2192 fi
bec39cab
AC
2193done
2194if $ac_cache_corrupted; then
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d6e9fb05 2200fi
81ecdfbb
RW
2201## -------------------- ##
2202## Main body of script. ##
2203## -------------------- ##
d6e9fb05 2204
dae5f5cf
DJ
2205ac_ext=c
2206ac_cpp='$CPP $CPPFLAGS'
2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
d6e9fb05 2211
84563040 2212
bec39cab
AC
2213
2214
81ecdfbb 2215ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab
AC
2216
2217
e28b3332 2218
bec39cab
AC
2219ac_ext=c
2220ac_cpp='$CPP $CPPFLAGS'
2221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2226set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2228$as_echo_n "checking for $ac_word... " >&6; }
2229if test "${ac_cv_prog_CC+set}" = set; then :
2230 $as_echo_n "(cached) " >&6
84563040
DJ
2231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
bec39cab
AC
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2242 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2244 break 2
2245 fi
2246done
81ecdfbb
RW
2247 done
2248IFS=$as_save_IFS
bec39cab 2249
84563040
DJ
2250fi
2251fi
bec39cab 2252CC=$ac_cv_prog_CC
84563040 2253if test -n "$CC"; then
81ecdfbb
RW
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2255$as_echo "$CC" >&6; }
84563040 2256else
81ecdfbb
RW
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2258$as_echo "no" >&6; }
84563040
DJ
2259fi
2260
81ecdfbb 2261
bec39cab
AC
2262fi
2263if test -z "$ac_cv_prog_CC"; then
2264 ac_ct_CC=$CC
2265 # Extract the first word of "gcc", so it can be a program name with args.
2266set dummy gcc; ac_word=$2
81ecdfbb
RW
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2268$as_echo_n "checking for $ac_word... " >&6; }
2269if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2270 $as_echo_n "(cached) " >&6
84563040 2271else
bec39cab
AC
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 2274else
bec39cab
AC
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2282 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2284 break 2
2285 fi
2286done
81ecdfbb
RW
2287 done
2288IFS=$as_save_IFS
bec39cab
AC
2289
2290fi
2291fi
2292ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2295$as_echo "$ac_ct_CC" >&6; }
bec39cab 2296else
81ecdfbb
RW
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2298$as_echo "no" >&6; }
bec39cab
AC
2299fi
2300
81ecdfbb
RW
2301 if test "x$ac_ct_CC" = x; then
2302 CC=""
2303 else
2304 case $cross_compiling:$ac_tool_warned in
2305yes:)
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2308ac_tool_warned=yes ;;
2309esac
2310 CC=$ac_ct_CC
2311 fi
bec39cab
AC
2312else
2313 CC="$ac_cv_prog_CC"
2314fi
2315
2316if test -z "$CC"; then
81ecdfbb
RW
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2319set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321$as_echo_n "checking for $ac_word... " >&6; }
2322if test "${ac_cv_prog_CC+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
bec39cab
AC
2324else
2325 if test -n "$CC"; then
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
2327else
2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH
2330do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2335 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2337 break 2
2338 fi
2339done
81ecdfbb
RW
2340 done
2341IFS=$as_save_IFS
bec39cab
AC
2342
2343fi
2344fi
2345CC=$ac_cv_prog_CC
2346if test -n "$CC"; then
81ecdfbb
RW
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2348$as_echo "$CC" >&6; }
bec39cab 2349else
81ecdfbb
RW
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351$as_echo "no" >&6; }
bec39cab
AC
2352fi
2353
81ecdfbb
RW
2354
2355 fi
dae5f5cf 2356fi
81ecdfbb 2357if test -z "$CC"; then
dae5f5cf
DJ
2358 # Extract the first word of "cc", so it can be a program name with args.
2359set dummy cc; ac_word=$2
81ecdfbb
RW
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2361$as_echo_n "checking for $ac_word... " >&6; }
2362if test "${ac_cv_prog_CC+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
dae5f5cf 2364else
81ecdfbb
RW
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
dae5f5cf 2367else
81ecdfbb 2368 ac_prog_rejected=no
dae5f5cf
DJ
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected=yes
2378 continue
2379 fi
2380 ac_cv_prog_CC="cc"
2381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dae5f5cf 2382 break 2
b80864fb 2383 fi
dae5f5cf 2384done
81ecdfbb
RW
2385 done
2386IFS=$as_save_IFS
bec39cab 2387
84563040
DJ
2388if test $ac_prog_rejected = yes; then
2389 # We found a bogon in the path, so make sure we never use it.
2390 set dummy $ac_cv_prog_CC
2391 shift
bec39cab 2392 if test $# != 0; then
84563040
DJ
2393 # We chose a different compiler from the bogus one.
2394 # However, it has the same basename, so the bogon will be chosen
2395 # first if we set CC to just the basename; use the full file name.
2396 shift
bec39cab 2397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
2398 fi
2399fi
2400fi
2401fi
bec39cab 2402CC=$ac_cv_prog_CC
84563040 2403if test -n "$CC"; then
81ecdfbb
RW
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2405$as_echo "$CC" >&6; }
84563040 2406else
81ecdfbb
RW
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408$as_echo "no" >&6; }
84563040
DJ
2409fi
2410
81ecdfbb 2411
bec39cab
AC
2412fi
2413if test -z "$CC"; then
2414 if test -n "$ac_tool_prefix"; then
81ecdfbb 2415 for ac_prog in cl.exe
bec39cab
AC
2416 do
2417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420$as_echo_n "checking for $ac_word... " >&6; }
2421if test "${ac_cv_prog_CC+set}" = set; then :
2422 $as_echo_n "(cached) " >&6
84563040
DJ
2423else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426else
bec39cab
AC
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2436 break 2
2437 fi
2438done
81ecdfbb
RW
2439 done
2440IFS=$as_save_IFS
bec39cab 2441
84563040
DJ
2442fi
2443fi
bec39cab 2444CC=$ac_cv_prog_CC
84563040 2445if test -n "$CC"; then
81ecdfbb
RW
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447$as_echo "$CC" >&6; }
84563040 2448else
81ecdfbb
RW
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450$as_echo "no" >&6; }
84563040 2451fi
bec39cab 2452
81ecdfbb 2453
bec39cab
AC
2454 test -n "$CC" && break
2455 done
2456fi
2457if test -z "$CC"; then
2458 ac_ct_CC=$CC
81ecdfbb 2459 for ac_prog in cl.exe
bec39cab
AC
2460do
2461 # Extract the first word of "$ac_prog", so it can be a program name with args.
2462set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
2465if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
bec39cab
AC
2467else
2468 if test -n "$ac_ct_CC"; then
2469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470else
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2478 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 2480 break 2
84563040 2481 fi
bec39cab 2482done
81ecdfbb
RW
2483 done
2484IFS=$as_save_IFS
bec39cab
AC
2485
2486fi
2487fi
2488ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2491$as_echo "$ac_ct_CC" >&6; }
bec39cab 2492else
81ecdfbb
RW
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494$as_echo "no" >&6; }
84563040
DJ
2495fi
2496
81ecdfbb 2497
bec39cab
AC
2498 test -n "$ac_ct_CC" && break
2499done
84563040 2500
81ecdfbb
RW
2501 if test "x$ac_ct_CC" = x; then
2502 CC=""
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505yes:)
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508ac_tool_warned=yes ;;
2509esac
2510 CC=$ac_ct_CC
2511 fi
bec39cab
AC
2512fi
2513
2514fi
2515
2516
81ecdfbb
RW
2517test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519as_fn_error "no acceptable C compiler found in \$PATH
2520See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2521
2522# Provide some information about the compiler.
81ecdfbb
RW
2523$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2524set X $ac_compile
2525ac_compiler=$2
2526for ac_option in --version -v -V -qversion; do
2527 { { ac_try="$ac_compiler $ac_option >&5"
2528case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2533$as_echo "$ac_try_echo"; } >&5
2534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2535 ac_status=$?
81ecdfbb
RW
2536 if test -s conftest.err; then
2537 sed '10a\
2538... rest of stderr output deleted ...
2539 10q' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 rm -f conftest.er1 conftest.err
2542 fi
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; }
2545done
bec39cab 2546
81ecdfbb 2547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2548/* end confdefs.h. */
2549
2550int
2551main ()
2552{
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558ac_clean_files_save=$ac_clean_files
81ecdfbb 2559ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2560# Try to create an executable without -o first, disregard a.out.
2561# It will help us diagnose broken compilers, and finding out an intuition
2562# of exeext.
81ecdfbb
RW
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2564$as_echo_n "checking for C compiler default output file name... " >&6; }
2565ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2566
2567# The possible output files:
2568ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2569
2570ac_rmfiles=
2571for ac_file in $ac_files
2572do
2573 case $ac_file in
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2575 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2576 esac
2577done
2578rm -f $ac_rmfiles
2579
2580if { { ac_try="$ac_link_default"
2581case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586$as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link_default") 2>&5
bec39cab 2588 ac_status=$?
81ecdfbb
RW
2589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590 test $ac_status = 0; }; then :
2591 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2592# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2593# in a Makefile. We should not override ac_cv_exeext if it was cached,
2594# so that the user can short-circuit this test for compilers unknown to
2595# Autoconf.
2596for ac_file in $ac_files ''
bec39cab
AC
2597do
2598 test -f "$ac_file" || continue
2599 case $ac_file in
81ecdfbb 2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2601 ;;
2602 [ab].out )
2603 # We found the default executable, but exeext='' is most
2604 # certainly right.
2605 break;;
2606 *.* )
81ecdfbb
RW
2607 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2608 then :; else
2609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2610 fi
2611 # We set ac_cv_exeext here because the later test for it is not
2612 # safe: cross compilers may not add the suffix if given an `-o'
2613 # argument, so we may need to know it at that point already.
2614 # Even if this section looks crufty: it has the advantage of
2615 # actually working.
bec39cab
AC
2616 break;;
2617 * )
2618 break;;
2619 esac
2620done
81ecdfbb
RW
2621test "$ac_cv_exeext" = no && ac_cv_exeext=
2622
bec39cab 2623else
81ecdfbb
RW
2624 ac_file=''
2625fi
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2627$as_echo "$ac_file" >&6; }
2628if test -z "$ac_file"; then :
2629 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
81ecdfbb
RW
2632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634{ as_fn_set_status 77
2635as_fn_error "C compiler cannot create executables
2636See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 2637fi
bec39cab 2638ac_exeext=$ac_cv_exeext
bec39cab 2639
81ecdfbb 2640# Check that the compiler produces executables we can run. If not, either
bec39cab 2641# the compiler is broken, or we cross compile.
81ecdfbb
RW
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2643$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
2644# If not cross compiling, check that we can run a simple program.
2645if test "$cross_compiling" != yes; then
2646 if { ac_try='./$ac_file'
81ecdfbb
RW
2647 { { case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650esac
2651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652$as_echo "$ac_try_echo"; } >&5
2653 (eval "$ac_try") 2>&5
bec39cab 2654 ac_status=$?
81ecdfbb
RW
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }; }; then
bec39cab 2657 cross_compiling=no
84563040 2658 else
bec39cab
AC
2659 if test "$cross_compiling" = maybe; then
2660 cross_compiling=yes
2661 else
81ecdfbb
RW
2662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664as_fn_error "cannot run C compiled programs.
bec39cab 2665If you meant to cross compile, use \`--host'.
81ecdfbb 2666See \`config.log' for more details." "$LINENO" 5; }
bec39cab 2667 fi
84563040 2668 fi
84563040 2669fi
81ecdfbb
RW
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
bec39cab 2672
81ecdfbb 2673rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 2674ac_clean_files=$ac_clean_files_save
81ecdfbb 2675# Check that the compiler produces executables we can run. If not, either
bec39cab 2676# the compiler is broken, or we cross compile.
81ecdfbb
RW
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2678$as_echo_n "checking whether we are cross compiling... " >&6; }
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2680$as_echo "$cross_compiling" >&6; }
2681
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2683$as_echo_n "checking for suffix of executables... " >&6; }
2684if { { ac_try="$ac_link"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
2689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2690$as_echo "$ac_try_echo"; } >&5
2691 (eval "$ac_link") 2>&5
bec39cab 2692 ac_status=$?
81ecdfbb
RW
2693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2694 test $ac_status = 0; }; then :
bec39cab
AC
2695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2696# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2697# work properly (i.e., refer to `conftest.exe'), while it won't with
2698# `rm'.
2699for ac_file in conftest.exe conftest conftest.*; do
2700 test -f "$ac_file" || continue
2701 case $ac_file in
81ecdfbb 2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 2703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
2704 break;;
2705 * ) break;;
2706 esac
2707done
84563040 2708else
81ecdfbb
RW
2709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711as_fn_error "cannot compute suffix of executables: cannot compile and link
2712See \`config.log' for more details." "$LINENO" 5; }
84563040 2713fi
bec39cab 2714rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2716$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
2717
2718rm -f conftest.$ac_ext
2719EXEEXT=$ac_cv_exeext
2720ac_exeext=$EXEEXT
81ecdfbb
RW
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2722$as_echo_n "checking for suffix of object files... " >&6; }
2723if test "${ac_cv_objext+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
bec39cab 2725else
81ecdfbb 2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2727/* end confdefs.h. */
2728
2729int
2730main ()
2731{
2732
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737rm -f conftest.o conftest.obj
81ecdfbb
RW
2738if { { ac_try="$ac_compile"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744$as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_compile") 2>&5
bec39cab 2746 ac_status=$?
81ecdfbb
RW
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
2749 for ac_file in conftest.o conftest.obj conftest.*; do
2750 test -f "$ac_file" || continue;
bec39cab 2751 case $ac_file in
81ecdfbb 2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
2753 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2754 break;;
2755 esac
2756done
2757else
81ecdfbb 2758 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
81ecdfbb
RW
2761{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763as_fn_error "cannot compute suffix of object files: cannot compile
2764See \`config.log' for more details." "$LINENO" 5; }
84563040 2765fi
bec39cab
AC
2766rm -f conftest.$ac_cv_objext conftest.$ac_ext
2767fi
81ecdfbb
RW
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2769$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
2770OBJEXT=$ac_cv_objext
2771ac_objext=$OBJEXT
81ecdfbb
RW
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2773$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2774if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
bec39cab 2776else
81ecdfbb 2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2778/* end confdefs.h. */
2779
2780int
2781main ()
2782{
2783#ifndef __GNUC__
2784 choke me
2785#endif
84563040 2786
bec39cab
AC
2787 ;
2788 return 0;
2789}
2790_ACEOF
81ecdfbb 2791if ac_fn_c_try_compile "$LINENO"; then :
bec39cab 2792 ac_compiler_gnu=yes
84563040 2793else
81ecdfbb 2794 ac_compiler_gnu=no
84563040 2795fi
81ecdfbb 2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2797ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 2798
bec39cab 2799fi
81ecdfbb
RW
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2801$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2802if test $ac_compiler_gnu = yes; then
2803 GCC=yes
2804else
2805 GCC=
2806fi
bec39cab
AC
2807ac_test_CFLAGS=${CFLAGS+set}
2808ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2810$as_echo_n "checking whether $CC accepts -g... " >&6; }
2811if test "${ac_cv_prog_cc_g+set}" = set; then :
2812 $as_echo_n "(cached) " >&6
2813else
2814 ac_save_c_werror_flag=$ac_c_werror_flag
2815 ac_c_werror_flag=yes
2816 ac_cv_prog_cc_g=no
2817 CFLAGS="-g"
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2819/* end confdefs.h. */
2820
2821int
2822main ()
2823{
2824
2825 ;
2826 return 0;
2827}
2828_ACEOF
81ecdfbb 2829if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
2830 ac_cv_prog_cc_g=yes
2831else
81ecdfbb
RW
2832 CFLAGS=""
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835
2836int
2837main ()
2838{
2839
2840 ;
2841 return 0;
2842}
2843_ACEOF
2844if ac_fn_c_try_compile "$LINENO"; then :
2845
2846else
2847 ac_c_werror_flag=$ac_save_c_werror_flag
2848 CFLAGS="-g"
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851
2852int
2853main ()
2854{
84563040 2855
81ecdfbb
RW
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860if ac_fn_c_try_compile "$LINENO"; then :
2861 ac_cv_prog_cc_g=yes
2862fi
2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 2864fi
81ecdfbb 2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2866fi
81ecdfbb
RW
2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2869fi
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2871$as_echo "$ac_cv_prog_cc_g" >&6; }
84563040 2872if test "$ac_test_CFLAGS" = set; then
bec39cab 2873 CFLAGS=$ac_save_CFLAGS
84563040
DJ
2874elif test $ac_cv_prog_cc_g = yes; then
2875 if test "$GCC" = yes; then
2876 CFLAGS="-g -O2"
2877 else
2878 CFLAGS="-g"
2879 fi
2880else
2881 if test "$GCC" = yes; then
2882 CFLAGS="-O2"
2883 else
2884 CFLAGS=
2885 fi
2886fi
81ecdfbb
RW
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2888$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2889if test "${ac_cv_prog_cc_c89+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
bec39cab 2891else
81ecdfbb 2892 ac_cv_prog_cc_c89=no
bec39cab 2893ac_save_CC=$CC
81ecdfbb 2894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2895/* end confdefs.h. */
2896#include <stdarg.h>
2897#include <stdio.h>
2898#include <sys/types.h>
2899#include <sys/stat.h>
2900/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2901struct buf { int x; };
2902FILE * (*rcsopen) (struct buf *, struct stat *, int);
2903static char *e (p, i)
2904 char **p;
2905 int i;
2906{
2907 return p[i];
2908}
2909static char *f (char * (*g) (char **, int), char **p, ...)
2910{
2911 char *s;
2912 va_list v;
2913 va_start (v,p);
2914 s = g (p, va_arg (v,int));
2915 va_end (v);
2916 return s;
2917}
2918
2919/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2920 function prototypes and stuff, but not '\xHH' hex character constants.
2921 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2922 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
2923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2924 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2925 that's true only with -std. */
bec39cab
AC
2926int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2927
81ecdfbb
RW
2928/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2929 inside strings and character constants. */
2930#define FOO(x) 'x'
2931int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2932
bec39cab
AC
2933int test (int i, double x);
2934struct s1 {int (*f) (int a);};
2935struct s2 {int (*f) (double a);};
2936int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937int argc;
2938char **argv;
2939int
2940main ()
2941{
2942return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2943 ;
2944 return 0;
2945}
2946_ACEOF
81ecdfbb
RW
2947for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2949do
2950 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
2951 if ac_fn_c_try_compile "$LINENO"; then :
2952 ac_cv_prog_cc_c89=$ac_arg
bec39cab 2953fi
81ecdfbb
RW
2954rm -f core conftest.err conftest.$ac_objext
2955 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 2956done
81ecdfbb 2957rm -f conftest.$ac_ext
bec39cab
AC
2958CC=$ac_save_CC
2959
2960fi
81ecdfbb
RW
2961# AC_CACHE_VAL
2962case "x$ac_cv_prog_cc_c89" in
2963 x)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2965$as_echo "none needed" >&6; } ;;
2966 xno)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2968$as_echo "unsupported" >&6; } ;;
bec39cab 2969 *)
81ecdfbb
RW
2970 CC="$CC $ac_cv_prog_cc_c89"
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2972$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 2973esac
81ecdfbb 2974if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab 2975
dae5f5cf
DJ
2976fi
2977
dae5f5cf 2978ac_ext=c
bec39cab
AC
2979ac_cpp='$CPP $CPPFLAGS'
2980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040
DJ
2983
2984
81ecdfbb
RW
2985ac_ext=c
2986ac_cpp='$CPP $CPPFLAGS'
2987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2991$as_echo_n "checking how to run the C preprocessor... " >&6; }
2992# On Suns, sometimes $CPP names a directory.
2993if test -n "$CPP" && test -d "$CPP"; then
2994 CPP=
2995fi
2996if test -z "$CPP"; then
2997 if test "${ac_cv_prog_CPP+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999else
3000 # Double quotes because CPP needs to be expanded
3001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002 do
3003 ac_preproc_ok=false
3004for ac_c_preproc_warn_flag in '' yes
3005do
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h. */
3014#ifdef __STDC__
3015# include <limits.h>
3016#else
3017# include <assert.h>
3018#endif
3019 Syntax error
fd462a61 3020_ACEOF
81ecdfbb 3021if ac_fn_c_try_cpp "$LINENO"; then :
fd462a61 3022
81ecdfbb
RW
3023else
3024 # Broken: fails on valid input.
3025continue
3026fi
3027rm -f conftest.err conftest.$ac_ext
fd462a61 3028
81ecdfbb
RW
3029 # OK, works on sane cases. Now check whether nonexistent headers
3030 # can be detected and how.
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032/* end confdefs.h. */
3033#include <ac_nonexistent.h>
3034_ACEOF
3035if ac_fn_c_try_cpp "$LINENO"; then :
3036 # Broken: success on invalid input.
3037continue
3038else
3039 # Passes both tests.
3040ac_preproc_ok=:
3041break
3042fi
3043rm -f conftest.err conftest.$ac_ext
fd462a61 3044
d6e9fb05 3045done
81ecdfbb
RW
3046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047rm -f conftest.err conftest.$ac_ext
3048if $ac_preproc_ok; then :
3049 break
d6e9fb05 3050fi
dae5f5cf 3051
81ecdfbb
RW
3052 done
3053 ac_cv_prog_CPP=$CPP
dae5f5cf 3054
81ecdfbb
RW
3055fi
3056 CPP=$ac_cv_prog_CPP
bec39cab 3057else
81ecdfbb 3058 ac_cv_prog_CPP=$CPP
bec39cab 3059fi
81ecdfbb
RW
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3061$as_echo "$CPP" >&6; }
3062ac_preproc_ok=false
3063for ac_c_preproc_warn_flag in '' yes
3064do
3065 # Use a header file that comes with gcc, so configuring glibc
3066 # with a fresh cross-compiler works.
3067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068 # <limits.h> exists even on freestanding compilers.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073#ifdef __STDC__
3074# include <limits.h>
3075#else
3076# include <assert.h>
3077#endif
3078 Syntax error
3079_ACEOF
3080if ac_fn_c_try_cpp "$LINENO"; then :
dae5f5cf 3081
bec39cab 3082else
81ecdfbb
RW
3083 # Broken: fails on valid input.
3084continue
bec39cab 3085fi
81ecdfbb 3086rm -f conftest.err conftest.$ac_ext
d6e9fb05 3087
81ecdfbb 3088 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3089 # can be detected and how.
81ecdfbb 3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3091/* end confdefs.h. */
3092#include <ac_nonexistent.h>
3093_ACEOF
81ecdfbb 3094if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3095 # Broken: success on invalid input.
3096continue
3097else
bec39cab
AC
3098 # Passes both tests.
3099ac_preproc_ok=:
3100break
3101fi
3102rm -f conftest.err conftest.$ac_ext
3103
3104done
3105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3106rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3107if $ac_preproc_ok; then :
3108
3109else
3110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112as_fn_error "C preprocessor \"$CPP\" fails sanity check
3113See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3114fi
3115
81ecdfbb
RW
3116ac_ext=c
3117ac_cpp='$CPP $CPPFLAGS'
3118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120ac_compiler_gnu=$ac_cv_c_compiler_gnu
bec39cab 3121
81ecdfbb
RW
3122
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3124$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3125if test "${ac_cv_path_GREP+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
bec39cab 3127else
81ecdfbb
RW
3128 if test -z "$GREP"; then
3129 ac_path_GREP_found=false
3130 # Loop through the user's path and test for each of PROGNAME-LIST
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bec39cab 3133do
81ecdfbb
RW
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_prog in grep ggrep; do
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3139 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3140# Check for GNU ac_path_GREP and select it if it is found.
3141 # Check for GNU $ac_path_GREP
3142case `"$ac_path_GREP" --version 2>&1` in
3143*GNU*)
3144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3145*)
3146 ac_count=0
3147 $as_echo_n 0123456789 >"conftest.in"
3148 while :
3149 do
3150 cat "conftest.in" "conftest.in" >"conftest.tmp"
3151 mv "conftest.tmp" "conftest.in"
3152 cp "conftest.in" "conftest.nl"
3153 $as_echo 'GREP' >> "conftest.nl"
3154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3156 as_fn_arith $ac_count + 1 && ac_count=$as_val
3157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3158 # Best one so far, save it but keep looking for a better one
3159 ac_cv_path_GREP="$ac_path_GREP"
3160 ac_path_GREP_max=$ac_count
3161 fi
3162 # 10*(2^10) chars as input seems more than enough
3163 test $ac_count -gt 10 && break
3164 done
3165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3166esac
3167
3168 $ac_path_GREP_found && break 3
3169 done
3170 done
3171 done
3172IFS=$as_save_IFS
3173 if test -z "$ac_cv_path_GREP"; then
3174 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bec39cab
AC
3175 fi
3176else
81ecdfbb 3177 ac_cv_path_GREP=$GREP
bec39cab 3178fi
bec39cab 3179
84563040 3180fi
81ecdfbb
RW
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3182$as_echo "$ac_cv_path_GREP" >&6; }
3183 GREP="$ac_cv_path_GREP"
bec39cab 3184
bec39cab 3185
81ecdfbb
RW
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3187$as_echo_n "checking for egrep... " >&6; }
3188if test "${ac_cv_path_EGREP+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190else
3191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3192 then ac_cv_path_EGREP="$GREP -E"
3193 else
3194 if test -z "$EGREP"; then
3195 ac_path_EGREP_found=false
3196 # Loop through the user's path and test for each of PROGNAME-LIST
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_prog in egrep; do
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3205 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3206# Check for GNU ac_path_EGREP and select it if it is found.
3207 # Check for GNU $ac_path_EGREP
3208case `"$ac_path_EGREP" --version 2>&1` in
3209*GNU*)
3210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3211*)
3212 ac_count=0
3213 $as_echo_n 0123456789 >"conftest.in"
3214 while :
3215 do
3216 cat "conftest.in" "conftest.in" >"conftest.tmp"
3217 mv "conftest.tmp" "conftest.in"
3218 cp "conftest.in" "conftest.nl"
3219 $as_echo 'EGREP' >> "conftest.nl"
3220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3222 as_fn_arith $ac_count + 1 && ac_count=$as_val
3223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3224 # Best one so far, save it but keep looking for a better one
3225 ac_cv_path_EGREP="$ac_path_EGREP"
3226 ac_path_EGREP_max=$ac_count
3227 fi
3228 # 10*(2^10) chars as input seems more than enough
3229 test $ac_count -gt 10 && break
3230 done
3231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3232esac
bec39cab 3233
81ecdfbb
RW
3234 $ac_path_EGREP_found && break 3
3235 done
3236 done
3237 done
3238IFS=$as_save_IFS
3239 if test -z "$ac_cv_path_EGREP"; then
3240 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3241 fi
bec39cab 3242else
81ecdfbb 3243 ac_cv_path_EGREP=$EGREP
84563040 3244fi
bec39cab 3245
81ecdfbb 3246 fi
b80864fb 3247fi
81ecdfbb
RW
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3249$as_echo "$ac_cv_path_EGREP" >&6; }
3250 EGREP="$ac_cv_path_EGREP"
b80864fb
DJ
3251
3252
81ecdfbb
RW
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3254$as_echo_n "checking for ANSI C header files... " >&6; }
3255if test "${ac_cv_header_stdc+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
84563040 3257else
81ecdfbb 3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3259/* end confdefs.h. */
84563040
DJ
3260#include <stdlib.h>
3261#include <stdarg.h>
3262#include <string.h>
3263#include <float.h>
bec39cab
AC
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
81ecdfbb 3273if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
3274 ac_cv_header_stdc=yes
3275else
81ecdfbb 3276 ac_cv_header_stdc=no
84563040 3277fi
81ecdfbb 3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040
DJ
3279
3280if test $ac_cv_header_stdc = yes; then
3281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3283/* end confdefs.h. */
84563040 3284#include <string.h>
bec39cab
AC
3285
3286_ACEOF
84563040 3287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3288 $EGREP "memchr" >/dev/null 2>&1; then :
3289
84563040 3290else
84563040
DJ
3291 ac_cv_header_stdc=no
3292fi
3293rm -f conftest*
3294
3295fi
3296
3297if test $ac_cv_header_stdc = yes; then
3298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3300/* end confdefs.h. */
84563040 3301#include <stdlib.h>
bec39cab
AC
3302
3303_ACEOF
84563040 3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3305 $EGREP "free" >/dev/null 2>&1; then :
3306
84563040 3307else
84563040
DJ
3308 ac_cv_header_stdc=no
3309fi
3310rm -f conftest*
3311
3312fi
bec39cab
AC
3313
3314if test $ac_cv_header_stdc = yes; then
3315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3316 if test "$cross_compiling" = yes; then :
bec39cab
AC
3317 :
3318else
81ecdfbb 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3320/* end confdefs.h. */
3321#include <ctype.h>
81ecdfbb 3322#include <stdlib.h>
bec39cab
AC
3323#if ((' ' & 0x0FF) == 0x020)
3324# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3325# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3326#else
3327# define ISLOWER(c) \
3328 (('a' <= (c) && (c) <= 'i') \
3329 || ('j' <= (c) && (c) <= 'r') \
3330 || ('s' <= (c) && (c) <= 'z'))
3331# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3332#endif
3333
3334#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3335int
3336main ()
3337{
3338 int i;
3339 for (i = 0; i < 256; i++)
3340 if (XOR (islower (i), ISLOWER (i))
3341 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
3342 return 2;
3343 return 0;
bec39cab
AC
3344}
3345_ACEOF
81ecdfbb 3346if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3347
81ecdfbb
RW
3348else
3349 ac_cv_header_stdc=no
bec39cab 3350fi
81ecdfbb
RW
3351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3352 conftest.$ac_objext conftest.beam conftest.$ac_ext
3353fi
3354
bec39cab
AC
3355fi
3356fi
81ecdfbb
RW
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3358$as_echo "$ac_cv_header_stdc" >&6; }
bec39cab
AC
3359if test $ac_cv_header_stdc = yes; then
3360
81ecdfbb 3361$as_echo "#define STDC_HEADERS 1" >>confdefs.h
bec39cab
AC
3362
3363fi
3364
bec39cab 3365# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bec39cab
AC
3366for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3367 inttypes.h stdint.h unistd.h
81ecdfbb
RW
3368do :
3369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3370ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3371"
3372eval as_val=\$$as_ac_Header
3373 if test "x$as_val" = x""yes; then :
bec39cab 3374 cat >>confdefs.h <<_ACEOF
81ecdfbb 3375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
3376_ACEOF
3377
3378fi
3379
3380done
3381
3382
3383
81ecdfbb
RW
3384 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3385if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3386 MINIX=yes
3387else
3388 MINIX=
3389fi
bec39cab
AC
3390
3391
81ecdfbb 3392 if test "$MINIX" = yes; then
bec39cab 3393
81ecdfbb 3394$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
bec39cab
AC
3395
3396
81ecdfbb 3397$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
bec39cab
AC
3398
3399
81ecdfbb 3400$as_echo "#define _MINIX 1" >>confdefs.h
bec39cab 3401
81ecdfbb 3402 fi
bec39cab
AC
3403
3404
81ecdfbb
RW
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3406$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3407if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409else
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411/* end confdefs.h. */
b80864fb 3412
81ecdfbb
RW
3413# define __EXTENSIONS__ 1
3414 $ac_includes_default
3415int
3416main ()
3417{
b80864fb 3418
81ecdfbb
RW
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_safe_to_define___extensions__=yes
3425else
3426 ac_cv_safe_to_define___extensions__=no
3427fi
3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429fi
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3431$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3432 test $ac_cv_safe_to_define___extensions__ = yes &&
3433 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b80864fb 3434
81ecdfbb 3435 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
b80864fb 3436
81ecdfbb 3437 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
b80864fb 3438
81ecdfbb 3439 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
b80864fb 3440
81ecdfbb 3441 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
b80864fb 3442
68070c10
PA
3443
3444
3445
81ecdfbb
RW
3446ac_aux_dir=
3447for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3448 for ac_t in install-sh install.sh shtool; do
3449 if test -f "$ac_dir/$ac_t"; then
3450 ac_aux_dir=$ac_dir
3451 ac_install_sh="$ac_aux_dir/$ac_t -c"
3452 break 2
3453 fi
3454 done
3455done
3456if test -z "$ac_aux_dir"; then
3457 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3458fi
68070c10 3459
81ecdfbb
RW
3460# These three variables are undocumented and unsupported,
3461# and are intended to be withdrawn in a future Autoconf release.
3462# They can cause serious problems if a builder's source tree is in a directory
3463# whose full name contains unusual characters.
3464ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3465ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3466ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
68070c10 3467
bec39cab 3468
81ecdfbb
RW
3469# Make sure we can run config.sub.
3470$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3471 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
bec39cab 3472
81ecdfbb
RW
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3474$as_echo_n "checking build system type... " >&6; }
3475if test "${ac_cv_build+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
bec39cab 3477else
81ecdfbb
RW
3478 ac_build_alias=$build_alias
3479test "x$ac_build_alias" = x &&
3480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3481test "x$ac_build_alias" = x &&
3482 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3483ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3484 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3485
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3488$as_echo "$ac_cv_build" >&6; }
3489case $ac_cv_build in
3490*-*-*) ;;
3491*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3492esac
3493build=$ac_cv_build
3494ac_save_IFS=$IFS; IFS='-'
3495set x $ac_cv_build
3496shift
3497build_cpu=$1
3498build_vendor=$2
3499shift; shift
3500# Remember, the first character of IFS is used to create $*,
3501# except with old shells:
3502build_os=$*
3503IFS=$ac_save_IFS
3504case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3505
3506
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3508$as_echo_n "checking host system type... " >&6; }
3509if test "${ac_cv_host+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
bec39cab 3511else
81ecdfbb
RW
3512 if test "x$host_alias" = x; then
3513 ac_cv_host=$ac_cv_build
3514else
3515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3516 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
84563040 3517fi
bec39cab 3518
81ecdfbb
RW
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3521$as_echo "$ac_cv_host" >&6; }
3522case $ac_cv_host in
3523*-*-*) ;;
3524*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
bec39cab 3525esac
81ecdfbb
RW
3526host=$ac_cv_host
3527ac_save_IFS=$IFS; IFS='-'
3528set x $ac_cv_host
3529shift
3530host_cpu=$1
3531host_vendor=$2
3532shift; shift
3533# Remember, the first character of IFS is used to create $*,
3534# except with old shells:
3535host_os=$*
3536IFS=$ac_save_IFS
3537case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3538
3539
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3541$as_echo_n "checking target system type... " >&6; }
3542if test "${ac_cv_target+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
bec39cab 3544else
81ecdfbb
RW
3545 if test "x$target_alias" = x; then
3546 ac_cv_target=$ac_cv_host
3547else
3548 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3549 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
84563040
DJ
3550fi
3551
84563040 3552fi
81ecdfbb
RW
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3554$as_echo "$ac_cv_target" >&6; }
3555case $ac_cv_target in
3556*-*-*) ;;
3557*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3558esac
3559target=$ac_cv_target
3560ac_save_IFS=$IFS; IFS='-'
3561set x $ac_cv_target
3562shift
3563target_cpu=$1
3564target_vendor=$2
3565shift; shift
3566# Remember, the first character of IFS is used to create $*,
3567# except with old shells:
3568target_os=$*
3569IFS=$ac_save_IFS
3570case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
84563040
DJ
3571
3572
81ecdfbb
RW
3573# The aliases save the names the user supplied, while $host etc.
3574# will get canonicalized.
3575test -n "$target_alias" &&
3576 test "$program_prefix$program_suffix$program_transform_name" = \
3577 NONENONEs,x,x, &&
3578 program_prefix=${target_alias}-
4e799345
DJ
3579
3580
81ecdfbb
RW
3581# Find a good install program. We prefer a C program (faster),
3582# so one script is as good as another. But avoid the broken or
3583# incompatible versions:
3584# SysV /etc/install, /usr/sbin/install
3585# SunOS /usr/etc/install
3586# IRIX /sbin/install
3587# AIX /bin/install
3588# AmigaOS /C/install, which installs bootblocks on floppy discs
3589# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3590# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3591# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3592# OS/2's system install, which has a completely different semantic
3593# ./install, which can be erroneously created by make from ./install.sh.
3594# Reject install programs that cannot install multiple files.
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3596$as_echo_n "checking for a BSD-compatible install... " >&6; }
3597if test -z "$INSTALL"; then
3598if test "${ac_cv_path_install+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
fd462a61 3603do
81ecdfbb
RW
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 # Account for people who put trailing slashes in PATH elements.
3607case $as_dir/ in #((
3608 ./ | .// | /[cC]/* | \
3609 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3610 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3611 /usr/ucb/* ) ;;
3612 *)
3613 # OSF1 and SCO ODT 3.0 have their own names for install.
3614 # Don't use installbsd from OSF since it installs stuff as root
3615 # by default.
3616 for ac_prog in ginstall scoinst install; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3619 if test $ac_prog = install &&
3620 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3621 # AIX install. It has an incompatible calling convention.
3622 :
3623 elif test $ac_prog = install &&
3624 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3625 # program-specific install script used by HP pwplus--don't use.
3626 :
3627 else
3628 rm -rf conftest.one conftest.two conftest.dir
3629 echo one > conftest.one
3630 echo two > conftest.two
3631 mkdir conftest.dir
3632 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3633 test -s conftest.one && test -s conftest.two &&
3634 test -s conftest.dir/conftest.one &&
3635 test -s conftest.dir/conftest.two
3636 then
3637 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3638 break 3
3639 fi
3640 fi
3641 fi
3642 done
3643 done
3644 ;;
3645esac
fd462a61 3646
81ecdfbb
RW
3647 done
3648IFS=$as_save_IFS
fd462a61 3649
81ecdfbb 3650rm -rf conftest.one conftest.two conftest.dir
fd462a61 3651
fd462a61 3652fi
81ecdfbb
RW
3653 if test "${ac_cv_path_install+set}" = set; then
3654 INSTALL=$ac_cv_path_install
3655 else
3656 # As a last resort, use the slow shell script. Don't cache a
3657 # value for INSTALL within a source directory, because that will
3658 # break other packages using the cache if that directory is
3659 # removed, or if the value is a relative name.
3660 INSTALL=$ac_install_sh
3661 fi
fd462a61 3662fi
81ecdfbb
RW
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3664$as_echo "$INSTALL" >&6; }
fd462a61 3665
81ecdfbb
RW
3666# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3667# It thinks the first close brace ends the variable substitution.
3668test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
fd462a61 3669
81ecdfbb 3670test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fd462a61 3671
81ecdfbb 3672test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
e28b3332 3673
e28b3332 3674
81ecdfbb
RW
3675test "$program_prefix" != NONE &&
3676 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3677# Use a double $ so make ignores it.
3678test "$program_suffix" != NONE &&
3679 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3680# Double any \ or $.
3681# By default was `s,x,x', remove it if useless.
3682ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3683program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
e28b3332 3684
e28b3332 3685
81ecdfbb
RW
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3687$as_echo_n "checking for ANSI C header files... " >&6; }
3688if test "${ac_cv_header_stdc+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */
3693#include <stdlib.h>
3694#include <stdarg.h>
3695#include <string.h>
3696#include <float.h>
e28b3332
DJ
3697
3698int
3699main ()
3700{
81ecdfbb 3701
e28b3332
DJ
3702 ;
3703 return 0;
3704}
3705_ACEOF
81ecdfbb
RW
3706if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_header_stdc=yes
e28b3332 3708else
81ecdfbb 3709 ac_cv_header_stdc=no
e28b3332 3710fi
81ecdfbb 3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28b3332 3712
81ecdfbb
RW
3713if test $ac_cv_header_stdc = yes; then
3714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68070c10 3716/* end confdefs.h. */
81ecdfbb 3717#include <string.h>
68070c10 3718
68070c10 3719_ACEOF
81ecdfbb
RW
3720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3721 $EGREP "memchr" >/dev/null 2>&1; then :
3722
68070c10 3723else
81ecdfbb
RW
3724 ac_cv_header_stdc=no
3725fi
3726rm -f conftest*
68070c10
PA
3727
3728fi
68070c10 3729
81ecdfbb
RW
3730if test $ac_cv_header_stdc = yes; then
3731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */
3734#include <stdlib.h>
68070c10 3735
68070c10 3736_ACEOF
81ecdfbb
RW
3737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3738 $EGREP "free" >/dev/null 2>&1; then :
68070c10
PA
3739
3740else
81ecdfbb 3741 ac_cv_header_stdc=no
68070c10 3742fi
81ecdfbb
RW
3743rm -f conftest*
3744
68070c10
PA
3745fi
3746
81ecdfbb
RW
3747if test $ac_cv_header_stdc = yes; then
3748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3749 if test "$cross_compiling" = yes; then :
3750 :
43d5792c 3751else
81ecdfbb 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3753/* end confdefs.h. */
81ecdfbb
RW
3754#include <ctype.h>
3755#include <stdlib.h>
3756#if ((' ' & 0x0FF) == 0x020)
3757# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3758# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3759#else
3760# define ISLOWER(c) \
3761 (('a' <= (c) && (c) <= 'i') \
3762 || ('j' <= (c) && (c) <= 'r') \
3763 || ('s' <= (c) && (c) <= 'z'))
3764# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3765#endif
3766
3767#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
bec39cab
AC
3768int
3769main ()
3770{
81ecdfbb
RW
3771 int i;
3772 for (i = 0; i < 256; i++)
3773 if (XOR (islower (i), ISLOWER (i))
3774 || toupper (i) != TOUPPER (i))
3775 return 2;
bec39cab
AC
3776 return 0;
3777}
3778_ACEOF
81ecdfbb 3779if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3780
81ecdfbb
RW
3781else
3782 ac_cv_header_stdc=no
43d5792c 3783fi
81ecdfbb
RW
3784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3785 conftest.$ac_objext conftest.beam conftest.$ac_ext
43d5792c 3786fi
e122f1f5 3787
68070c10 3788fi
81ecdfbb
RW
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3791$as_echo "$ac_cv_header_stdc" >&6; }
3792if test $ac_cv_header_stdc = yes; then
68070c10 3793
81ecdfbb 3794$as_echo "#define STDC_HEADERS 1" >>confdefs.h
68070c10 3795
68070c10 3796fi
68070c10 3797
68070c10 3798
81ecdfbb
RW
3799for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h
3800do :
3801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3802ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3803eval as_val=\$$as_ac_Header
3804 if test "x$as_val" = x""yes; then :
68070c10 3805 cat >>confdefs.h <<_ACEOF
81ecdfbb 3806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68070c10
PA
3807_ACEOF
3808
ec56be1b 3809fi
ec56be1b 3810
81ecdfbb
RW
3811done
3812
3813for ac_func in pread pwrite pread64
3814do :
3815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3816ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3817eval as_val=\$$as_ac_var
3818 if test "x$as_val" = x""yes; then :
3819 cat >>confdefs.h <<_ACEOF
3820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
3821_ACEOF
3822
81ecdfbb
RW
3823fi
3824done
ec56be1b 3825
81ecdfbb
RW
3826for ac_func in memmem
3827do :
3828 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
3829if test "x$ac_cv_func_memmem" = x""yes; then :
ec56be1b 3830 cat >>confdefs.h <<_ACEOF
81ecdfbb 3831#define HAVE_MEMMEM 1
ec56be1b
PA
3832_ACEOF
3833
81ecdfbb
RW
3834else
3835 case " $LIBOBJS " in
3836 *" $ac_func.$ac_objext "* ) ;;
3837 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3838 ;;
3839esac
ec56be1b 3840
43d5792c 3841fi
81ecdfbb 3842done
43d5792c
DJ
3843
3844
e122f1f5 3845
0fb4aa4b
PA
3846# Check for UST
3847ustlibs=""
3848ustinc=""
3849
3850
3851# Check whether --with-ust was given.
3852if test "${with_ust+set}" = set; then :
3853 withval=$with_ust;
3854fi
3855
3856
3857# Check whether --with-ust_include was given.
3858if test "${with_ust_include+set}" = set; then :
3859 withval=$with_ust_include;
3860fi
3861
3862
3863# Check whether --with-ust_lib was given.
3864if test "${with_ust_lib+set}" = set; then :
3865 withval=$with_ust_lib;
3866fi
3867
3868
3869case $with_ust in
3870 no)
3871 ustlibs=
3872 ustinc=
3873 ;;
3874 "" | yes)
3875 ustlibs=" -lust "
3876 ustinc=""
3877 ;;
3878 *)
3879 ustlibs="-L$with_ust/lib -lust"
3880 ustinc="-I$with_ust/include "
3881 ;;
3882esac
3883if test "x$with_ust_include" != x; then
3884 ustinc="-I$with_ust_include "
3885fi
3886if test "x$with_ust_lib" != x; then
3887 ustlibs="-L$with_ust_lib -lust"
3888fi
3889
3890if test "x$with_ust" != "xno"; then
3891 saved_CFLAGS="$CFLAGS"
3892 CFLAGS="$CFLAGS $ustinc"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
3894$as_echo_n "checking for ust... " >&6; }
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h. */
3897
3898#define CONFIG_UST_GDB_INTEGRATION
3899#include <ust/ust.h>
3900
3901int
3902main ()
3903{
3904
3905 ;
3906 return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"; then :
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911$as_echo "yes" >&6; };
3912$as_echo "#define HAVE_UST 1" >>confdefs.h
3913
3914else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916$as_echo "no" >&6; }; ustlibs= ; ustinc=
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 CFLAGS="$saved_CFLAGS"
3920fi
3921
3922# Flags needed for UST
3923
3924
3925
d4596a3d
PA
3926# Check whether --enable-werror was given.
3927if test "${enable_werror+set}" = set; then :
3928 enableval=$enable_werror; case "${enableval}" in
3929 yes | y) ERROR_ON_WARNING="yes" ;;
3930 no | n) ERROR_ON_WARNING="no" ;;
3931 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
3932 esac
3933fi
3934
3935
3936# Enable -Werror by default when using gcc
3937if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3938 ERROR_ON_WARNING=yes
3939fi
3940
3941WERROR_CFLAGS=""
3942if test "${ERROR_ON_WARNING}" = yes ; then
3943 WERROR_CFLAGS="-Werror"
3944fi
3945
3946build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
854d88f0 3947-Wformat-nonliteral -Wno-char-subscripts"
d4596a3d
PA
3948
3949WARN_CFLAGS=""
3950if test "x$GCC" = xyes
3951then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
3953$as_echo_n "checking compiler warning flags... " >&6; }
3954 # Separate out the -Werror flag as some files just cannot be
3955 # compiled with it enabled.
3956 for w in ${build_warnings}; do
3957 case $w in
3958 -Werr*) WERROR_CFLAGS=-Werror ;;
3959 *) # Check that GCC accepts it
3960 saved_CFLAGS="$CFLAGS"
3961 CFLAGS="$CFLAGS $w"
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973if ac_fn_c_try_compile "$LINENO"; then :
3974 WARN_CFLAGS="${WARN_CFLAGS} $w"
3975fi
3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 CFLAGS="$saved_CFLAGS"
3978 esac
3979 done
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
3981$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
3982fi
3983
3984
3985
10e86dd7
DE
3986old_LIBS="$LIBS"
3987LIBS="$LIBS -ldl"
3988for ac_func in dladdr
3989do :
3990 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
3991if test "x$ac_cv_func_dladdr" = x""yes; then :
3992 cat >>confdefs.h <<_ACEOF
3993#define HAVE_DLADDR 1
3994_ACEOF
3995
3996fi
3997done
3998
3999LIBS="$old_LIBS"
4000
81ecdfbb
RW
4001have_errno=no
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4003$as_echo_n "checking for errno... " >&6; }
4004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f450004a 4005/* end confdefs.h. */
ccbd4912 4006
81ecdfbb
RW
4007#if HAVE_ERRNO_H
4008#include <errno.h>
4009#endif
f450004a
DJ
4010int
4011main ()
4012{
81ecdfbb
RW
4013static int x; x = errno;
4014 ;
f450004a 4015 return 0;
81ecdfbb
RW
4016}
4017_ACEOF
4018if ac_fn_c_try_link "$LINENO"; then :
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4020$as_echo "yes - in errno.h" >&6; };
4021$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4022 have_errno=yes
4023fi
4024rm -f core conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4026if test $have_errno = no; then
4027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029
4030#if HAVE_ERRNO_H
4031#include <errno.h>
4032#endif
4033int
4034main ()
4035{
4036extern int errno; static int x; x = errno;
f450004a
DJ
4037 ;
4038 return 0;
4039}
4040_ACEOF
81ecdfbb
RW
4041if ac_fn_c_try_link "$LINENO"; then :
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
4043$as_echo "yes - must define" >&6; };
4044$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4045
4046$as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
4047
f450004a 4048else
81ecdfbb
RW
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050$as_echo "no" >&6; }
4051fi
4052rm -f core conftest.err conftest.$ac_objext \
4053 conftest$ac_exeext conftest.$ac_ext
4054fi
4055
4056ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
4057if test "x$ac_cv_have_decl_strerror" = x""yes; then :
4058 ac_have_decl=1
4059else
4060 ac_have_decl=0
4061fi
f450004a 4062
81ecdfbb
RW
4063cat >>confdefs.h <<_ACEOF
4064#define HAVE_DECL_STRERROR $ac_have_decl
4065_ACEOF
4066ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
4067if test "x$ac_cv_have_decl_perror" = x""yes; then :
4068 ac_have_decl=1
4069else
4070 ac_have_decl=0
f450004a 4071fi
81ecdfbb
RW
4072
4073cat >>confdefs.h <<_ACEOF
4074#define HAVE_DECL_PERROR $ac_have_decl
4075_ACEOF
4076ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4077if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4078 ac_have_decl=1
4079else
4080 ac_have_decl=0
f450004a 4081fi
81ecdfbb
RW
4082
4083cat >>confdefs.h <<_ACEOF
4084#define HAVE_DECL_MEMMEM $ac_have_decl
4085_ACEOF
4086
4087
4088ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4089#include <sys/socket.h>
4090
4091"
4092if test "x$ac_cv_type_socklen_t" = x""yes; then :
f450004a 4093
ccbd4912 4094cat >>confdefs.h <<_ACEOF
f450004a
DJ
4095#define HAVE_SOCKLEN_T 1
4096_ACEOF
4097
f450004a 4098
ccbd4912 4099fi
f450004a 4100
fb1e4ffc 4101
c16158bc
JM
4102
4103
81ecdfbb
RW
4104# Check whether --with-pkgversion was given.
4105if test "${with_pkgversion+set}" = set; then :
4106 withval=$with_pkgversion; case "$withval" in
4107 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
4108 no) PKGVERSION= ;;
4109 *) PKGVERSION="($withval) " ;;
4110 esac
4111else
4112 PKGVERSION="(GDB) "
4113
81ecdfbb
RW
4114fi
4115
c16158bc
JM
4116
4117
4118
4119
81ecdfbb
RW
4120# Check whether --with-bugurl was given.
4121if test "${with_bugurl+set}" = set; then :
4122 withval=$with_bugurl; case "$withval" in
4123 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
4124 no) BUGURL=
4125 ;;
4126 *) BUGURL="$withval"
4127 ;;
4128 esac
4129else
4130 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4131
81ecdfbb
RW
4132fi
4133
c16158bc
JM
4134 case ${BUGURL} in
4135 "")
4136 REPORT_BUGS_TO=
4137 REPORT_BUGS_TEXI=
4138 ;;
4139 *)
4140 REPORT_BUGS_TO="<$BUGURL>"
4141 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4142 ;;
4143 esac;
4144
4145
4146
4147
4148cat >>confdefs.h <<_ACEOF
4149#define PKGVERSION "$PKGVERSION"
4150_ACEOF
4151
4152
4153cat >>confdefs.h <<_ACEOF
4154#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4155_ACEOF
4156
4157
8838b45e
NS
4158# Check for various supplementary target information (beyond the
4159# triplet) which might affect the choices in configure.srv.
4160case "${target}" in
4161 i[34567]86-*-linux*)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
4163$as_echo_n "checking if building for x86-64... " >&6; }
4164if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166else
4167 save_CPPFLAGS="$CPPFLAGS"
4168 CPPFLAGS="$CPPFLAGS $CFLAGS"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
4171
4172#if __x86_64__
4173got it
4174#endif
4175
4176_ACEOF
4177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178 $EGREP "got it" >/dev/null 2>&1; then :
4179 gdb_cv_i386_is_x86_64=yes
4180else
4181 gdb_cv_i386_is_x86_64=no
4182fi
4183rm -f conftest*
4184
4185 CPPFLAGS="$save_CPPFLAGS"
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
4188$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
4189 ;;
9ac544ce
MK
4190 m68k-*-*)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
4192$as_echo_n "checking if building for Coldfire... " >&6; }
4193if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195else
4196 save_CPPFLAGS="$CPPFLAGS"
4197 CPPFLAGS="$CPPFLAGS $CFLAGS"
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h. */
4200
4201#ifdef __mcoldfire__
4202got it
4203#endif
4204
4205_ACEOF
4206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "got it" >/dev/null 2>&1; then :
4208 gdb_cv_m68k_is_coldfire=yes
4209else
4210 gdb_cv_m68k_is_coldfire=no
4211fi
4212rm -f conftest*
4213
4214 CPPFLAGS="$save_CPPFLAGS"
4215fi
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
4217$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
4218 ;;
8838b45e
NS
4219esac
4220
7ea81414 4221. ${srcdir}/configure.srv
d6e9fb05 4222
68070c10
PA
4223if test "${srv_mingwce}" = "yes"; then
4224 LIBS="$LIBS -lws2"
4225elif test "${srv_mingw}" = "yes"; then
12ea4b69 4226 LIBS="$LIBS -lws2_32"
ac8c974e
AR
4227elif test "${srv_qnx}" = "yes"; then
4228 LIBS="$LIBS -lsocket"
68070c10
PA
4229fi
4230
4231if test "${srv_mingw}" = "yes"; then
b80864fb 4232
81ecdfbb 4233$as_echo "#define USE_WIN32API 1" >>confdefs.h
b80864fb
DJ
4234
4235fi
4236
58caa3dc 4237if test "${srv_linux_usrregs}" = "yes"; then
f450004a 4238
81ecdfbb 4239$as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
58caa3dc
DJ
4240
4241fi
4242
4243if test "${srv_linux_regsets}" = "yes"; then
e9d25b98 4244
81ecdfbb 4245$as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
e9d25b98
DJ
4246
4247
81ecdfbb
RW
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
4249$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
4250 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
bec39cab 4252else
81ecdfbb 4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4254/* end confdefs.h. */
58caa3dc 4255#include <sys/ptrace.h>
bec39cab
AC
4256int
4257main ()
4258{
58caa3dc 4259PTRACE_GETREGS;
bec39cab
AC
4260 ;
4261 return 0;
4262}
4263_ACEOF
81ecdfbb 4264if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
4265 gdbsrv_cv_have_ptrace_getregs=yes
4266else
81ecdfbb 4267 gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 4268fi
81ecdfbb 4269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
4270fi
4271
81ecdfbb
RW
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
4273$as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
58caa3dc 4274 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a 4275
81ecdfbb 4276$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
58caa3dc
DJ
4277
4278 fi
4279
81ecdfbb
RW
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
4281$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
4282 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
58caa3dc 4284else
81ecdfbb 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4286/* end confdefs.h. */
58caa3dc 4287#include <sys/ptrace.h>
bec39cab
AC
4288int
4289main ()
4290{
58caa3dc 4291PTRACE_GETFPXREGS;
bec39cab
AC
4292 ;
4293 return 0;
4294}
4295_ACEOF
81ecdfbb 4296if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
4297 gdbsrv_cv_have_ptrace_getfpxregs=yes
4298else
81ecdfbb 4299 gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 4300fi
81ecdfbb 4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
4302fi
4303
81ecdfbb
RW
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
4305$as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
58caa3dc 4306 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a 4307
81ecdfbb 4308$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
58caa3dc
DJ
4309
4310 fi
4311fi
4312
0d62e5e8 4313if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
4315$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
4316 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
0d62e5e8 4318else
81ecdfbb 4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4320/* end confdefs.h. */
0d62e5e8
DJ
4321
4322#define _SYSCALL32
8e642873
PM
4323/* Needed for new procfs interface on sparc-solaris. */
4324#define _STRUCTURED_PROC 1
0d62e5e8 4325#include <sys/procfs.h>
bec39cab
AC
4326int
4327main ()
4328{
0d62e5e8 4329lwpid_t avar
bec39cab
AC
4330 ;
4331 return 0;
4332}
4333_ACEOF
81ecdfbb 4334if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4335 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4336else
81ecdfbb 4337 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 4338
0d62e5e8 4339fi
81ecdfbb 4340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4341fi
4342
4343 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 4344
81ecdfbb 4345$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
0d62e5e8
DJ
4346
4347 fi
81ecdfbb
RW
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4349$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
0d62e5e8 4350
81ecdfbb
RW
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
4352$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
4353 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
0d62e5e8 4355else
81ecdfbb 4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4357/* end confdefs.h. */
0d62e5e8
DJ
4358
4359#define _SYSCALL32
8e642873
PM
4360/* Needed for new procfs interface on sparc-solaris. */
4361#define _STRUCTURED_PROC 1
0d62e5e8 4362#include <sys/procfs.h>
bec39cab
AC
4363int
4364main ()
4365{
0d62e5e8 4366psaddr_t avar
bec39cab
AC
4367 ;
4368 return 0;
4369}
4370_ACEOF
81ecdfbb 4371if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4372 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4373else
81ecdfbb 4374 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 4375
0d62e5e8 4376fi
81ecdfbb 4377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4378fi
4379
4380 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 4381
81ecdfbb 4382$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
0d62e5e8
DJ
4383
4384 fi
81ecdfbb
RW
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4386$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
0d62e5e8 4387
81ecdfbb
RW
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
4389$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
4390 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
0d62e5e8 4392else
81ecdfbb 4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4394/* end confdefs.h. */
0d62e5e8
DJ
4395
4396#define _SYSCALL32
8e642873
PM
4397/* Needed for new procfs interface on sparc-solaris. */
4398#define _STRUCTURED_PROC 1
0d62e5e8 4399#include <sys/procfs.h>
bec39cab
AC
4400int
4401main ()
4402{
0d62e5e8 4403prgregset_t avar
bec39cab
AC
4404 ;
4405 return 0;
4406}
4407_ACEOF
81ecdfbb 4408if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4409 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4410else
81ecdfbb 4411 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 4412
0d62e5e8 4413fi
81ecdfbb 4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4415fi
4416
4417 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 4418
81ecdfbb 4419$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
4420
4421 fi
81ecdfbb
RW
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4423$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
0d62e5e8 4424
81ecdfbb
RW
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
4426$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
4427 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
0d62e5e8 4429else
81ecdfbb 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4431/* end confdefs.h. */
0d62e5e8
DJ
4432
4433#define _SYSCALL32
8e642873
PM
4434/* Needed for new procfs interface on sparc-solaris. */
4435#define _STRUCTURED_PROC 1
0d62e5e8 4436#include <sys/procfs.h>
bec39cab
AC
4437int
4438main ()
4439{
0d62e5e8 4440elf_fpregset_t avar
bec39cab
AC
4441 ;
4442 return 0;
4443}
4444_ACEOF
81ecdfbb 4445if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
4446 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4447else
81ecdfbb 4448 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 4449
0d62e5e8 4450fi
81ecdfbb 4451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4452fi
4453
4454 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab 4455
81ecdfbb 4456$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
4457
4458 fi
81ecdfbb
RW
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4460$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
0d62e5e8
DJ
4461
4462fi
4463
193f13e6
MK
4464old_LIBS="$LIBS"
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4466$as_echo_n "checking for dlopen in -ldl... " >&6; }
4467if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469else
4470 ac_check_lib_save_LIBS=$LIBS
4471LIBS="-ldl $LIBS"
4472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h. */
4474
4475/* Override any GCC internal prototype to avoid an error.
4476 Use char because int might match the return type of a GCC
4477 builtin and then its argument prototype would still apply. */
4478#ifdef __cplusplus
4479extern "C"
4480#endif
4481char dlopen ();
4482int
4483main ()
4484{
4485return dlopen ();
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_link "$LINENO"; then :
4491 ac_cv_lib_dl_dlopen=yes
4492else
4493 ac_cv_lib_dl_dlopen=no
4494fi
4495rm -f core conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
4497LIBS=$ac_check_lib_save_LIBS
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4500$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4501if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4502 cat >>confdefs.h <<_ACEOF
4503#define HAVE_LIBDL 1
4504_ACEOF
4505
4506 LIBS="-ldl $LIBS"
4507
4508fi
4509
4510LIBS="$old_LIBS"
4511
0d62e5e8
DJ
4512srv_thread_depfiles=
4513srv_libs=
4514USE_THREAD_DB=
4515
4516if test "$srv_linux_thread_db" = "yes"; then
193f13e6
MK
4517 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4518 srv_libs="-ldl"
f6528abd
JK
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
4520$as_echo_n "checking for the dynamic export flag... " >&6; }
193f13e6 4521 old_LDFLAGS="$LDFLAGS"
f6528abd
JK
4522 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
4523 # supported there.
4524 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
4525 LDFLAGS="$LDFLAGS $RDYNAMIC"
193f13e6 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
4527/* end confdefs.h. */
4528
4529int
4530main ()
4531{
4532
4533 ;
4534 return 0;
4535}
4536_ACEOF
81ecdfbb 4537if ac_fn_c_try_link "$LINENO"; then :
f6528abd
JK
4538 found="-Wl,--dynamic-list"
4539 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6de3c42 4540else
f6528abd
JK
4541 RDYNAMIC="-rdynamic"
4542 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h. */
4545
4546int
4547main ()
4548{
4549
4550 ;
4551 return 0;
4552}
4553_ACEOF
4554if ac_fn_c_try_link "$LINENO"; then :
4555 found="-rdynamic"
4556else
4557 found="no"
4558 RDYNAMIC=""
4559fi
4560rm -f core conftest.err conftest.$ac_objext \
4561 conftest$ac_exeext conftest.$ac_ext
f6de3c42 4562fi
81ecdfbb
RW
4563rm -f core conftest.err conftest.$ac_objext \
4564 conftest$ac_exeext conftest.$ac_ext
bec39cab 4565
193f13e6 4566 LDFLAGS="$old_LDFLAGS"
f6528abd
JK
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
4568$as_echo "$found" >&6; }
193f13e6
MK
4569 else
4570 srv_libs="-lthread_db"
4571 fi
0d62e5e8 4572
0d62e5e8
DJ
4573 srv_thread_depfiles="thread-db.o proc-service.o"
4574 USE_THREAD_DB="-DUSE_THREAD_DB"
81ecdfbb
RW
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
4576$as_echo_n "checking for TD_VERSION... " >&6; }
4577if test "${gdbsrv_cv_have_td_version+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
3db0444b 4579else
81ecdfbb 4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3db0444b
DJ
4581/* end confdefs.h. */
4582#include <thread_db.h>
4583int
4584main ()
4585{
4586TD_VERSION;
4587 ;
4588 return 0;
4589}
4590_ACEOF
81ecdfbb 4591if ac_fn_c_try_compile "$LINENO"; then :
3db0444b
DJ
4592 gdbsrv_cv_have_td_version=yes
4593else
81ecdfbb 4594 gdbsrv_cv_have_td_version=no
3db0444b 4595fi
81ecdfbb 4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3db0444b 4597fi
81ecdfbb
RW
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
4599$as_echo "$gdbsrv_cv_have_td_version" >&6; }
3db0444b
DJ
4600 if test $gdbsrv_cv_have_td_version = yes; then
4601
81ecdfbb 4602$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
dae5f5cf
DJ
4603
4604 fi
0d62e5e8
DJ
4605fi
4606
96f15937
PP
4607
4608# Check whether --with-libthread-db was given.
4609if test "${with_libthread_db+set}" = set; then :
4610 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
96f15937
PP
4611 srv_libs="$srv_libthread_db_path"
4612
4613fi
4614
4615
193f13e6
MK
4616if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
4617
4618$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
4619
4620fi
4621
9b4b61c8 4622if test "$srv_xmlfiles" != ""; then
fb1e4ffc
DJ
4623 srv_xmlbuiltin="xml-builtin.o"
4624
81ecdfbb 4625$as_echo "#define USE_XML 1" >>confdefs.h
fb1e4ffc
DJ
4626
4627
4628 tmp_xmlfiles=$srv_xmlfiles
9b4b61c8 4629 srv_xmlfiles=""
fb1e4ffc
DJ
4630 for f in $tmp_xmlfiles; do
4631 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4632 done
4633fi
4634
59a016f0 4635GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
0d62e5e8
DJ
4636GDBSERVER_LIBS="$srv_libs"
4637
fa593d66
PA
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
4639$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
4640if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642else
4643
4644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h. */
4646
4647int
4648main ()
4649{
4650int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
4651 ;
4652 return 0;
4653}
4654_ACEOF
4655if ac_fn_c_try_link "$LINENO"; then :
4656 gdbsrv_cv_have_sync_builtins=yes
4657else
4658 gdbsrv_cv_have_sync_builtins=no
4659fi
4660rm -f core conftest.err conftest.$ac_objext \
4661 conftest$ac_exeext conftest.$ac_ext
4662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
4664$as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
4665if test $gdbsrv_cv_have_sync_builtins = yes; then
4666
4667$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
4668
4669fi
4670
4671saved_cflags="$CFLAGS"
4672CFLAGS="$CFLAGS -fvisibility=hidden"
4673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h. */
4675
4676int
4677main ()
4678{
4679
4680 ;
4681 return 0;
4682}
4683_ACEOF
4684if ac_fn_c_try_compile "$LINENO"; then :
4685 gdbsrv_cv_have_visibility_hidden=yes
4686else
4687 gdbsrv_cv_have_visibility_hidden=no
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690CFLAGS="$saved_cflags"
4691
4692IPA_DEPFILES=""
4693
4694# Rather than allowing to build a broken IPA, we simply disable it if
4695# we don't find a compiler supporting all the features we need.
4696if test "$ipa_obj" != "" \
4697 -a "$gdbsrv_cv_have_sync_builtins" = yes \
4698 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
4699 IPA_DEPFILES="$ipa_obj"
4700 extra_libraries="libinproctrace.so"
4701fi
4702
4703
4704
0d62e5e8 4705
d6e9fb05
JK
4706
4707
4708
fb1e4ffc
DJ
4709
4710
81ecdfbb
RW
4711ac_config_files="$ac_config_files Makefile"
4712
4713ac_config_commands="$ac_config_commands default"
4714
bec39cab 4715cat >confcache <<\_ACEOF
d6e9fb05
JK
4716# This file is a shell script that caches the results of configure
4717# tests run on this system so they can be shared between configure
bec39cab
AC
4718# scripts and configure runs, see configure's option --config-cache.
4719# It is not useful on other systems. If it contains results you don't
4720# want to keep, you may remove or edit it.
d6e9fb05 4721#
bec39cab
AC
4722# config.status only pays attention to the cache file if you give it
4723# the --recheck option to rerun configure.
d6e9fb05 4724#
bec39cab
AC
4725# `ac_cv_env_foo' variables (set or unset) will be overridden when
4726# loading this file, other *unset* `ac_cv_foo' will be assigned the
4727# following values.
4728
4729_ACEOF
4730
d6e9fb05
JK
4731# The following way of writing the cache mishandles newlines in values,
4732# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 4733# So, we kill variables containing newlines.
d6e9fb05
JK
4734# Ultrix sh set writes to stderr and can't be redirected directly,
4735# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
4736(
4737 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4738 eval ac_val=\$$ac_var
4739 case $ac_val in #(
4740 *${as_nl}*)
4741 case $ac_var in #(
4742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4743$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4744 esac
4745 case $ac_var in #(
4746 _ | IFS | as_nl) ;; #(
4747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4748 *) { eval $ac_var=; unset $ac_var;} ;;
4749 esac ;;
4750 esac
4751 done
4752
bec39cab 4753 (set) 2>&1 |
81ecdfbb
RW
4754 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4755 *${as_nl}ac_space=\ *)
4756 # `set' does not quote correctly, so add quotes: double-quote
4757 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
4758 sed -n \
4759 "s/'/'\\\\''/g;
4760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 4761 ;; #(
bec39cab
AC
4762 *)
4763 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 4764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 4765 ;;
81ecdfbb
RW
4766 esac |
4767 sort
4768) |
bec39cab 4769 sed '
81ecdfbb 4770 /^ac_cv_env_/b end
bec39cab 4771 t clear
81ecdfbb 4772 :clear
bec39cab
AC
4773 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4774 t end
81ecdfbb
RW
4775 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4776 :end' >>confcache
4777if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4778 if test -w "$cache_file"; then
4779 test "x$cache_file" != "x/dev/null" &&
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4781$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 4782 cat confcache >$cache_file
d6e9fb05 4783 else
81ecdfbb
RW
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4785$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d6e9fb05
JK
4786 fi
4787fi
4788rm -f confcache
4789
d6e9fb05
JK
4790test "x$prefix" = xNONE && prefix=$ac_default_prefix
4791# Let make expand exec_prefix.
4792test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4793
84563040 4794DEFS=-DHAVE_CONFIG_H
d6e9fb05 4795
bec39cab
AC
4796ac_libobjs=
4797ac_ltlibobjs=
4798for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4799 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
4800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4803 # will be set to the directory where LIBOBJS objects are built.
4804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
4806done
4807LIBOBJS=$ac_libobjs
d6e9fb05 4808
bec39cab
AC
4809LTLIBOBJS=$ac_ltlibobjs
4810
4811
4812
4813: ${CONFIG_STATUS=./config.status}
81ecdfbb 4814ac_write_fail=0
bec39cab
AC
4815ac_clean_files_save=$ac_clean_files
4816ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4818$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4819as_write_fail=0
4820cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
4821#! $SHELL
4822# Generated by $as_me.
d6e9fb05 4823# Run this file to recreate the current configuration.
d6e9fb05 4824# Compiler output produced by configure, useful for debugging
bec39cab
AC
4825# configure, is in config.log if it exists.
4826
4827debug=false
4828ac_cs_recheck=false
4829ac_cs_silent=false
bec39cab 4830
81ecdfbb
RW
4831SHELL=\${CONFIG_SHELL-$SHELL}
4832export SHELL
4833_ASEOF
4834cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4835## -------------------- ##
4836## M4sh Initialization. ##
4837## -------------------- ##
4838
4839# Be more Bourne compatible
4840DUALCASE=1; export DUALCASE # for MKS sh
4841if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
4842 emulate sh
4843 NULLCMD=:
81ecdfbb 4844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
4845 # is contrary to our usage. Disable this feature.
4846 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
4847 setopt NO_GLOB_SUBST
4848else
4849 case `(set -o) 2>/dev/null` in #(
4850 *posix*) :
4851 set -o posix ;; #(
4852 *) :
4853 ;;
4854esac
bec39cab 4855fi
d6e9fb05 4856
81ecdfbb
RW
4857
4858as_nl='
4859'
4860export as_nl
4861# Printing a long string crashes Solaris 7 /usr/bin/printf.
4862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4865# Prefer a ksh shell builtin over an external printf program on Solaris,
4866# but without wasting forks for bash or zsh.
4867if test -z "$BASH_VERSION$ZSH_VERSION" \
4868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4869 as_echo='print -r --'
4870 as_echo_n='print -rn --'
4871elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4872 as_echo='printf %s\n'
4873 as_echo_n='printf %s'
bec39cab 4874else
81ecdfbb
RW
4875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4877 as_echo_n='/usr/ucb/echo -n'
4878 else
4879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4880 as_echo_n_body='eval
4881 arg=$1;
4882 case $arg in #(
4883 *"$as_nl"*)
4884 expr "X$arg" : "X\\(.*\\)$as_nl";
4885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4886 esac;
4887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4888 '
4889 export as_echo_n_body
4890 as_echo_n='sh -c $as_echo_n_body as_echo'
4891 fi
4892 export as_echo_body
4893 as_echo='sh -c $as_echo_body as_echo'
4894fi
4895
4896# The user is always right.
4897if test "${PATH_SEPARATOR+set}" != set; then
4898 PATH_SEPARATOR=:
4899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4901 PATH_SEPARATOR=';'
4902 }
bec39cab
AC
4903fi
4904
4905
81ecdfbb
RW
4906# IFS
4907# We need space, tab and new line, in precisely that order. Quoting is
4908# there to prevent editors from complaining about space-tab.
4909# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4910# splitting by setting IFS to empty value.)
4911IFS=" "" $as_nl"
4912
4913# Find who we are. Look in the path if we contain no directory separator.
4914case $0 in #((
4915 *[\\/]* ) as_myself=$0 ;;
4916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4922 done
4923IFS=$as_save_IFS
4924
4925 ;;
4926esac
4927# We did not find ourselves, most probably we were run as `sh COMMAND'
4928# in which case we are not to be found in the path.
4929if test "x$as_myself" = x; then
4930 as_myself=$0
4931fi
4932if test ! -f "$as_myself"; then
4933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4934 exit 1
4935fi
4936
4937# Unset variables that we do not need and which cause bugs (e.g. in
4938# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4939# suppresses any "Segmentation fault" message there. '((' could
4940# trigger a bug in pdksh 5.2.14.
4941for as_var in BASH_ENV ENV MAIL MAILPATH
4942do eval test x\${$as_var+set} = xset \
4943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4944done
bec39cab
AC
4945PS1='$ '
4946PS2='> '
4947PS4='+ '
4948
4949# NLS nuisances.
81ecdfbb
RW
4950LC_ALL=C
4951export LC_ALL
4952LANGUAGE=C
4953export LANGUAGE
4954
4955# CDPATH.
4956(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4957
4958
4959# as_fn_error ERROR [LINENO LOG_FD]
4960# ---------------------------------
4961# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4962# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4963# script with status $?, using 1 if that was 0.
4964as_fn_error ()
4965{
4966 as_status=$?; test $as_status -eq 0 && as_status=1
4967 if test "$3"; then
4968 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 4970 fi
81ecdfbb
RW
4971 $as_echo "$as_me: error: $1" >&2
4972 as_fn_exit $as_status
4973} # as_fn_error
4974
4975
4976# as_fn_set_status STATUS
4977# -----------------------
4978# Set $? to STATUS, without forking.
4979as_fn_set_status ()
4980{
4981 return $1
4982} # as_fn_set_status
4983
4984# as_fn_exit STATUS
4985# -----------------
4986# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4987as_fn_exit ()
4988{
4989 set +e
4990 as_fn_set_status $1
4991 exit $1
4992} # as_fn_exit
4993
4994# as_fn_unset VAR
4995# ---------------
4996# Portably unset VAR.
4997as_fn_unset ()
4998{
4999 { eval $1=; unset $1;}
5000}
5001as_unset=as_fn_unset
5002# as_fn_append VAR VALUE
5003# ----------------------
5004# Append the text in VALUE to the end of the definition contained in VAR. Take
5005# advantage of any shell optimizations that allow amortized linear growth over
5006# repeated appends, instead of the typical quadratic growth present in naive
5007# implementations.
5008if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5009 eval 'as_fn_append ()
5010 {
5011 eval $1+=\$2
5012 }'
5013else
5014 as_fn_append ()
5015 {
5016 eval $1=\$$1\$2
5017 }
5018fi # as_fn_append
5019
5020# as_fn_arith ARG...
5021# ------------------
5022# Perform arithmetic evaluation on the ARGs, and store the result in the
5023# global $as_val. Take advantage of shells that can avoid forks. The arguments
5024# must be portable across $(()) and expr.
5025if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5026 eval 'as_fn_arith ()
5027 {
5028 as_val=$(( $* ))
5029 }'
5030else
5031 as_fn_arith ()
5032 {
5033 as_val=`expr "$@" || test $? -eq 1`
5034 }
5035fi # as_fn_arith
5036
d6e9fb05 5037
81ecdfbb
RW
5038if expr a : '\(a\)' >/dev/null 2>&1 &&
5039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
5040 as_expr=expr
5041else
5042 as_expr=false
5043fi
d6e9fb05 5044
81ecdfbb 5045if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
5046 as_basename=basename
5047else
5048 as_basename=false
5049fi
d6e9fb05 5050
81ecdfbb
RW
5051if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5052 as_dirname=dirname
5053else
5054 as_dirname=false
5055fi
d6e9fb05 5056
81ecdfbb 5057as_me=`$as_basename -- "$0" ||
bec39cab
AC
5058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5059 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
5060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5061$as_echo X/"$0" |
5062 sed '/^.*\/\([^/][^/]*\)\/*$/{
5063 s//\1/
5064 q
5065 }
5066 /^X\/\(\/\/\)$/{
5067 s//\1/
5068 q
5069 }
5070 /^X\/\(\/\).*/{
5071 s//\1/
5072 q
5073 }
5074 s/.*/./; q'`
bec39cab 5075
dae5f5cf
DJ
5076# Avoid depending upon Character Ranges.
5077as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5078as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5079as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5080as_cr_digits='0123456789'
5081as_cr_alnum=$as_cr_Letters$as_cr_digits
5082
81ecdfbb
RW
5083ECHO_C= ECHO_N= ECHO_T=
5084case `echo -n x` in #(((((
5085-n*)
5086 case `echo 'xy\c'` in
5087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5088 xy) ECHO_C='\c';;
5089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5090 ECHO_T=' ';;
5091 esac;;
5092*)
5093 ECHO_N='-n';;
bec39cab
AC
5094esac
5095
81ecdfbb
RW
5096rm -f conf$$ conf$$.exe conf$$.file
5097if test -d conf$$.dir; then
5098 rm -f conf$$.dir/conf$$.file
bec39cab 5099else
81ecdfbb
RW
5100 rm -f conf$$.dir
5101 mkdir conf$$.dir 2>/dev/null
bec39cab 5102fi
81ecdfbb
RW
5103if (echo >conf$$.file) 2>/dev/null; then
5104 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 5105 as_ln_s='ln -s'
81ecdfbb
RW
5106 # ... but there are two gotchas:
5107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5109 # In both cases, we have to default to `cp -p'.
5110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5111 as_ln_s='cp -p'
5112 elif ln conf$$.file conf$$ 2>/dev/null; then
5113 as_ln_s=ln
5114 else
5115 as_ln_s='cp -p'
dae5f5cf 5116 fi
bec39cab
AC
5117else
5118 as_ln_s='cp -p'
5119fi
81ecdfbb
RW
5120rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5121rmdir conf$$.dir 2>/dev/null
5122
5123
5124# as_fn_mkdir_p
5125# -------------
5126# Create "$as_dir" as a directory, including parents if necessary.
5127as_fn_mkdir_p ()
5128{
5129
5130 case $as_dir in #(
5131 -*) as_dir=./$as_dir;;
5132 esac
5133 test -d "$as_dir" || eval $as_mkdir_p || {
5134 as_dirs=
5135 while :; do
5136 case $as_dir in #(
5137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5138 *) as_qdir=$as_dir;;
5139 esac
5140 as_dirs="'$as_qdir' $as_dirs"
5141 as_dir=`$as_dirname -- "$as_dir" ||
5142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5143 X"$as_dir" : 'X\(//\)[^/]' \| \
5144 X"$as_dir" : 'X\(//\)$' \| \
5145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5146$as_echo X"$as_dir" |
5147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5148 s//\1/
5149 q
5150 }
5151 /^X\(\/\/\)[^/].*/{
5152 s//\1/
5153 q
5154 }
5155 /^X\(\/\/\)$/{
5156 s//\1/
5157 q
5158 }
5159 /^X\(\/\).*/{
5160 s//\1/
5161 q
5162 }
5163 s/.*/./; q'`
5164 test -d "$as_dir" && break
5165 done
5166 test -z "$as_dirs" || eval "mkdir $as_dirs"
5167 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 5168
81ecdfbb
RW
5169
5170} # as_fn_mkdir_p
bec39cab 5171if mkdir -p . 2>/dev/null; then
81ecdfbb 5172 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
5173else
5174 test -d ./-p && rmdir ./-p
5175 as_mkdir_p=false
5176fi
5177
81ecdfbb
RW
5178if test -x / >/dev/null 2>&1; then
5179 as_test_x='test -x'
5180else
5181 if ls -dL / >/dev/null 2>&1; then
5182 as_ls_L_option=L
5183 else
5184 as_ls_L_option=
5185 fi
5186 as_test_x='
5187 eval sh -c '\''
5188 if test -d "$1"; then
5189 test -d "$1/.";
5190 else
5191 case $1 in #(
5192 -*)set "./$1";;
5193 esac;
5194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5195 ???[sx]*):;;*)false;;esac;fi
5196 '\'' sh
5197 '
5198fi
5199as_executable_p=$as_test_x
bec39cab
AC
5200
5201# Sed expression to map a string onto a valid CPP name.
5202as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5203
5204# Sed expression to map a string onto a valid variable name.
5205as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5206
5207
bec39cab 5208exec 6>&1
81ecdfbb
RW
5209## ----------------------------------- ##
5210## Main body of $CONFIG_STATUS script. ##
5211## ----------------------------------- ##
5212_ASEOF
5213test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5214
5215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5216# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 5217# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
5218# values after options handling.
5219ac_log="
bec39cab 5220This file was extended by $as_me, which was
81ecdfbb 5221generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
5222
5223 CONFIG_FILES = $CONFIG_FILES
5224 CONFIG_HEADERS = $CONFIG_HEADERS
5225 CONFIG_LINKS = $CONFIG_LINKS
5226 CONFIG_COMMANDS = $CONFIG_COMMANDS
5227 $ $0 $@
5228
81ecdfbb
RW
5229on `(hostname || uname -n) 2>/dev/null | sed 1q`
5230"
5231
bec39cab
AC
5232_ACEOF
5233
81ecdfbb
RW
5234case $ac_config_files in *"
5235"*) set x $ac_config_files; shift; ac_config_files=$*;;
5236esac
bec39cab 5237
81ecdfbb
RW
5238case $ac_config_headers in *"
5239"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5240esac
dae5f5cf 5241
dae5f5cf 5242
81ecdfbb
RW
5243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5244# Files that config.status was made for.
5245config_files="$ac_config_files"
5246config_headers="$ac_config_headers"
5247config_commands="$ac_config_commands"
bec39cab 5248
81ecdfbb 5249_ACEOF
dae5f5cf 5250
81ecdfbb 5251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 5252ac_cs_usage="\
81ecdfbb
RW
5253\`$as_me' instantiates files and other configuration actions
5254from templates according to the current configuration. Unless the files
5255and actions are specified as TAGs, all are instantiated by default.
bec39cab 5256
81ecdfbb 5257Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
5258
5259 -h, --help print this help, then exit
81ecdfbb
RW
5260 -V, --version print version number and configuration settings, then exit
5261 -q, --quiet, --silent
5262 do not print progress messages
bec39cab
AC
5263 -d, --debug don't remove temporary files
5264 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
5265 --file=FILE[:TEMPLATE]
5266 instantiate the configuration file FILE
5267 --header=FILE[:TEMPLATE]
5268 instantiate the configuration header FILE
bec39cab
AC
5269
5270Configuration files:
5271$config_files
5272
5273Configuration headers:
5274$config_headers
5275
5276Configuration commands:
5277$config_commands
5278
81ecdfbb 5279Report bugs to the package provider."
dae5f5cf 5280
81ecdfbb
RW
5281_ACEOF
5282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
5283ac_cs_version="\\
5284config.status
81ecdfbb
RW
5285configured by $0, generated by GNU Autoconf 2.64,
5286 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 5287
81ecdfbb 5288Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
5289This config.status script is free software; the Free Software Foundation
5290gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
5291
5292ac_pwd='$ac_pwd'
5293srcdir='$srcdir'
5294INSTALL='$INSTALL'
5295test -n "\$AWK" || AWK=awk
bec39cab
AC
5296_ACEOF
5297
81ecdfbb
RW
5298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5299# The default lists apply if the user does not specify any file.
bec39cab
AC
5300ac_need_defaults=:
5301while test $# != 0
5302do
5303 case $1 in
5304 --*=*)
81ecdfbb
RW
5305 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5306 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
5307 ac_shift=:
5308 ;;
81ecdfbb 5309 *)
bec39cab
AC
5310 ac_option=$1
5311 ac_optarg=$2
5312 ac_shift=shift
5313 ;;
bec39cab
AC
5314 esac
5315
5316 case $ac_option in
5317 # Handling of the options.
bec39cab
AC
5318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5319 ac_cs_recheck=: ;;
81ecdfbb
RW
5320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5321 $as_echo "$ac_cs_version"; exit ;;
5322 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
5323 debug=: ;;
5324 --file | --fil | --fi | --f )
5325 $ac_shift
81ecdfbb
RW
5326 case $ac_optarg in
5327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5328 esac
5329 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
5330 ac_need_defaults=false;;
5331 --header | --heade | --head | --hea )
5332 $ac_shift
81ecdfbb
RW
5333 case $ac_optarg in
5334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5335 esac
5336 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 5337 ac_need_defaults=false;;
81ecdfbb
RW
5338 --he | --h)
5339 # Conflict between --help and --header
5340 as_fn_error "ambiguous option: \`$1'
5341Try \`$0 --help' for more information.";;
5342 --help | --hel | -h )
5343 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
5344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5346 ac_cs_silent=: ;;
5347
5348 # This is an error.
81ecdfbb
RW
5349 -*) as_fn_error "unrecognized option: \`$1'
5350Try \`$0 --help' for more information." ;;
bec39cab 5351
81ecdfbb
RW
5352 *) as_fn_append ac_config_targets " $1"
5353 ac_need_defaults=false ;;
bec39cab
AC
5354
5355 esac
5356 shift
d6e9fb05 5357done
bec39cab
AC
5358
5359ac_configure_extra_args=
5360
5361if $ac_cs_silent; then
5362 exec 6>/dev/null
5363 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 5364fi
d6e9fb05 5365
bec39cab 5366_ACEOF
81ecdfbb 5367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 5368if \$ac_cs_recheck; then
81ecdfbb
RW
5369 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5370 shift
5371 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5372 CONFIG_SHELL='$SHELL'
5373 export CONFIG_SHELL
5374 exec "\$@"
bec39cab 5375fi
d6e9fb05 5376
bec39cab 5377_ACEOF
81ecdfbb
RW
5378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5379exec 5>>config.log
5380{
5381 echo
5382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5383## Running $as_me. ##
5384_ASBOX
5385 $as_echo "$ac_log"
5386} >&5
bec39cab 5387
81ecdfbb
RW
5388_ACEOF
5389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5390_ACEOF
bec39cab 5391
81ecdfbb 5392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80864fb 5393
81ecdfbb 5394# Handling of arguments.
bec39cab
AC
5395for ac_config_target in $ac_config_targets
5396do
81ecdfbb
RW
5397 case $ac_config_target in
5398 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5399 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5400 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5401
5402 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d6e9fb05 5403 esac
bec39cab
AC
5404done
5405
81ecdfbb 5406
bec39cab
AC
5407# If the user did not use the arguments to specify the items to instantiate,
5408# then the envvar interface is used. Set only those that are not.
5409# We use the long form for the default assignment because of an extremely
5410# bizarre bug on SunOS 4.1.3.
5411if $ac_need_defaults; then
5412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5415fi
d6e9fb05 5416
bec39cab 5417# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 5418# simply because there is no reason against having it here, and in addition,
bec39cab 5419# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
5420# Hook for its removal unless debugging.
5421# Note that there is a small window in which the directory will not be cleaned:
5422# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
5423$debug ||
5424{
81ecdfbb
RW
5425 tmp=
5426 trap 'exit_status=$?
5427 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5428' 0
5429 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 5430}
bec39cab
AC
5431# Create a (secure) tmp directory for tmp files.
5432
5433{
81ecdfbb 5434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
5435 test -n "$tmp" && test -d "$tmp"
5436} ||
5437{
81ecdfbb
RW
5438 tmp=./conf$$-$RANDOM
5439 (umask 077 && mkdir "$tmp")
5440} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5441
5442# Set up the scripts for CONFIG_FILES section.
5443# No need to generate them if there are no CONFIG_FILES.
5444# This happens for instance with `./config.status config.h'.
5445if test -n "$CONFIG_FILES"; then
5446
5447
5448ac_cr=`echo X | tr X '\015'`
5449# On cygwin, bash can eat \r inside `` if the user requested igncr.
5450# But we know of no other shell where ac_cr would be empty at this
5451# point, so we can use a bashism as a fallback.
5452if test "x$ac_cr" = x; then
5453 eval ac_cr=\$\'\\r\'
5454fi
5455ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5456if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5457 ac_cs_awk_cr='\r'
5458else
5459 ac_cs_awk_cr=$ac_cr
5460fi
5461
5462echo 'BEGIN {' >"$tmp/subs1.awk" &&
5463_ACEOF
5464
5465
5466{
5467 echo "cat >conf$$subs.awk <<_ACEOF" &&
5468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5469 echo "_ACEOF"
5470} >conf$$subs.sh ||
5471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5472ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5473ac_delim='%!_!# '
5474for ac_last_try in false false false false false :; do
5475 . ./conf$$subs.sh ||
5476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5477
5478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5479 if test $ac_delim_n = $ac_delim_num; then
5480 break
5481 elif $ac_last_try; then
5482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5483 else
5484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5485 fi
5486done
5487rm -f conf$$subs.sh
5488
5489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5490cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5491_ACEOF
5492sed -n '
5493h
5494s/^/S["/; s/!.*/"]=/
5495p
5496g
5497s/^[^!]*!//
5498:repl
5499t repl
5500s/'"$ac_delim"'$//
5501t delim
5502:nl
5503h
5504s/\(.\{148\}\).*/\1/
5505t more1
5506s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5507p
5508n
5509b repl
5510:more1
5511s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5512p
5513g
5514s/.\{148\}//
5515t nl
5516:delim
5517h
5518s/\(.\{148\}\).*/\1/
5519t more2
5520s/["\\]/\\&/g; s/^/"/; s/$/"/
5521p
5522b
5523:more2
5524s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5525p
5526g
5527s/.\{148\}//
5528t delim
5529' <conf$$subs.awk | sed '
5530/^[^""]/{
5531 N
5532 s/\n//
5533}
5534' >>$CONFIG_STATUS || ac_write_fail=1
5535rm -f conf$$subs.awk
5536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5537_ACAWK
5538cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5539 for (key in S) S_is_set[key] = 1
5540 FS = "\a"
5541
5542}
bec39cab 5543{
81ecdfbb
RW
5544 line = $ 0
5545 nfields = split(line, field, "@")
5546 substed = 0
5547 len = length(field[1])
5548 for (i = 2; i < nfields; i++) {
5549 key = field[i]
5550 keylen = length(key)
5551 if (S_is_set[key]) {
5552 value = S[key]
5553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5554 len += length(value) + length(field[++i])
5555 substed = 1
5556 } else
5557 len += 1 + keylen
5558 }
5559
5560 print line
bec39cab
AC
5561}
5562
81ecdfbb
RW
5563_ACAWK
5564_ACEOF
5565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5566if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5568else
5569 cat
5570fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5571 || as_fn_error "could not setup config files machinery" "$LINENO" 5
dae5f5cf
DJ
5572_ACEOF
5573
81ecdfbb
RW
5574# VPATH may cause trouble with some makes, so we remove $(srcdir),
5575# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5576# trailing colons and then remove the whole line if VPATH becomes empty
5577# (actually we leave an empty line to preserve line numbers).
5578if test "x$srcdir" = x.; then
5579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5580s/:*\$(srcdir):*/:/
5581s/:*\${srcdir}:*/:/
5582s/:*@srcdir@:*/:/
5583s/^\([^=]*=[ ]*\):*/\1/
5584s/:*$//
5585s/^[^=]*=[ ]*$//
5586}'
5587fi
bec39cab 5588
81ecdfbb
RW
5589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5590fi # test -n "$CONFIG_FILES"
bec39cab 5591
81ecdfbb
RW
5592# Set up the scripts for CONFIG_HEADERS section.
5593# No need to generate them if there are no CONFIG_HEADERS.
5594# This happens for instance with `./config.status Makefile'.
5595if test -n "$CONFIG_HEADERS"; then
5596cat >"$tmp/defines.awk" <<\_ACAWK ||
5597BEGIN {
b80864fb
DJ
5598_ACEOF
5599
81ecdfbb
RW
5600# Transform confdefs.h into an awk script `defines.awk', embedded as
5601# here-document in config.status, that substitutes the proper values into
5602# config.h.in to produce config.h.
5603
5604# Create a delimiter string that does not exist in confdefs.h, to ease
5605# handling of long lines.
5606ac_delim='%!_!# '
5607for ac_last_try in false false :; do
5608 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5609 if test -z "$ac_t"; then
5610 break
5611 elif $ac_last_try; then
5612 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5613 else
5614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d6e9fb05 5615 fi
81ecdfbb 5616done
d6e9fb05 5617
81ecdfbb
RW
5618# For the awk script, D is an array of macro values keyed by name,
5619# likewise P contains macro parameters if any. Preserve backslash
5620# newline sequences.
5621
5622ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5623sed -n '
5624s/.\{148\}/&'"$ac_delim"'/g
5625t rset
5626:rset
5627s/^[ ]*#[ ]*define[ ][ ]*/ /
5628t def
5629d
5630:def
5631s/\\$//
5632t bsnl
5633s/["\\]/\\&/g
5634s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5635D["\1"]=" \3"/p
5636s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5637d
5638:bsnl
5639s/["\\]/\\&/g
5640s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5641D["\1"]=" \3\\\\\\n"\\/p
5642t cont
5643s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5644t cont
5645d
5646:cont
5647n
5648s/.\{148\}/&'"$ac_delim"'/g
5649t clear
5650:clear
5651s/\\$//
5652t bsnlc
5653s/["\\]/\\&/g; s/^/"/; s/$/"/p
5654d
5655:bsnlc
5656s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5657b cont
5658' <confdefs.h | sed '
5659s/'"$ac_delim"'/"\\\
5660"/g' >>$CONFIG_STATUS || ac_write_fail=1
5661
5662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5663 for (key in D) D_is_set[key] = 1
5664 FS = "\a"
5665}
5666/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5667 line = \$ 0
5668 split(line, arg, " ")
5669 if (arg[1] == "#") {
5670 defundef = arg[2]
5671 mac1 = arg[3]
5672 } else {
5673 defundef = substr(arg[1], 2)
5674 mac1 = arg[2]
5675 }
5676 split(mac1, mac2, "(") #)
5677 macro = mac2[1]
5678 prefix = substr(line, 1, index(line, defundef) - 1)
5679 if (D_is_set[macro]) {
5680 # Preserve the white space surrounding the "#".
5681 print prefix "define", macro P[macro] D[macro]
5682 next
5683 } else {
5684 # Replace #undef with comments. This is necessary, for example,
5685 # in the case of _POSIX_SOURCE, which is predefined and required
5686 # on some systems where configure will not decide to define it.
5687 if (defundef == "undef") {
5688 print "/*", prefix defundef, macro, "*/"
5689 next
5690 }
5691 }
5692}
5693{ print }
5694_ACAWK
bec39cab 5695_ACEOF
81ecdfbb
RW
5696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5697 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5698fi # test -n "$CONFIG_HEADERS"
5699
5700
5701eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5702shift
5703for ac_tag
5704do
5705 case $ac_tag in
5706 :[FHLC]) ac_mode=$ac_tag; continue;;
5707 esac
5708 case $ac_mode$ac_tag in
5709 :[FHL]*:*);;
5710 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5711 :[FH]-) ac_tag=-:-;;
5712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5713 esac
5714 ac_save_IFS=$IFS
5715 IFS=:
5716 set x $ac_tag
5717 IFS=$ac_save_IFS
5718 shift
5719 ac_file=$1
5720 shift
5721
5722 case $ac_mode in
5723 :L) ac_source=$1;;
5724 :[FH])
5725 ac_file_inputs=
5726 for ac_f
5727 do
5728 case $ac_f in
5729 -) ac_f="$tmp/stdin";;
5730 *) # Look for the file first in the build tree, then in the source tree
5731 # (if the path is not absolute). The absolute path cannot be DOS-style,
5732 # because $ac_f cannot contain `:'.
5733 test -f "$ac_f" ||
5734 case $ac_f in
5735 [\\/$]*) false;;
5736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5737 esac ||
5738 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5739 esac
5740 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5741 as_fn_append ac_file_inputs " '$ac_f'"
5742 done
5743
5744 # Let's still pretend it is `configure' which instantiates (i.e., don't
5745 # use $as_me), people would be surprised to read:
5746 # /* config.h. Generated by config.status. */
5747 configure_input='Generated from '`
5748 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5749 `' by configure.'
5750 if test x"$ac_file" != x-; then
5751 configure_input="$ac_file. $configure_input"
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5753$as_echo "$as_me: creating $ac_file" >&6;}
5754 fi
5755 # Neutralize special characters interpreted by sed in replacement strings.
5756 case $configure_input in #(
5757 *\&* | *\|* | *\\* )
5758 ac_sed_conf_input=`$as_echo "$configure_input" |
5759 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5760 *) ac_sed_conf_input=$configure_input;;
5761 esac
5762
5763 case $ac_tag in
5764 *:-:* | *:-) cat >"$tmp/stdin" \
5765 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5766 esac
5767 ;;
d6e9fb05
JK
5768 esac
5769
81ecdfbb 5770 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
5771$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5772 X"$ac_file" : 'X\(//\)[^/]' \| \
5773 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
5774 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5775$as_echo X"$ac_file" |
5776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5777 s//\1/
5778 q
5779 }
5780 /^X\(\/\/\)[^/].*/{
5781 s//\1/
5782 q
5783 }
5784 /^X\(\/\/\)$/{
5785 s//\1/
5786 q
5787 }
5788 /^X\(\/\).*/{
5789 s//\1/
5790 q
5791 }
5792 s/.*/./; q'`
5793 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
5794 ac_builddir=.
5795
81ecdfbb
RW
5796case "$ac_dir" in
5797.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5798*)
5799 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5800 # A ".." for each directory in $ac_dir_suffix.
5801 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5802 case $ac_top_builddir_sub in
5803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5805 esac ;;
5806esac
5807ac_abs_top_builddir=$ac_pwd
5808ac_abs_builddir=$ac_pwd$ac_dir_suffix
5809# for backward compatibility:
5810ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
5811
5812case $srcdir in
81ecdfbb 5813 .) # We are building in place.
bec39cab 5814 ac_srcdir=.
81ecdfbb
RW
5815 ac_top_srcdir=$ac_top_builddir_sub
5816 ac_abs_top_srcdir=$ac_pwd ;;
5817 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 5818 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
5819 ac_top_srcdir=$srcdir
5820 ac_abs_top_srcdir=$srcdir ;;
5821 *) # Relative name.
5822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5823 ac_top_srcdir=$ac_top_build_prefix$srcdir
5824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 5825esac
81ecdfbb 5826ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 5827
bec39cab 5828
81ecdfbb
RW
5829 case $ac_mode in
5830 :F)
5831 #
5832 # CONFIG_FILE
5833 #
d6e9fb05 5834
bec39cab
AC
5835 case $INSTALL in
5836 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 5837 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d6e9fb05 5838 esac
81ecdfbb 5839_ACEOF
3db0444b 5840
81ecdfbb
RW
5841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5842# If the template does not know about datarootdir, expand it.
5843# FIXME: This hack should be removed a few years after 2.60.
5844ac_datarootdir_hack=; ac_datarootdir_seen=
5845ac_sed_dataroot='
5846/datarootdir/ {
5847 p
5848 q
5849}
5850/@datadir@/p
5851/@docdir@/p
5852/@infodir@/p
5853/@localedir@/p
5854/@mandir@/p'
5855case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5856*datarootdir*) ac_datarootdir_seen=yes;;
5857*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5859$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5860_ACEOF
5861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5862 ac_datarootdir_hack='
5863 s&@datadir@&$datadir&g
5864 s&@docdir@&$docdir&g
5865 s&@infodir@&$infodir&g
5866 s&@localedir@&$localedir&g
5867 s&@mandir@&$mandir&g
5868 s&\\\${datarootdir}&$datarootdir&g' ;;
5869esac
bec39cab 5870_ACEOF
81ecdfbb
RW
5871
5872# Neutralize VPATH when `$srcdir' = `.'.
5873# Shell code in configure.ac might set extrasub.
5874# FIXME: do we really want to maintain this feature?
5875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5876ac_sed_extra="$ac_vpsub
bec39cab
AC
5877$extrasub
5878_ACEOF
81ecdfbb 5879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
5880:t
5881/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
5882s|@configure_input@|$ac_sed_conf_input|;t t
5883s&@top_builddir@&$ac_top_builddir_sub&;t t
5884s&@top_build_prefix@&$ac_top_build_prefix&;t t
5885s&@srcdir@&$ac_srcdir&;t t
5886s&@abs_srcdir@&$ac_abs_srcdir&;t t
5887s&@top_srcdir@&$ac_top_srcdir&;t t
5888s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5889s&@builddir@&$ac_builddir&;t t
5890s&@abs_builddir@&$ac_abs_builddir&;t t
5891s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5892s&@INSTALL@&$ac_INSTALL&;t t
5893$ac_datarootdir_hack
5894"
5895eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5896 || as_fn_error "could not create $ac_file" "$LINENO" 5
5897
5898test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5902which seems to be undefined. Please make sure it is defined." >&5
5903$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5904which seems to be undefined. Please make sure it is defined." >&2;}
5905
5906 rm -f "$tmp/stdin"
bec39cab 5907 case $ac_file in
81ecdfbb
RW
5908 -) cat "$tmp/out" && rm -f "$tmp/out";;
5909 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5910 esac \
5911 || as_fn_error "could not create $ac_file" "$LINENO" 5
5912 ;;
5913 :H)
5914 #
5915 # CONFIG_HEADER
5916 #
bec39cab 5917 if test x"$ac_file" != x-; then
81ecdfbb
RW
5918 {
5919 $as_echo "/* $configure_input */" \
5920 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5921 } >"$tmp/config.h" \
5922 || as_fn_error "could not create $ac_file" "$LINENO" 5
5923 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5925$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 5926 else
81ecdfbb
RW
5927 rm -f "$ac_file"
5928 mv "$tmp/config.h" "$ac_file" \
5929 || as_fn_error "could not create $ac_file" "$LINENO" 5
84563040 5930 fi
bec39cab 5931 else
81ecdfbb
RW
5932 $as_echo "/* $configure_input */" \
5933 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5934 || as_fn_error "could not create -" "$LINENO" 5
d6e9fb05 5935 fi
81ecdfbb 5936 ;;
dae5f5cf 5937
81ecdfbb
RW
5938 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5939$as_echo "$as_me: executing $ac_file commands" >&6;}
5940 ;;
5941 esac
dae5f5cf
DJ
5942
5943
81ecdfbb
RW
5944 case $ac_file$ac_mode in
5945 "default":C) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
5946xconfig.h:config.in)
5947echo > stamp-h ;;
5948esac
bec39cab 5949 ;;
81ecdfbb 5950
bec39cab 5951 esac
81ecdfbb 5952done # for ac_tag
d6e9fb05 5953
bec39cab 5954
81ecdfbb 5955as_fn_exit 0
bec39cab 5956_ACEOF
bec39cab
AC
5957ac_clean_files=$ac_clean_files_save
5958
81ecdfbb
RW
5959test $ac_write_fail = 0 ||
5960 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5961
bec39cab
AC
5962
5963# configure is writing to config.log, and then calls config.status.
5964# config.status does its own redirection, appending to config.log.
5965# Unfortunately, on DOS this fails, as config.log is still kept open
5966# by configure, so config.status won't be able to write to it; its
5967# output is simply discarded. So we exec the FD to /dev/null,
5968# effectively closing config.log, so it can be properly (re)opened and
5969# appended to by config.status. When coming back to configure, we
5970# need to make the FD available again.
5971if test "$no_create" != yes; then
5972 ac_cs_success=:
5973 ac_config_status_args=
5974 test "$silent" = yes &&
5975 ac_config_status_args="$ac_config_status_args --quiet"
5976 exec 5>/dev/null
5977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5978 exec 5>>config.log
5979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5980 # would make configure fail if this is the last instruction.
81ecdfbb
RW
5981 $ac_cs_success || as_fn_exit $?
5982fi
5983if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5985$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bec39cab 5986fi
d6e9fb05 5987
This page took 1.133844 seconds and 4 git commands to generate.