Merge lp:~cosmos-door/ubuntu/quantal/avarice/fix-ftbfs-1058667 into lp:ubuntu/quantal/avarice

Proposed by Mitsuya Shibata
Status: Merged
Merged at revision: 11
Proposed branch: lp:~cosmos-door/ubuntu/quantal/avarice/fix-ftbfs-1058667
Merge into: lp:ubuntu/quantal/avarice
Diff against target: 12033 lines
To merge this branch: bzr merge lp:~cosmos-door/ubuntu/quantal/avarice/fix-ftbfs-1058667
Reviewer Review Type Date Requested Status
Andrew Starr-Bochicchio (community) Approve
Mitsuya Shibata (community) Needs Resubmitting
Dimitri John Ledkov Needs Fixing
Ubuntu branches Pending
Review via email: mp+127105@code.launchpad.net

Description of the change

Fix FTBFS for avarice 2.10-3ubuntu1 in LP:1058667

New bfd.h of binutils depends to include autoconf.h.

For more information please see:
http://sourceware.org/bugzilla/show_bug.cgi?id=14072
http://sourceware.org/bugzilla/show_bug.cgi?id=14243

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The fixes themselves are good. The package is currently using no patch system and source format 1.0. That means that patches are not automatically applied/unapplied by either dpkg-source or during build time.

There are two options:
- convert the package to 3.0 (quilt) format
- include quilt.mk snippet in the rules to apply / unapply the patches.

I'd recommend you do the first as it's easier and better supported in the future.

review: Needs Fixing
12. By Mitsuya Shibata

* Switch to dpkg-source 3.0 (quilt) format
  - 00_debian_origin.patch
    split already applied patch to upstream source by debian package

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

> - convert the package to 3.0 (quilt) format
> - include quilt.mk snippet in the rules to apply / unapply the patches.
>
> I'd recommend you do the first as it's easier and better supported in the
> future.

Thank you for your reviewing!

I updated branch to convert to 3.0 (quilt) format.
Additionally, original debian package modified upstream source, split it to patch file.

Please re-review it.

review: Needs Resubmitting
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Thanks for your work on this. Everything looks good, and I can confirm that this allows the package to build on quantal.

I'm not sure if I actually agree with Dmitrijs' suggestion though. While it is a best practice to keep changes to the upstream source in quilt packages, for packages that originate in Debian we try to stay as close as possible. Usually this includes respecting the patch system, or lack thereof, that the Debian maintainer has chosen to use. That said, I'm going to go ahead and upload it. No reason to make you jump through anymore hoops.

review: Approve
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

On 7 October 2012 03:53, Andrew Starr-Bochicchio <email address hidden> wrote:
> Review: Approve
>
> Thanks for your work on this. Everything looks good, and I can confirm that this allows the package to build on quantal.
>
> I'm not sure if I actually agree with Dmitrijs' suggestion though. While it is a best practice to keep changes to the upstream source in quilt packages, for packages that originate in Debian we try to stay as close as possible. Usually this includes respecting the patch system, or lack thereof, that the Debian maintainer has chosen to use. That said, I'm going to go ahead and upload it. No reason to make you jump through anymore hoops.

