Adding upstream version 0.1.1.
[debian/lxrandr.git] / configure
CommitLineData
e96a0ec2
DB
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d5f1e565 3# Generated by GNU Autoconf 2.63.
e96a0ec2
DB
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
d5f1e565 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
e96a0ec2
DB
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
d5f1e565 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
e96a0ec2
DB
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
d5f1e565
DB
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
e96a0ec2 54 else
d5f1e565
DB
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'
e96a0ec2 67 fi
d5f1e565
DB
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 }
e96a0ec2
DB
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
e96a0ec2
DB
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
d5f1e565 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
e96a0ec2
DB
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
d5f1e565
DB
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
e96a0ec2
DB
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d5f1e565 154$as_echo X/"$0" |
e96a0ec2
DB
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
d5f1e565 180 if test $as_have_required = yes && (eval ":
e96a0ec2
DB
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
d5f1e565 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
e96a0ec2
DB
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
d5f1e565 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
e96a0ec2
DB
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
d5f1e565
DB
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
e96a0ec2
DB
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
d5f1e565
DB
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
e96a0ec2
DB
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
d5f1e565 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
e96a0ec2
DB
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
e96a0ec2
DB
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
d5f1e565
DB
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
e96a0ec2 528 as_ln_s='cp -p'
d5f1e565 529 fi
e96a0ec2
DB
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
d5f1e565 554 test -d "$1/.";
e96a0ec2
DB
555 else
556 case $1 in
d5f1e565 557 -*)set "./$1";;
e96a0ec2
DB
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574exec 7<&0 </dev/null 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="configure.in"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616# include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
d5f1e565
DB
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
e96a0ec2 641LIBOBJS
d5f1e565
DB
642ENABLE_REGENERATE_MAN_FALSE
643ENABLE_REGENERATE_MAN_TRUE
644XMLCATALOG
645XML_CATALOG_FILE
646XSLTPROC
647MKINSTALLDIRS
648POSUB
649POFILES
650PO_IN_DATADIR_FALSE
651PO_IN_DATADIR_TRUE
652INTLLIBS
653INSTOBJEXT
654GMOFILES
655DATADIRNAME
656CATOBJEXT
657CATALOGS
658XGETTEXT
659GMSGFMT
660MSGFMT_OPTS
661MSGFMT
662USE_NLS
663GETTEXT_PACKAGE
664GTK_LIBS
665GTK_CFLAGS
666PKG_CONFIG
667EGREP
668GREP
669CPP
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686MAINT
687MAINTAINER_MODE_FALSE
688MAINTAINER_MODE_TRUE
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_BUGREPORT
743PACKAGE_STRING
744PACKAGE_VERSION
745PACKAGE_TARNAME
746PACKAGE_NAME
747PATH_SEPARATOR
748SHELL'
e96a0ec2 749ac_subst_files=''
d5f1e565
DB
750ac_user_opts='
751enable_option_checking
752enable_maintainer_mode
753enable_dependency_tracking
754enable_man
755with_xml_catalog
756'
e96a0ec2
DB
757 ac_precious_vars='build_alias
758host_alias
759target_alias
760CC
761CFLAGS
762LDFLAGS
763LIBS
764CPPFLAGS
765CPP
766PKG_CONFIG
767GTK_CFLAGS
768GTK_LIBS'
769
770
771# Initialize some variables set by options.
772ac_init_help=
773ac_init_version=false
d5f1e565
DB
774ac_unrecognized_opts=
775ac_unrecognized_sep=
e96a0ec2
DB
776# The variables have the same names as the options, with
777# dashes changed to underlines.
778cache_file=/dev/null
779exec_prefix=NONE
780no_create=
781no_recursion=
782prefix=NONE
783program_prefix=NONE
784program_suffix=NONE
785program_transform_name=s,x,x,
786silent=
787site=
788srcdir=
789verbose=
790x_includes=NONE
791x_libraries=NONE
792
793# Installation directory options.
794# These are left unexpanded so users can "make install exec_prefix=/foo"
795# and all the variables that are supposed to be based on exec_prefix
796# by default will actually change.
797# Use braces instead of parens because sh, perl, etc. also accept them.
798# (The list follows the same order as the GNU Coding Standards.)
799bindir='${exec_prefix}/bin'
800sbindir='${exec_prefix}/sbin'
801libexecdir='${exec_prefix}/libexec'
802datarootdir='${prefix}/share'
803datadir='${datarootdir}'
804sysconfdir='${prefix}/etc'
805sharedstatedir='${prefix}/com'
806localstatedir='${prefix}/var'
807includedir='${prefix}/include'
808oldincludedir='/usr/include'
809docdir='${datarootdir}/doc/${PACKAGE}'
810infodir='${datarootdir}/info'
811htmldir='${docdir}'
812dvidir='${docdir}'
813pdfdir='${docdir}'
814psdir='${docdir}'
815libdir='${exec_prefix}/lib'
816localedir='${datarootdir}/locale'
817mandir='${datarootdir}/man'
818
819ac_prev=
820ac_dashdash=
821for ac_option
822do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *) ac_optarg=yes ;;
833 esac
834
835 # Accept the important Cygnus configure options, so we can diagnose typos.
836
837 case $ac_dashdash$ac_option in
838 --)
839 ac_dashdash=yes ;;
840
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 ac_prev=bindir ;;
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844 bindir=$ac_optarg ;;
845
846 -build | --build | --buil | --bui | --bu)
847 ac_prev=build_alias ;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias=$ac_optarg ;;
850
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file=$ac_optarg ;;
857
858 --config-cache | -C)
859 cache_file=config.cache ;;
860
861 -datadir | --datadir | --datadi | --datad)
862 ac_prev=datadir ;;
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir=$ac_optarg ;;
865
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev=datarootdir ;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir=$ac_optarg ;;
872
873 -disable-* | --disable-*)
d5f1e565 874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e96a0ec2 875 # Reject names that are not valid shell variable names.
d5f1e565
DB
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
e96a0ec2 878 { (exit 1); exit 1; }; }
d5f1e565
DB
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883"enable_$ac_useropt"
884"*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
e96a0ec2
DB
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
d5f1e565 901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e96a0ec2 902 # Reject names that are not valid shell variable names.
d5f1e565
DB
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
e96a0ec2 905 { (exit 1); exit 1; }; }
d5f1e565
DB
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910"enable_$ac_useropt"
911"*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
e96a0ec2
DB
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
d5f1e565 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e96a0ec2 1107 # Reject names that are not valid shell variable names.
d5f1e565
DB
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
e96a0ec2 1110 { (exit 1); exit 1; }; }
d5f1e565
DB
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115"with_$ac_useropt"
1116"*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
e96a0ec2
DB
1121
1122 -without-* | --without-*)
d5f1e565 1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e96a0ec2 1124 # Reject names that are not valid shell variable names.
d5f1e565
DB
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
e96a0ec2 1127 { (exit 1); exit 1; }; }
d5f1e565
DB
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132"with_$ac_useropt"
1133"*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=no ;;
e96a0ec2
DB
1138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
d5f1e565 1157 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
e96a0ec2
DB
1158Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
d5f1e565 1166 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
e96a0ec2
DB
1167 { (exit 1); exit 1; }; }
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
d5f1e565 1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
e96a0ec2 1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d5f1e565 1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
e96a0ec2
DB
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 ;;
1178
1179 esac
1180done
1181
1182if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d5f1e565 1184 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
e96a0ec2
DB
1185 { (exit 1); exit 1; }; }
1186fi
1187
d5f1e565
DB
1188if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1192 { (exit 1); exit 1; }; } ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 esac
1195fi
1196
1197# Check all directory arguments for consistency.
e96a0ec2
DB
1198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1202do
1203 eval ac_val=\$$ac_var
d5f1e565
DB
1204 # Remove trailing slashes.
1205 case $ac_val in
1206 */ )
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1209 esac
1210 # Be sure to have absolute directory names.
e96a0ec2
DB
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
d5f1e565 1215 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
e96a0ec2
DB
1216 { (exit 1); exit 1; }; }
1217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
d5f1e565 1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
e96a0ec2
DB
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d5f1e565 1246 { $as_echo "$as_me: error: working directory cannot be determined" >&2
e96a0ec2
DB
1247 { (exit 1); exit 1; }; }
1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d5f1e565 1249 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
e96a0ec2
DB
1250 { (exit 1); exit 1; }; }
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
d5f1e565
DB
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262$as_echo X"$as_myself" |
e96a0ec2
DB
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d5f1e565 1289 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
e96a0ec2
DB
1290 { (exit 1); exit 1; }; }
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
d5f1e565 1294 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
e96a0ec2
DB
1295 { (exit 1); exit 1; }; }
1296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321\`configure' configures this package to adapt to many kinds of systems.
1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
d5f1e565 1343 [$ac_default_prefix]
e96a0ec2 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
d5f1e565 1345 [PREFIX]
e96a0ec2
DB
1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
d5f1e565
DB
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
e96a0ec2
DB
1374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386
1387 cat <<\_ACEOF
1388
1389Optional Features:
d5f1e565 1390 --disable-option-checking ignore unrecognized --enable/--with options
e96a0ec2
DB
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
d5f1e565
DB
1397 --enable-man regenerate roff man pages from Docbook [default=no]
1398
1399Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-xml-catalog=CATALOG
1403 path to xml catalog to use
e96a0ec2
DB
1404
1405Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1414 PKG_CONFIG path to pkg-config utility
1415 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1416 GTK_LIBS linker flags for GTK, overriding pkg-config
1417
1418Use these variables to override the choices made by `configure' or to help
1419it to find libraries and programs with nonstandard names/locations.
1420
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
d5f1e565
DB
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
e96a0ec2
DB
1431 ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
d5f1e565 1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e96a0ec2 1437 # A ".." for each directory in $ac_dir_suffix.
d5f1e565 1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e96a0ec2
DB
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
d5f1e565 1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e96a0ec2
DB
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482 cat <<\_ACEOF
1483configure
d5f1e565 1484generated by GNU Autoconf 2.63
e96a0ec2
DB
1485
1486Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
d5f1e565 14872002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
e96a0ec2
DB
1488This configure script is free software; the Free Software Foundation
1489gives unlimited permission to copy, distribute and modify it.
1490_ACEOF
1491 exit
1492fi
1493cat >config.log <<_ACEOF
1494This file contains any messages produced by compilers while
1495running configure, to aid debugging if configure makes a mistake.
1496
1497It was created by $as_me, which was
d5f1e565 1498generated by GNU Autoconf 2.63. Invocation command line was
e96a0ec2
DB
1499
1500 $ $0 $@
1501
1502_ACEOF
1503exec 5>>config.log
1504{
1505cat <<_ASUNAME
1506## --------- ##
1507## Platform. ##
1508## --------- ##
1509
1510hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1511uname -m = `(uname -m) 2>/dev/null || echo unknown`
1512uname -r = `(uname -r) 2>/dev/null || echo unknown`
1513uname -s = `(uname -s) 2>/dev/null || echo unknown`
1514uname -v = `(uname -v) 2>/dev/null || echo unknown`
1515
1516/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1517/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1518
1519/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1520/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1521/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1522/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1523/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1524/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1525/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1526
1527_ASUNAME
1528
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
d5f1e565 1534 $as_echo "PATH: $as_dir"
e96a0ec2
DB
1535done
1536IFS=$as_save_IFS
1537
1538} >&5
1539
1540cat >&5 <<_ACEOF
1541
1542
1543## ----------- ##
1544## Core tests. ##
1545## ----------- ##
1546
1547_ACEOF
1548
1549
1550# Keep a trace of the command line.
1551# Strip out --no-create and --no-recursion so they do not pile up.
1552# Strip out --silent because we don't want to record it for future runs.
1553# Also quote any args containing shell meta-characters.
1554# Make two passes to allow for proper duplicate-argument suppression.
1555ac_configure_args=
1556ac_configure_args0=
1557ac_configure_args1=
1558ac_must_keep_next=false
1559for ac_pass in 1 2
1560do
1561 for ac_arg
1562 do
1563 case $ac_arg in
1564 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1566 | -silent | --silent | --silen | --sile | --sil)
1567 continue ;;
1568 *\'*)
d5f1e565 1569 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
e96a0ec2
DB
1570 esac
1571 case $ac_pass in
1572 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1573 2)
1574 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1575 if test $ac_must_keep_next = true; then
1576 ac_must_keep_next=false # Got value, back to normal.
1577 else
1578 case $ac_arg in
1579 *=* | --config-cache | -C | -disable-* | --disable-* \
1580 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1581 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1582 | -with-* | --with-* | -without-* | --without-* | --x)
1583 case "$ac_configure_args0 " in
1584 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1585 esac
1586 ;;
1587 -* ) ac_must_keep_next=true ;;
1588 esac
1589 fi
1590 ac_configure_args="$ac_configure_args '$ac_arg'"
1591 ;;
1592 esac
1593 done
1594done
1595$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1596$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1597
1598# When interrupted or exit'd, cleanup temporary files, and complete
1599# config.log. We remove comments because anyway the quotes in there
1600# would cause problems or look ugly.
1601# WARNING: Use '\'' to represent an apostrophe within the trap.
1602# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1603trap 'exit_status=$?
1604 # Save into config.log some information that might help in debugging.
1605 {
1606 echo
1607
1608 cat <<\_ASBOX
1609## ---------------- ##
1610## Cache variables. ##
1611## ---------------- ##
1612_ASBOX
1613 echo
1614 # The following way of writing the cache mishandles newlines in values,
1615(
1616 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1617 eval ac_val=\$$ac_var
1618 case $ac_val in #(
1619 *${as_nl}*)
1620 case $ac_var in #(
d5f1e565
DB
1621 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e96a0ec2
DB
1623 esac
1624 case $ac_var in #(
1625 _ | IFS | as_nl) ;; #(
d5f1e565 1626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
e96a0ec2
DB
1627 *) $as_unset $ac_var ;;
1628 esac ;;
1629 esac
1630 done
1631 (set) 2>&1 |
1632 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1633 *${as_nl}ac_space=\ *)
1634 sed -n \
1635 "s/'\''/'\''\\\\'\'''\''/g;
1636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1637 ;; #(
1638 *)
1639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1640 ;;
1641 esac |
1642 sort
1643)
1644 echo
1645
1646 cat <<\_ASBOX
1647## ----------------- ##
1648## Output variables. ##
1649## ----------------- ##
1650_ASBOX
1651 echo
1652 for ac_var in $ac_subst_vars
1653 do
1654 eval ac_val=\$$ac_var
1655 case $ac_val in
d5f1e565 1656 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
e96a0ec2 1657 esac
d5f1e565 1658 $as_echo "$ac_var='\''$ac_val'\''"
e96a0ec2
DB
1659 done | sort
1660 echo
1661
1662 if test -n "$ac_subst_files"; then
1663 cat <<\_ASBOX
1664## ------------------- ##
1665## File substitutions. ##
1666## ------------------- ##
1667_ASBOX
1668 echo
1669 for ac_var in $ac_subst_files
1670 do
1671 eval ac_val=\$$ac_var
1672 case $ac_val in
d5f1e565 1673 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
e96a0ec2 1674 esac
d5f1e565 1675 $as_echo "$ac_var='\''$ac_val'\''"
e96a0ec2
DB
1676 done | sort
1677 echo
1678 fi
1679
1680 if test -s confdefs.h; then
1681 cat <<\_ASBOX
1682## ----------- ##
1683## confdefs.h. ##
1684## ----------- ##
1685_ASBOX
1686 echo
1687 cat confdefs.h
1688 echo
1689 fi
1690 test "$ac_signal" != 0 &&
d5f1e565
DB
1691 $as_echo "$as_me: caught signal $ac_signal"
1692 $as_echo "$as_me: exit $exit_status"
e96a0ec2
DB
1693 } >&5
1694 rm -f core *.core core.conftest.* &&
1695 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1696 exit $exit_status
1697' 0
1698for ac_signal in 1 2 13 15; do
1699 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1700done
1701ac_signal=0
1702
1703# confdefs.h avoids OS command line length limits that DEFS can exceed.
1704rm -f -r conftest* confdefs.h
1705
1706# Predefined preprocessor variables.
1707
1708cat >>confdefs.h <<_ACEOF
1709#define PACKAGE_NAME "$PACKAGE_NAME"
1710_ACEOF
1711
1712
1713cat >>confdefs.h <<_ACEOF
1714#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1715_ACEOF
1716
1717
1718cat >>confdefs.h <<_ACEOF
1719#define PACKAGE_VERSION "$PACKAGE_VERSION"
1720_ACEOF
1721
1722
1723cat >>confdefs.h <<_ACEOF
1724#define PACKAGE_STRING "$PACKAGE_STRING"
1725_ACEOF
1726
1727
1728cat >>confdefs.h <<_ACEOF
1729#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1730_ACEOF
1731
1732
1733# Let the site file select an alternate cache file if it wants to.
d5f1e565
DB
1734# Prefer an explicitly selected file to automatically selected ones.
1735ac_site_file1=NONE
1736ac_site_file2=NONE
e96a0ec2 1737if test -n "$CONFIG_SITE"; then
d5f1e565 1738 ac_site_file1=$CONFIG_SITE
e96a0ec2 1739elif test "x$prefix" != xNONE; then
d5f1e565
DB
1740 ac_site_file1=$prefix/share/config.site
1741 ac_site_file2=$prefix/etc/config.site
e96a0ec2 1742else
d5f1e565
DB
1743 ac_site_file1=$ac_default_prefix/share/config.site
1744 ac_site_file2=$ac_default_prefix/etc/config.site
e96a0ec2 1745fi
d5f1e565 1746for ac_site_file in "$ac_site_file1" "$ac_site_file2"
e96a0ec2 1747do
d5f1e565 1748 test "x$ac_site_file" = xNONE && continue
e96a0ec2 1749 if test -r "$ac_site_file"; then
d5f1e565
DB
1750 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1751$as_echo "$as_me: loading site script $ac_site_file" >&6;}
e96a0ec2
DB
1752 sed 's/^/| /' "$ac_site_file" >&5
1753 . "$ac_site_file"
1754 fi
1755done
1756
1757if test -r "$cache_file"; then
1758 # Some versions of bash will fail to source /dev/null (special
1759 # files actually), so we avoid doing that.
1760 if test -f "$cache_file"; then
d5f1e565
DB
1761 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1762$as_echo "$as_me: loading cache $cache_file" >&6;}
e96a0ec2
DB
1763 case $cache_file in
1764 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1765 *) . "./$cache_file";;
1766 esac
1767 fi
1768else
d5f1e565
DB
1769 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1770$as_echo "$as_me: creating cache $cache_file" >&6;}
e96a0ec2
DB
1771 >$cache_file
1772fi
1773
1774# Check that the precious variables saved in the cache have kept the same
1775# value.
1776ac_cache_corrupted=false
1777for ac_var in $ac_precious_vars; do
1778 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1779 eval ac_new_set=\$ac_env_${ac_var}_set
1780 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1781 eval ac_new_val=\$ac_env_${ac_var}_value
1782 case $ac_old_set,$ac_new_set in
1783 set,)
d5f1e565
DB
1784 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1785$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
e96a0ec2
DB
1786 ac_cache_corrupted=: ;;
1787 ,set)
d5f1e565
DB
1788 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1789$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
e96a0ec2
DB
1790 ac_cache_corrupted=: ;;
1791 ,);;
1792 *)
1793 if test "x$ac_old_val" != "x$ac_new_val"; then
d5f1e565
DB
1794 # differences in whitespace do not lead to failure.
1795 ac_old_val_w=`echo x $ac_old_val`
1796 ac_new_val_w=`echo x $ac_new_val`
1797 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1798 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1799$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1800 ac_cache_corrupted=:
1801 else
1802 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1803$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1804 eval $ac_var=\$ac_old_val
1805 fi
1806 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1807$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1808 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1809$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
e96a0ec2
DB
1810 fi;;
1811 esac
1812 # Pass precious variables to config.status.
1813 if test "$ac_new_set" = set; then
1814 case $ac_new_val in
d5f1e565 1815 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
e96a0ec2
DB
1816 *) ac_arg=$ac_var=$ac_new_val ;;
1817 esac
1818 case " $ac_configure_args " in
1819 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1820 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1821 esac
1822 fi
1823done
1824if $ac_cache_corrupted; then
d5f1e565
DB
1825 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1827 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
e96a0ec2
DB
1831 { (exit 1); exit 1; }; }
1832fi
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850ac_ext=c
1851ac_cpp='$CPP $CPPFLAGS'
1852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855
1856
d5f1e565 1857am__api_version='1.11'
e96a0ec2
DB
1858
1859ac_aux_dir=
1860for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1861 if test -f "$ac_dir/install-sh"; then
1862 ac_aux_dir=$ac_dir
1863 ac_install_sh="$ac_aux_dir/install-sh -c"
1864 break
1865 elif test -f "$ac_dir/install.sh"; then
1866 ac_aux_dir=$ac_dir
1867 ac_install_sh="$ac_aux_dir/install.sh -c"
1868 break
1869 elif test -f "$ac_dir/shtool"; then
1870 ac_aux_dir=$ac_dir
1871 ac_install_sh="$ac_aux_dir/shtool install -c"
1872 break
1873 fi
1874done
1875if test -z "$ac_aux_dir"; then
d5f1e565
DB
1876 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1877$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
e96a0ec2
DB
1878 { (exit 1); exit 1; }; }
1879fi
1880
1881# These three variables are undocumented and unsupported,
1882# and are intended to be withdrawn in a future Autoconf release.
1883# They can cause serious problems if a builder's source tree is in a directory
1884# whose full name contains unusual characters.
1885ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1886ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1887ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1888
1889
1890# Find a good install program. We prefer a C program (faster),
1891# so one script is as good as another. But avoid the broken or
1892# incompatible versions:
1893# SysV /etc/install, /usr/sbin/install
1894# SunOS /usr/etc/install
1895# IRIX /sbin/install
1896# AIX /bin/install
1897# AmigaOS /C/install, which installs bootblocks on floppy discs
1898# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1899# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1900# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1901# OS/2's system install, which has a completely different semantic
1902# ./install, which can be erroneously created by make from ./install.sh.
d5f1e565
DB
1903# Reject install programs that cannot install multiple files.
1904{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1905$as_echo_n "checking for a BSD-compatible install... " >&6; }
e96a0ec2
DB
1906if test -z "$INSTALL"; then
1907if test "${ac_cv_path_install+set}" = set; then
d5f1e565 1908 $as_echo_n "(cached) " >&6
e96a0ec2
DB
1909else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 # Account for people who put trailing slashes in PATH elements.
1916case $as_dir/ in
1917 ./ | .// | /cC/* | \
1918 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1919 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1920 /usr/ucb/* ) ;;
1921 *)
1922 # OSF1 and SCO ODT 3.0 have their own names for install.
1923 # Don't use installbsd from OSF since it installs stuff as root
1924 # by default.
1925 for ac_prog in ginstall scoinst install; do
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1928 if test $ac_prog = install &&
1929 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1930 # AIX install. It has an incompatible calling convention.
1931 :
1932 elif test $ac_prog = install &&
1933 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1934 # program-specific install script used by HP pwplus--don't use.
1935 :
1936 else
d5f1e565
DB
1937 rm -rf conftest.one conftest.two conftest.dir
1938 echo one > conftest.one
1939 echo two > conftest.two
1940 mkdir conftest.dir
1941 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1942 test -s conftest.one && test -s conftest.two &&
1943 test -s conftest.dir/conftest.one &&
1944 test -s conftest.dir/conftest.two
1945 then
1946 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1947 break 3
1948 fi
e96a0ec2
DB
1949 fi
1950 fi
1951 done
1952 done
1953 ;;
1954esac
d5f1e565 1955
e96a0ec2
DB
1956done
1957IFS=$as_save_IFS
1958
d5f1e565 1959rm -rf conftest.one conftest.two conftest.dir
e96a0ec2
DB
1960
1961fi
1962 if test "${ac_cv_path_install+set}" = set; then
1963 INSTALL=$ac_cv_path_install
1964 else
1965 # As a last resort, use the slow shell script. Don't cache a
1966 # value for INSTALL within a source directory, because that will
1967 # break other packages using the cache if that directory is
1968 # removed, or if the value is a relative name.
1969 INSTALL=$ac_install_sh
1970 fi
1971fi
d5f1e565
DB
1972{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1973$as_echo "$INSTALL" >&6; }
e96a0ec2
DB
1974
1975# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1976# It thinks the first close brace ends the variable substitution.
1977test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1978
1979test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1980
1981test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1982
d5f1e565
DB
1983{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1984$as_echo_n "checking whether build environment is sane... " >&6; }
e96a0ec2
DB
1985# Just in case
1986sleep 1
1987echo timestamp > conftest.file
d5f1e565
DB
1988# Reject unsafe characters in $srcdir or the absolute working directory
1989# name. Accept space and tab only in the latter.
1990am_lf='
1991'
1992case `pwd` in
1993 *[\\\"\#\$\&\'\`$am_lf]*)
1994 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
1995$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
1996 { (exit 1); exit 1; }; };;
1997esac
1998case $srcdir in
1999 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2000 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2001$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2002 { (exit 1); exit 1; }; };;
2003esac
2004
e96a0ec2
DB
2005# Do `set' in a subshell so we don't clobber the current shell's
2006# arguments. Must try -L first in case configure is actually a
2007# symlink; some systems play weird games with the mod time of symlinks
2008# (eg FreeBSD returns the mod time of the symlink's containing
2009# directory).
2010if (
d5f1e565 2011 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
e96a0ec2
DB
2012 if test "$*" = "X"; then
2013 # -L didn't work.
d5f1e565 2014 set X `ls -t "$srcdir/configure" conftest.file`
e96a0ec2
DB
2015 fi
2016 rm -f conftest.file
2017 if test "$*" != "X $srcdir/configure conftest.file" \
2018 && test "$*" != "X conftest.file $srcdir/configure"; then
2019
2020 # If neither matched, then we have a broken ls. This can happen
2021 # if, for instance, CONFIG_SHELL is bash and it inherits a
2022 # broken ls alias from the environment. This has actually
2023 # happened. Such a system could not be considered "sane".
d5f1e565 2024 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
e96a0ec2 2025alias in your environment" >&5
d5f1e565 2026$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
e96a0ec2
DB
2027alias in your environment" >&2;}
2028 { (exit 1); exit 1; }; }
2029 fi
2030
2031 test "$2" = conftest.file
2032 )
2033then
2034 # Ok.
2035 :
2036else
d5f1e565 2037 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
e96a0ec2 2038Check your system clock" >&5
d5f1e565 2039$as_echo "$as_me: error: newly created file is older than distributed files!
e96a0ec2
DB
2040Check your system clock" >&2;}
2041 { (exit 1); exit 1; }; }
2042fi
d5f1e565
DB
2043{ $as_echo "$as_me:$LINENO: result: yes" >&5
2044$as_echo "yes" >&6; }
e96a0ec2
DB
2045test "$program_prefix" != NONE &&
2046 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2047# Use a double $ so make ignores it.
2048test "$program_suffix" != NONE &&
2049 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d5f1e565 2050# Double any \ or $.
e96a0ec2 2051# By default was `s,x,x', remove it if useless.
d5f1e565
DB
2052ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2053program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
e96a0ec2
DB
2054
2055# expand $ac_aux_dir to an absolute path
2056am_aux_dir=`cd $ac_aux_dir && pwd`
2057
d5f1e565
DB
2058if test x"${MISSING+set}" != xset; then
2059 case $am_aux_dir in
2060 *\ * | *\ *)
2061 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2062 *)
2063 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2064 esac
2065fi
e96a0ec2
DB
2066# Use eval to expand $SHELL
2067if eval "$MISSING --run true"; then
2068 am_missing_run="$MISSING --run "
2069else
2070 am_missing_run=
d5f1e565
DB
2071 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2072$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2073fi
2074
2075if test x"${install_sh}" != xset; then
2076 case $am_aux_dir in
2077 *\ * | *\ *)
2078 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2079 *)
2080 install_sh="\${SHELL} $am_aux_dir/install-sh"
2081 esac
2082fi
2083
2084# Installed binaries are usually stripped using `strip' when the user
2085# run `make install-strip'. However `strip' might not be the right
2086# tool to use in cross-compilation environments, therefore Automake
2087# will honor the `STRIP' environment variable to overrule this program.
2088if test "$cross_compiling" != no; then
2089 if test -n "$ac_tool_prefix"; then
2090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2091set dummy ${ac_tool_prefix}strip; ac_word=$2
2092{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2093$as_echo_n "checking for $ac_word... " >&6; }
2094if test "${ac_cv_prog_STRIP+set}" = set; then
2095 $as_echo_n "(cached) " >&6
2096else
2097 if test -n "$STRIP"; then
2098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2099else
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2110 fi
2111done
2112done
2113IFS=$as_save_IFS
2114
2115fi
2116fi
2117STRIP=$ac_cv_prog_STRIP
2118if test -n "$STRIP"; then
2119 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2120$as_echo "$STRIP" >&6; }
2121else
2122 { $as_echo "$as_me:$LINENO: result: no" >&5
2123$as_echo "no" >&6; }
e96a0ec2
DB
2124fi
2125
d5f1e565
DB
2126
2127fi
2128if test -z "$ac_cv_prog_STRIP"; then
2129 ac_ct_STRIP=$STRIP
2130 # Extract the first word of "strip", so it can be a program name with args.
2131set dummy strip; ac_word=$2
2132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2133$as_echo_n "checking for $ac_word... " >&6; }
2134if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2135 $as_echo_n "(cached) " >&6
2136else
2137 if test -n "$ac_ct_STRIP"; then
2138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2139else
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_ac_ct_STRIP="strip"
2148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151done
2152done
2153IFS=$as_save_IFS
2154
2155fi
2156fi
2157ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2158if test -n "$ac_ct_STRIP"; then
2159 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2160$as_echo "$ac_ct_STRIP" >&6; }
2161else
2162 { $as_echo "$as_me:$LINENO: result: no" >&5
2163$as_echo "no" >&6; }
2164fi
2165
2166 if test "x$ac_ct_STRIP" = x; then
2167 STRIP=":"
2168 else
2169 case $cross_compiling:$ac_tool_warned in
2170yes:)
2171{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2173ac_tool_warned=yes ;;
2174esac
2175 STRIP=$ac_ct_STRIP
2176 fi
2177else
2178 STRIP="$ac_cv_prog_STRIP"
2179fi
2180
2181fi
2182INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2183
2184{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2185$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
e96a0ec2
DB
2186if test -z "$MKDIR_P"; then
2187 if test "${ac_cv_path_mkdir+set}" = set; then
d5f1e565 2188 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2189else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2192do
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_prog in mkdir gmkdir; do
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2199 'mkdir (GNU coreutils) '* | \
2200 'mkdir (coreutils) '* | \
2201 'mkdir (fileutils) '4.1*)
2202 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2203 break 3;;
2204 esac
2205 done
2206 done
2207done
2208IFS=$as_save_IFS
2209
2210fi
2211
2212 if test "${ac_cv_path_mkdir+set}" = set; then
2213 MKDIR_P="$ac_cv_path_mkdir -p"
2214 else
2215 # As a last resort, use the slow shell script. Don't cache a
2216 # value for MKDIR_P within a source directory, because that will
2217 # break other packages using the cache if that directory is
2218 # removed, or if the value is a relative name.
2219 test -d ./--version && rmdir ./--version
2220 MKDIR_P="$ac_install_sh -d"
2221 fi
2222fi
d5f1e565
DB
2223{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2224$as_echo "$MKDIR_P" >&6; }
e96a0ec2
DB
2225
2226mkdir_p="$MKDIR_P"
2227case $mkdir_p in
2228 [\\/$]* | ?:[\\/]*) ;;
2229 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2230esac
2231
2232for ac_prog in gawk mawk nawk awk
2233do
2234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2235set dummy $ac_prog; ac_word=$2
d5f1e565
DB
2236{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2237$as_echo_n "checking for $ac_word... " >&6; }
e96a0ec2 2238if test "${ac_cv_prog_AWK+set}" = set; then
d5f1e565 2239 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2240else
2241 if test -n "$AWK"; then
2242 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2243else
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_AWK="$ac_prog"
d5f1e565 2252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e96a0ec2
DB
2253 break 2
2254 fi
2255done
2256done
2257IFS=$as_save_IFS
2258
2259fi
2260fi
2261AWK=$ac_cv_prog_AWK
2262if test -n "$AWK"; then
d5f1e565
DB
2263 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2264$as_echo "$AWK" >&6; }
e96a0ec2 2265else
d5f1e565
DB
2266 { $as_echo "$as_me:$LINENO: result: no" >&5
2267$as_echo "no" >&6; }
e96a0ec2
DB
2268fi
2269
2270
2271 test -n "$AWK" && break
2272done
2273
d5f1e565
DB
2274{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2275$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2276set x ${MAKE-make}
2277ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
e96a0ec2 2278if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d5f1e565 2279 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2280else
2281 cat >conftest.make <<\_ACEOF
2282SHELL = /bin/sh
2283all:
2284 @echo '@@@%%%=$(MAKE)=@@@%%%'
2285_ACEOF
2286# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2287case `${MAKE-make} -f conftest.make 2>/dev/null` in
2288 *@@@%%%=?*=@@@%%%*)
2289 eval ac_cv_prog_make_${ac_make}_set=yes;;
2290 *)
2291 eval ac_cv_prog_make_${ac_make}_set=no;;
2292esac
2293rm -f conftest.make
2294fi
2295if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
d5f1e565
DB
2296 { $as_echo "$as_me:$LINENO: result: yes" >&5
2297$as_echo "yes" >&6; }
e96a0ec2
DB
2298 SET_MAKE=
2299else
d5f1e565
DB
2300 { $as_echo "$as_me:$LINENO: result: no" >&5
2301$as_echo "no" >&6; }
e96a0ec2
DB
2302 SET_MAKE="MAKE=${MAKE-make}"
2303fi
2304
2305rm -rf .tst 2>/dev/null
2306mkdir .tst 2>/dev/null
2307if test -d .tst; then
2308 am__leading_dot=.
2309else
2310 am__leading_dot=_
2311fi
2312rmdir .tst 2>/dev/null
2313
2314if test "`cd $srcdir && pwd`" != "`pwd`"; then
2315 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2316 # is not polluted with repeated "-I."
2317 am__isrc=' -I$(srcdir)'
2318 # test to see if srcdir already configured
2319 if test -f $srcdir/config.status; then
d5f1e565
DB
2320 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2321$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
e96a0ec2
DB
2322 { (exit 1); exit 1; }; }
2323 fi
2324fi
2325
2326# test whether we have cygpath
2327if test -z "$CYGPATH_W"; then
2328 if (cygpath --version) >/dev/null 2>/dev/null; then
2329 CYGPATH_W='cygpath -w'
2330 else
2331 CYGPATH_W=echo
2332 fi
2333fi
2334
2335
2336# Define the identity of the package.
2337 PACKAGE=lxrandr
2338 VERSION=0.1.1
2339
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE "$PACKAGE"
2343_ACEOF
2344
2345
2346cat >>confdefs.h <<_ACEOF
2347#define VERSION "$VERSION"
2348_ACEOF
2349
2350# Some tools Automake needs.
2351
2352ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2353
2354
2355AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2356
2357
2358AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2359
2360
2361AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2362
2363
2364MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2365
e96a0ec2
DB
2366# We need awk for the "check" target. The system "awk" is bad on
2367# some platforms.
2368# Always define AMTAR for backward compatibility.
2369
2370AMTAR=${AMTAR-"${am_missing_run}tar"}
2371
2372am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2373
2374
2375
2376
2377
2378ac_config_headers="$ac_config_headers config.h"
2379
d5f1e565
DB
2380
2381{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2382$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
e96a0ec2
DB
2383 # Check whether --enable-maintainer-mode was given.
2384if test "${enable_maintainer_mode+set}" = set; then
2385 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2386else
2387 USE_MAINTAINER_MODE=no
2388fi
2389
d5f1e565
DB
2390 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2391$as_echo "$USE_MAINTAINER_MODE" >&6; }
e96a0ec2
DB
2392 if test $USE_MAINTAINER_MODE = yes; then
2393 MAINTAINER_MODE_TRUE=
2394 MAINTAINER_MODE_FALSE='#'
2395else
2396 MAINTAINER_MODE_TRUE='#'
2397 MAINTAINER_MODE_FALSE=
2398fi
2399
2400 MAINT=$MAINTAINER_MODE_TRUE
2401
2402
2403
2404DEPDIR="${am__leading_dot}deps"
2405
2406ac_config_commands="$ac_config_commands depfiles"
2407
2408
2409am_make=${MAKE-make}
2410cat > confinc << 'END'
2411am__doit:
d5f1e565 2412 @echo this is the am__doit target
e96a0ec2
DB
2413.PHONY: am__doit
2414END
2415# If we don't find an include directive, just comment out the code.
d5f1e565
DB
2416{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2417$as_echo_n "checking for style of include used by $am_make... " >&6; }
e96a0ec2
DB
2418am__include="#"
2419am__quote=
2420_am_result=none
2421# First try GNU make style include.
2422echo "include confinc" > confmf
d5f1e565
DB
2423# Ignore all kinds of additional output from `make'.
2424case `$am_make -s -f confmf 2> /dev/null` in #(
2425*the\ am__doit\ target*)
2426 am__include=include
2427 am__quote=
2428 _am_result=GNU
2429 ;;
2430esac
e96a0ec2
DB
2431# Now try BSD make style include.
2432if test "$am__include" = "#"; then
2433 echo '.include "confinc"' > confmf
d5f1e565
DB
2434 case `$am_make -s -f confmf 2> /dev/null` in #(
2435 *the\ am__doit\ target*)
2436 am__include=.include
2437 am__quote="\""
2438 _am_result=BSD
2439 ;;
2440 esac
e96a0ec2
DB
2441fi
2442
2443
d5f1e565
DB
2444{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2445$as_echo "$_am_result" >&6; }
e96a0ec2
DB
2446rm -f confinc confmf
2447
2448# Check whether --enable-dependency-tracking was given.
2449if test "${enable_dependency_tracking+set}" = set; then
2450 enableval=$enable_dependency_tracking;
2451fi
2452
2453if test "x$enable_dependency_tracking" != xno; then
2454 am_depcomp="$ac_aux_dir/depcomp"
2455 AMDEPBACKSLASH='\'
2456fi
2457 if test "x$enable_dependency_tracking" != xno; then
2458 AMDEP_TRUE=
2459 AMDEP_FALSE='#'
2460else
2461 AMDEP_TRUE='#'
2462 AMDEP_FALSE=
2463fi
2464
2465
2466ac_ext=c
2467ac_cpp='$CPP $CPPFLAGS'
2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2473set dummy ${ac_tool_prefix}gcc; ac_word=$2
d5f1e565
DB
2474{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
e96a0ec2 2476if test "${ac_cv_prog_CC+set}" = set; then
d5f1e565 2477 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2478else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
d5f1e565 2490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e96a0ec2
DB
2491 break 2
2492 fi
2493done
2494done
2495IFS=$as_save_IFS
2496
2497fi
2498fi
2499CC=$ac_cv_prog_CC
2500if test -n "$CC"; then
d5f1e565
DB
2501 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2502$as_echo "$CC" >&6; }
e96a0ec2 2503else
d5f1e565
DB
2504 { $as_echo "$as_me:$LINENO: result: no" >&5
2505$as_echo "no" >&6; }
e96a0ec2
DB
2506fi
2507
2508
2509fi
2510if test -z "$ac_cv_prog_CC"; then
2511 ac_ct_CC=$CC
2512 # Extract the first word of "gcc", so it can be a program name with args.
2513set dummy gcc; ac_word=$2
d5f1e565
DB
2514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
e96a0ec2 2516if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d5f1e565 2517 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2518else
2519 if test -n "$ac_ct_CC"; then
2520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_ac_ct_CC="gcc"
d5f1e565 2530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e96a0ec2
DB
2531 break 2
2532 fi
2533done
2534done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540if test -n "$ac_ct_CC"; then
d5f1e565
DB
2541 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2542$as_echo "$ac_ct_CC" >&6; }
e96a0ec2 2543else
d5f1e565
DB
2544 { $as_echo "$as_me:$LINENO: result: no" >&5
2545$as_echo "no" >&6; }
e96a0ec2
DB
2546fi
2547
2548 if test "x$ac_ct_CC" = x; then
2549 CC=""
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552yes:)
d5f1e565
DB
2553{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e96a0ec2
DB
2555ac_tool_warned=yes ;;
2556esac
2557 CC=$ac_ct_CC
2558 fi
2559else
2560 CC="$ac_cv_prog_CC"
2561fi
2562
2563if test -z "$CC"; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}cc; ac_word=$2
d5f1e565
DB
2567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
e96a0ec2 2569if test "${ac_cv_prog_CC+set}" = set; then
d5f1e565 2570 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC="${ac_tool_prefix}cc"
d5f1e565 2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e96a0ec2
DB
2584 break 2
2585 fi
2586done
2587done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
d5f1e565
DB
2594 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2595$as_echo "$CC" >&6; }
e96a0ec2 2596else
d5f1e565
DB
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598$as_echo "no" >&6; }
e96a0ec2
DB
2599fi
2600
2601
2602 fi
2603fi
2604if test -z "$CC"; then
2605 # Extract the first word of "cc", so it can be a program name with args.
2606set dummy cc; ac_word=$2
d5f1e565
DB
2607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
e96a0ec2 2609if test "${ac_cv_prog_CC+set}" = set; then
d5f1e565 2610 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615 ac_prog_rejected=no
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624 ac_prog_rejected=yes
2625 continue
2626 fi
2627 ac_cv_prog_CC="cc"
d5f1e565 2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e96a0ec2
DB
2629 break 2
2630 fi
2631done
2632done
2633IFS=$as_save_IFS
2634
2635if test $ac_prog_rejected = yes; then
2636 # We found a bogon in the path, so make sure we never use it.
2637 set dummy $ac_cv_prog_CC
2638 shift
2639 if test $# != 0; then
2640 # We chose a different compiler from the bogus one.
2641 # However, it has the same basename, so the bogon will be chosen
2642 # first if we set CC to just the basename; use the full file name.
2643 shift
2644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645 fi
2646fi
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
d5f1e565
DB
2651 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2652$as_echo "$CC" >&6; }
e96a0ec2 2653else
d5f1e565
DB
2654 { $as_echo "$as_me:$LINENO: result: no" >&5
2655$as_echo "no" >&6; }
e96a0ec2
DB
2656fi
2657
2658
2659fi
2660if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
2662 for ac_prog in cl.exe
2663 do
2664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d5f1e565
DB
2666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
e96a0ec2 2668if test "${ac_cv_prog_CC+set}" = set; then
d5f1e565 2669 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2670else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d5f1e565 2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e96a0ec2
DB
2683 break 2
2684 fi
2685done
2686done
2687IFS=$as_save_IFS
2688
2689fi
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
d5f1e565
DB
2693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2694$as_echo "$CC" >&6; }
e96a0ec2 2695else
d5f1e565
DB
2696 { $as_echo "$as_me:$LINENO: result: no" >&5
2697$as_echo "no" >&6; }
e96a0ec2
DB
2698fi
2699
2700
2701 test -n "$CC" && break
2702 done
2703fi
2704if test -z "$CC"; then
2705 ac_ct_CC=$CC
2706 for ac_prog in cl.exe
2707do
2708 # Extract the first word of "$ac_prog", so it can be a program name with args.
2709set dummy $ac_prog; ac_word=$2
d5f1e565
DB
2710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2711$as_echo_n "checking for $ac_word... " >&6; }
e96a0ec2 2712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d5f1e565 2713 $as_echo_n "(cached) " >&6
e96a0ec2
DB
2714else
2715 if test -n "$ac_ct_CC"; then
2716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_ac_ct_CC="$ac_prog"
d5f1e565 2726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e96a0ec2
DB
2727 break 2
2728 fi
2729done
2730done
2731IFS=$as_save_IFS
2732
2733fi
2734fi
2735ac_ct_CC=$ac_cv_prog_ac_ct_CC
2736if test -n "$ac_ct_CC"; then
d5f1e565
DB
2737 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2738$as_echo "$ac_ct_CC" >&6; }
e96a0ec2 2739else
d5f1e565
DB
2740 { $as_echo "$as_me:$LINENO: result: no" >&5
2741$as_echo "no" >&6; }
e96a0ec2
DB
2742fi
2743
2744
2745 test -n "$ac_ct_CC" && break
2746done
2747
2748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752yes:)
d5f1e565
DB
2753{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e96a0ec2
DB
2755ac_tool_warned=yes ;;
2756esac
2757 CC=$ac_ct_CC
2758 fi
2759fi
2760
2761fi
2762
2763
d5f1e565
DB
2764test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
e96a0ec2 2767See \`config.log' for more details." >&5
d5f1e565 2768$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
e96a0ec2 2769See \`config.log' for more details." >&2;}
d5f1e565 2770 { (exit 1); exit 1; }; }; }
e96a0ec2
DB
2771
2772# Provide some information about the compiler.
d5f1e565
DB
2773$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2774set X $ac_compile
2775ac_compiler=$2
e96a0ec2
DB
2776{ (ac_try="$ac_compiler --version >&5"
2777case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780esac
d5f1e565
DB
2781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2782$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
2783 (eval "$ac_compiler --version >&5") 2>&5
2784 ac_status=$?
d5f1e565 2785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
2786 (exit $ac_status); }
2787{ (ac_try="$ac_compiler -v >&5"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
d5f1e565
DB
2792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2793$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
2794 (eval "$ac_compiler -v >&5") 2>&5
2795 ac_status=$?
d5f1e565 2796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
2797 (exit $ac_status); }
2798{ (ac_try="$ac_compiler -V >&5"
2799case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802esac
d5f1e565
DB
2803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2804$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
2805 (eval "$ac_compiler -V >&5") 2>&5
2806 ac_status=$?
d5f1e565 2807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
2808 (exit $ac_status); }
2809
2810cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816
2817int
2818main ()
2819{
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825ac_clean_files_save=$ac_clean_files
d5f1e565 2826ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
e96a0ec2
DB
2827# Try to create an executable without -o first, disregard a.out.
2828# It will help us diagnose broken compilers, and finding out an intuition
2829# of exeext.
d5f1e565
DB
2830{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2831$as_echo_n "checking for C compiler default output file name... " >&6; }
2832ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2833
2834# The possible output files:
2835ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2836
e96a0ec2
DB
2837ac_rmfiles=
2838for ac_file in $ac_files
2839do
2840 case $ac_file in
d5f1e565 2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e96a0ec2
DB
2842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2843 esac
2844done
2845rm -f $ac_rmfiles
2846
2847if { (ac_try="$ac_link_default"
2848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
d5f1e565
DB
2852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2853$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
2854 (eval "$ac_link_default") 2>&5
2855 ac_status=$?
d5f1e565 2856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
2857 (exit $ac_status); }; then
2858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2859# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2860# in a Makefile. We should not override ac_cv_exeext if it was cached,
2861# so that the user can short-circuit this test for compilers unknown to
2862# Autoconf.
2863for ac_file in $ac_files ''
2864do
2865 test -f "$ac_file" || continue
2866 case $ac_file in
d5f1e565 2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
e96a0ec2
DB
2868 ;;
2869 [ab].out )
2870 # We found the default executable, but exeext='' is most
2871 # certainly right.
2872 break;;
2873 *.* )
2874 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2875 then :; else
2876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877 fi
2878 # We set ac_cv_exeext here because the later test for it is not
2879 # safe: cross compilers may not add the suffix if given an `-o'
2880 # argument, so we may need to know it at that point already.
2881 # Even if this section looks crufty: it has the advantage of
2882 # actually working.
2883 break;;
2884 * )
2885 break;;
2886 esac
2887done
2888test "$ac_cv_exeext" = no && ac_cv_exeext=
2889
2890else
2891 ac_file=''
2892fi
2893
d5f1e565
DB
2894{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2895$as_echo "$ac_file" >&6; }
e96a0ec2 2896if test -z "$ac_file"; then
d5f1e565 2897 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
d5f1e565
DB
2900{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
e96a0ec2 2903See \`config.log' for more details." >&5
d5f1e565 2904$as_echo "$as_me: error: C compiler cannot create executables
e96a0ec2 2905See \`config.log' for more details." >&2;}
d5f1e565 2906 { (exit 77); exit 77; }; }; }
e96a0ec2
DB
2907fi
2908
2909ac_exeext=$ac_cv_exeext
2910
2911# Check that the compiler produces executables we can run. If not, either
2912# the compiler is broken, or we cross compile.
d5f1e565
DB
2913{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2914$as_echo_n "checking whether the C compiler works... " >&6; }
e96a0ec2
DB
2915# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2916# If not cross compiling, check that we can run a simple program.
2917if test "$cross_compiling" != yes; then
2918 if { ac_try='./$ac_file'
2919 { (case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
d5f1e565
DB
2923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
2925 (eval "$ac_try") 2>&5
2926 ac_status=$?
d5f1e565 2927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
2928 (exit $ac_status); }; }; then
2929 cross_compiling=no
2930 else
2931 if test "$cross_compiling" = maybe; then
2932 cross_compiling=yes
2933 else
d5f1e565
DB
2934 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
e96a0ec2
DB
2937If you meant to cross compile, use \`--host'.
2938See \`config.log' for more details." >&5
d5f1e565 2939$as_echo "$as_me: error: cannot run C compiled programs.
e96a0ec2
DB
2940If you meant to cross compile, use \`--host'.
2941See \`config.log' for more details." >&2;}
d5f1e565 2942 { (exit 1); exit 1; }; }; }
e96a0ec2
DB
2943 fi
2944 fi
2945fi
d5f1e565
DB
2946{ $as_echo "$as_me:$LINENO: result: yes" >&5
2947$as_echo "yes" >&6; }
e96a0ec2 2948
d5f1e565 2949rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
e96a0ec2
DB
2950ac_clean_files=$ac_clean_files_save
2951# Check that the compiler produces executables we can run. If not, either
2952# the compiler is broken, or we cross compile.
d5f1e565
DB
2953{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2954$as_echo_n "checking whether we are cross compiling... " >&6; }
2955{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2956$as_echo "$cross_compiling" >&6; }
e96a0ec2 2957
d5f1e565
DB
2958{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2959$as_echo_n "checking for suffix of executables... " >&6; }
e96a0ec2
DB
2960if { (ac_try="$ac_link"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
d5f1e565
DB
2965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2966$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
2967 (eval "$ac_link") 2>&5
2968 ac_status=$?
d5f1e565 2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
2970 (exit $ac_status); }; then
2971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2972# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2973# work properly (i.e., refer to `conftest.exe'), while it won't with
2974# `rm'.
2975for ac_file in conftest.exe conftest conftest.*; do
2976 test -f "$ac_file" || continue
2977 case $ac_file in
d5f1e565 2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e96a0ec2
DB
2979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980 break;;
2981 * ) break;;
2982 esac
2983done
2984else
d5f1e565
DB
2985 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
e96a0ec2 2988See \`config.log' for more details." >&5
d5f1e565 2989$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
e96a0ec2 2990See \`config.log' for more details." >&2;}
d5f1e565 2991 { (exit 1); exit 1; }; }; }
e96a0ec2
DB
2992fi
2993
2994rm -f conftest$ac_cv_exeext
d5f1e565
DB
2995{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2996$as_echo "$ac_cv_exeext" >&6; }
e96a0ec2
DB
2997
2998rm -f conftest.$ac_ext
2999EXEEXT=$ac_cv_exeext
3000ac_exeext=$EXEEXT
d5f1e565
DB
3001{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3002$as_echo_n "checking for suffix of object files... " >&6; }
e96a0ec2 3003if test "${ac_cv_objext+set}" = set; then
d5f1e565 3004 $as_echo_n "(cached) " >&6
e96a0ec2
DB
3005else
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.o conftest.obj
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
d5f1e565
DB
3027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3028$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
3029 (eval "$ac_compile") 2>&5
3030 ac_status=$?
d5f1e565 3031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
3032 (exit $ac_status); }; then
3033 for ac_file in conftest.o conftest.obj conftest.*; do
3034 test -f "$ac_file" || continue;
3035 case $ac_file in
d5f1e565 3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
e96a0ec2
DB
3037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3038 break;;
3039 esac
3040done
3041else
d5f1e565 3042 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
d5f1e565
DB
3045{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
e96a0ec2 3048See \`config.log' for more details." >&5
d5f1e565 3049$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
e96a0ec2 3050See \`config.log' for more details." >&2;}
d5f1e565 3051 { (exit 1); exit 1; }; }; }
e96a0ec2
DB
3052fi
3053
3054rm -f conftest.$ac_cv_objext conftest.$ac_ext
3055fi
d5f1e565
DB
3056{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3057$as_echo "$ac_cv_objext" >&6; }
e96a0ec2
DB
3058OBJEXT=$ac_cv_objext
3059ac_objext=$OBJEXT
d5f1e565
DB
3060{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3061$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
e96a0ec2 3062if test "${ac_cv_c_compiler_gnu+set}" = set; then
d5f1e565 3063 $as_echo_n "(cached) " >&6
e96a0ec2
DB
3064else
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075#ifndef __GNUC__
3076 choke me
3077#endif
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
d5f1e565
DB
3089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
3091 (eval "$ac_compile") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
d5f1e565 3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3101 ac_compiler_gnu=yes
3102else
d5f1e565 3103 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 ac_compiler_gnu=no
3107fi
3108
3109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110ac_cv_c_compiler_gnu=$ac_compiler_gnu
3111
3112fi
d5f1e565
DB
3113{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3114$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3115if test $ac_compiler_gnu = yes; then
3116 GCC=yes
3117else
3118 GCC=
3119fi
e96a0ec2
DB
3120ac_test_CFLAGS=${CFLAGS+set}
3121ac_save_CFLAGS=$CFLAGS
d5f1e565
DB
3122{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3123$as_echo_n "checking whether $CC accepts -g... " >&6; }
e96a0ec2 3124if test "${ac_cv_prog_cc_g+set}" = set; then
d5f1e565 3125 $as_echo_n "(cached) " >&6
e96a0ec2
DB
3126else
3127 ac_save_c_werror_flag=$ac_c_werror_flag
3128 ac_c_werror_flag=yes
3129 ac_cv_prog_cc_g=no
3130 CFLAGS="-g"
3131 cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h. */
3137
3138int
3139main ()
3140{
3141
3142 ;
3143 return 0;
3144}
3145_ACEOF
3146rm -f conftest.$ac_objext
3147if { (ac_try="$ac_compile"
3148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
d5f1e565
DB
3152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
3154 (eval "$ac_compile") 2>conftest.er1
3155 ac_status=$?
3156 grep -v '^ *+' conftest.er1 >conftest.err
3157 rm -f conftest.er1
3158 cat conftest.err >&5
d5f1e565 3159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
3160 (exit $ac_status); } && {
3161 test -z "$ac_c_werror_flag" ||
3162 test ! -s conftest.err
3163 } && test -s conftest.$ac_objext; then
3164 ac_cv_prog_cc_g=yes
3165else
d5f1e565 3166 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 CFLAGS=""
3170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h. */
3176
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
d5f1e565
DB
3191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
d5f1e565 3198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
3199 (exit $ac_status); } && {
3200 test -z "$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 :
3204else
d5f1e565 3205 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3209 CFLAGS="-g"
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
d5f1e565
DB
3231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
d5f1e565 3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_cv_prog_cc_g=yes
3244else
d5f1e565 3245 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248
3249fi
3250
3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252fi
3253
3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255fi
3256
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 ac_c_werror_flag=$ac_save_c_werror_flag
3259fi
d5f1e565
DB
3260{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3261$as_echo "$ac_cv_prog_cc_g" >&6; }
e96a0ec2
DB
3262if test "$ac_test_CFLAGS" = set; then
3263 CFLAGS=$ac_save_CFLAGS
3264elif test $ac_cv_prog_cc_g = yes; then
3265 if test "$GCC" = yes; then
3266 CFLAGS="-g -O2"
3267 else
3268 CFLAGS="-g"
3269 fi
3270else
3271 if test "$GCC" = yes; then
3272 CFLAGS="-O2"
3273 else
3274 CFLAGS=
3275 fi
3276fi
d5f1e565
DB
3277{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3278$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
e96a0ec2 3279if test "${ac_cv_prog_cc_c89+set}" = set; then
d5f1e565 3280 $as_echo_n "(cached) " >&6
e96a0ec2
DB
3281else
3282 ac_cv_prog_cc_c89=no
3283ac_save_CC=$CC
3284cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290#include <stdarg.h>
3291#include <stdio.h>
3292#include <sys/types.h>
3293#include <sys/stat.h>
3294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3295struct buf { int x; };
3296FILE * (*rcsopen) (struct buf *, struct stat *, int);
3297static char *e (p, i)
3298 char **p;
3299 int i;
3300{
3301 return p[i];
3302}
3303static char *f (char * (*g) (char **, int), char **p, ...)
3304{
3305 char *s;
3306 va_list v;
3307 va_start (v,p);
3308 s = g (p, va_arg (v,int));
3309 va_end (v);
3310 return s;
3311}
3312
3313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3314 function prototypes and stuff, but not '\xHH' hex character constants.
3315 These don't provoke an error unfortunately, instead are silently treated
3316 as 'x'. The following induces an error, until -std is added to get
3317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3318 array size at least. It's necessary to write '\x00'==0 to get something
3319 that's true only with -std. */
3320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3321
3322/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3323 inside strings and character constants. */
3324#define FOO(x) 'x'
3325int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3326
3327int test (int i, double x);
3328struct s1 {int (*f) (int a);};
3329struct s2 {int (*f) (double a);};
3330int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3331int argc;
3332char **argv;
3333int
3334main ()
3335{
3336return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3337 ;
3338 return 0;
3339}
3340_ACEOF
3341for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3342 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3343do
3344 CC="$ac_save_CC $ac_arg"
3345 rm -f conftest.$ac_objext
3346if { (ac_try="$ac_compile"
3347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
d5f1e565
DB
3351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3352$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
3353 (eval "$ac_compile") 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
d5f1e565 3358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
3359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest.$ac_objext; then
3363 ac_cv_prog_cc_c89=$ac_arg
3364else
d5f1e565 3365 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368
3369fi
3370
3371rm -f core conftest.err conftest.$ac_objext
3372 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373done
3374rm -f conftest.$ac_ext
3375CC=$ac_save_CC
3376
3377fi
3378# AC_CACHE_VAL
3379case "x$ac_cv_prog_cc_c89" in
3380 x)
d5f1e565
DB
3381 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3382$as_echo "none needed" >&6; } ;;
e96a0ec2 3383 xno)
d5f1e565
DB
3384 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3385$as_echo "unsupported" >&6; } ;;
e96a0ec2
DB
3386 *)
3387 CC="$CC $ac_cv_prog_cc_c89"
d5f1e565
DB
3388 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
e96a0ec2
DB
3390esac
3391
3392
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399depcc="$CC" am_compiler_list=
3400
d5f1e565
DB
3401{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3402$as_echo_n "checking dependency style of $depcc... " >&6; }
e96a0ec2 3403if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
d5f1e565 3404 $as_echo_n "(cached) " >&6
e96a0ec2
DB
3405else
3406 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3407 # We make a subdir and do the tests there. Otherwise we can end up
3408 # making bogus files that we don't know about and never remove. For
3409 # instance it was reported that on HP-UX the gcc test will end up
3410 # making a dummy file named `D' -- because `-MD' means `put the output
3411 # in D'.
3412 mkdir conftest.dir
3413 # Copy depcomp to subdir because otherwise we won't find it if we're
3414 # using a relative directory.
3415 cp "$am_depcomp" conftest.dir
3416 cd conftest.dir
3417 # We will build objects and dependencies in a subdirectory because
3418 # it helps to detect inapplicable dependency modes. For instance
3419 # both Tru64's cc and ICC support -MD to output dependencies as a
3420 # side effect of compilation, but ICC will put the dependencies in
3421 # the current directory while Tru64 will put them in the object
3422 # directory.
3423 mkdir sub
3424
3425 am_cv_CC_dependencies_compiler_type=none
3426 if test "$am_compiler_list" = ""; then
3427 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3428 fi
d5f1e565
DB
3429 am__universal=false
3430 case " $depcc " in #(
3431 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3432 esac
3433
e96a0ec2
DB
3434 for depmode in $am_compiler_list; do
3435 # Setup a source with many dependencies, because some compilers
3436 # like to wrap large dependency lists on column 80 (with \), and
3437 # we should not choose a depcomp mode which is confused by this.
3438 #
3439 # We need to recreate these files for each test, as the compiler may
3440 # overwrite some of them when testing with obscure command lines.
3441 # This happens at least with the AIX C compiler.
3442 : > sub/conftest.c
3443 for i in 1 2 3 4 5 6; do
3444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446 # Solaris 8's {/usr,}/bin/sh.
3447 touch sub/conftst$i.h
3448 done
3449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450
d5f1e565
DB
3451 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3452 # mode. It turns out that the SunPro C++ compiler does not properly
3453 # handle `-M -o', and we need to detect this. Also, some Intel
3454 # versions had trouble with output in subdirs
3455 am__obj=sub/conftest.${OBJEXT-o}
3456 am__minus_obj="-o $am__obj"
e96a0ec2 3457 case $depmode in
d5f1e565
DB
3458 gcc)
3459 # This depmode causes a compiler race in universal mode.
3460 test "$am__universal" = false || continue
3461 ;;
e96a0ec2
DB
3462 nosideeffect)
3463 # after this tag, mechanisms are not by side-effect, so they'll
3464 # only be used when explicitly requested
3465 if test "x$enable_dependency_tracking" = xyes; then
3466 continue
3467 else
3468 break
3469 fi
3470 ;;
d5f1e565
DB
3471 msvisualcpp | msvcmsys)
3472 # This compiler won't grok `-c -o', but also, the minuso test has
3473 # not run yet. These depmodes are late enough in the game, and
3474 # so weak that their functioning should not be impacted.
3475 am__obj=conftest.${OBJEXT-o}
3476 am__minus_obj=
3477 ;;
e96a0ec2
DB
3478 none) break ;;
3479 esac
e96a0ec2 3480 if depmode=$depmode \
d5f1e565 3481 source=sub/conftest.c object=$am__obj \
e96a0ec2 3482 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
d5f1e565 3483 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e96a0ec2
DB
3484 >/dev/null 2>conftest.err &&
3485 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3486 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
d5f1e565 3487 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e96a0ec2
DB
3488 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3489 # icc doesn't choke on unknown options, it will just issue warnings
3490 # or remarks (even with -Werror). So we grep stderr for any message
3491 # that says an option was ignored or not supported.
3492 # When given -MP, icc 7.0 and 7.1 complain thusly:
3493 # icc: Command line warning: ignoring option '-M'; no argument required
3494 # The diagnosis changed in icc 8.0:
3495 # icc: Command line remark: option '-MP' not supported
3496 if (grep 'ignoring option' conftest.err ||
3497 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3498 am_cv_CC_dependencies_compiler_type=$depmode
3499 break
3500 fi
3501 fi
3502 done
3503
3504 cd ..
3505 rm -rf conftest.dir
3506else
3507 am_cv_CC_dependencies_compiler_type=none
3508fi
3509
3510fi
d5f1e565
DB
3511{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3512$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
e96a0ec2
DB
3513CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3514
3515 if
3516 test "x$enable_dependency_tracking" != xno \
3517 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3518 am__fastdepCC_TRUE=
3519 am__fastdepCC_FALSE='#'
3520else
3521 am__fastdepCC_TRUE='#'
3522 am__fastdepCC_FALSE=
3523fi
3524
3525
3526
d5f1e565
DB
3527{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3528$as_echo_n "checking for library containing strerror... " >&6; }
e96a0ec2 3529if test "${ac_cv_search_strerror+set}" = set; then
d5f1e565 3530 $as_echo_n "(cached) " >&6
e96a0ec2
DB
3531else
3532 ac_func_search_save_LIBS=$LIBS
3533cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539
3540/* Override any GCC internal prototype to avoid an error.
3541 Use char because int might match the return type of a GCC
3542 builtin and then its argument prototype would still apply. */
3543#ifdef __cplusplus
3544extern "C"
3545#endif
3546char strerror ();
3547int
3548main ()
3549{
3550return strerror ();
3551 ;
3552 return 0;
3553}
3554_ACEOF
3555for ac_lib in '' cposix; do
3556 if test -z "$ac_lib"; then
3557 ac_res="none required"
3558 else
3559 ac_res=-l$ac_lib
3560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3561 fi
3562 rm -f conftest.$ac_objext conftest$ac_exeext
3563if { (ac_try="$ac_link"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
d5f1e565
DB
3568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3569$as_echo "$ac_try_echo") >&5
e96a0ec2
DB
3570 (eval "$ac_link") 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
d5f1e565 3575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e96a0ec2
DB
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
d5f1e565
DB
3579 } && test -s conftest$ac_exeext && {
3580 test "$cross_compiling" = yes ||
3581 $as_test_x conftest$ac_exeext
3582 }; then
e96a0ec2
DB
3583 ac_cv_search_strerror=$ac_res
3584else
d5f1e565 3585 $as_echo "$as_me: failed program was:" >&5
e96a0ec2
DB
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588
3589fi
3590
d5f1e565 3591rm -rf conftest.dSYM
e96a0ec2
DB
3592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3593 conftest$ac_exeext
3594 if test "${ac_cv_search_strerror+set}" = set; then
3595 break
3596fi
3597done
3598if test "${ac_cv_search_strerror+set}" = set; then
3599 :
3600else
3601 ac_cv_search_strerror=no
3602fi
3603rm conftest.$ac_ext
3604LIBS=$ac_func_search_save_LIBS
3605fi
d5f1e565
DB
3606{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3607$as_echo "$ac_cv_search_strerror" >&6; }
e96a0ec2
DB
3608ac_res=$ac_cv_search_strerror
3609if test "$ac_res" != no; then
3610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3611