Well it was status quo: package format 1.0 & no patches in debian.
Therefore no obvious way to add patches. The first iteration had .pc/*
and quilt patches applied all in a diff.gz. Witch is a bad mix. If a
package doesn't have any patch system today, the only sane way to add
a patch system is by converting to 3.0 (quilt) format, as it is the
most minimal way to add patches (one line + series&patches) with no
additional build dependencies or changes to debian/rules and no
conflicts at merges (well... almost ;) ).

Regards,

Dmitrijs.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory '.pc'
=== added file '.pc/.version'
--- .pc/.version 1970-01-01 00:00:00 +0000
+++ .pc/.version 2012-09-30 09:27:20 +0000
@@ -0,0 +1,1 @@
12
02
=== added directory '.pc/00_debian_origin.patch'
=== added file '.pc/00_debian_origin.patch/.timestamp'
=== added file '.pc/00_debian_origin.patch/configure'
--- .pc/00_debian_origin.patch/configure 1970-01-01 00:00:00 +0000
+++ .pc/00_debian_origin.patch/configure 2012-09-30 09:27:20 +0000
@@ -0,0 +1,9433 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for avarice 2.10.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
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
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
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.)
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
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
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 ||
154$as_echo X/"$0" |
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
180 if test $as_have_required = yes && (eval ":
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=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
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=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
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
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+"$@"}
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.
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.
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" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
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
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
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
528 as_ln_s='cp -p'
529 fi
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
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
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='avarice'
596PACKAGE_TARNAME='avarice'
597PACKAGE_VERSION='2.10'
598PACKAGE_STRING='avarice 2.10'
599PACKAGE_BUGREPORT=''
600
601ac_unique_file="src/main.cc"
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
638ac_subst_vars='SHELL
639PATH_SEPARATOR
640PACKAGE_NAME
641PACKAGE_TARNAME
642PACKAGE_VERSION
643PACKAGE_STRING
644PACKAGE_BUGREPORT
645exec_prefix
646prefix
647program_transform_name
648bindir
649sbindir
650libexecdir
651datarootdir
652datadir
653sysconfdir
654sharedstatedir
655localstatedir
656includedir
657oldincludedir
658docdir
659infodir
660htmldir
661dvidir
662pdfdir
663psdir
664libdir
665localedir
666mandir
667DEFS
668ECHO_C
669ECHO_N
670ECHO_T
671LIBS
672build_alias
673host_alias
674target_alias
675INSTALL_PROGRAM
676INSTALL_SCRIPT
677INSTALL_DATA
678am__isrc
679CYGPATH_W
680PACKAGE
681VERSION
682ACLOCAL
683AUTOCONF
684AUTOMAKE
685AUTOHEADER
686MAKEINFO
687install_sh
688STRIP
689INSTALL_STRIP_PROGRAM
690MKDIR_P
691mkdir_p
692AWK
693SET_MAKE
694am__leading_dot
695AMTAR
696am__tar
697am__untar
698CXX
699CXXFLAGS
700LDFLAGS
701CPPFLAGS
702ac_ct_CXX
703EXEEXT
704OBJEXT
705DEPDIR
706am__include
707am__quote
708AMDEP_TRUE
709AMDEP_FALSE
710AMDEPBACKSLASH
711CXXDEPMODE
712am__fastdepCXX_TRUE
713am__fastdepCXX_FALSE
714CC
715CFLAGS
716ac_ct_CC
717CCDEPMODE
718am__fastdepCC_TRUE
719am__fastdepCC_FALSE
720pathperl
721CPP
722GREP
723EGREP
724LIBOBJS
725LTLIBOBJS'
726ac_subst_files=''
727ac_user_opts='
728enable_option_checking
729enable_dependency_tracking
730'
731 ac_precious_vars='build_alias
732host_alias
733target_alias
734CXX
735CXXFLAGS
736LDFLAGS
737LIBS
738CPPFLAGS
739CCC
740CC
741CFLAGS
742CPP'
743
744
745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
748ac_unrecognized_opts=
749ac_unrecognized_sep=
750# The variables have the same names as the options, with
751# dashes changed to underlines.
752cache_file=/dev/null
753exec_prefix=NONE
754no_create=
755no_recursion=
756prefix=NONE
757program_prefix=NONE
758program_suffix=NONE
759program_transform_name=s,x,x,
760silent=
761site=
762srcdir=
763verbose=
764x_includes=NONE
765x_libraries=NONE
766
767# Installation directory options.
768# These are left unexpanded so users can "make install exec_prefix=/foo"
769# and all the variables that are supposed to be based on exec_prefix
770# by default will actually change.
771# Use braces instead of parens because sh, perl, etc. also accept them.
772# (The list follows the same order as the GNU Coding Standards.)
773bindir='${exec_prefix}/bin'
774sbindir='${exec_prefix}/sbin'
775libexecdir='${exec_prefix}/libexec'
776datarootdir='${prefix}/share'
777datadir='${datarootdir}'
778sysconfdir='${prefix}/etc'
779sharedstatedir='${prefix}/com'
780localstatedir='${prefix}/var'
781includedir='${prefix}/include'
782oldincludedir='/usr/include'
783docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784infodir='${datarootdir}/info'
785htmldir='${docdir}'
786dvidir='${docdir}'
787pdfdir='${docdir}'
788psdir='${docdir}'
789libdir='${exec_prefix}/lib'
790localedir='${datarootdir}/locale'
791mandir='${datarootdir}/man'
792
793ac_prev=
794ac_dashdash=
795for ac_option
796do
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
802 fi
803
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
808
809 # Accept the important Cygnus configure options, so we can diagnose typos.
810
811 case $ac_dashdash$ac_option in
812 --)
813 ac_dashdash=yes ;;
814
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
819
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
824
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
831
832 --config-cache | -C)
833 cache_file=config.cache ;;
834
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
839
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
846
847 -disable-* | --disable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
852 { (exit 1); exit 1; }; }
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857"enable_$ac_useropt"
858"*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=no ;;
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
873
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
879 { (exit 1); exit 1; }; }
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884"enable_$ac_useropt"
885"*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=\$ac_optarg ;;
890
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
899
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
902 with_gas=yes ;;
903
904 -help | --help | --hel | --he | -h)
905 ac_init_help=long ;;
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
910
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
915
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 ac_prev=htmldir ;;
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 | --ht=*)
920 htmldir=$ac_optarg ;;
921
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
928
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 ac_prev=infodir ;;
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
933
934 -libdir | --libdir | --libdi | --libd)
935 ac_prev=libdir ;;
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 libdir=$ac_optarg ;;
938
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
945
946 -localedir | --localedir | --localedi | --localed | --locale)
947 ac_prev=localedir ;;
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
950
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
957
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 ac_prev=mandir ;;
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961 mandir=$ac_optarg ;;
962
963 -nfp | --nfp | --nf)
964 # Obsolete; use --without-fp.
965 with_fp=no ;;
966
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
969 no_create=yes ;;
970
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 no_recursion=yes ;;
974
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
983
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 ac_prev=prefix ;;
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 prefix=$ac_optarg ;;
988
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
995
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1002
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1019
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 ac_prev=pdfdir ;;
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1024
1025 -psdir | --psdir | --psdi | --psd | --ps)
1026 ac_prev=psdir ;;
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 psdir=$ac_optarg ;;
1029
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 silent=yes ;;
1033
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035 ac_prev=sbindir ;;
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037 | --sbi=* | --sb=*)
1038 sbindir=$ac_optarg ;;
1039
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1043 | --sha | --sh)
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048 | --sha=* | --sh=*)
1049 sharedstatedir=$ac_optarg ;;
1050
1051 -site | --site | --sit)
1052 ac_prev=site ;;
1053 -site=* | --site=* | --sit=*)
1054 site=$ac_optarg ;;
1055
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057 ac_prev=srcdir ;;
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1060
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1067
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1072
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074 verbose=yes ;;
1075
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1078
1079 -with-* | --with-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089"with_$ac_useropt"
1090"*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval with_$ac_useropt=\$ac_optarg ;;
1095
1096 -without-* | --without-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106"with_$ac_useropt"
1107"*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=no ;;
1112
1113 --x)
1114 # Obsolete; use --with-x.
1115 with_x=yes ;;
1116
1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118 | --x-incl | --x-inc | --x-in | --x-i)
1119 ac_prev=x_includes ;;
1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122 x_includes=$ac_optarg ;;
1123
1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126 ac_prev=x_libraries ;;
1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129 x_libraries=$ac_optarg ;;
1130
1131 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1132Try \`$0 --help' for more information." >&2
1133 { (exit 1); exit 1; }; }
1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1140 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1141 { (exit 1); exit 1; }; }
1142 eval $ac_envvar=\$ac_optarg
1143 export $ac_envvar ;;
1144
1145 *)
1146 # FIXME: should be removed in autoconf 3.0.
1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151 ;;
1152
1153 esac
1154done
1155
1156if test -n "$ac_prev"; then
1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1159 { (exit 1); exit 1; }; }
1160fi
1161
1162if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1166 { (exit 1); exit 1; }; } ;;
1167 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169fi
1170
1171# Check all directory arguments for consistency.
1172for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1191done
1192
1193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
1199
1200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209fi
1210
1211ac_tool_prefix=
1212test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214test "$silent" = yes && exec 6>/dev/null
1215
1216
1217ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218ac_ls_di=`ls -di .` &&
1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1225
1226
1227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236$as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
1261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1265fi
1266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1270 pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
1287
1288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295\`configure' configures avarice 2.10 to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/avarice]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348_ACEOF
1349
1350 cat <<\_ACEOF
1351
1352Program names:
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356_ACEOF
1357fi
1358
1359if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of avarice 2.10:";;
1362 esac
1363 cat <<\_ACEOF
1364
1365Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --disable-dependency-tracking speeds up one-time build
1370 --enable-dependency-tracking do not reject slow dependency extractors
1371
1372Some influential environment variables:
1373 CXX C++ compiler command
1374 CXXFLAGS C++ compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 CPP C preprocessor
1383
1384Use these variables to override the choices made by `configure' or to help
1385it to find libraries and programs with nonstandard names/locations.
1386
1387_ACEOF
1388ac_status=$?
1389fi
1390
1391if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
1393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1394 test -d "$ac_dir" ||
1395 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1396 continue
1397 ac_builddir=.
1398
1399case "$ac_dir" in
1400.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401*)
1402 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1403 # A ".." for each directory in $ac_dir_suffix.
1404 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1405 case $ac_top_builddir_sub in
1406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1408 esac ;;
1409esac
1410ac_abs_top_builddir=$ac_pwd
1411ac_abs_builddir=$ac_pwd$ac_dir_suffix
1412# for backward compatibility:
1413ac_top_builddir=$ac_top_build_prefix
1414
1415case $srcdir in
1416 .) # We are building in place.
1417 ac_srcdir=.
1418 ac_top_srcdir=$ac_top_builddir_sub
1419 ac_abs_top_srcdir=$ac_pwd ;;
1420 [\\/]* | ?:[\\/]* ) # Absolute name.
1421 ac_srcdir=$srcdir$ac_dir_suffix;
1422 ac_top_srcdir=$srcdir
1423 ac_abs_top_srcdir=$srcdir ;;
1424 *) # Relative name.
1425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1426 ac_top_srcdir=$ac_top_build_prefix$srcdir
1427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1428esac
1429ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430
1431 cd "$ac_dir" || { ac_status=$?; continue; }
1432 # Check for guested configure.
1433 if test -f "$ac_srcdir/configure.gnu"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1436 elif test -f "$ac_srcdir/configure"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure" --help=recursive
1439 else
1440 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1441 fi || ac_status=$?
1442 cd "$ac_pwd" || { ac_status=$?; break; }
1443 done
1444fi
1445
1446test -n "$ac_init_help" && exit $ac_status
1447if $ac_init_version; then
1448 cat <<\_ACEOF
1449avarice configure 2.10
1450generated by GNU Autoconf 2.62
1451
1452Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14532002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1454This configure script is free software; the Free Software Foundation
1455gives unlimited permission to copy, distribute and modify it.
1456_ACEOF
1457 exit
1458fi
1459cat >config.log <<_ACEOF
1460This file contains any messages produced by compilers while
1461running configure, to aid debugging if configure makes a mistake.
1462
1463It was created by avarice $as_me 2.10, which was
1464generated by GNU Autoconf 2.62. Invocation command line was
1465
1466 $ $0 $@
1467
1468_ACEOF
1469exec 5>>config.log
1470{
1471cat <<_ASUNAME
1472## --------- ##
1473## Platform. ##
1474## --------- ##
1475
1476hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1477uname -m = `(uname -m) 2>/dev/null || echo unknown`
1478uname -r = `(uname -r) 2>/dev/null || echo unknown`
1479uname -s = `(uname -s) 2>/dev/null || echo unknown`
1480uname -v = `(uname -v) 2>/dev/null || echo unknown`
1481
1482/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1483/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1484
1485/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1486/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1487/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1488/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1489/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1490/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1491/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1492
1493_ASUNAME
1494
1495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496for as_dir in $PATH
1497do
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 $as_echo "PATH: $as_dir"
1501done
1502IFS=$as_save_IFS
1503
1504} >&5
1505
1506cat >&5 <<_ACEOF
1507
1508
1509## ----------- ##
1510## Core tests. ##
1511## ----------- ##
1512
1513_ACEOF
1514
1515
1516# Keep a trace of the command line.
1517# Strip out --no-create and --no-recursion so they do not pile up.
1518# Strip out --silent because we don't want to record it for future runs.
1519# Also quote any args containing shell meta-characters.
1520# Make two passes to allow for proper duplicate-argument suppression.
1521ac_configure_args=
1522ac_configure_args0=
1523ac_configure_args1=
1524ac_must_keep_next=false
1525for ac_pass in 1 2
1526do
1527 for ac_arg
1528 do
1529 case $ac_arg in
1530 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1532 | -silent | --silent | --silen | --sile | --sil)
1533 continue ;;
1534 *\'*)
1535 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1536 esac
1537 case $ac_pass in
1538 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1539 2)
1540 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1541 if test $ac_must_keep_next = true; then
1542 ac_must_keep_next=false # Got value, back to normal.
1543 else
1544 case $ac_arg in
1545 *=* | --config-cache | -C | -disable-* | --disable-* \
1546 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1547 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1548 | -with-* | --with-* | -without-* | --without-* | --x)
1549 case "$ac_configure_args0 " in
1550 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1551 esac
1552 ;;
1553 -* ) ac_must_keep_next=true ;;
1554 esac
1555 fi
1556 ac_configure_args="$ac_configure_args '$ac_arg'"
1557 ;;
1558 esac
1559 done
1560done
1561$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1562$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1563
1564# When interrupted or exit'd, cleanup temporary files, and complete
1565# config.log. We remove comments because anyway the quotes in there
1566# would cause problems or look ugly.
1567# WARNING: Use '\'' to represent an apostrophe within the trap.
1568# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1569trap 'exit_status=$?
1570 # Save into config.log some information that might help in debugging.
1571 {
1572 echo
1573
1574 cat <<\_ASBOX
1575## ---------------- ##
1576## Cache variables. ##
1577## ---------------- ##
1578_ASBOX
1579 echo
1580 # The following way of writing the cache mishandles newlines in values,
1581(
1582 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1583 eval ac_val=\$$ac_var
1584 case $ac_val in #(
1585 *${as_nl}*)
1586 case $ac_var in #(
1587 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1588$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1589 esac
1590 case $ac_var in #(
1591 _ | IFS | as_nl) ;; #(
1592 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1593 *) $as_unset $ac_var ;;
1594 esac ;;
1595 esac
1596 done
1597 (set) 2>&1 |
1598 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1600 sed -n \
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 ;; #(
1604 *)
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ;;
1607 esac |
1608 sort
1609)
1610 echo
1611
1612 cat <<\_ASBOX
1613## ----------------- ##
1614## Output variables. ##
1615## ----------------- ##
1616_ASBOX
1617 echo
1618 for ac_var in $ac_subst_vars
1619 do
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 $as_echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1627
1628 if test -n "$ac_subst_files"; then
1629 cat <<\_ASBOX
1630## ------------------- ##
1631## File substitutions. ##
1632## ------------------- ##
1633_ASBOX
1634 echo
1635 for ac_var in $ac_subst_files
1636 do
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 $as_echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1644 fi
1645
1646 if test -s confdefs.h; then
1647 cat <<\_ASBOX
1648## ----------- ##
1649## confdefs.h. ##
1650## ----------- ##
1651_ASBOX
1652 echo
1653 cat confdefs.h
1654 echo
1655 fi
1656 test "$ac_signal" != 0 &&
1657 $as_echo "$as_me: caught signal $ac_signal"
1658 $as_echo "$as_me: exit $exit_status"
1659 } >&5
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 exit $exit_status
1663' 0
1664for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1666done
1667ac_signal=0
1668
1669# confdefs.h avoids OS command line length limits that DEFS can exceed.
1670rm -f -r conftest* confdefs.h
1671
1672# Predefined preprocessor variables.
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_NAME "$PACKAGE_NAME"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_VERSION "$PACKAGE_VERSION"
1686_ACEOF
1687
1688
1689cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_STRING "$PACKAGE_STRING"
1691_ACEOF
1692
1693
1694cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1696_ACEOF
1697
1698
1699# Let the site file select an alternate cache file if it wants to.
1700# Prefer an explicitly selected file to automatically selected ones.
1701ac_site_file1=NONE
1702ac_site_file2=NONE
1703if test -n "$CONFIG_SITE"; then
1704 ac_site_file1=$CONFIG_SITE
1705elif test "x$prefix" != xNONE; then
1706 ac_site_file1=$prefix/share/config.site
1707 ac_site_file2=$prefix/etc/config.site
1708else
1709 ac_site_file1=$ac_default_prefix/share/config.site
1710 ac_site_file2=$ac_default_prefix/etc/config.site
1711fi
1712for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1713do
1714 test "x$ac_site_file" = xNONE && continue
1715 if test -r "$ac_site_file"; then
1716 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1720 fi
1721done
1722
1723if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728$as_echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1733 fi
1734else
1735 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736$as_echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1738fi
1739
1740# Check that the precious variables saved in the cache have kept the same
1741# value.
1742ac_cache_corrupted=false
1743for ac_var in $ac_precious_vars; do
1744 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745 eval ac_new_set=\$ac_env_${ac_var}_set
1746 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747 eval ac_new_val=\$ac_env_${ac_var}_value
1748 case $ac_old_set,$ac_new_set in
1749 set,)
1750 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1752 ac_cache_corrupted=: ;;
1753 ,set)
1754 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,);;
1758 *)
1759 if test "x$ac_old_val" != "x$ac_new_val"; then
1760 # differences in whitespace do not lead to failure.
1761 ac_old_val_w=`echo x $ac_old_val`
1762 ac_new_val_w=`echo x $ac_new_val`
1763 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1764 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 ac_cache_corrupted=:
1767 else
1768 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1769$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1770 eval $ac_var=\$ac_old_val
1771 fi
1772 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1773$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1774 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1775$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1776 fi;;
1777 esac
1778 # Pass precious variables to config.status.
1779 if test "$ac_new_set" = set; then
1780 case $ac_new_val in
1781 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1782 *) ac_arg=$ac_var=$ac_new_val ;;
1783 esac
1784 case " $ac_configure_args " in
1785 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1786 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1787 esac
1788 fi
1789done
1790if $ac_cache_corrupted; then
1791 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1792$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1793 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1794$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1795 { (exit 1); exit 1; }; }
1796fi
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822ac_ext=c
1823ac_cpp='$CPP $CPPFLAGS'
1824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827
1828
1829ac_aux_dir=
1830for ac_dir in config-aux "$srcdir"/config-aux; do
1831 if test -f "$ac_dir/install-sh"; then
1832 ac_aux_dir=$ac_dir
1833 ac_install_sh="$ac_aux_dir/install-sh -c"
1834 break
1835 elif test -f "$ac_dir/install.sh"; then
1836 ac_aux_dir=$ac_dir
1837 ac_install_sh="$ac_aux_dir/install.sh -c"
1838 break
1839 elif test -f "$ac_dir/shtool"; then
1840 ac_aux_dir=$ac_dir
1841 ac_install_sh="$ac_aux_dir/shtool install -c"
1842 break
1843 fi
1844done
1845if test -z "$ac_aux_dir"; then
1846 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config-aux \"$srcdir\"/config-aux" >&5
1847$as_echo "$as_me: error: cannot find install-sh or install.sh in config-aux \"$srcdir\"/config-aux" >&2;}
1848 { (exit 1); exit 1; }; }
1849fi
1850
1851# These three variables are undocumented and unsupported,
1852# and are intended to be withdrawn in a future Autoconf release.
1853# They can cause serious problems if a builder's source tree is in a directory
1854# whose full name contains unusual characters.
1855ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1856ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1857ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1858
1859
1860
1861ac_config_headers="$ac_config_headers src/autoconf.h:src/autoconf.hin"
1862
1863
1864am__api_version='1.10'
1865
1866# Find a good install program. We prefer a C program (faster),
1867# so one script is as good as another. But avoid the broken or
1868# incompatible versions:
1869# SysV /etc/install, /usr/sbin/install
1870# SunOS /usr/etc/install
1871# IRIX /sbin/install
1872# AIX /bin/install
1873# AmigaOS /C/install, which installs bootblocks on floppy discs
1874# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1875# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877# OS/2's system install, which has a completely different semantic
1878# ./install, which can be erroneously created by make from ./install.sh.
1879# Reject install programs that cannot install multiple files.
1880{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1881$as_echo_n "checking for a BSD-compatible install... " >&6; }
1882if test -z "$INSTALL"; then
1883if test "${ac_cv_path_install+set}" = set; then
1884 $as_echo_n "(cached) " >&6
1885else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 # Account for people who put trailing slashes in PATH elements.
1892case $as_dir/ in
1893 ./ | .// | /cC/* | \
1894 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1895 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1896 /usr/ucb/* ) ;;
1897 *)
1898 # OSF1 and SCO ODT 3.0 have their own names for install.
1899 # Don't use installbsd from OSF since it installs stuff as root
1900 # by default.
1901 for ac_prog in ginstall scoinst install; do
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1904 if test $ac_prog = install &&
1905 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1906 # AIX install. It has an incompatible calling convention.
1907 :
1908 elif test $ac_prog = install &&
1909 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1910 # program-specific install script used by HP pwplus--don't use.
1911 :
1912 else
1913 rm -rf conftest.one conftest.two conftest.dir
1914 echo one > conftest.one
1915 echo two > conftest.two
1916 mkdir conftest.dir
1917 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1918 test -s conftest.one && test -s conftest.two &&
1919 test -s conftest.dir/conftest.one &&
1920 test -s conftest.dir/conftest.two
1921 then
1922 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1923 break 3
1924 fi
1925 fi
1926 fi
1927 done
1928 done
1929 ;;
1930esac
1931
1932done
1933IFS=$as_save_IFS
1934
1935rm -rf conftest.one conftest.two conftest.dir
1936
1937fi
1938 if test "${ac_cv_path_install+set}" = set; then
1939 INSTALL=$ac_cv_path_install
1940 else
1941 # As a last resort, use the slow shell script. Don't cache a
1942 # value for INSTALL within a source directory, because that will
1943 # break other packages using the cache if that directory is
1944 # removed, or if the value is a relative name.
1945 INSTALL=$ac_install_sh
1946 fi
1947fi
1948{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1949$as_echo "$INSTALL" >&6; }
1950
1951# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1952# It thinks the first close brace ends the variable substitution.
1953test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1954
1955test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1956
1957test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1958
1959{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1960$as_echo_n "checking whether build environment is sane... " >&6; }
1961# Just in case
1962sleep 1
1963echo timestamp > conftest.file
1964# Do `set' in a subshell so we don't clobber the current shell's
1965# arguments. Must try -L first in case configure is actually a
1966# symlink; some systems play weird games with the mod time of symlinks
1967# (eg FreeBSD returns the mod time of the symlink's containing
1968# directory).
1969if (
1970 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1971 if test "$*" = "X"; then
1972 # -L didn't work.
1973 set X `ls -t $srcdir/configure conftest.file`
1974 fi
1975 rm -f conftest.file
1976 if test "$*" != "X $srcdir/configure conftest.file" \
1977 && test "$*" != "X conftest.file $srcdir/configure"; then
1978
1979 # If neither matched, then we have a broken ls. This can happen
1980 # if, for instance, CONFIG_SHELL is bash and it inherits a
1981 # broken ls alias from the environment. This has actually
1982 # happened. Such a system could not be considered "sane".
1983 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1984alias in your environment" >&5
1985$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1986alias in your environment" >&2;}
1987 { (exit 1); exit 1; }; }
1988 fi
1989
1990 test "$2" = conftest.file
1991 )
1992then
1993 # Ok.
1994 :
1995else
1996 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1997Check your system clock" >&5
1998$as_echo "$as_me: error: newly created file is older than distributed files!
1999Check your system clock" >&2;}
2000 { (exit 1); exit 1; }; }
2001fi
2002{ $as_echo "$as_me:$LINENO: result: yes" >&5
2003$as_echo "yes" >&6; }
2004test "$program_prefix" != NONE &&
2005 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2006# Use a double $ so make ignores it.
2007test "$program_suffix" != NONE &&
2008 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2009# Double any \ or $.
2010# By default was `s,x,x', remove it if useless.
2011ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2012program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2013
2014# expand $ac_aux_dir to an absolute path
2015am_aux_dir=`cd $ac_aux_dir && pwd`
2016
2017test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2018# Use eval to expand $SHELL
2019if eval "$MISSING --run true"; then
2020 am_missing_run="$MISSING --run "
2021else
2022 am_missing_run=
2023 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2024$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2025fi
2026
2027{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2028$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2029if test -z "$MKDIR_P"; then
2030 if test "${ac_cv_path_mkdir+set}" = set; then
2031 $as_echo_n "(cached) " >&6
2032else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_prog in mkdir gmkdir; do
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2041 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2042 'mkdir (GNU coreutils) '* | \
2043 'mkdir (coreutils) '* | \
2044 'mkdir (fileutils) '4.1*)
2045 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2046 break 3;;
2047 esac
2048 done
2049 done
2050done
2051IFS=$as_save_IFS
2052
2053fi
2054
2055 if test "${ac_cv_path_mkdir+set}" = set; then
2056 MKDIR_P="$ac_cv_path_mkdir -p"
2057 else
2058 # As a last resort, use the slow shell script. Don't cache a
2059 # value for MKDIR_P within a source directory, because that will
2060 # break other packages using the cache if that directory is
2061 # removed, or if the value is a relative name.
2062 test -d ./--version && rmdir ./--version
2063 MKDIR_P="$ac_install_sh -d"
2064 fi
2065fi
2066{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2067$as_echo "$MKDIR_P" >&6; }
2068
2069mkdir_p="$MKDIR_P"
2070case $mkdir_p in
2071 [\\/$]* | ?:[\\/]*) ;;
2072 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2073esac
2074
2075for ac_prog in gawk mawk nawk awk
2076do
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078set dummy $ac_prog; ac_word=$2
2079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2080$as_echo_n "checking for $ac_word... " >&6; }
2081if test "${ac_cv_prog_AWK+set}" = set; then
2082 $as_echo_n "(cached) " >&6
2083else
2084 if test -n "$AWK"; then
2085 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2086else
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2094 ac_cv_prog_AWK="$ac_prog"
2095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2097 fi
2098done
2099done
2100IFS=$as_save_IFS
2101
2102fi
2103fi
2104AWK=$ac_cv_prog_AWK
2105if test -n "$AWK"; then
2106 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2107$as_echo "$AWK" >&6; }
2108else
2109 { $as_echo "$as_me:$LINENO: result: no" >&5
2110$as_echo "no" >&6; }
2111fi
2112
2113
2114 test -n "$AWK" && break
2115done
2116
2117{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2118$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2119set x ${MAKE-make}
2120ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2121if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2122 $as_echo_n "(cached) " >&6
2123else
2124 cat >conftest.make <<\_ACEOF
2125SHELL = /bin/sh
2126all:
2127 @echo '@@@%%%=$(MAKE)=@@@%%%'
2128_ACEOF
2129# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2130case `${MAKE-make} -f conftest.make 2>/dev/null` in
2131 *@@@%%%=?*=@@@%%%*)
2132 eval ac_cv_prog_make_${ac_make}_set=yes;;
2133 *)
2134 eval ac_cv_prog_make_${ac_make}_set=no;;
2135esac
2136rm -f conftest.make
2137fi
2138if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2139 { $as_echo "$as_me:$LINENO: result: yes" >&5
2140$as_echo "yes" >&6; }
2141 SET_MAKE=
2142else
2143 { $as_echo "$as_me:$LINENO: result: no" >&5
2144$as_echo "no" >&6; }
2145 SET_MAKE="MAKE=${MAKE-make}"
2146fi
2147
2148rm -rf .tst 2>/dev/null
2149mkdir .tst 2>/dev/null
2150if test -d .tst; then
2151 am__leading_dot=.
2152else
2153 am__leading_dot=_
2154fi
2155rmdir .tst 2>/dev/null
2156
2157if test "`cd $srcdir && pwd`" != "`pwd`"; then
2158 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2159 # is not polluted with repeated "-I."
2160 am__isrc=' -I$(srcdir)'
2161 # test to see if srcdir already configured
2162 if test -f $srcdir/config.status; then
2163 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2164$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2165 { (exit 1); exit 1; }; }
2166 fi
2167fi
2168
2169# test whether we have cygpath
2170if test -z "$CYGPATH_W"; then
2171 if (cygpath --version) >/dev/null 2>/dev/null; then
2172 CYGPATH_W='cygpath -w'
2173 else
2174 CYGPATH_W=echo
2175 fi
2176fi
2177
2178
2179# Define the identity of the package.
2180 PACKAGE='avarice'
2181 VERSION='2.10'
2182
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE "$PACKAGE"
2186_ACEOF
2187
2188
2189cat >>confdefs.h <<_ACEOF
2190#define VERSION "$VERSION"
2191_ACEOF
2192
2193# Some tools Automake needs.
2194
2195ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2196
2197
2198AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2199
2200
2201AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2202
2203
2204AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2205
2206
2207MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2208
2209install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2210
2211# Installed binaries are usually stripped using `strip' when the user
2212# run `make install-strip'. However `strip' might not be the right
2213# tool to use in cross-compilation environments, therefore Automake
2214# will honor the `STRIP' environment variable to overrule this program.
2215if test "$cross_compiling" != no; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2218set dummy ${ac_tool_prefix}strip; ac_word=$2
2219{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2220$as_echo_n "checking for $ac_word... " >&6; }
2221if test "${ac_cv_prog_STRIP+set}" = set; then
2222 $as_echo_n "(cached) " >&6
2223else
2224 if test -n "$STRIP"; then
2225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2226else
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238done
2239done
2240IFS=$as_save_IFS
2241
2242fi
2243fi
2244STRIP=$ac_cv_prog_STRIP
2245if test -n "$STRIP"; then
2246 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2247$as_echo "$STRIP" >&6; }
2248else
2249 { $as_echo "$as_me:$LINENO: result: no" >&5
2250$as_echo "no" >&6; }
2251fi
2252
2253
2254fi
2255if test -z "$ac_cv_prog_STRIP"; then
2256 ac_ct_STRIP=$STRIP
2257 # Extract the first word of "strip", so it can be a program name with args.
2258set dummy strip; ac_word=$2
2259{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2260$as_echo_n "checking for $ac_word... " >&6; }
2261if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2262 $as_echo_n "(cached) " >&6
2263else
2264 if test -n "$ac_ct_STRIP"; then
2265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2266else
2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2274 ac_cv_prog_ac_ct_STRIP="strip"
2275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2277 fi
2278done
2279done
2280IFS=$as_save_IFS
2281
2282fi
2283fi
2284ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2285if test -n "$ac_ct_STRIP"; then
2286 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2287$as_echo "$ac_ct_STRIP" >&6; }
2288else
2289 { $as_echo "$as_me:$LINENO: result: no" >&5
2290$as_echo "no" >&6; }
2291fi
2292
2293 if test "x$ac_ct_STRIP" = x; then
2294 STRIP=":"
2295 else
2296 case $cross_compiling:$ac_tool_warned in
2297yes:)
2298{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2299whose name does not start with the host triplet. If you think this
2300configuration is useful to you, please write to autoconf@gnu.org." >&5
2301$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2302whose name does not start with the host triplet. If you think this
2303configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2304ac_tool_warned=yes ;;
2305esac
2306 STRIP=$ac_ct_STRIP
2307 fi
2308else
2309 STRIP="$ac_cv_prog_STRIP"
2310fi
2311
2312fi
2313INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2314
2315# We need awk for the "check" target. The system "awk" is bad on
2316# some platforms.
2317# Always define AMTAR for backward compatibility.
2318
2319AMTAR=${AMTAR-"${am_missing_run}tar"}
2320
2321am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2322
2323
2324
2325
2326
2327
2328# Checks for programs.
2329ac_ext=cpp
2330ac_cpp='$CXXCPP $CPPFLAGS'
2331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2334if test -z "$CXX"; then
2335 if test -n "$CCC"; then
2336 CXX=$CCC
2337 else
2338 if test -n "$ac_tool_prefix"; then
2339 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2340 do
2341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2344$as_echo_n "checking for $ac_word... " >&6; }
2345if test "${ac_cv_prog_CXX+set}" = set; then
2346 $as_echo_n "(cached) " >&6
2347else
2348 if test -n "$CXX"; then
2349 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2350else
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2361 fi
2362done
2363done
2364IFS=$as_save_IFS
2365
2366fi
2367fi
2368CXX=$ac_cv_prog_CXX
2369if test -n "$CXX"; then
2370 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2371$as_echo "$CXX" >&6; }
2372else
2373 { $as_echo "$as_me:$LINENO: result: no" >&5
2374$as_echo "no" >&6; }
2375fi
2376
2377
2378 test -n "$CXX" && break
2379 done
2380fi
2381if test -z "$CXX"; then
2382 ac_ct_CXX=$CXX
2383 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2384do
2385 # Extract the first word of "$ac_prog", so it can be a program name with args.
2386set dummy $ac_prog; ac_word=$2
2387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2388$as_echo_n "checking for $ac_word... " >&6; }
2389if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2390 $as_echo_n "(cached) " >&6
2391else
2392 if test -n "$ac_ct_CXX"; then
2393 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_CXX="$ac_prog"
2403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2405 fi
2406done
2407done
2408IFS=$as_save_IFS
2409
2410fi
2411fi
2412ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413if test -n "$ac_ct_CXX"; then
2414 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415$as_echo "$ac_ct_CXX" >&6; }
2416else
2417 { $as_echo "$as_me:$LINENO: result: no" >&5
2418$as_echo "no" >&6; }
2419fi
2420
2421
2422 test -n "$ac_ct_CXX" && break
2423done
2424
2425 if test "x$ac_ct_CXX" = x; then
2426 CXX="g++"
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429yes:)
2430{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2431whose name does not start with the host triplet. If you think this
2432configuration is useful to you, please write to autoconf@gnu.org." >&5
2433$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2434whose name does not start with the host triplet. If you think this
2435configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2436ac_tool_warned=yes ;;
2437esac
2438 CXX=$ac_ct_CXX
2439 fi
2440fi
2441
2442 fi
2443fi
2444# Provide some information about the compiler.
2445$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2446set X $ac_compile
2447ac_compiler=$2
2448{ (ac_try="$ac_compiler --version >&5"
2449case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452esac
2453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2454$as_echo "$ac_try_echo") >&5
2455 (eval "$ac_compiler --version >&5") 2>&5
2456 ac_status=$?
2457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2459{ (ac_try="$ac_compiler -v >&5"
2460case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463esac
2464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2465$as_echo "$ac_try_echo") >&5
2466 (eval "$ac_compiler -v >&5") 2>&5
2467 ac_status=$?
2468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2470{ (ac_try="$ac_compiler -V >&5"
2471case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2476$as_echo "$ac_try_echo") >&5
2477 (eval "$ac_compiler -V >&5") 2>&5
2478 ac_status=$?
2479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }
2481
2482cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488
2489int
2490main ()
2491{
2492
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497ac_clean_files_save=$ac_clean_files
2498ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2499# Try to create an executable without -o first, disregard a.out.
2500# It will help us diagnose broken compilers, and finding out an intuition
2501# of exeext.
2502{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2503$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2504ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505
2506# The possible output files:
2507ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2508
2509ac_rmfiles=
2510for ac_file in $ac_files
2511do
2512 case $ac_file in
2513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2514 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2515 esac
2516done
2517rm -f $ac_rmfiles
2518
2519if { (ac_try="$ac_link_default"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2525$as_echo "$ac_try_echo") >&5
2526 (eval "$ac_link_default") 2>&5
2527 ac_status=$?
2528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2531# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2532# in a Makefile. We should not override ac_cv_exeext if it was cached,
2533# so that the user can short-circuit this test for compilers unknown to
2534# Autoconf.
2535for ac_file in $ac_files ''
2536do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2540 ;;
2541 [ab].out )
2542 # We found the default executable, but exeext='' is most
2543 # certainly right.
2544 break;;
2545 *.* )
2546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2547 then :; else
2548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 fi
2550 # We set ac_cv_exeext here because the later test for it is not
2551 # safe: cross compilers may not add the suffix if given an `-o'
2552 # argument, so we may need to know it at that point already.
2553 # Even if this section looks crufty: it has the advantage of
2554 # actually working.
2555 break;;
2556 * )
2557 break;;
2558 esac
2559done
2560test "$ac_cv_exeext" = no && ac_cv_exeext=
2561
2562else
2563 ac_file=''
2564fi
2565
2566{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2567$as_echo "$ac_file" >&6; }
2568if test -z "$ac_file"; then
2569 $as_echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2573See \`config.log' for more details." >&5
2574$as_echo "$as_me: error: C++ compiler cannot create executables
2575See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2577fi
2578
2579ac_exeext=$ac_cv_exeext
2580
2581# Check that the compiler produces executables we can run. If not, either
2582# the compiler is broken, or we cross compile.
2583{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2584$as_echo_n "checking whether the C++ compiler works... " >&6; }
2585# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586# If not cross compiling, check that we can run a simple program.
2587if test "$cross_compiling" != yes; then
2588 if { ac_try='./$ac_file'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594$as_echo "$ac_try_echo") >&5
2595 (eval "$ac_try") 2>&5
2596 ac_status=$?
2597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 cross_compiling=no
2600 else
2601 if test "$cross_compiling" = maybe; then
2602 cross_compiling=yes
2603 else
2604 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2605If you meant to cross compile, use \`--host'.
2606See \`config.log' for more details." >&5
2607$as_echo "$as_me: error: cannot run C++ compiled programs.
2608If you meant to cross compile, use \`--host'.
2609See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2611 fi
2612 fi
2613fi
2614{ $as_echo "$as_me:$LINENO: result: yes" >&5
2615$as_echo "yes" >&6; }
2616
2617rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2618ac_clean_files=$ac_clean_files_save
2619# Check that the compiler produces executables we can run. If not, either
2620# the compiler is broken, or we cross compile.
2621{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2622$as_echo_n "checking whether we are cross compiling... " >&6; }
2623{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2624$as_echo "$cross_compiling" >&6; }
2625
2626{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2627$as_echo_n "checking for suffix of executables... " >&6; }
2628if { (ac_try="$ac_link"
2629case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634$as_echo "$ac_try_echo") >&5
2635 (eval "$ac_link") 2>&5
2636 ac_status=$?
2637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641# work properly (i.e., refer to `conftest.exe'), while it won't with
2642# `rm'.
2643for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2645 case $ac_file in
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 break;;
2649 * ) break;;
2650 esac
2651done
2652else
2653 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654See \`config.log' for more details." >&5
2655$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2658fi
2659
2660rm -f conftest$ac_cv_exeext
2661{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662$as_echo "$ac_cv_exeext" >&6; }
2663
2664rm -f conftest.$ac_ext
2665EXEEXT=$ac_cv_exeext
2666ac_exeext=$EXEEXT
2667{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668$as_echo_n "checking for suffix of object files... " >&6; }
2669if test "${ac_cv_objext+set}" = set; then
2670 $as_echo_n "(cached) " >&6
2671else
2672 cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678
2679int
2680main ()
2681{
2682
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687rm -f conftest.o conftest.obj
2688if { (ac_try="$ac_compile"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
2693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2694$as_echo "$ac_try_echo") >&5
2695 (eval "$ac_compile") 2>&5
2696 ac_status=$?
2697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 for ac_file in conftest.o conftest.obj conftest.*; do
2700 test -f "$ac_file" || continue;
2701 case $ac_file in
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2704 break;;
2705 esac
2706done
2707else
2708 $as_echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2712See \`config.log' for more details." >&5
2713$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2714See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2716fi
2717
2718rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719fi
2720{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2721$as_echo "$ac_cv_objext" >&6; }
2722OBJEXT=$ac_cv_objext
2723ac_objext=$OBJEXT
2724{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2725$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2726if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2727 $as_echo_n "(cached) " >&6
2728else
2729 cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h. */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h. */
2735
2736int
2737main ()
2738{
2739#ifndef __GNUC__
2740 choke me
2741#endif
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext
2748if { (ac_try="$ac_compile"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754$as_echo "$ac_try_echo") >&5
2755 (eval "$ac_compile") 2>conftest.er1
2756 ac_status=$?
2757 grep -v '^ *+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } && {
2762 test -z "$ac_cxx_werror_flag" ||
2763 test ! -s conftest.err
2764 } && test -s conftest.$ac_objext; then
2765 ac_compiler_gnu=yes
2766else
2767 $as_echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 ac_compiler_gnu=no
2771fi
2772
2773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2775
2776fi
2777{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2779if test $ac_compiler_gnu = yes; then
2780 GXX=yes
2781else
2782 GXX=
2783fi
2784ac_test_CXXFLAGS=${CXXFLAGS+set}
2785ac_save_CXXFLAGS=$CXXFLAGS
2786{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2787$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2788if test "${ac_cv_prog_cxx_g+set}" = set; then
2789 $as_echo_n "(cached) " >&6
2790else
2791 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2792 ac_cxx_werror_flag=yes
2793 ac_cv_prog_cxx_g=no
2794 CXXFLAGS="-g"
2795 cat >conftest.$ac_ext <<_ACEOF
2796/* confdefs.h. */
2797_ACEOF
2798cat confdefs.h >>conftest.$ac_ext
2799cat >>conftest.$ac_ext <<_ACEOF
2800/* end confdefs.h. */
2801
2802int
2803main ()
2804{
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810rm -f conftest.$ac_objext
2811if { (ac_try="$ac_compile"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2817$as_echo "$ac_try_echo") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_cxx_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2828 ac_cv_prog_cxx_g=yes
2829else
2830 $as_echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 CXXFLAGS=""
2834 cat >conftest.$ac_ext <<_ACEOF
2835/* confdefs.h. */
2836_ACEOF
2837cat confdefs.h >>conftest.$ac_ext
2838cat >>conftest.$ac_ext <<_ACEOF
2839/* end confdefs.h. */
2840
2841int
2842main ()
2843{
2844
2845 ;
2846 return 0;
2847}
2848_ACEOF
2849rm -f conftest.$ac_objext
2850if { (ac_try="$ac_compile"
2851case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2856$as_echo "$ac_try_echo") >&5
2857 (eval "$ac_compile") 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } && {
2864 test -z "$ac_cxx_werror_flag" ||
2865 test ! -s conftest.err
2866 } && test -s conftest.$ac_objext; then
2867 :
2868else
2869 $as_echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2873 CXXFLAGS="-g"
2874 cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h. */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h. */
2880
2881int
2882main ()
2883{
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889rm -f conftest.$ac_objext
2890if { (ac_try="$ac_compile"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896$as_echo "$ac_try_echo") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && {
2904 test -z "$ac_cxx_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
2907 ac_cv_prog_cxx_g=yes
2908else
2909 $as_echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912
2913fi
2914
2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916fi
2917
2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919fi
2920
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2923fi
2924{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2925$as_echo "$ac_cv_prog_cxx_g" >&6; }
2926if test "$ac_test_CXXFLAGS" = set; then
2927 CXXFLAGS=$ac_save_CXXFLAGS
2928elif test $ac_cv_prog_cxx_g = yes; then
2929 if test "$GXX" = yes; then
2930 CXXFLAGS="-g -O2"
2931 else
2932 CXXFLAGS="-g"
2933 fi
2934else
2935 if test "$GXX" = yes; then
2936 CXXFLAGS="-O2"
2937 else
2938 CXXFLAGS=
2939 fi
2940fi
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946DEPDIR="${am__leading_dot}deps"
2947
2948ac_config_commands="$ac_config_commands depfiles"
2949
2950
2951am_make=${MAKE-make}
2952cat > confinc << 'END'
2953am__doit:
2954 @echo done
2955.PHONY: am__doit
2956END
2957# If we don't find an include directive, just comment out the code.
2958{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2959$as_echo_n "checking for style of include used by $am_make... " >&6; }
2960am__include="#"
2961am__quote=
2962_am_result=none
2963# First try GNU make style include.
2964echo "include confinc" > confmf
2965# We grep out `Entering directory' and `Leaving directory'
2966# messages which can occur if `w' ends up in MAKEFLAGS.
2967# In particular we don't look at `^make:' because GNU make might
2968# be invoked under some other name (usually "gmake"), in which
2969# case it prints its new name instead of `make'.
2970if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2971 am__include=include
2972 am__quote=
2973 _am_result=GNU
2974fi
2975# Now try BSD make style include.
2976if test "$am__include" = "#"; then
2977 echo '.include "confinc"' > confmf
2978 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2979 am__include=.include
2980 am__quote="\""
2981 _am_result=BSD
2982 fi
2983fi
2984
2985
2986{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2987$as_echo "$_am_result" >&6; }
2988rm -f confinc confmf
2989
2990# Check whether --enable-dependency-tracking was given.
2991if test "${enable_dependency_tracking+set}" = set; then
2992 enableval=$enable_dependency_tracking;
2993fi
2994
2995if test "x$enable_dependency_tracking" != xno; then
2996 am_depcomp="$ac_aux_dir/depcomp"
2997 AMDEPBACKSLASH='\'
2998fi
2999 if test "x$enable_dependency_tracking" != xno; then
3000 AMDEP_TRUE=
3001 AMDEP_FALSE='#'
3002else
3003 AMDEP_TRUE='#'
3004 AMDEP_FALSE=
3005fi
3006
3007
3008
3009depcc="$CXX" am_compiler_list=
3010
3011{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3012$as_echo_n "checking dependency style of $depcc... " >&6; }
3013if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3014 $as_echo_n "(cached) " >&6
3015else
3016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3017 # We make a subdir and do the tests there. Otherwise we can end up
3018 # making bogus files that we don't know about and never remove. For
3019 # instance it was reported that on HP-UX the gcc test will end up
3020 # making a dummy file named `D' -- because `-MD' means `put the output
3021 # in D'.
3022 mkdir conftest.dir
3023 # Copy depcomp to subdir because otherwise we won't find it if we're
3024 # using a relative directory.
3025 cp "$am_depcomp" conftest.dir
3026 cd conftest.dir
3027 # We will build objects and dependencies in a subdirectory because
3028 # it helps to detect inapplicable dependency modes. For instance
3029 # both Tru64's cc and ICC support -MD to output dependencies as a
3030 # side effect of compilation, but ICC will put the dependencies in
3031 # the current directory while Tru64 will put them in the object
3032 # directory.
3033 mkdir sub
3034
3035 am_cv_CXX_dependencies_compiler_type=none
3036 if test "$am_compiler_list" = ""; then
3037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3038 fi
3039 for depmode in $am_compiler_list; do
3040 # Setup a source with many dependencies, because some compilers
3041 # like to wrap large dependency lists on column 80 (with \), and
3042 # we should not choose a depcomp mode which is confused by this.
3043 #
3044 # We need to recreate these files for each test, as the compiler may
3045 # overwrite some of them when testing with obscure command lines.
3046 # This happens at least with the AIX C compiler.
3047 : > sub/conftest.c
3048 for i in 1 2 3 4 5 6; do
3049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3051 # Solaris 8's {/usr,}/bin/sh.
3052 touch sub/conftst$i.h
3053 done
3054 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3055
3056 case $depmode in
3057 nosideeffect)
3058 # after this tag, mechanisms are not by side-effect, so they'll
3059 # only be used when explicitly requested
3060 if test "x$enable_dependency_tracking" = xyes; then
3061 continue
3062 else
3063 break
3064 fi
3065 ;;
3066 none) break ;;
3067 esac
3068 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3069 # mode. It turns out that the SunPro C++ compiler does not properly
3070 # handle `-M -o', and we need to detect this.
3071 if depmode=$depmode \
3072 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3073 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3074 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3075 >/dev/null 2>conftest.err &&
3076 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3077 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3078 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3079 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3080 # icc doesn't choke on unknown options, it will just issue warnings
3081 # or remarks (even with -Werror). So we grep stderr for any message
3082 # that says an option was ignored or not supported.
3083 # When given -MP, icc 7.0 and 7.1 complain thusly:
3084 # icc: Command line warning: ignoring option '-M'; no argument required
3085 # The diagnosis changed in icc 8.0:
3086 # icc: Command line remark: option '-MP' not supported
3087 if (grep 'ignoring option' conftest.err ||
3088 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3089 am_cv_CXX_dependencies_compiler_type=$depmode
3090 break
3091 fi
3092 fi
3093 done
3094
3095 cd ..
3096 rm -rf conftest.dir
3097else
3098 am_cv_CXX_dependencies_compiler_type=none
3099fi
3100
3101fi
3102{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3103$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3104CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3105
3106 if
3107 test "x$enable_dependency_tracking" != xno \
3108 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3109 am__fastdepCXX_TRUE=
3110 am__fastdepCXX_FALSE='#'
3111else
3112 am__fastdepCXX_TRUE='#'
3113 am__fastdepCXX_FALSE=
3114fi
3115
3116
3117ac_ext=c
3118ac_cpp='$CPP $CPPFLAGS'
3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3124set dummy ${ac_tool_prefix}gcc; ac_word=$2
3125{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3126$as_echo_n "checking for $ac_word... " >&6; }
3127if test "${ac_cv_prog_CC+set}" = set; then
3128 $as_echo_n "(cached) " >&6
3129else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132else
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144done
3145done
3146IFS=$as_save_IFS
3147
3148fi
3149fi
3150CC=$ac_cv_prog_CC
3151if test -n "$CC"; then
3152 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3153$as_echo "$CC" >&6; }
3154else
3155 { $as_echo "$as_me:$LINENO: result: no" >&5
3156$as_echo "no" >&6; }
3157fi
3158
3159
3160fi
3161if test -z "$ac_cv_prog_CC"; then
3162 ac_ct_CC=$CC
3163 # Extract the first word of "gcc", so it can be a program name with args.
3164set dummy gcc; ac_word=$2
3165{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3168 $as_echo_n "(cached) " >&6
3169else
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_ac_ct_CC="gcc"
3181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184done
3185done
3186IFS=$as_save_IFS
3187
3188fi
3189fi
3190ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3193$as_echo "$ac_ct_CC" >&6; }
3194else
3195 { $as_echo "$as_me:$LINENO: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203yes:)
3204{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3205whose name does not start with the host triplet. If you think this
3206configuration is useful to you, please write to autoconf@gnu.org." >&5
3207$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3208whose name does not start with the host triplet. If you think this
3209configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3210ac_tool_warned=yes ;;
3211esac
3212 CC=$ac_ct_CC
3213 fi
3214else
3215 CC="$ac_cv_prog_CC"
3216fi
3217
3218if test -z "$CC"; then
3219 if test -n "$ac_tool_prefix"; then
3220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3221set dummy ${ac_tool_prefix}cc; ac_word=$2
3222{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
3224if test "${ac_cv_prog_CC+set}" = set; then
3225 $as_echo_n "(cached) " >&6
3226else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_CC="${ac_tool_prefix}cc"
3238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241done
3242done
3243IFS=$as_save_IFS
3244
3245fi
3246fi
3247CC=$ac_cv_prog_CC
3248if test -n "$CC"; then
3249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3250$as_echo "$CC" >&6; }
3251else
3252 { $as_echo "$as_me:$LINENO: result: no" >&5
3253$as_echo "no" >&6; }
3254fi
3255
3256
3257 fi
3258fi
3259if test -z "$CC"; then
3260 # Extract the first word of "cc", so it can be a program name with args.
3261set dummy cc; ac_word=$2
3262{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3263$as_echo_n "checking for $ac_word... " >&6; }
3264if test "${ac_cv_prog_CC+set}" = set; then
3265 $as_echo_n "(cached) " >&6
3266else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269else
3270 ac_prog_rejected=no
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3279 ac_prog_rejected=yes
3280 continue
3281 fi
3282 ac_cv_prog_CC="cc"
3283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286done
3287done
3288IFS=$as_save_IFS
3289
3290if test $ac_prog_rejected = yes; then
3291 # We found a bogon in the path, so make sure we never use it.
3292 set dummy $ac_cv_prog_CC
3293 shift
3294 if test $# != 0; then
3295 # We chose a different compiler from the bogus one.
3296 # However, it has the same basename, so the bogon will be chosen
3297 # first if we set CC to just the basename; use the full file name.
3298 shift
3299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3300 fi
3301fi
3302fi
3303fi
3304CC=$ac_cv_prog_CC
3305if test -n "$CC"; then
3306 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3307$as_echo "$CC" >&6; }
3308else
3309 { $as_echo "$as_me:$LINENO: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313
3314fi
3315if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 for ac_prog in cl.exe
3318 do
3319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3322$as_echo_n "checking for $ac_word... " >&6; }
3323if test "${ac_cv_prog_CC+set}" = set; then
3324 $as_echo_n "(cached) " >&6
3325else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340done
3341done
3342IFS=$as_save_IFS
3343
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
3348 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3350else
3351 { $as_echo "$as_me:$LINENO: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355
3356 test -n "$CC" && break
3357 done
3358fi
3359if test -z "$CC"; then
3360 ac_ct_CC=$CC
3361 for ac_prog in cl.exe
3362do
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364set dummy $ac_prog; ac_word=$2
3365{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3366$as_echo_n "checking for $ac_word... " >&6; }
3367if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3368 $as_echo_n "(cached) " >&6
3369else
3370 if test -n "$ac_ct_CC"; then
3371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372else
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_ac_ct_CC="$ac_prog"
3381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384done
3385done
3386IFS=$as_save_IFS
3387
3388fi
3389fi
3390ac_ct_CC=$ac_cv_prog_ac_ct_CC
3391if test -n "$ac_ct_CC"; then
3392 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3393$as_echo "$ac_ct_CC" >&6; }
3394else
3395 { $as_echo "$as_me:$LINENO: result: no" >&5
3396$as_echo "no" >&6; }
3397fi
3398
3399
3400 test -n "$ac_ct_CC" && break
3401done
3402
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407yes:)
3408{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3409whose name does not start with the host triplet. If you think this
3410configuration is useful to you, please write to autoconf@gnu.org." >&5
3411$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3412whose name does not start with the host triplet. If you think this
3413configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3414ac_tool_warned=yes ;;
3415esac
3416 CC=$ac_ct_CC
3417 fi
3418fi
3419
3420fi
3421
3422
3423test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3424See \`config.log' for more details." >&5
3425$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3426See \`config.log' for more details." >&2;}
3427 { (exit 1); exit 1; }; }
3428
3429# Provide some information about the compiler.
3430$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3431set X $ac_compile
3432ac_compiler=$2
3433{ (ac_try="$ac_compiler --version >&5"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439$as_echo "$ac_try_echo") >&5
3440 (eval "$ac_compiler --version >&5") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }
3444{ (ac_try="$ac_compiler -v >&5"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450$as_echo "$ac_try_echo") >&5
3451 (eval "$ac_compiler -v >&5") 2>&5
3452 ac_status=$?
3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }
3455{ (ac_try="$ac_compiler -V >&5"
3456case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461$as_echo "$ac_try_echo") >&5
3462 (eval "$ac_compiler -V >&5") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }
3466
3467{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3468$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3469if test "${ac_cv_c_compiler_gnu+set}" = set; then
3470 $as_echo_n "(cached) " >&6
3471else
3472 cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
3478
3479int
3480main ()
3481{
3482#ifndef __GNUC__
3483 choke me
3484#endif
3485
3486 ;
3487 return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (ac_try="$ac_compile"
3492case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495esac
3496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497$as_echo "$ac_try_echo") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } && {
3505 test -z "$ac_c_werror_flag" ||
3506 test ! -s conftest.err
3507 } && test -s conftest.$ac_objext; then
3508 ac_compiler_gnu=yes
3509else
3510 $as_echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 ac_compiler_gnu=no
3514fi
3515
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519fi
3520{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3521$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3522if test $ac_compiler_gnu = yes; then
3523 GCC=yes
3524else
3525 GCC=
3526fi
3527ac_test_CFLAGS=${CFLAGS+set}
3528ac_save_CFLAGS=$CFLAGS
3529{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3530$as_echo_n "checking whether $CC accepts -g... " >&6; }
3531if test "${ac_cv_prog_cc_g+set}" = set; then
3532 $as_echo_n "(cached) " >&6
3533else
3534 ac_save_c_werror_flag=$ac_c_werror_flag
3535 ac_c_werror_flag=yes
3536 ac_cv_prog_cc_g=no
3537 CFLAGS="-g"
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544
3545int
3546main ()
3547{
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (ac_try="$ac_compile"
3555case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3560$as_echo "$ac_try_echo") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_prog_cc_g=yes
3572else
3573 $as_echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 CFLAGS=""
3577 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h. */
3583
3584int
3585main ()
3586{
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (ac_try="$ac_compile"
3594case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3599$as_echo "$ac_try_echo") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3610 :
3611else
3612 $as_echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3616 CFLAGS="-g"
3617 cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h. */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h. */
3623
3624int
3625main ()
3626{
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
3632rm -f conftest.$ac_objext
3633if { (ac_try="$ac_compile"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3639$as_echo "$ac_try_echo") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3650 ac_cv_prog_cc_g=yes
3651else
3652 $as_echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655
3656fi
3657
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659fi
3660
3661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662fi
3663
3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_c_werror_flag=$ac_save_c_werror_flag
3666fi
3667{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3668$as_echo "$ac_cv_prog_cc_g" >&6; }
3669if test "$ac_test_CFLAGS" = set; then
3670 CFLAGS=$ac_save_CFLAGS
3671elif test $ac_cv_prog_cc_g = yes; then
3672 if test "$GCC" = yes; then
3673 CFLAGS="-g -O2"
3674 else
3675 CFLAGS="-g"
3676 fi
3677else
3678 if test "$GCC" = yes; then
3679 CFLAGS="-O2"
3680 else
3681 CFLAGS=
3682 fi
3683fi
3684{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3685$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3686if test "${ac_cv_prog_cc_c89+set}" = set; then
3687 $as_echo_n "(cached) " >&6
3688else
3689 ac_cv_prog_cc_c89=no
3690ac_save_CC=$CC
3691cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h. */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h. */
3697#include <stdarg.h>
3698#include <stdio.h>
3699#include <sys/types.h>
3700#include <sys/stat.h>
3701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3702struct buf { int x; };
3703FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704static char *e (p, i)
3705 char **p;
3706 int i;
3707{
3708 return p[i];
3709}
3710static char *f (char * (*g) (char **, int), char **p, ...)
3711{
3712 char *s;
3713 va_list v;
3714 va_start (v,p);
3715 s = g (p, va_arg (v,int));
3716 va_end (v);
3717 return s;
3718}
3719
3720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3721 function prototypes and stuff, but not '\xHH' hex character constants.
3722 These don't provoke an error unfortunately, instead are silently treated
3723 as 'x'. The following induces an error, until -std is added to get
3724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3725 array size at least. It's necessary to write '\x00'==0 to get something
3726 that's true only with -std. */
3727int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3728
3729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730 inside strings and character constants. */
3731#define FOO(x) 'x'
3732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3733
3734int test (int i, double x);
3735struct s1 {int (*f) (int a);};
3736struct s2 {int (*f) (double a);};
3737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3738int argc;
3739char **argv;
3740int
3741main ()
3742{
3743return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3744 ;
3745 return 0;
3746}
3747_ACEOF
3748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3750do
3751 CC="$ac_save_CC $ac_arg"
3752 rm -f conftest.$ac_objext
3753if { (ac_try="$ac_compile"
3754case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759$as_echo "$ac_try_echo") >&5
3760 (eval "$ac_compile") 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } && {
3767 test -z "$ac_c_werror_flag" ||
3768 test ! -s conftest.err
3769 } && test -s conftest.$ac_objext; then
3770 ac_cv_prog_cc_c89=$ac_arg
3771else
3772 $as_echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775
3776fi
3777
3778rm -f core conftest.err conftest.$ac_objext
3779 test "x$ac_cv_prog_cc_c89" != "xno" && break
3780done
3781rm -f conftest.$ac_ext
3782CC=$ac_save_CC
3783
3784fi
3785# AC_CACHE_VAL
3786case "x$ac_cv_prog_cc_c89" in
3787 x)
3788 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3789$as_echo "none needed" >&6; } ;;
3790 xno)
3791 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3792$as_echo "unsupported" >&6; } ;;
3793 *)
3794 CC="$CC $ac_cv_prog_cc_c89"
3795 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3796$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3797esac
3798
3799
3800ac_ext=c
3801ac_cpp='$CPP $CPPFLAGS'
3802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806depcc="$CC" am_compiler_list=
3807
3808{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3809$as_echo_n "checking dependency style of $depcc... " >&6; }
3810if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3811 $as_echo_n "(cached) " >&6
3812else
3813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3814 # We make a subdir and do the tests there. Otherwise we can end up
3815 # making bogus files that we don't know about and never remove. For
3816 # instance it was reported that on HP-UX the gcc test will end up
3817 # making a dummy file named `D' -- because `-MD' means `put the output
3818 # in D'.
3819 mkdir conftest.dir
3820 # Copy depcomp to subdir because otherwise we won't find it if we're
3821 # using a relative directory.
3822 cp "$am_depcomp" conftest.dir
3823 cd conftest.dir
3824 # We will build objects and dependencies in a subdirectory because
3825 # it helps to detect inapplicable dependency modes. For instance
3826 # both Tru64's cc and ICC support -MD to output dependencies as a
3827 # side effect of compilation, but ICC will put the dependencies in
3828 # the current directory while Tru64 will put them in the object
3829 # directory.
3830 mkdir sub
3831
3832 am_cv_CC_dependencies_compiler_type=none
3833 if test "$am_compiler_list" = ""; then
3834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3835 fi
3836 for depmode in $am_compiler_list; do
3837 # Setup a source with many dependencies, because some compilers
3838 # like to wrap large dependency lists on column 80 (with \), and
3839 # we should not choose a depcomp mode which is confused by this.
3840 #
3841 # We need to recreate these files for each test, as the compiler may
3842 # overwrite some of them when testing with obscure command lines.
3843 # This happens at least with the AIX C compiler.
3844 : > sub/conftest.c
3845 for i in 1 2 3 4 5 6; do
3846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3847 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3848 # Solaris 8's {/usr,}/bin/sh.
3849 touch sub/conftst$i.h
3850 done
3851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3852
3853 case $depmode in
3854 nosideeffect)
3855 # after this tag, mechanisms are not by side-effect, so they'll
3856 # only be used when explicitly requested
3857 if test "x$enable_dependency_tracking" = xyes; then
3858 continue
3859 else
3860 break
3861 fi
3862 ;;
3863 none) break ;;
3864 esac
3865 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3866 # mode. It turns out that the SunPro C++ compiler does not properly
3867 # handle `-M -o', and we need to detect this.
3868 if depmode=$depmode \
3869 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3871 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3872 >/dev/null 2>conftest.err &&
3873 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3877 # icc doesn't choke on unknown options, it will just issue warnings
3878 # or remarks (even with -Werror). So we grep stderr for any message
3879 # that says an option was ignored or not supported.
3880 # When given -MP, icc 7.0 and 7.1 complain thusly:
3881 # icc: Command line warning: ignoring option '-M'; no argument required
3882 # The diagnosis changed in icc 8.0:
3883 # icc: Command line remark: option '-MP' not supported
3884 if (grep 'ignoring option' conftest.err ||
3885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3886 am_cv_CC_dependencies_compiler_type=$depmode
3887 break
3888 fi
3889 fi
3890 done
3891
3892 cd ..
3893 rm -rf conftest.dir
3894else
3895 am_cv_CC_dependencies_compiler_type=none
3896fi
3897
3898fi
3899{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3900$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3901CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3902
3903 if
3904 test "x$enable_dependency_tracking" != xno \
3905 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906 am__fastdepCC_TRUE=
3907 am__fastdepCC_FALSE='#'
3908else
3909 am__fastdepCC_TRUE='#'
3910 am__fastdepCC_FALSE=
3911fi
3912
3913
3914
3915# Extract the first word of "perl", so it can be a program name with args.
3916set dummy perl; ac_word=$2
3917{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3918$as_echo_n "checking for $ac_word... " >&6; }
3919if test "${ac_cv_path_pathperl+set}" = set; then
3920 $as_echo_n "(cached) " >&6
3921else
3922 case $pathperl in
3923 [\\/]* | ?:[\\/]*)
3924 ac_cv_path_pathperl="$pathperl" # Let the user override the test with a path.
3925 ;;
3926 *)
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 ac_cv_path_pathperl="$as_dir/$ac_word$ac_exec_ext"
3935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938done
3939done
3940IFS=$as_save_IFS
3941
3942 ;;
3943esac
3944fi
3945pathperl=$ac_cv_path_pathperl
3946if test -n "$pathperl"; then
3947 { $as_echo "$as_me:$LINENO: result: $pathperl" >&5
3948$as_echo "$pathperl" >&6; }
3949else
3950 { $as_echo "$as_me:$LINENO: result: no" >&5
3951$as_echo "no" >&6; }
3952fi
3953
3954
3955if test -z "$pathperl" ; then
3956 { { $as_echo "$as_me:$LINENO: error: I can't find perl" >&5
3957$as_echo "$as_me: error: I can't find perl" >&2;}
3958 { (exit 1); exit 1; }; };
3959fi
3960
3961# Checks for libraries.
3962
3963## Some systems need "-lsocket -lnsl" when linking.
3964##
3965
3966{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3967$as_echo_n "checking for library containing gethostbyname... " >&6; }
3968if test "${ac_cv_search_gethostbyname+set}" = set; then
3969 $as_echo_n "(cached) " >&6
3970else
3971 ac_func_search_save_LIBS=$LIBS
3972cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978
3979/* Override any GCC internal prototype to avoid an error.
3980 Use char because int might match the return type of a GCC
3981 builtin and then its argument prototype would still apply. */
3982#ifdef __cplusplus
3983extern "C"
3984#endif
3985char gethostbyname ();
3986int
3987main ()
3988{
3989return gethostbyname ();
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994for ac_lib in '' nsl; do
3995 if test -z "$ac_lib"; then
3996 ac_res="none required"
3997 else
3998 ac_res=-l$ac_lib
3999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4000 fi
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002if { (ac_try="$ac_link"
4003case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006esac
4007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4008$as_echo "$ac_try_echo") >&5
4009 (eval "$ac_link") 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && {
4016 test -z "$ac_c_werror_flag" ||
4017 test ! -s conftest.err
4018 } && test -s conftest$ac_exeext && {
4019 test "$cross_compiling" = yes ||
4020 $as_test_x conftest$ac_exeext
4021 }; then
4022 ac_cv_search_gethostbyname=$ac_res
4023else
4024 $as_echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027
4028fi
4029
4030rm -rf conftest.dSYM
4031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4032 conftest$ac_exeext
4033 if test "${ac_cv_search_gethostbyname+set}" = set; then
4034 break
4035fi
4036done
4037if test "${ac_cv_search_gethostbyname+set}" = set; then
4038 :
4039else
4040 ac_cv_search_gethostbyname=no
4041fi
4042rm conftest.$ac_ext
4043LIBS=$ac_func_search_save_LIBS
4044fi
4045{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4046$as_echo "$ac_cv_search_gethostbyname" >&6; }
4047ac_res=$ac_cv_search_gethostbyname
4048if test "$ac_res" != no; then
4049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4050
4051fi
4052
4053{ $as_echo "$as_me:$LINENO: checking for socket" >&5
4054$as_echo_n "checking for socket... " >&6; }
4055if test "${ac_cv_func_socket+set}" = set; then
4056 $as_echo_n "(cached) " >&6
4057else
4058 cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h. */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h. */
4064/* Define socket to an innocuous variant, in case <limits.h> declares socket.
4065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4066#define socket innocuous_socket
4067
4068/* System header to define __stub macros and hopefully few prototypes,
4069 which can conflict with char socket (); below.
4070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 <limits.h> exists even on freestanding compilers. */
4072
4073#ifdef __STDC__
4074# include <limits.h>
4075#else
4076# include <assert.h>
4077#endif
4078
4079#undef socket
4080
4081/* Override any GCC internal prototype to avoid an error.
4082 Use char because int might match the return type of a GCC
4083 builtin and then its argument prototype would still apply. */
4084#ifdef __cplusplus
4085extern "C"
4086#endif
4087char socket ();
4088/* The GNU C library defines this for functions which it implements
4089 to always fail with ENOSYS. Some functions are actually named
4090 something starting with __ and the normal name is an alias. */
4091#if defined __stub_socket || defined __stub___socket
4092choke me
4093#endif
4094
4095int
4096main ()
4097{
4098return socket ();
4099 ;
4100 return 0;
4101}
4102_ACEOF
4103rm -f conftest.$ac_objext conftest$ac_exeext
4104if { (ac_try="$ac_link"
4105case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
4109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110$as_echo "$ac_try_echo") >&5
4111 (eval "$ac_link") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest$ac_exeext && {
4121 test "$cross_compiling" = yes ||
4122 $as_test_x conftest$ac_exeext
4123 }; then
4124 ac_cv_func_socket=yes
4125else
4126 $as_echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_func_socket=no
4130fi
4131
4132rm -rf conftest.dSYM
4133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4134 conftest$ac_exeext conftest.$ac_ext
4135fi
4136{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4137$as_echo "$ac_cv_func_socket" >&6; }
4138if test $ac_cv_func_socket = yes; then
4139 :
4140else
4141
4142 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4143$as_echo_n "checking for socket in -lsocket... " >&6; }
4144if test "${ac_cv_lib_socket_socket+set}" = set; then
4145 $as_echo_n "(cached) " >&6
4146else
4147 ac_check_lib_save_LIBS=$LIBS
4148LIBS="-lsocket "$LIBS" $LIBS"
4149cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
4155
4156/* Override any GCC internal prototype to avoid an error.
4157 Use char because int might match the return type of a GCC
4158 builtin and then its argument prototype would still apply. */
4159#ifdef __cplusplus
4160extern "C"
4161#endif
4162char socket ();
4163int
4164main ()
4165{
4166return socket ();
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext conftest$ac_exeext
4172if { (ac_try="$ac_link"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178$as_echo "$ac_try_echo") >&5
4179 (eval "$ac_link") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && {
4186 test -z "$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 } && test -s conftest$ac_exeext && {
4189 test "$cross_compiling" = yes ||
4190 $as_test_x conftest$ac_exeext
4191 }; then
4192 ac_cv_lib_socket_socket=yes
4193else
4194 $as_echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 ac_cv_lib_socket_socket=no
4198fi
4199
4200rm -rf conftest.dSYM
4201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4202 conftest$ac_exeext conftest.$ac_ext
4203LIBS=$ac_check_lib_save_LIBS
4204fi
4205{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4206$as_echo "$ac_cv_lib_socket_socket" >&6; }
4207if test $ac_cv_lib_socket_socket = yes; then
4208 LIBS="$LIBS -lsocket"
4209else
4210
4211 { $as_echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
4212$as_echo_n "checking for socket in -lnsl... " >&6; }
4213if test "${ac_cv_lib_nsl_socket+set}" = set; then
4214 $as_echo_n "(cached) " >&6
4215else
4216 ac_check_lib_save_LIBS=$LIBS
4217LIBS="-lnsl -lsocket $LIBS"
4218cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224
4225/* Override any GCC internal prototype to avoid an error.
4226 Use char because int might match the return type of a GCC
4227 builtin and then its argument prototype would still apply. */
4228#ifdef __cplusplus
4229extern "C"
4230#endif
4231char socket ();
4232int
4233main ()
4234{
4235return socket ();
4236 ;
4237 return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext conftest$ac_exeext
4241if { (ac_try="$ac_link"
4242case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245esac
4246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4247$as_echo "$ac_try_echo") >&5
4248 (eval "$ac_link") 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } && {
4255 test -z "$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 } && test -s conftest$ac_exeext && {
4258 test "$cross_compiling" = yes ||
4259 $as_test_x conftest$ac_exeext
4260 }; then
4261 ac_cv_lib_nsl_socket=yes
4262else
4263 $as_echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_cv_lib_nsl_socket=no
4267fi
4268
4269rm -rf conftest.dSYM
4270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4271 conftest$ac_exeext conftest.$ac_ext
4272LIBS=$ac_check_lib_save_LIBS
4273fi
4274{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
4275$as_echo "$ac_cv_lib_nsl_socket" >&6; }
4276if test $ac_cv_lib_nsl_socket = yes; then
4277 LIBS="$LIBS -lsocket -lnsl"
4278fi
4279
4280
4281fi
4282
4283
4284fi
4285
4286
4287## Some systems need "-lresolv" for inet_aton().
4288##
4289{ $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
4290$as_echo_n "checking for library containing inet_aton... " >&6; }
4291if test "${ac_cv_search_inet_aton+set}" = set; then
4292 $as_echo_n "(cached) " >&6
4293else
4294 ac_func_search_save_LIBS=$LIBS
4295cat >conftest.$ac_ext <<_ACEOF
4296/* confdefs.h. */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h. */
4301
4302/* Override any GCC internal prototype to avoid an error.
4303 Use char because int might match the return type of a GCC
4304 builtin and then its argument prototype would still apply. */
4305#ifdef __cplusplus
4306extern "C"
4307#endif
4308char inet_aton ();
4309int
4310main ()
4311{
4312return inet_aton ();
4313 ;
4314 return 0;
4315}
4316_ACEOF
4317for ac_lib in '' resolv; do
4318 if test -z "$ac_lib"; then
4319 ac_res="none required"
4320 else
4321 ac_res=-l$ac_lib
4322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4323 fi
4324 rm -f conftest.$ac_objext conftest$ac_exeext
4325if { (ac_try="$ac_link"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4331$as_echo "$ac_try_echo") >&5
4332 (eval "$ac_link") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest$ac_exeext && {
4342 test "$cross_compiling" = yes ||
4343 $as_test_x conftest$ac_exeext
4344 }; then
4345 ac_cv_search_inet_aton=$ac_res
4346else
4347 $as_echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350
4351fi
4352
4353rm -rf conftest.dSYM
4354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4355 conftest$ac_exeext
4356 if test "${ac_cv_search_inet_aton+set}" = set; then
4357 break
4358fi
4359done
4360if test "${ac_cv_search_inet_aton+set}" = set; then
4361 :
4362else
4363 ac_cv_search_inet_aton=no
4364fi
4365rm conftest.$ac_ext
4366LIBS=$ac_func_search_save_LIBS
4367fi
4368{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
4369$as_echo "$ac_cv_search_inet_aton" >&6; }
4370ac_res=$ac_cv_search_inet_aton
4371if test "$ac_res" != no; then
4372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4373
4374fi
4375
4376
4377## If libbfd was configured with nls, the build might need -lintl. This
4378## seems to be the case with cygwin. Also, it seems that on cygwin, libintl
4379## needs libiconv. Plus, on some systems libbfd needs -liberty.
4380##
4381
4382{ $as_echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
4383$as_echo_n "checking for iconv_open in -liconv... " >&6; }
4384if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
4385 $as_echo_n "(cached) " >&6
4386else
4387 ac_check_lib_save_LIBS=$LIBS
4388LIBS="-liconv $LIBS"
4389cat >conftest.$ac_ext <<_ACEOF
4390/* confdefs.h. */
4391_ACEOF
4392cat confdefs.h >>conftest.$ac_ext
4393cat >>conftest.$ac_ext <<_ACEOF
4394/* end confdefs.h. */
4395
4396/* Override any GCC internal prototype to avoid an error.
4397 Use char because int might match the return type of a GCC
4398 builtin and then its argument prototype would still apply. */
4399#ifdef __cplusplus
4400extern "C"
4401#endif
4402char iconv_open ();
4403int
4404main ()
4405{
4406return iconv_open ();
4407 ;
4408 return 0;
4409}
4410_ACEOF
4411rm -f conftest.$ac_objext conftest$ac_exeext
4412if { (ac_try="$ac_link"
4413case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418$as_echo "$ac_try_echo") >&5
4419 (eval "$ac_link") 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest$ac_exeext && {
4429 test "$cross_compiling" = yes ||
4430 $as_test_x conftest$ac_exeext
4431 }; then
4432 ac_cv_lib_iconv_iconv_open=yes
4433else
4434 $as_echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 ac_cv_lib_iconv_iconv_open=no
4438fi
4439
4440rm -rf conftest.dSYM
4441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4442 conftest$ac_exeext conftest.$ac_ext
4443LIBS=$ac_check_lib_save_LIBS
4444fi
4445{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
4446$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
4447if test $ac_cv_lib_iconv_iconv_open = yes; then
4448 cat >>confdefs.h <<_ACEOF
4449#define HAVE_LIBICONV 1
4450_ACEOF
4451
4452 LIBS="-liconv $LIBS"
4453
4454else
4455 ac_found_iconf=no
4456fi
4457
4458if test "x$ac_found_iconf" = "xno"; then
4459
4460{ $as_echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
4461$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
4462if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
4463 $as_echo_n "(cached) " >&6
4464else
4465 ac_check_lib_save_LIBS=$LIBS
4466LIBS="-liconv $LIBS"
4467cat >conftest.$ac_ext <<_ACEOF
4468/* confdefs.h. */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
4472/* end confdefs.h. */
4473
4474/* Override any GCC internal prototype to avoid an error.
4475 Use char because int might match the return type of a GCC
4476 builtin and then its argument prototype would still apply. */
4477#ifdef __cplusplus
4478extern "C"
4479#endif
4480char libiconv_open ();
4481int
4482main ()
4483{
4484return libiconv_open ();
4485 ;
4486 return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (ac_try="$ac_link"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
4495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4496$as_echo "$ac_try_echo") >&5
4497 (eval "$ac_link") 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } && {
4504 test -z "$ac_c_werror_flag" ||
4505 test ! -s conftest.err
4506 } && test -s conftest$ac_exeext && {
4507 test "$cross_compiling" = yes ||
4508 $as_test_x conftest$ac_exeext
4509 }; then
4510 ac_cv_lib_iconv_libiconv_open=yes
4511else
4512 $as_echo "$as_me: failed program was:" >&5
4513sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 ac_cv_lib_iconv_libiconv_open=no
4516fi
4517
4518rm -rf conftest.dSYM
4519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4520 conftest$ac_exeext conftest.$ac_ext
4521LIBS=$ac_check_lib_save_LIBS
4522fi
4523{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
4524$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
4525if test $ac_cv_lib_iconv_libiconv_open = yes; then
4526 cat >>confdefs.h <<_ACEOF
4527#define HAVE_LIBICONV 1
4528_ACEOF
4529
4530 LIBS="-liconv $LIBS"
4531
4532fi
4533
4534fi
4535
4536{ $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
4537$as_echo_n "checking for dcgettext in -lintl... " >&6; }
4538if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
4539 $as_echo_n "(cached) " >&6
4540else
4541 ac_check_lib_save_LIBS=$LIBS
4542LIBS="-lintl $LIBS"
4543cat >conftest.$ac_ext <<_ACEOF
4544/* confdefs.h. */
4545_ACEOF
4546cat confdefs.h >>conftest.$ac_ext
4547cat >>conftest.$ac_ext <<_ACEOF
4548/* end confdefs.h. */
4549
4550/* Override any GCC internal prototype to avoid an error.
4551 Use char because int might match the return type of a GCC
4552 builtin and then its argument prototype would still apply. */
4553#ifdef __cplusplus
4554extern "C"
4555#endif
4556char dcgettext ();
4557int
4558main ()
4559{
4560return dcgettext ();
4561 ;
4562 return 0;
4563}
4564_ACEOF
4565rm -f conftest.$ac_objext conftest$ac_exeext
4566if { (ac_try="$ac_link"
4567case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572$as_echo "$ac_try_echo") >&5
4573 (eval "$ac_link") 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest$ac_exeext && {
4583 test "$cross_compiling" = yes ||
4584 $as_test_x conftest$ac_exeext
4585 }; then
4586 ac_cv_lib_intl_dcgettext=yes
4587else
4588 $as_echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591 ac_cv_lib_intl_dcgettext=no
4592fi
4593
4594rm -rf conftest.dSYM
4595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4596 conftest$ac_exeext conftest.$ac_ext
4597LIBS=$ac_check_lib_save_LIBS
4598fi
4599{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
4600$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
4601if test $ac_cv_lib_intl_dcgettext = yes; then
4602 cat >>confdefs.h <<_ACEOF
4603#define HAVE_LIBINTL 1
4604_ACEOF
4605
4606 LIBS="-lintl $LIBS"
4607
4608fi
4609
4610
4611{ $as_echo "$as_me:$LINENO: checking for xmalloc in -liberty" >&5
4612$as_echo_n "checking for xmalloc in -liberty... " >&6; }
4613if test "${ac_cv_lib_iberty_xmalloc+set}" = set; then
4614 $as_echo_n "(cached) " >&6
4615else
4616 ac_check_lib_save_LIBS=$LIBS
4617LIBS="-liberty $LIBS"
4618cat >conftest.$ac_ext <<_ACEOF
4619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
4624
4625/* Override any GCC internal prototype to avoid an error.
4626 Use char because int might match the return type of a GCC
4627 builtin and then its argument prototype would still apply. */
4628#ifdef __cplusplus
4629extern "C"
4630#endif
4631char xmalloc ();
4632int
4633main ()
4634{
4635return xmalloc ();
4636 ;
4637 return 0;
4638}
4639_ACEOF
4640rm -f conftest.$ac_objext conftest$ac_exeext
4641if { (ac_try="$ac_link"
4642case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
4646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647$as_echo "$ac_try_echo") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest$ac_exeext && {
4658 test "$cross_compiling" = yes ||
4659 $as_test_x conftest$ac_exeext
4660 }; then
4661 ac_cv_lib_iberty_xmalloc=yes
4662else
4663 $as_echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_cv_lib_iberty_xmalloc=no
4667fi
4668
4669rm -rf conftest.dSYM
4670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671 conftest$ac_exeext conftest.$ac_ext
4672LIBS=$ac_check_lib_save_LIBS
4673fi
4674{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_xmalloc" >&5
4675$as_echo "$ac_cv_lib_iberty_xmalloc" >&6; }
4676if test $ac_cv_lib_iberty_xmalloc = yes; then
4677 cat >>confdefs.h <<_ACEOF
4678#define HAVE_LIBIBERTY 1
4679_ACEOF
4680
4681 LIBS="-liberty $LIBS"
4682
4683fi
4684
4685
4686{ $as_echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
4687$as_echo_n "checking for bfd_init in -lbfd... " >&6; }
4688if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4690else
4691 ac_check_lib_save_LIBS=$LIBS
4692LIBS="-lbfd $LIBS"
4693cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699
4700/* Override any GCC internal prototype to avoid an error.
4701 Use char because int might match the return type of a GCC
4702 builtin and then its argument prototype would still apply. */
4703#ifdef __cplusplus
4704extern "C"
4705#endif
4706char bfd_init ();
4707int
4708main ()
4709{
4710return bfd_init ();
4711 ;
4712 return 0;
4713}
4714_ACEOF
4715rm -f conftest.$ac_objext conftest$ac_exeext
4716if { (ac_try="$ac_link"
4717case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720esac
4721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722$as_echo "$ac_try_echo") >&5
4723 (eval "$ac_link") 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && {
4730 test -z "$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4732 } && test -s conftest$ac_exeext && {
4733 test "$cross_compiling" = yes ||
4734 $as_test_x conftest$ac_exeext
4735 }; then
4736 ac_cv_lib_bfd_bfd_init=yes
4737else
4738 $as_echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 ac_cv_lib_bfd_bfd_init=no
4742fi
4743
4744rm -rf conftest.dSYM
4745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4746 conftest$ac_exeext conftest.$ac_ext
4747LIBS=$ac_check_lib_save_LIBS
4748fi
4749{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
4750$as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
4751if test $ac_cv_lib_bfd_bfd_init = yes; then
4752 cat >>confdefs.h <<_ACEOF
4753#define HAVE_LIBBFD 1
4754_ACEOF
4755
4756 LIBS="-lbfd $LIBS"
4757
4758else
4759 ac_found_bfd=no
4760fi
4761
4762
4763{ $as_echo "$as_me:$LINENO: checking for usb_get_string_simple in -lusb" >&5
4764$as_echo_n "checking for usb_get_string_simple in -lusb... " >&6; }
4765if test "${ac_cv_lib_usb_usb_get_string_simple+set}" = set; then
4766 $as_echo_n "(cached) " >&6
4767else
4768 ac_check_lib_save_LIBS=$LIBS
4769LIBS="-lusb $LIBS"
4770cat >conftest.$ac_ext <<_ACEOF
4771/* confdefs.h. */
4772_ACEOF
4773cat confdefs.h >>conftest.$ac_ext
4774cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h. */
4776
4777/* Override any GCC internal prototype to avoid an error.
4778 Use char because int might match the return type of a GCC
4779 builtin and then its argument prototype would still apply. */
4780#ifdef __cplusplus
4781extern "C"
4782#endif
4783char usb_get_string_simple ();
4784int
4785main ()
4786{
4787return usb_get_string_simple ();
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext conftest$ac_exeext
4793if { (ac_try="$ac_link"
4794case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797esac
4798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799$as_echo "$ac_try_echo") >&5
4800 (eval "$ac_link") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && {
4807 test -z "$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 } && test -s conftest$ac_exeext && {
4810 test "$cross_compiling" = yes ||
4811 $as_test_x conftest$ac_exeext
4812 }; then
4813 ac_cv_lib_usb_usb_get_string_simple=yes
4814else
4815 $as_echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818 ac_cv_lib_usb_usb_get_string_simple=no
4819fi
4820
4821rm -rf conftest.dSYM
4822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4823 conftest$ac_exeext conftest.$ac_ext
4824LIBS=$ac_check_lib_save_LIBS
4825fi
4826{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_get_string_simple" >&5
4827$as_echo "$ac_cv_lib_usb_usb_get_string_simple" >&6; }
4828if test $ac_cv_lib_usb_usb_get_string_simple = yes; then
4829 cat >>confdefs.h <<_ACEOF
4830#define HAVE_LIBUSB 1
4831_ACEOF
4832
4833 LIBS="-lusb $LIBS"
4834
4835fi
4836
4837
4838if test "x$ac_found_bfd" = "xno"; then
4839 { { $as_echo "$as_me:$LINENO: error: You need to install libbfd.a from binutils." >&5
4840$as_echo "$as_me: error: You need to install libbfd.a from binutils." >&2;}
4841 { (exit 1); exit 1; }; }
4842fi
4843
4844# Checks for header files.
4845ac_ext=c
4846ac_cpp='$CPP $CPPFLAGS'
4847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4851$as_echo_n "checking how to run the C preprocessor... " >&6; }
4852# On Suns, sometimes $CPP names a directory.
4853if test -n "$CPP" && test -d "$CPP"; then
4854 CPP=
4855fi
4856if test -z "$CPP"; then
4857 if test "${ac_cv_prog_CPP+set}" = set; then
4858 $as_echo_n "(cached) " >&6
4859else
4860 # Double quotes because CPP needs to be expanded
4861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862 do
4863 ac_preproc_ok=false
4864for ac_c_preproc_warn_flag in '' yes
4865do
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h. */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h. */
4878#ifdef __STDC__
4879# include <limits.h>
4880#else
4881# include <assert.h>
4882#endif
4883 Syntax error
4884_ACEOF
4885if { (ac_try="$ac_cpp conftest.$ac_ext"
4886case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889esac
4890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4891$as_echo "$ac_try_echo") >&5
4892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev/null && {
4899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 }; then
4902 :
4903else
4904 $as_echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 # Broken: fails on valid input.
4908continue
4909fi
4910
4911rm -f conftest.err conftest.$ac_ext
4912
4913 # OK, works on sane cases. Now check whether nonexistent headers
4914 # can be detected and how.
4915 cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h. */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h. */
4921#include <ac_nonexistent.h>
4922_ACEOF
4923if { (ac_try="$ac_cpp conftest.$ac_ext"
4924case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927esac
4928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4929$as_echo "$ac_try_echo") >&5
4930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null && {
4937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 }; then
4940 # Broken: success on invalid input.
4941continue
4942else
4943 $as_echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 # Passes both tests.
4947ac_preproc_ok=:
4948break
4949fi
4950
4951rm -f conftest.err conftest.$ac_ext
4952
4953done
4954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955rm -f conftest.err conftest.$ac_ext
4956if $ac_preproc_ok; then
4957 break
4958fi
4959
4960 done
4961 ac_cv_prog_CPP=$CPP
4962
4963fi
4964 CPP=$ac_cv_prog_CPP
4965else
4966 ac_cv_prog_CPP=$CPP
4967fi
4968{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4969$as_echo "$CPP" >&6; }
4970ac_preproc_ok=false
4971for ac_c_preproc_warn_flag in '' yes
4972do
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#ifdef __STDC__
4986# include <limits.h>
4987#else
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches