Fix navigation in twoPagesSpread mode
[qcomicbook-oblomov] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for QComicBook 0.3.4.
4 #
5 # Report bugs to <pawel.stolowski@wp.pl>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='QComicBook'
561 PACKAGE_TARNAME='qcomicbook'
562 PACKAGE_VERSION='0.3.4'
563 PACKAGE_STRING='QComicBook 0.3.4'
564 PACKAGE_BUGREPORT='pawel.stolowski@wp.pl'
565
566 ac_default_prefix=/usr/local
567 ac_subst_vars='SHELL
568 PATH_SEPARATOR
569 PACKAGE_NAME
570 PACKAGE_TARNAME
571 PACKAGE_VERSION
572 PACKAGE_STRING
573 PACKAGE_BUGREPORT
574 exec_prefix
575 prefix
576 program_transform_name
577 bindir
578 sbindir
579 libexecdir
580 datarootdir
581 datadir
582 sysconfdir
583 sharedstatedir
584 localstatedir
585 includedir
586 oldincludedir
587 docdir
588 infodir
589 htmldir
590 dvidir
591 pdfdir
592 psdir
593 libdir
594 localedir
595 mandir
596 DEFS
597 ECHO_C
598 ECHO_N
599 ECHO_T
600 LIBS
601 build_alias
602 host_alias
603 target_alias
604 INSTALL_PROGRAM
605 INSTALL_SCRIPT
606 INSTALL_DATA
607 CYGPATH_W
608 PACKAGE
609 VERSION
610 ACLOCAL
611 AUTOCONF
612 AUTOMAKE
613 AUTOHEADER
614 MAKEINFO
615 install_sh
616 STRIP
617 INSTALL_STRIP_PROGRAM
618 mkdir_p
619 AWK
620 SET_MAKE
621 am__leading_dot
622 AMTAR
623 am__tar
624 am__untar
625 CXX
626 CXXFLAGS
627 LDFLAGS
628 CPPFLAGS
629 ac_ct_CXX
630 EXEEXT
631 OBJEXT
632 DEPDIR
633 am__include
634 am__quote
635 AMDEP_TRUE
636 AMDEP_FALSE
637 AMDEPBACKSLASH
638 CXXDEPMODE
639 am__fastdepCXX_TRUE
640 am__fastdepCXX_FALSE
641 CC
642 CFLAGS
643 ac_ct_CC
644 CCDEPMODE
645 am__fastdepCC_TRUE
646 am__fastdepCC_FALSE
647 XMKMF
648 CPP
649 X_CFLAGS
650 X_PRE_LIBS
651 X_LIBS
652 X_EXTRA_LIBS
653 QT_CXXFLAGS
654 QT_DIR
655 QT_LIBS
656 QT_UIC
657 QT_MOC
658 PKG_CONFIG
659 Imlib2_CFLAGS
660 Imlib2_LIBS
661 LIBOBJS
662 LTLIBOBJS'
663 ac_subst_files=''
664       ac_precious_vars='build_alias
665 host_alias
666 target_alias
667 CXX
668 CXXFLAGS
669 LDFLAGS
670 CPPFLAGS
671 CCC
672 CC
673 CFLAGS
674 XMKMF
675 CPP
676 PKG_CONFIG
677 Imlib2_CFLAGS
678 Imlib2_LIBS'
679
680
681 # Initialize some variables set by options.
682 ac_init_help=
683 ac_init_version=false
684 # The variables have the same names as the options, with
685 # dashes changed to underlines.
686 cache_file=/dev/null
687 exec_prefix=NONE
688 no_create=
689 no_recursion=
690 prefix=NONE
691 program_prefix=NONE
692 program_suffix=NONE
693 program_transform_name=s,x,x,
694 silent=
695 site=
696 srcdir=
697 verbose=
698 x_includes=NONE
699 x_libraries=NONE
700
701 # Installation directory options.
702 # These are left unexpanded so users can "make install exec_prefix=/foo"
703 # and all the variables that are supposed to be based on exec_prefix
704 # by default will actually change.
705 # Use braces instead of parens because sh, perl, etc. also accept them.
706 # (The list follows the same order as the GNU Coding Standards.)
707 bindir='${exec_prefix}/bin'
708 sbindir='${exec_prefix}/sbin'
709 libexecdir='${exec_prefix}/libexec'
710 datarootdir='${prefix}/share'
711 datadir='${datarootdir}'
712 sysconfdir='${prefix}/etc'
713 sharedstatedir='${prefix}/com'
714 localstatedir='${prefix}/var'
715 includedir='${prefix}/include'
716 oldincludedir='/usr/include'
717 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
718 infodir='${datarootdir}/info'
719 htmldir='${docdir}'
720 dvidir='${docdir}'
721 pdfdir='${docdir}'
722 psdir='${docdir}'
723 libdir='${exec_prefix}/lib'
724 localedir='${datarootdir}/locale'
725 mandir='${datarootdir}/man'
726
727 ac_prev=
728 ac_dashdash=
729 for ac_option
730 do
731   # If the previous option needs an argument, assign it.
732   if test -n "$ac_prev"; then
733     eval $ac_prev=\$ac_option
734     ac_prev=
735     continue
736   fi
737
738   case $ac_option in
739   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
740   *)    ac_optarg=yes ;;
741   esac
742
743   # Accept the important Cygnus configure options, so we can diagnose typos.
744
745   case $ac_dashdash$ac_option in
746   --)
747     ac_dashdash=yes ;;
748
749   -bindir | --bindir | --bindi | --bind | --bin | --bi)
750     ac_prev=bindir ;;
751   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
752     bindir=$ac_optarg ;;
753
754   -build | --build | --buil | --bui | --bu)
755     ac_prev=build_alias ;;
756   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
757     build_alias=$ac_optarg ;;
758
759   -cache-file | --cache-file | --cache-fil | --cache-fi \
760   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
761     ac_prev=cache_file ;;
762   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
763   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
764     cache_file=$ac_optarg ;;
765
766   --config-cache | -C)
767     cache_file=config.cache ;;
768
769   -datadir | --datadir | --datadi | --datad)
770     ac_prev=datadir ;;
771   -datadir=* | --datadir=* | --datadi=* | --datad=*)
772     datadir=$ac_optarg ;;
773
774   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
775   | --dataroo | --dataro | --datar)
776     ac_prev=datarootdir ;;
777   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
778   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
779     datarootdir=$ac_optarg ;;
780
781   -disable-* | --disable-*)
782     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
786    { (exit 1); exit 1; }; }
787     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
788     eval enable_$ac_feature=no ;;
789
790   -docdir | --docdir | --docdi | --doc | --do)
791     ac_prev=docdir ;;
792   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
793     docdir=$ac_optarg ;;
794
795   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
796     ac_prev=dvidir ;;
797   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
798     dvidir=$ac_optarg ;;
799
800   -enable-* | --enable-*)
801     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
802     # Reject names that are not valid shell variable names.
803     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
804       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805    { (exit 1); exit 1; }; }
806     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
807     eval enable_$ac_feature=\$ac_optarg ;;
808
809   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
810   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
811   | --exec | --exe | --ex)
812     ac_prev=exec_prefix ;;
813   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
814   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
815   | --exec=* | --exe=* | --ex=*)
816     exec_prefix=$ac_optarg ;;
817
818   -gas | --gas | --ga | --g)
819     # Obsolete; use --with-gas.
820     with_gas=yes ;;
821
822   -help | --help | --hel | --he | -h)
823     ac_init_help=long ;;
824   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
825     ac_init_help=recursive ;;
826   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
827     ac_init_help=short ;;
828
829   -host | --host | --hos | --ho)
830     ac_prev=host_alias ;;
831   -host=* | --host=* | --hos=* | --ho=*)
832     host_alias=$ac_optarg ;;
833
834   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
835     ac_prev=htmldir ;;
836   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
837   | --ht=*)
838     htmldir=$ac_optarg ;;
839
840   -includedir | --includedir | --includedi | --included | --include \
841   | --includ | --inclu | --incl | --inc)
842     ac_prev=includedir ;;
843   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
844   | --includ=* | --inclu=* | --incl=* | --inc=*)
845     includedir=$ac_optarg ;;
846
847   -infodir | --infodir | --infodi | --infod | --info | --inf)
848     ac_prev=infodir ;;
849   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
850     infodir=$ac_optarg ;;
851
852   -libdir | --libdir | --libdi | --libd)
853     ac_prev=libdir ;;
854   -libdir=* | --libdir=* | --libdi=* | --libd=*)
855     libdir=$ac_optarg ;;
856
857   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
858   | --libexe | --libex | --libe)
859     ac_prev=libexecdir ;;
860   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
861   | --libexe=* | --libex=* | --libe=*)
862     libexecdir=$ac_optarg ;;
863
864   -localedir | --localedir | --localedi | --localed | --locale)
865     ac_prev=localedir ;;
866   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
867     localedir=$ac_optarg ;;
868
869   -localstatedir | --localstatedir | --localstatedi | --localstated \
870   | --localstate | --localstat | --localsta | --localst | --locals)
871     ac_prev=localstatedir ;;
872   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
873   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
874     localstatedir=$ac_optarg ;;
875
876   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
877     ac_prev=mandir ;;
878   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
879     mandir=$ac_optarg ;;
880
881   -nfp | --nfp | --nf)
882     # Obsolete; use --without-fp.
883     with_fp=no ;;
884
885   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886   | --no-cr | --no-c | -n)
887     no_create=yes ;;
888
889   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
890   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
891     no_recursion=yes ;;
892
893   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
894   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
895   | --oldin | --oldi | --old | --ol | --o)
896     ac_prev=oldincludedir ;;
897   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
898   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
899   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
900     oldincludedir=$ac_optarg ;;
901
902   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
903     ac_prev=prefix ;;
904   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
905     prefix=$ac_optarg ;;
906
907   -program-prefix | --program-prefix | --program-prefi | --program-pref \
908   | --program-pre | --program-pr | --program-p)
909     ac_prev=program_prefix ;;
910   -program-prefix=* | --program-prefix=* | --program-prefi=* \
911   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
912     program_prefix=$ac_optarg ;;
913
914   -program-suffix | --program-suffix | --program-suffi | --program-suff \
915   | --program-suf | --program-su | --program-s)
916     ac_prev=program_suffix ;;
917   -program-suffix=* | --program-suffix=* | --program-suffi=* \
918   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
919     program_suffix=$ac_optarg ;;
920
921   -program-transform-name | --program-transform-name \
922   | --program-transform-nam | --program-transform-na \
923   | --program-transform-n | --program-transform- \
924   | --program-transform | --program-transfor \
925   | --program-transfo | --program-transf \
926   | --program-trans | --program-tran \
927   | --progr-tra | --program-tr | --program-t)
928     ac_prev=program_transform_name ;;
929   -program-transform-name=* | --program-transform-name=* \
930   | --program-transform-nam=* | --program-transform-na=* \
931   | --program-transform-n=* | --program-transform-=* \
932   | --program-transform=* | --program-transfor=* \
933   | --program-transfo=* | --program-transf=* \
934   | --program-trans=* | --program-tran=* \
935   | --progr-tra=* | --program-tr=* | --program-t=*)
936     program_transform_name=$ac_optarg ;;
937
938   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
939     ac_prev=pdfdir ;;
940   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
941     pdfdir=$ac_optarg ;;
942
943   -psdir | --psdir | --psdi | --psd | --ps)
944     ac_prev=psdir ;;
945   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
946     psdir=$ac_optarg ;;
947
948   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
949   | -silent | --silent | --silen | --sile | --sil)
950     silent=yes ;;
951
952   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
953     ac_prev=sbindir ;;
954   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
955   | --sbi=* | --sb=*)
956     sbindir=$ac_optarg ;;
957
958   -sharedstatedir | --sharedstatedir | --sharedstatedi \
959   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
960   | --sharedst | --shareds | --shared | --share | --shar \
961   | --sha | --sh)
962     ac_prev=sharedstatedir ;;
963   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
964   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
965   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
966   | --sha=* | --sh=*)
967     sharedstatedir=$ac_optarg ;;
968
969   -site | --site | --sit)
970     ac_prev=site ;;
971   -site=* | --site=* | --sit=*)
972     site=$ac_optarg ;;
973
974   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
975     ac_prev=srcdir ;;
976   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
977     srcdir=$ac_optarg ;;
978
979   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
980   | --syscon | --sysco | --sysc | --sys | --sy)
981     ac_prev=sysconfdir ;;
982   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
983   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
984     sysconfdir=$ac_optarg ;;
985
986   -target | --target | --targe | --targ | --tar | --ta | --t)
987     ac_prev=target_alias ;;
988   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
989     target_alias=$ac_optarg ;;
990
991   -v | -verbose | --verbose | --verbos | --verbo | --verb)
992     verbose=yes ;;
993
994   -version | --version | --versio | --versi | --vers | -V)
995     ac_init_version=: ;;
996
997   -with-* | --with-*)
998     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid package name: $ac_package" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_package=`echo $ac_package| sed 's/-/_/g'`
1004     eval with_$ac_package=\$ac_optarg ;;
1005
1006   -without-* | --without-*)
1007     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1010       { echo "$as_me: error: invalid package name: $ac_package" >&2
1011    { (exit 1); exit 1; }; }
1012     ac_package=`echo $ac_package | sed 's/-/_/g'`
1013     eval with_$ac_package=no ;;
1014
1015   --x)
1016     # Obsolete; use --with-x.
1017     with_x=yes ;;
1018
1019   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1020   | --x-incl | --x-inc | --x-in | --x-i)
1021     ac_prev=x_includes ;;
1022   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1023   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1024     x_includes=$ac_optarg ;;
1025
1026   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1027   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1028     ac_prev=x_libraries ;;
1029   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1030   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1031     x_libraries=$ac_optarg ;;
1032
1033   -*) { echo "$as_me: error: unrecognized option: $ac_option
1034 Try \`$0 --help' for more information." >&2
1035    { (exit 1); exit 1; }; }
1036     ;;
1037
1038   *=*)
1039     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1042       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1043    { (exit 1); exit 1; }; }
1044     eval $ac_envvar=\$ac_optarg
1045     export $ac_envvar ;;
1046
1047   *)
1048     # FIXME: should be removed in autoconf 3.0.
1049     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1050     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1052     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1053     ;;
1054
1055   esac
1056 done
1057
1058 if test -n "$ac_prev"; then
1059   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1060   { echo "$as_me: error: missing argument to $ac_option" >&2
1061    { (exit 1); exit 1; }; }
1062 fi
1063
1064 # Be sure to have absolute directory names.
1065 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1066                 datadir sysconfdir sharedstatedir localstatedir includedir \
1067                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1068                 libdir localedir mandir
1069 do
1070   eval ac_val=\$$ac_var
1071   case $ac_val in
1072     [\\/$]* | ?:[\\/]* )  continue;;
1073     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1074   esac
1075   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1076    { (exit 1); exit 1; }; }
1077 done
1078
1079 # There might be people who depend on the old broken behavior: `$host'
1080 # used to hold the argument of --host etc.
1081 # FIXME: To remove some day.
1082 build=$build_alias
1083 host=$host_alias
1084 target=$target_alias
1085
1086 # FIXME: To remove some day.
1087 if test "x$host_alias" != x; then
1088   if test "x$build_alias" = x; then
1089     cross_compiling=maybe
1090     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1091     If a cross compiler is detected then cross compile mode will be used." >&2
1092   elif test "x$build_alias" != "x$host_alias"; then
1093     cross_compiling=yes
1094   fi
1095 fi
1096
1097 ac_tool_prefix=
1098 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1099
1100 test "$silent" = yes && exec 6>/dev/null
1101
1102
1103 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1104 ac_ls_di=`ls -di .` &&
1105 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1106   { echo "$as_me: error: Working directory cannot be determined" >&2
1107    { (exit 1); exit 1; }; }
1108 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1109   { echo "$as_me: error: pwd does not report name of working directory" >&2
1110    { (exit 1); exit 1; }; }
1111
1112
1113 # Find the source files, if location was not specified.
1114 if test -z "$srcdir"; then
1115   ac_srcdir_defaulted=yes
1116   # Try the directory containing this script, then the parent directory.
1117   ac_confdir=`$as_dirname -- "$0" ||
1118 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1119          X"$0" : 'X\(//\)[^/]' \| \
1120          X"$0" : 'X\(//\)$' \| \
1121          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1122 echo X"$0" |
1123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1124             s//\1/
1125             q
1126           }
1127           /^X\(\/\/\)[^/].*/{
1128             s//\1/
1129             q
1130           }
1131           /^X\(\/\/\)$/{
1132             s//\1/
1133             q
1134           }
1135           /^X\(\/\).*/{
1136             s//\1/
1137             q
1138           }
1139           s/.*/./; q'`
1140   srcdir=$ac_confdir
1141   if test ! -r "$srcdir/$ac_unique_file"; then
1142     srcdir=..
1143   fi
1144 else
1145   ac_srcdir_defaulted=no
1146 fi
1147 if test ! -r "$srcdir/$ac_unique_file"; then
1148   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1149   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1150    { (exit 1); exit 1; }; }
1151 fi
1152 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1153 ac_abs_confdir=`(
1154         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1155    { (exit 1); exit 1; }; }
1156         pwd)`
1157 # When building in place, set srcdir=.
1158 if test "$ac_abs_confdir" = "$ac_pwd"; then
1159   srcdir=.
1160 fi
1161 # Remove unnecessary trailing slashes from srcdir.
1162 # Double slashes in file names in object file debugging info
1163 # mess up M-x gdb in Emacs.
1164 case $srcdir in
1165 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1166 esac
1167 for ac_var in $ac_precious_vars; do
1168   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1169   eval ac_env_${ac_var}_value=\$${ac_var}
1170   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1171   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1172 done
1173
1174 #
1175 # Report the --help message.
1176 #
1177 if test "$ac_init_help" = "long"; then
1178   # Omit some internal or obsolete options to make the list less imposing.
1179   # This message is too long to be a string in the A/UX 3.1 sh.
1180   cat <<_ACEOF
1181 \`configure' configures QComicBook 0.3.4 to adapt to many kinds of systems.
1182
1183 Usage: $0 [OPTION]... [VAR=VALUE]...
1184
1185 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1186 VAR=VALUE.  See below for descriptions of some of the useful variables.
1187
1188 Defaults for the options are specified in brackets.
1189
1190 Configuration:
1191   -h, --help              display this help and exit
1192       --help=short        display options specific to this package
1193       --help=recursive    display the short help of all the included packages
1194   -V, --version           display version information and exit
1195   -q, --quiet, --silent   do not print \`checking...' messages
1196       --cache-file=FILE   cache test results in FILE [disabled]
1197   -C, --config-cache      alias for \`--cache-file=config.cache'
1198   -n, --no-create         do not create output files
1199       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1200
1201 Installation directories:
1202   --prefix=PREFIX         install architecture-independent files in PREFIX
1203                           [$ac_default_prefix]
1204   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1205                           [PREFIX]
1206
1207 By default, \`make install' will install all the files in
1208 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1209 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1210 for instance \`--prefix=\$HOME'.
1211
1212 For better control, use the options below.
1213
1214 Fine tuning of the installation directories:
1215   --bindir=DIR           user executables [EPREFIX/bin]
1216   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1217   --libexecdir=DIR       program executables [EPREFIX/libexec]
1218   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1219   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1220   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1221   --libdir=DIR           object code libraries [EPREFIX/lib]
1222   --includedir=DIR       C header files [PREFIX/include]
1223   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1224   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1225   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1226   --infodir=DIR          info documentation [DATAROOTDIR/info]
1227   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1228   --mandir=DIR           man documentation [DATAROOTDIR/man]
1229   --docdir=DIR           documentation root [DATAROOTDIR/doc/qcomicbook]
1230   --htmldir=DIR          html documentation [DOCDIR]
1231   --dvidir=DIR           dvi documentation [DOCDIR]
1232   --pdfdir=DIR           pdf documentation [DOCDIR]
1233   --psdir=DIR            ps documentation [DOCDIR]
1234 _ACEOF
1235
1236   cat <<\_ACEOF
1237
1238 Program names:
1239   --program-prefix=PREFIX            prepend PREFIX to installed program names
1240   --program-suffix=SUFFIX            append SUFFIX to installed program names
1241   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1242
1243 X features:
1244   --x-includes=DIR    X include files are in DIR
1245   --x-libraries=DIR   X library files are in DIR
1246 _ACEOF
1247 fi
1248
1249 if test -n "$ac_init_help"; then
1250   case $ac_init_help in
1251      short | recursive ) echo "Configuration of QComicBook 0.3.4:";;
1252    esac
1253   cat <<\_ACEOF
1254
1255 Optional Features:
1256   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1257   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1258   --disable-dependency-tracking  speeds up one-time build
1259   --enable-dependency-tracking   do not reject slow dependency extractors
1260
1261 Optional Packages:
1262   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1263   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1264   --with-x                use the X Window System
1265   --with-Qt-dir=DIR       DIR is equal to $QTDIR if you have followed the
1266                           installation instructions of Trolltech. Header
1267                           files are in DIR/include, binary utilities are
1268                           in DIR/bin. The library is in DIR/lib, unless
1269                           --with-Qt-lib-dir is also set.
1270   --with-Qt-include-dir=DIR
1271                           Qt header files are in DIR
1272   --with-Qt-bin-dir=DIR   Qt utilities such as moc and uic are in DIR
1273   --with-Qt-lib-dir=DIR   The Qt library is in DIR
1274   --with-Qt-lib=LIB       Use -lLIB to link with the Qt library
1275
1276 Some influential environment variables:
1277   CXX         C++ compiler command
1278   CXXFLAGS    C++ compiler flags
1279   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1280               nonstandard directory <lib dir>
1281   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1282               you have headers in a nonstandard directory <include dir>
1283   CC          C compiler command
1284   CFLAGS      C compiler flags
1285   XMKMF       Path to xmkmf, Makefile generator for X Window System
1286   CPP         C preprocessor
1287   PKG_CONFIG  path to pkg-config utility
1288   Imlib2_CFLAGS
1289               C compiler flags for Imlib2, overriding pkg-config
1290   Imlib2_LIBS linker flags for Imlib2, overriding pkg-config
1291
1292 Use these variables to override the choices made by `configure' or to help
1293 it to find libraries and programs with nonstandard names/locations.
1294
1295 Report bugs to <pawel.stolowski@wp.pl>.
1296 _ACEOF
1297 ac_status=$?
1298 fi
1299
1300 if test "$ac_init_help" = "recursive"; then
1301   # If there are subdirs, report their specific --help.
1302   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1303     test -d "$ac_dir" || continue
1304     ac_builddir=.
1305
1306 case "$ac_dir" in
1307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1308 *)
1309   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1310   # A ".." for each directory in $ac_dir_suffix.
1311   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1312   case $ac_top_builddir_sub in
1313   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1314   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1315   esac ;;
1316 esac
1317 ac_abs_top_builddir=$ac_pwd
1318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1319 # for backward compatibility:
1320 ac_top_builddir=$ac_top_build_prefix
1321
1322 case $srcdir in
1323   .)  # We are building in place.
1324     ac_srcdir=.
1325     ac_top_srcdir=$ac_top_builddir_sub
1326     ac_abs_top_srcdir=$ac_pwd ;;
1327   [\\/]* | ?:[\\/]* )  # Absolute name.
1328     ac_srcdir=$srcdir$ac_dir_suffix;
1329     ac_top_srcdir=$srcdir
1330     ac_abs_top_srcdir=$srcdir ;;
1331   *) # Relative name.
1332     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1333     ac_top_srcdir=$ac_top_build_prefix$srcdir
1334     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1335 esac
1336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1337
1338     cd "$ac_dir" || { ac_status=$?; continue; }
1339     # Check for guested configure.
1340     if test -f "$ac_srcdir/configure.gnu"; then
1341       echo &&
1342       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1343     elif test -f "$ac_srcdir/configure"; then
1344       echo &&
1345       $SHELL "$ac_srcdir/configure" --help=recursive
1346     else
1347       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1348     fi || ac_status=$?
1349     cd "$ac_pwd" || { ac_status=$?; break; }
1350   done
1351 fi
1352
1353 test -n "$ac_init_help" && exit $ac_status
1354 if $ac_init_version; then
1355   cat <<\_ACEOF
1356 QComicBook configure 0.3.4
1357 generated by GNU Autoconf 2.60
1358
1359 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1360 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1361 This configure script is free software; the Free Software Foundation
1362 gives unlimited permission to copy, distribute and modify it.
1363 _ACEOF
1364   exit
1365 fi
1366 cat >config.log <<_ACEOF
1367 This file contains any messages produced by compilers while
1368 running configure, to aid debugging if configure makes a mistake.
1369
1370 It was created by QComicBook $as_me 0.3.4, which was
1371 generated by GNU Autoconf 2.60.  Invocation command line was
1372
1373   $ $0 $@
1374
1375 _ACEOF
1376 exec 5>>config.log
1377 {
1378 cat <<_ASUNAME
1379 ## --------- ##
1380 ## Platform. ##
1381 ## --------- ##
1382
1383 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1384 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1385 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1386 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1387 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1388
1389 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1390 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1391
1392 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1393 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1394 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1395 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1396 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1397 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1398 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1399
1400 _ASUNAME
1401
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403 for as_dir in $PATH
1404 do
1405   IFS=$as_save_IFS
1406   test -z "$as_dir" && as_dir=.
1407   echo "PATH: $as_dir"
1408 done
1409 IFS=$as_save_IFS
1410
1411 } >&5
1412
1413 cat >&5 <<_ACEOF
1414
1415
1416 ## ----------- ##
1417 ## Core tests. ##
1418 ## ----------- ##
1419
1420 _ACEOF
1421
1422
1423 # Keep a trace of the command line.
1424 # Strip out --no-create and --no-recursion so they do not pile up.
1425 # Strip out --silent because we don't want to record it for future runs.
1426 # Also quote any args containing shell meta-characters.
1427 # Make two passes to allow for proper duplicate-argument suppression.
1428 ac_configure_args=
1429 ac_configure_args0=
1430 ac_configure_args1=
1431 ac_must_keep_next=false
1432 for ac_pass in 1 2
1433 do
1434   for ac_arg
1435   do
1436     case $ac_arg in
1437     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1438     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1439     | -silent | --silent | --silen | --sile | --sil)
1440       continue ;;
1441     *\'*)
1442       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1443     esac
1444     case $ac_pass in
1445     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1446     2)
1447       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1448       if test $ac_must_keep_next = true; then
1449         ac_must_keep_next=false # Got value, back to normal.
1450       else
1451         case $ac_arg in
1452           *=* | --config-cache | -C | -disable-* | --disable-* \
1453           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1454           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1455           | -with-* | --with-* | -without-* | --without-* | --x)
1456             case "$ac_configure_args0 " in
1457               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1458             esac
1459             ;;
1460           -* ) ac_must_keep_next=true ;;
1461         esac
1462       fi
1463       ac_configure_args="$ac_configure_args '$ac_arg'"
1464       ;;
1465     esac
1466   done
1467 done
1468 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1469 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1470
1471 # When interrupted or exit'd, cleanup temporary files, and complete
1472 # config.log.  We remove comments because anyway the quotes in there
1473 # would cause problems or look ugly.
1474 # WARNING: Use '\'' to represent an apostrophe within the trap.
1475 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1476 trap 'exit_status=$?
1477   # Save into config.log some information that might help in debugging.
1478   {
1479     echo
1480
1481     cat <<\_ASBOX
1482 ## ---------------- ##
1483 ## Cache variables. ##
1484 ## ---------------- ##
1485 _ASBOX
1486     echo
1487     # The following way of writing the cache mishandles newlines in values,
1488 (
1489   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1490     eval ac_val=\$$ac_var
1491     case $ac_val in #(
1492     *${as_nl}*)
1493       case $ac_var in #(
1494       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1495 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1496       esac
1497       case $ac_var in #(
1498       _ | IFS | as_nl) ;; #(
1499       *) $as_unset $ac_var ;;
1500       esac ;;
1501     esac
1502   done
1503   (set) 2>&1 |
1504     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1505     *${as_nl}ac_space=\ *)
1506       sed -n \
1507         "s/'\''/'\''\\\\'\'''\''/g;
1508           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1509       ;; #(
1510     *)
1511       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1512       ;;
1513     esac |
1514     sort
1515 )
1516     echo
1517
1518     cat <<\_ASBOX
1519 ## ----------------- ##
1520 ## Output variables. ##
1521 ## ----------------- ##
1522 _ASBOX
1523     echo
1524     for ac_var in $ac_subst_vars
1525     do
1526       eval ac_val=\$$ac_var
1527       case $ac_val in
1528       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1529       esac
1530       echo "$ac_var='\''$ac_val'\''"
1531     done | sort
1532     echo
1533
1534     if test -n "$ac_subst_files"; then
1535       cat <<\_ASBOX
1536 ## ------------------- ##
1537 ## File substitutions. ##
1538 ## ------------------- ##
1539 _ASBOX
1540       echo
1541       for ac_var in $ac_subst_files
1542       do
1543         eval ac_val=\$$ac_var
1544         case $ac_val in
1545         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1546         esac
1547         echo "$ac_var='\''$ac_val'\''"
1548       done | sort
1549       echo
1550     fi
1551
1552     if test -s confdefs.h; then
1553       cat <<\_ASBOX
1554 ## ----------- ##
1555 ## confdefs.h. ##
1556 ## ----------- ##
1557 _ASBOX
1558       echo
1559       cat confdefs.h
1560       echo
1561     fi
1562     test "$ac_signal" != 0 &&
1563       echo "$as_me: caught signal $ac_signal"
1564     echo "$as_me: exit $exit_status"
1565   } >&5
1566   rm -f core *.core core.conftest.* &&
1567     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1568     exit $exit_status
1569 ' 0
1570 for ac_signal in 1 2 13 15; do
1571   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1572 done
1573 ac_signal=0
1574
1575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1576 rm -f -r conftest* confdefs.h
1577
1578 # Predefined preprocessor variables.
1579
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE_NAME "$PACKAGE_NAME"
1582 _ACEOF
1583
1584
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1587 _ACEOF
1588
1589
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1592 _ACEOF
1593
1594
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_STRING "$PACKAGE_STRING"
1597 _ACEOF
1598
1599
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1602 _ACEOF
1603
1604
1605 # Let the site file select an alternate cache file if it wants to.
1606 # Prefer explicitly selected file to automatically selected ones.
1607 if test -n "$CONFIG_SITE"; then
1608   set x "$CONFIG_SITE"
1609 elif test "x$prefix" != xNONE; then
1610   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1611 else
1612   set x "$ac_default_prefix/share/config.site" \
1613         "$ac_default_prefix/etc/config.site"
1614 fi
1615 shift
1616 for ac_site_file
1617 do
1618   if test -r "$ac_site_file"; then
1619     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1620 echo "$as_me: loading site script $ac_site_file" >&6;}
1621     sed 's/^/| /' "$ac_site_file" >&5
1622     . "$ac_site_file"
1623   fi
1624 done
1625
1626 if test -r "$cache_file"; then
1627   # Some versions of bash will fail to source /dev/null (special
1628   # files actually), so we avoid doing that.
1629   if test -f "$cache_file"; then
1630     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1631 echo "$as_me: loading cache $cache_file" >&6;}
1632     case $cache_file in
1633       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1634       *)                      . "./$cache_file";;
1635     esac
1636   fi
1637 else
1638   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1639 echo "$as_me: creating cache $cache_file" >&6;}
1640   >$cache_file
1641 fi
1642
1643 # Check that the precious variables saved in the cache have kept the same
1644 # value.
1645 ac_cache_corrupted=false
1646 for ac_var in $ac_precious_vars; do
1647   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1648   eval ac_new_set=\$ac_env_${ac_var}_set
1649   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1650   eval ac_new_val=\$ac_env_${ac_var}_value
1651   case $ac_old_set,$ac_new_set in
1652     set,)
1653       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1654 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1655       ac_cache_corrupted=: ;;
1656     ,set)
1657       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1659       ac_cache_corrupted=: ;;
1660     ,);;
1661     *)
1662       if test "x$ac_old_val" != "x$ac_new_val"; then
1663         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1664 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1665         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1666 echo "$as_me:   former value:  $ac_old_val" >&2;}
1667         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1668 echo "$as_me:   current value: $ac_new_val" >&2;}
1669         ac_cache_corrupted=:
1670       fi;;
1671   esac
1672   # Pass precious variables to config.status.
1673   if test "$ac_new_set" = set; then
1674     case $ac_new_val in
1675     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1676     *) ac_arg=$ac_var=$ac_new_val ;;
1677     esac
1678     case " $ac_configure_args " in
1679       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1680       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1681     esac
1682   fi
1683 done
1684 if $ac_cache_corrupted; then
1685   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1686 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1687   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1688 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1689    { (exit 1); exit 1; }; }
1690 fi
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716 ac_ext=c
1717 ac_cpp='$CPP $CPPFLAGS'
1718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1721
1722
1723 am__api_version="1.9"
1724 ac_aux_dir=
1725 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1726   if test -f "$ac_dir/install-sh"; then
1727     ac_aux_dir=$ac_dir
1728     ac_install_sh="$ac_aux_dir/install-sh -c"
1729     break
1730   elif test -f "$ac_dir/install.sh"; then
1731     ac_aux_dir=$ac_dir
1732     ac_install_sh="$ac_aux_dir/install.sh -c"
1733     break
1734   elif test -f "$ac_dir/shtool"; then
1735     ac_aux_dir=$ac_dir
1736     ac_install_sh="$ac_aux_dir/shtool install -c"
1737     break
1738   fi
1739 done
1740 if test -z "$ac_aux_dir"; then
1741   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1742 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1743    { (exit 1); exit 1; }; }
1744 fi
1745
1746 # These three variables are undocumented and unsupported,
1747 # and are intended to be withdrawn in a future Autoconf release.
1748 # They can cause serious problems if a builder's source tree is in a directory
1749 # whose full name contains unusual characters.
1750 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1751 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1752 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1753
1754
1755 # Find a good install program.  We prefer a C program (faster),
1756 # so one script is as good as another.  But avoid the broken or
1757 # incompatible versions:
1758 # SysV /etc/install, /usr/sbin/install
1759 # SunOS /usr/etc/install
1760 # IRIX /sbin/install
1761 # AIX /bin/install
1762 # AmigaOS /C/install, which installs bootblocks on floppy discs
1763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1766 # OS/2's system install, which has a completely different semantic
1767 # ./install, which can be erroneously created by make from ./install.sh.
1768 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1769 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1770 if test -z "$INSTALL"; then
1771 if test "${ac_cv_path_install+set}" = set; then
1772   echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   # Account for people who put trailing slashes in PATH elements.
1780 case $as_dir/ in
1781   ./ | .// | /cC/* | \
1782   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1783   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1784   /usr/ucb/* ) ;;
1785   *)
1786     # OSF1 and SCO ODT 3.0 have their own names for install.
1787     # Don't use installbsd from OSF since it installs stuff as root
1788     # by default.
1789     for ac_prog in ginstall scoinst install; do
1790       for ac_exec_ext in '' $ac_executable_extensions; do
1791         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1792           if test $ac_prog = install &&
1793             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1794             # AIX install.  It has an incompatible calling convention.
1795             :
1796           elif test $ac_prog = install &&
1797             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1798             # program-specific install script used by HP pwplus--don't use.
1799             :
1800           else
1801             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1802             break 3
1803           fi
1804         fi
1805       done
1806     done
1807     ;;
1808 esac
1809 done
1810 IFS=$as_save_IFS
1811
1812
1813 fi
1814   if test "${ac_cv_path_install+set}" = set; then
1815     INSTALL=$ac_cv_path_install
1816   else
1817     # As a last resort, use the slow shell script.  Don't cache a
1818     # value for INSTALL within a source directory, because that will
1819     # break other packages using the cache if that directory is
1820     # removed, or if the value is a relative name.
1821     INSTALL=$ac_install_sh
1822   fi
1823 fi
1824 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1825 echo "${ECHO_T}$INSTALL" >&6; }
1826
1827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1828 # It thinks the first close brace ends the variable substitution.
1829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1830
1831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1832
1833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1834
1835 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1836 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1837 # Just in case
1838 sleep 1
1839 echo timestamp > conftest.file
1840 # Do `set' in a subshell so we don't clobber the current shell's
1841 # arguments.  Must try -L first in case configure is actually a
1842 # symlink; some systems play weird games with the mod time of symlinks
1843 # (eg FreeBSD returns the mod time of the symlink's containing
1844 # directory).
1845 if (
1846    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1847    if test "$*" = "X"; then
1848       # -L didn't work.
1849       set X `ls -t $srcdir/configure conftest.file`
1850    fi
1851    rm -f conftest.file
1852    if test "$*" != "X $srcdir/configure conftest.file" \
1853       && test "$*" != "X conftest.file $srcdir/configure"; then
1854
1855       # If neither matched, then we have a broken ls.  This can happen
1856       # if, for instance, CONFIG_SHELL is bash and it inherits a
1857       # broken ls alias from the environment.  This has actually
1858       # happened.  Such a system could not be considered "sane".
1859       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1860 alias in your environment" >&5
1861 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1862 alias in your environment" >&2;}
1863    { (exit 1); exit 1; }; }
1864    fi
1865
1866    test "$2" = conftest.file
1867    )
1868 then
1869    # Ok.
1870    :
1871 else
1872    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1873 Check your system clock" >&5
1874 echo "$as_me: error: newly created file is older than distributed files!
1875 Check your system clock" >&2;}
1876    { (exit 1); exit 1; }; }
1877 fi
1878 { echo "$as_me:$LINENO: result: yes" >&5
1879 echo "${ECHO_T}yes" >&6; }
1880 test "$program_prefix" != NONE &&
1881   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1882 # Use a double $ so make ignores it.
1883 test "$program_suffix" != NONE &&
1884   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1885 # Double any \ or $.  echo might interpret backslashes.
1886 # By default was `s,x,x', remove it if useless.
1887 cat <<\_ACEOF >conftest.sed
1888 s/[\\$]/&&/g;s/;s,x,x,$//
1889 _ACEOF
1890 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1891 rm -f conftest.sed
1892
1893 # expand $ac_aux_dir to an absolute path
1894 am_aux_dir=`cd $ac_aux_dir && pwd`
1895
1896 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1897 # Use eval to expand $SHELL
1898 if eval "$MISSING --run true"; then
1899   am_missing_run="$MISSING --run "
1900 else
1901   am_missing_run=
1902   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1903 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1904 fi
1905
1906 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1907   # We used to keeping the `.' as first argument, in order to
1908   # allow $(mkdir_p) to be used without argument.  As in
1909   #   $(mkdir_p) $(somedir)
1910   # where $(somedir) is conditionally defined.  However this is wrong
1911   # for two reasons:
1912   #  1. if the package is installed by a user who cannot write `.'
1913   #     make install will fail,
1914   #  2. the above comment should most certainly read
1915   #     $(mkdir_p) $(DESTDIR)$(somedir)
1916   #     so it does not work when $(somedir) is undefined and
1917   #     $(DESTDIR) is not.
1918   #  To support the latter case, we have to write
1919   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1920   #  so the `.' trick is pointless.
1921   mkdir_p='mkdir -p --'
1922 else
1923   # On NextStep and OpenStep, the `mkdir' command does not
1924   # recognize any option.  It will interpret all options as
1925   # directories to create, and then abort because `.' already
1926   # exists.
1927   for d in ./-p ./--version;
1928   do
1929     test -d $d && rmdir $d
1930   done
1931   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1932   if test -f "$ac_aux_dir/mkinstalldirs"; then
1933     mkdir_p='$(mkinstalldirs)'
1934   else
1935     mkdir_p='$(install_sh) -d'
1936   fi
1937 fi
1938
1939 for ac_prog in gawk mawk nawk awk
1940 do
1941   # Extract the first word of "$ac_prog", so it can be a program name with args.
1942 set dummy $ac_prog; ac_word=$2
1943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1945 if test "${ac_cv_prog_AWK+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   if test -n "$AWK"; then
1949   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954   IFS=$as_save_IFS
1955   test -z "$as_dir" && as_dir=.
1956   for ac_exec_ext in '' $ac_executable_extensions; do
1957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1958     ac_cv_prog_AWK="$ac_prog"
1959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960     break 2
1961   fi
1962 done
1963 done
1964 IFS=$as_save_IFS
1965
1966 fi
1967 fi
1968 AWK=$ac_cv_prog_AWK
1969 if test -n "$AWK"; then
1970   { echo "$as_me:$LINENO: result: $AWK" >&5
1971 echo "${ECHO_T}$AWK" >&6; }
1972 else
1973   { echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6; }
1975 fi
1976
1977
1978   test -n "$AWK" && break
1979 done
1980
1981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1983 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   cat >conftest.make <<\_ACEOF
1988 SHELL = /bin/sh
1989 all:
1990         @echo '@@@%%%=$(MAKE)=@@@%%%'
1991 _ACEOF
1992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1994   *@@@%%%=?*=@@@%%%*)
1995     eval ac_cv_prog_make_${ac_make}_set=yes;;
1996   *)
1997     eval ac_cv_prog_make_${ac_make}_set=no;;
1998 esac
1999 rm -f conftest.make
2000 fi
2001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2002   { echo "$as_me:$LINENO: result: yes" >&5
2003 echo "${ECHO_T}yes" >&6; }
2004   SET_MAKE=
2005 else
2006   { echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6; }
2008   SET_MAKE="MAKE=${MAKE-make}"
2009 fi
2010
2011 rm -rf .tst 2>/dev/null
2012 mkdir .tst 2>/dev/null
2013 if test -d .tst; then
2014   am__leading_dot=.
2015 else
2016   am__leading_dot=_
2017 fi
2018 rmdir .tst 2>/dev/null
2019
2020 # test to see if srcdir already configured
2021 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2022    test -f $srcdir/config.status; then
2023   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2024 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028 # test whether we have cygpath
2029 if test -z "$CYGPATH_W"; then
2030   if (cygpath --version) >/dev/null 2>/dev/null; then
2031     CYGPATH_W='cygpath -w'
2032   else
2033     CYGPATH_W=echo
2034   fi
2035 fi
2036
2037
2038 # Define the identity of the package.
2039  PACKAGE=qcomicbook
2040  VERSION=0.3.4
2041
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE "$PACKAGE"
2045 _ACEOF
2046
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define VERSION "$VERSION"
2050 _ACEOF
2051
2052 # Some tools Automake needs.
2053
2054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2055
2056
2057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2058
2059
2060 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2061
2062
2063 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2064
2065
2066 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2067
2068 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2069
2070 # Installed binaries are usually stripped using `strip' when the user
2071 # run `make install-strip'.  However `strip' might not be the right
2072 # tool to use in cross-compilation environments, therefore Automake
2073 # will honor the `STRIP' environment variable to overrule this program.
2074 if test "$cross_compiling" != no; then
2075   if test -n "$ac_tool_prefix"; then
2076   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}strip; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_STRIP+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test -n "$STRIP"; then
2084   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2093     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095     break 2
2096   fi
2097 done
2098 done
2099 IFS=$as_save_IFS
2100
2101 fi
2102 fi
2103 STRIP=$ac_cv_prog_STRIP
2104 if test -n "$STRIP"; then
2105   { echo "$as_me:$LINENO: result: $STRIP" >&5
2106 echo "${ECHO_T}$STRIP" >&6; }
2107 else
2108   { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2110 fi
2111
2112
2113 fi
2114 if test -z "$ac_cv_prog_STRIP"; then
2115   ac_ct_STRIP=$STRIP
2116   # Extract the first word of "strip", so it can be a program name with args.
2117 set dummy strip; ac_word=$2
2118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2120 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$ac_ct_STRIP"; then
2124   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2133     ac_cv_prog_ac_ct_STRIP="strip"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139 IFS=$as_save_IFS
2140
2141 fi
2142 fi
2143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2144 if test -n "$ac_ct_STRIP"; then
2145   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2146 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2147 else
2148   { echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6; }
2150 fi
2151
2152   if test "x$ac_ct_STRIP" = x; then
2153     STRIP=":"
2154   else
2155     case $cross_compiling:$ac_tool_warned in
2156 yes:)
2157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2158 whose name does not start with the host triplet.  If you think this
2159 configuration is useful to you, please write to autoconf@gnu.org." >&5
2160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2161 whose name does not start with the host triplet.  If you think this
2162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2163 ac_tool_warned=yes ;;
2164 esac
2165     STRIP=$ac_ct_STRIP
2166   fi
2167 else
2168   STRIP="$ac_cv_prog_STRIP"
2169 fi
2170
2171 fi
2172 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2173
2174 # We need awk for the "check" target.  The system "awk" is bad on
2175 # some platforms.
2176 # Always define AMTAR for backward compatibility.
2177
2178 AMTAR=${AMTAR-"${am_missing_run}tar"}
2179
2180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2181
2182
2183
2184
2185
2186 ac_config_headers="$ac_config_headers src/config.h"
2187
2188
2189
2190 # Checks for programs.
2191 ac_ext=cpp
2192 ac_cpp='$CXXCPP $CPPFLAGS'
2193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2196 if test -z "$CXX"; then
2197   if test -n "$CCC"; then
2198     CXX=$CCC
2199   else
2200     if test -n "$ac_tool_prefix"; then
2201   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2202   do
2203     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_prog_CXX+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   if test -n "$CXX"; then
2211   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216   IFS=$as_save_IFS
2217   test -z "$as_dir" && as_dir=.
2218   for ac_exec_ext in '' $ac_executable_extensions; do
2219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2220     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222     break 2
2223   fi
2224 done
2225 done
2226 IFS=$as_save_IFS
2227
2228 fi
2229 fi
2230 CXX=$ac_cv_prog_CXX
2231 if test -n "$CXX"; then
2232   { echo "$as_me:$LINENO: result: $CXX" >&5
2233 echo "${ECHO_T}$CXX" >&6; }
2234 else
2235   { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237 fi
2238
2239
2240     test -n "$CXX" && break
2241   done
2242 fi
2243 if test -z "$CXX"; then
2244   ac_ct_CXX=$CXX
2245   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2246 do
2247   # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   if test -n "$ac_ct_CXX"; then
2255   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2264     ac_cv_prog_ac_ct_CXX="$ac_prog"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 fi
2273 fi
2274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2275 if test -n "$ac_ct_CXX"; then
2276   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 fi
2282
2283
2284   test -n "$ac_ct_CXX" && break
2285 done
2286
2287   if test "x$ac_ct_CXX" = x; then
2288     CXX="g++"
2289   else
2290     case $cross_compiling:$ac_tool_warned in
2291 yes:)
2292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2293 whose name does not start with the host triplet.  If you think this
2294 configuration is useful to you, please write to autoconf@gnu.org." >&5
2295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet.  If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2298 ac_tool_warned=yes ;;
2299 esac
2300     CXX=$ac_ct_CXX
2301   fi
2302 fi
2303
2304   fi
2305 fi
2306 # Provide some information about the compiler.
2307 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2308 ac_compiler=`set X $ac_compile; echo $2`
2309 { (ac_try="$ac_compiler --version >&5"
2310 case "(($ac_try" in
2311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312   *) ac_try_echo=$ac_try;;
2313 esac
2314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315   (eval "$ac_compiler --version >&5") 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }
2319 { (ac_try="$ac_compiler -v >&5"
2320 case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325   (eval "$ac_compiler -v >&5") 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }
2329 { (ac_try="$ac_compiler -V >&5"
2330 case "(($ac_try" in
2331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332   *) ac_try_echo=$ac_try;;
2333 esac
2334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2335   (eval "$ac_compiler -V >&5") 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }
2339
2340 cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346
2347 int
2348 main ()
2349 {
2350
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 ac_clean_files_save=$ac_clean_files
2356 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2357 # Try to create an executable without -o first, disregard a.out.
2358 # It will help us diagnose broken compilers, and finding out an intuition
2359 # of exeext.
2360 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2361 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2362 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2363 #
2364 # List of possible output files, starting from the most likely.
2365 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2366 # only as a last resort.  b.out is created by i960 compilers.
2367 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2368 #
2369 # The IRIX 6 linker writes into existing files which may not be
2370 # executable, retaining their permissions.  Remove them first so a
2371 # subsequent execution test works.
2372 ac_rmfiles=
2373 for ac_file in $ac_files
2374 do
2375   case $ac_file in
2376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2377     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2378   esac
2379 done
2380 rm -f $ac_rmfiles
2381
2382 if { (ac_try="$ac_link_default"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388   (eval "$ac_link_default") 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; then
2392   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2394 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2395 # so that the user can short-circuit this test for compilers unknown to
2396 # Autoconf.
2397 for ac_file in $ac_files
2398 do
2399   test -f "$ac_file" || continue
2400   case $ac_file in
2401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2402         ;;
2403     [ab].out )
2404         # We found the default executable, but exeext='' is most
2405         # certainly right.
2406         break;;
2407     *.* )
2408         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2409         then :; else
2410            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2411         fi
2412         # We set ac_cv_exeext here because the later test for it is not
2413         # safe: cross compilers may not add the suffix if given an `-o'
2414         # argument, so we may need to know it at that point already.
2415         # Even if this section looks crufty: it has the advantage of
2416         # actually working.
2417         break;;
2418     * )
2419         break;;
2420   esac
2421 done
2422 test "$ac_cv_exeext" = no && ac_cv_exeext=
2423
2424 else
2425   echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2429 See \`config.log' for more details." >&5
2430 echo "$as_me: error: C++ compiler cannot create executables
2431 See \`config.log' for more details." >&2;}
2432    { (exit 77); exit 77; }; }
2433 fi
2434
2435 ac_exeext=$ac_cv_exeext
2436 { echo "$as_me:$LINENO: result: $ac_file" >&5
2437 echo "${ECHO_T}$ac_file" >&6; }
2438
2439 # Check that the compiler produces executables we can run.  If not, either
2440 # the compiler is broken, or we cross compile.
2441 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2442 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446   if { ac_try='./$ac_file'
2447   { (case "(($ac_try" in
2448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449   *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452   (eval "$ac_try") 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456     cross_compiling=no
2457   else
2458     if test "$cross_compiling" = maybe; then
2459         cross_compiling=yes
2460     else
2461         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C++ compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&2;}
2467    { (exit 1); exit 1; }; }
2468     fi
2469   fi
2470 fi
2471 { echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2473
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check that the compiler produces executables we can run.  If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2480 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6; }
2482
2483 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2485 if { (ac_try="$ac_link"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_link") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; then
2495   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2496 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2497 # work properly (i.e., refer to `conftest.exe'), while it won't with
2498 # `rm'.
2499 for ac_file in conftest.exe conftest conftest.*; do
2500   test -f "$ac_file" || continue
2501   case $ac_file in
2502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504           break;;
2505     * ) break;;
2506   esac
2507 done
2508 else
2509   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513    { (exit 1); exit 1; }; }
2514 fi
2515
2516 rm -f conftest$ac_cv_exeext
2517 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2519
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2522 ac_exeext=$EXEEXT
2523 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2525 if test "${ac_cv_objext+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (ac_try="$ac_compile"
2545 case "(($ac_try" in
2546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547   *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550   (eval "$ac_compile") 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; then
2554   for ac_file in conftest.o conftest.obj conftest.*; do
2555   test -f "$ac_file" || continue;
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2558     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559        break;;
2560   esac
2561 done
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570    { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574 fi
2575 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6; }
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2581 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590
2591 int
2592 main ()
2593 {
2594 #ifndef __GNUC__
2595        choke me
2596 #endif
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (ac_try="$ac_compile"
2604 case "(($ac_try" in
2605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606   *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609   (eval "$ac_compile") 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2617   { (case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622   (eval "$ac_try") 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (case "(($ac_try" in
2628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629   *) ac_try_echo=$ac_try;;
2630 esac
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632   (eval "$ac_try") 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   ac_compiler_gnu=yes
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641         ac_compiler_gnu=no
2642 fi
2643
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2646
2647 fi
2648 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2649 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2650 GXX=`test $ac_compiler_gnu = yes && echo yes`
2651 ac_test_CXXFLAGS=${CXXFLAGS+set}
2652 ac_save_CXXFLAGS=$CXXFLAGS
2653 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2654 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_cxx_g+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2659    ac_cxx_werror_flag=yes
2660    ac_cv_prog_cxx_g=no
2661    CXXFLAGS="-g"
2662    cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h.  */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h.  */
2668
2669 int
2670 main ()
2671 {
2672
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (ac_try="$ac_compile"
2679 case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684   (eval "$ac_compile") 2>conftest.er1
2685   ac_status=$?
2686   grep -v '^ *+' conftest.er1 >conftest.err
2687   rm -f conftest.er1
2688   cat conftest.err >&5
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); } &&
2691          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2692   { (case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697   (eval "$ac_try") 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; } &&
2701          { ac_try='test -s conftest.$ac_objext'
2702   { (case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_try") 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   ac_cv_prog_cxx_g=yes
2712 else
2713   echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716         CXXFLAGS=""
2717       cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h.  */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h.  */
2723
2724 int
2725 main ()
2726 {
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_compile") 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2747   { (case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752   (eval "$ac_try") 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; } &&
2756          { ac_try='test -s conftest.$ac_objext'
2757   { (case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762   (eval "$ac_try") 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   :
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2772          CXXFLAGS="-g"
2773          cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779
2780 int
2781 main ()
2782 {
2783
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (ac_try="$ac_compile"
2790 case "(($ac_try" in
2791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792   *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795   (eval "$ac_compile") 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2803   { (case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_try") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; } &&
2812          { ac_try='test -s conftest.$ac_objext'
2813   { (case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_try") 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; }; then
2822   ac_cv_prog_cxx_g=yes
2823 else
2824   echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827
2828 fi
2829
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 fi
2832
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 fi
2835
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2838 fi
2839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2840 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2841 if test "$ac_test_CXXFLAGS" = set; then
2842   CXXFLAGS=$ac_save_CXXFLAGS
2843 elif test $ac_cv_prog_cxx_g = yes; then
2844   if test "$GXX" = yes; then
2845     CXXFLAGS="-g -O2"
2846   else
2847     CXXFLAGS="-g"
2848   fi
2849 else
2850   if test "$GXX" = yes; then
2851     CXXFLAGS="-O2"
2852   else
2853     CXXFLAGS=
2854   fi
2855 fi
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861 DEPDIR="${am__leading_dot}deps"
2862
2863 ac_config_commands="$ac_config_commands depfiles"
2864
2865
2866 am_make=${MAKE-make}
2867 cat > confinc << 'END'
2868 am__doit:
2869         @echo done
2870 .PHONY: am__doit
2871 END
2872 # If we don't find an include directive, just comment out the code.
2873 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2874 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2875 am__include="#"
2876 am__quote=
2877 _am_result=none
2878 # First try GNU make style include.
2879 echo "include confinc" > confmf
2880 # We grep out `Entering directory' and `Leaving directory'
2881 # messages which can occur if `w' ends up in MAKEFLAGS.
2882 # In particular we don't look at `^make:' because GNU make might
2883 # be invoked under some other name (usually "gmake"), in which
2884 # case it prints its new name instead of `make'.
2885 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2886    am__include=include
2887    am__quote=
2888    _am_result=GNU
2889 fi
2890 # Now try BSD make style include.
2891 if test "$am__include" = "#"; then
2892    echo '.include "confinc"' > confmf
2893    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2894       am__include=.include
2895       am__quote="\""
2896       _am_result=BSD
2897    fi
2898 fi
2899
2900
2901 { echo "$as_me:$LINENO: result: $_am_result" >&5
2902 echo "${ECHO_T}$_am_result" >&6; }
2903 rm -f confinc confmf
2904
2905 # Check whether --enable-dependency-tracking was given.
2906 if test "${enable_dependency_tracking+set}" = set; then
2907   enableval=$enable_dependency_tracking;
2908 fi
2909
2910 if test "x$enable_dependency_tracking" != xno; then
2911   am_depcomp="$ac_aux_dir/depcomp"
2912   AMDEPBACKSLASH='\'
2913 fi
2914
2915
2916 if test "x$enable_dependency_tracking" != xno; then
2917   AMDEP_TRUE=
2918   AMDEP_FALSE='#'
2919 else
2920   AMDEP_TRUE='#'
2921   AMDEP_FALSE=
2922 fi
2923
2924
2925
2926
2927 depcc="$CXX"  am_compiler_list=
2928
2929 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2930 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2931 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2935   # We make a subdir and do the tests there.  Otherwise we can end up
2936   # making bogus files that we don't know about and never remove.  For
2937   # instance it was reported that on HP-UX the gcc test will end up
2938   # making a dummy file named `D' -- because `-MD' means `put the output
2939   # in D'.
2940   mkdir conftest.dir
2941   # Copy depcomp to subdir because otherwise we won't find it if we're
2942   # using a relative directory.
2943   cp "$am_depcomp" conftest.dir
2944   cd conftest.dir
2945   # We will build objects and dependencies in a subdirectory because
2946   # it helps to detect inapplicable dependency modes.  For instance
2947   # both Tru64's cc and ICC support -MD to output dependencies as a
2948   # side effect of compilation, but ICC will put the dependencies in
2949   # the current directory while Tru64 will put them in the object
2950   # directory.
2951   mkdir sub
2952
2953   am_cv_CXX_dependencies_compiler_type=none
2954   if test "$am_compiler_list" = ""; then
2955      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2956   fi
2957   for depmode in $am_compiler_list; do
2958     # Setup a source with many dependencies, because some compilers
2959     # like to wrap large dependency lists on column 80 (with \), and
2960     # we should not choose a depcomp mode which is confused by this.
2961     #
2962     # We need to recreate these files for each test, as the compiler may
2963     # overwrite some of them when testing with obscure command lines.
2964     # This happens at least with the AIX C compiler.
2965     : > sub/conftest.c
2966     for i in 1 2 3 4 5 6; do
2967       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2968       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2969       # Solaris 8's {/usr,}/bin/sh.
2970       touch sub/conftst$i.h
2971     done
2972     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2973
2974     case $depmode in
2975     nosideeffect)
2976       # after this tag, mechanisms are not by side-effect, so they'll
2977       # only be used when explicitly requested
2978       if test "x$enable_dependency_tracking" = xyes; then
2979         continue
2980       else
2981         break
2982       fi
2983       ;;
2984     none) break ;;
2985     esac
2986     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2987     # mode.  It turns out that the SunPro C++ compiler does not properly
2988     # handle `-M -o', and we need to detect this.
2989     if depmode=$depmode \
2990        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2991        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2992        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2993          >/dev/null 2>conftest.err &&
2994        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2995        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2996        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2997       # icc doesn't choke on unknown options, it will just issue warnings
2998       # or remarks (even with -Werror).  So we grep stderr for any message
2999       # that says an option was ignored or not supported.
3000       # When given -MP, icc 7.0 and 7.1 complain thusly:
3001       #   icc: Command line warning: ignoring option '-M'; no argument required
3002       # The diagnosis changed in icc 8.0:
3003       #   icc: Command line remark: option '-MP' not supported
3004       if (grep 'ignoring option' conftest.err ||
3005           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3006         am_cv_CXX_dependencies_compiler_type=$depmode
3007         break
3008       fi
3009     fi
3010   done
3011
3012   cd ..
3013   rm -rf conftest.dir
3014 else
3015   am_cv_CXX_dependencies_compiler_type=none
3016 fi
3017
3018 fi
3019 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3020 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3021 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3022
3023
3024
3025 if
3026   test "x$enable_dependency_tracking" != xno \
3027   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3028   am__fastdepCXX_TRUE=
3029   am__fastdepCXX_FALSE='#'
3030 else
3031   am__fastdepCXX_TRUE='#'
3032   am__fastdepCXX_FALSE=
3033 fi
3034
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 if test -n "$ac_tool_prefix"; then
3042   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   if test -n "$CC"; then
3050   ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057   for ac_exec_ext in '' $ac_executable_extensions; do
3058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3059     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071   { echo "$as_me:$LINENO: result: $CC" >&5
3072 echo "${ECHO_T}$CC" >&6; }
3073 else
3074   { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3076 fi
3077
3078
3079 fi
3080 if test -z "$ac_cv_prog_CC"; then
3081   ac_ct_CC=$CC
3082   # Extract the first word of "gcc", so it can be a program name with args.
3083 set dummy gcc; ac_word=$2
3084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   if test -n "$ac_ct_CC"; then
3090   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097   for ac_exec_ext in '' $ac_executable_extensions; do
3098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3099     ac_cv_prog_ac_ct_CC="gcc"
3100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3112 echo "${ECHO_T}$ac_ct_CC" >&6; }
3113 else
3114   { echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6; }
3116 fi
3117
3118   if test "x$ac_ct_CC" = x; then
3119     CC=""
3120   else
3121     case $cross_compiling:$ac_tool_warned in
3122 yes:)
3123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3124 whose name does not start with the host triplet.  If you think this
3125 configuration is useful to you, please write to autoconf@gnu.org." >&5
3126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3127 whose name does not start with the host triplet.  If you think this
3128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3129 ac_tool_warned=yes ;;
3130 esac
3131     CC=$ac_ct_CC
3132   fi
3133 else
3134   CC="$ac_cv_prog_CC"
3135 fi
3136
3137 if test -z "$CC"; then
3138           if test -n "$ac_tool_prefix"; then
3139     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}cc; ac_word=$2
3141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3143 if test "${ac_cv_prog_CC+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$CC"; then
3147   ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3156     ac_cv_prog_CC="${ac_tool_prefix}cc"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168   { echo "$as_me:$LINENO: result: $CC" >&5
3169 echo "${ECHO_T}$CC" >&6; }
3170 else
3171   { echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6; }
3173 fi
3174
3175
3176   fi
3177 fi
3178 if test -z "$CC"; then
3179   # Extract the first word of "cc", so it can be a program name with args.
3180 set dummy cc; ac_word=$2
3181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_CC+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$CC"; then
3187   ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189   ac_prog_rejected=no
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195   for ac_exec_ext in '' $ac_executable_extensions; do
3196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3197     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3198        ac_prog_rejected=yes
3199        continue
3200      fi
3201     ac_cv_prog_CC="cc"
3202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206 done
3207 IFS=$as_save_IFS
3208
3209 if test $ac_prog_rejected = yes; then
3210   # We found a bogon in the path, so make sure we never use it.
3211   set dummy $ac_cv_prog_CC
3212   shift
3213   if test $# != 0; then
3214     # We chose a different compiler from the bogus one.
3215     # However, it has the same basename, so the bogon will be chosen
3216     # first if we set CC to just the basename; use the full file name.
3217     shift
3218     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3219   fi
3220 fi
3221 fi
3222 fi
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225   { echo "$as_me:$LINENO: result: $CC" >&5
3226 echo "${ECHO_T}$CC" >&6; }
3227 else
3228   { echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6; }
3230 fi
3231
3232
3233 fi
3234 if test -z "$CC"; then
3235   if test -n "$ac_tool_prefix"; then
3236   for ac_prog in cl.exe
3237   do
3238     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3242 if test "${ac_cv_prog_CC+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   if test -n "$CC"; then
3246   ac_cv_prog_CC="$CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253   for ac_exec_ext in '' $ac_executable_extensions; do
3254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3255     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 fi
3264 fi
3265 CC=$ac_cv_prog_CC
3266 if test -n "$CC"; then
3267   { echo "$as_me:$LINENO: result: $CC" >&5
3268 echo "${ECHO_T}$CC" >&6; }
3269 else
3270   { echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6; }
3272 fi
3273
3274
3275     test -n "$CC" && break
3276   done
3277 fi
3278 if test -z "$CC"; then
3279   ac_ct_CC=$CC
3280   for ac_prog in cl.exe
3281 do
3282   # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$ac_ct_CC"; then
3290   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     ac_cv_prog_ac_ct_CC="$ac_prog"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3312 echo "${ECHO_T}$ac_ct_CC" >&6; }
3313 else
3314   { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3316 fi
3317
3318
3319   test -n "$ac_ct_CC" && break
3320 done
3321
3322   if test "x$ac_ct_CC" = x; then
3323     CC=""
3324   else
3325     case $cross_compiling:$ac_tool_warned in
3326 yes:)
3327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet.  If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&5
3330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3331 whose name does not start with the host triplet.  If you think this
3332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3333 ac_tool_warned=yes ;;
3334 esac
3335     CC=$ac_ct_CC
3336   fi
3337 fi
3338
3339 fi
3340
3341
3342 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details." >&5
3344 echo "$as_me: error: no acceptable C compiler found in \$PATH
3345 See \`config.log' for more details." >&2;}
3346    { (exit 1); exit 1; }; }
3347
3348 # Provide some information about the compiler.
3349 echo "$as_me:$LINENO: checking for C compiler version" >&5
3350 ac_compiler=`set X $ac_compile; echo $2`
3351 { (ac_try="$ac_compiler --version >&5"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_compiler --version >&5") 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }
3361 { (ac_try="$ac_compiler -v >&5"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_compiler -v >&5") 2>&5
3368   ac_status=$?
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); }
3371 { (ac_try="$ac_compiler -V >&5"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_compiler -V >&5") 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }
3381
3382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393
3394 int
3395 main ()
3396 {
3397 #ifndef __GNUC__
3398        choke me
3399 #endif
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412   (eval "$ac_compile") 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420   { (case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_try") 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }; } &&
3429          { ac_try='test -s conftest.$ac_objext'
3430   { (case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435   (eval "$ac_try") 2>&5
3436   ac_status=$?
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); }; }; then
3439   ac_compiler_gnu=yes
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444         ac_compiler_gnu=no
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3453 GCC=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CFLAGS=${CFLAGS+set}
3455 ac_save_CFLAGS=$CFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cc_g+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   ac_save_c_werror_flag=$ac_c_werror_flag
3462    ac_c_werror_flag=yes
3463    ac_cv_prog_cc_g=no
3464    CFLAGS="-g"
3465    cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } &&
3494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3495   { (case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500   (eval "$ac_try") 2>&5
3501   ac_status=$?
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }; } &&
3504          { ac_try='test -s conftest.$ac_objext'
3505   { (case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_try") 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }; }; then
3514   ac_cv_prog_cc_g=yes
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519         CFLAGS=""
3520       cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_compile") 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } &&
3549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3550   { (case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555   (eval "$ac_try") 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; } &&
3559          { ac_try='test -s conftest.$ac_objext'
3560   { (case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_try") 2>&5
3566   ac_status=$?
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); }; }; then
3569   :
3570 else
3571   echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574         ac_c_werror_flag=$ac_save_c_werror_flag
3575          CFLAGS="-g"
3576          cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598   (eval "$ac_compile") 2>conftest.er1
3599   ac_status=$?
3600   grep -v '^ *+' conftest.er1 >conftest.err
3601   rm -f conftest.er1
3602   cat conftest.err >&5
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } &&
3605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3606   { (case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611   (eval "$ac_try") 2>&5
3612   ac_status=$?
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); }; } &&
3615          { ac_try='test -s conftest.$ac_objext'
3616   { (case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621   (eval "$ac_try") 2>&5
3622   ac_status=$?
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); }; }; then
3625   ac_cv_prog_cc_g=yes
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640    ac_c_werror_flag=$ac_save_c_werror_flag
3641 fi
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645   CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647   if test "$GCC" = yes; then
3648     CFLAGS="-g -O2"
3649   else
3650     CFLAGS="-g"
3651   fi
3652 else
3653   if test "$GCC" = yes; then
3654     CFLAGS="-O2"
3655   else
3656     CFLAGS=
3657   fi
3658 fi
3659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3661 if test "${ac_cv_prog_cc_c89+set}" = set; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664   ac_cv_prog_cc_c89=no
3665 ac_save_CC=$CC
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672 #include <stdarg.h>
3673 #include <stdio.h>
3674 #include <sys/types.h>
3675 #include <sys/stat.h>
3676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3677 struct buf { int x; };
3678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3679 static char *e (p, i)
3680      char **p;
3681      int i;
3682 {
3683   return p[i];
3684 }
3685 static char *f (char * (*g) (char **, int), char **p, ...)
3686 {
3687   char *s;
3688   va_list v;
3689   va_start (v,p);
3690   s = g (p, va_arg (v,int));
3691   va_end (v);
3692   return s;
3693 }
3694
3695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3696    function prototypes and stuff, but not '\xHH' hex character constants.
3697    These don't provoke an error unfortunately, instead are silently treated
3698    as 'x'.  The following induces an error, until -std is added to get
3699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3700    array size at least.  It's necessary to write '\x00'==0 to get something
3701    that's true only with -std.  */
3702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3703
3704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3705    inside strings and character constants.  */
3706 #define FOO(x) 'x'
3707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3708
3709 int test (int i, double x);
3710 struct s1 {int (*f) (int a);};
3711 struct s2 {int (*f) (double a);};
3712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713 int argc;
3714 char **argv;
3715 int
3716 main ()
3717 {
3718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3725 do
3726   CC="$ac_save_CC $ac_arg"
3727   rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734   (eval "$ac_compile") 2>conftest.er1
3735   ac_status=$?
3736   grep -v '^ *+' conftest.er1 >conftest.err
3737   rm -f conftest.er1
3738   cat conftest.err >&5
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); } &&
3741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3742   { (case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747   (eval "$ac_try") 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757   (eval "$ac_try") 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }; }; then
3761   ac_cv_prog_cc_c89=$ac_arg
3762 else
3763   echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766
3767 fi
3768
3769 rm -f core conftest.err conftest.$ac_objext
3770   test "x$ac_cv_prog_cc_c89" != "xno" && break
3771 done
3772 rm -f conftest.$ac_ext
3773 CC=$ac_save_CC
3774
3775 fi
3776 # AC_CACHE_VAL
3777 case "x$ac_cv_prog_cc_c89" in
3778   x)
3779     { echo "$as_me:$LINENO: result: none needed" >&5
3780 echo "${ECHO_T}none needed" >&6; } ;;
3781   xno)
3782     { echo "$as_me:$LINENO: result: unsupported" >&5
3783 echo "${ECHO_T}unsupported" >&6; } ;;
3784   *)
3785     CC="$CC $ac_cv_prog_cc_c89"
3786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3788 esac
3789
3790
3791 ac_ext=c
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797 depcc="$CC"   am_compiler_list=
3798
3799 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3801 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3805   # We make a subdir and do the tests there.  Otherwise we can end up
3806   # making bogus files that we don't know about and never remove.  For
3807   # instance it was reported that on HP-UX the gcc test will end up
3808   # making a dummy file named `D' -- because `-MD' means `put the output
3809   # in D'.
3810   mkdir conftest.dir
3811   # Copy depcomp to subdir because otherwise we won't find it if we're
3812   # using a relative directory.
3813   cp "$am_depcomp" conftest.dir
3814   cd conftest.dir
3815   # We will build objects and dependencies in a subdirectory because
3816   # it helps to detect inapplicable dependency modes.  For instance
3817   # both Tru64's cc and ICC support -MD to output dependencies as a
3818   # side effect of compilation, but ICC will put the dependencies in
3819   # the current directory while Tru64 will put them in the object
3820   # directory.
3821   mkdir sub
3822
3823   am_cv_CC_dependencies_compiler_type=none
3824   if test "$am_compiler_list" = ""; then
3825      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3826   fi
3827   for depmode in $am_compiler_list; do
3828     # Setup a source with many dependencies, because some compilers
3829     # like to wrap large dependency lists on column 80 (with \), and
3830     # we should not choose a depcomp mode which is confused by this.
3831     #
3832     # We need to recreate these files for each test, as the compiler may
3833     # overwrite some of them when testing with obscure command lines.
3834     # This happens at least with the AIX C compiler.
3835     : > sub/conftest.c
3836     for i in 1 2 3 4 5 6; do
3837       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3838       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3839       # Solaris 8's {/usr,}/bin/sh.
3840       touch sub/conftst$i.h
3841     done
3842     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3843
3844     case $depmode in
3845     nosideeffect)
3846       # after this tag, mechanisms are not by side-effect, so they'll
3847       # only be used when explicitly requested
3848       if test "x$enable_dependency_tracking" = xyes; then
3849         continue
3850       else
3851         break
3852       fi
3853       ;;
3854     none) break ;;
3855     esac
3856     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3857     # mode.  It turns out that the SunPro C++ compiler does not properly
3858     # handle `-M -o', and we need to detect this.
3859     if depmode=$depmode \
3860        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3861        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3862        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3863          >/dev/null 2>conftest.err &&
3864        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3865        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3866        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3867       # icc doesn't choke on unknown options, it will just issue warnings
3868       # or remarks (even with -Werror).  So we grep stderr for any message
3869       # that says an option was ignored or not supported.
3870       # When given -MP, icc 7.0 and 7.1 complain thusly:
3871       #   icc: Command line warning: ignoring option '-M'; no argument required
3872       # The diagnosis changed in icc 8.0:
3873       #   icc: Command line remark: option '-MP' not supported
3874       if (grep 'ignoring option' conftest.err ||
3875           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3876         am_cv_CC_dependencies_compiler_type=$depmode
3877         break
3878       fi
3879     fi
3880   done
3881
3882   cd ..
3883   rm -rf conftest.dir
3884 else
3885   am_cv_CC_dependencies_compiler_type=none
3886 fi
3887
3888 fi
3889 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3890 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892
3893
3894
3895 if
3896   test "x$enable_dependency_tracking" != xno \
3897   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898   am__fastdepCC_TRUE=
3899   am__fastdepCC_FALSE='#'
3900 else
3901   am__fastdepCC_TRUE='#'
3902   am__fastdepCC_FALSE=
3903 fi
3904
3905
3906
3907 # Checks for libraries.
3908
3909 # Checks for header files.
3910 #AC_HEADER_STDC
3911
3912 # Checks for typedefs, structures, and compiler characteristics.
3913
3914 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3915 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3916 if test "${ac_cv_c_const+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929 /* FIXME: Include the comments suggested by Paul. */
3930 #ifndef __cplusplus
3931   /* Ultrix mips cc rejects this.  */
3932   typedef int charset[2];
3933   const charset x;
3934   /* SunOS 4.1.1 cc rejects this.  */
3935   char const *const *ccp;
3936   char **p;
3937   /* NEC SVR4.0.2 mips cc rejects this.  */
3938   struct point {int x, y;};
3939   static struct point const zero = {0,0};
3940   /* AIX XL C 1.02.0.0 rejects this.
3941      It does not let you subtract one const X* pointer from another in
3942      an arm of an if-expression whose if-part is not a constant
3943      expression */
3944   const char *g = "string";
3945   ccp = &g + (g ? g-g : 0);
3946   /* HPUX 7.0 cc rejects these. */
3947   ++ccp;
3948   p = (char**) ccp;
3949   ccp = (char const *const *) p;
3950   { /* SCO 3.2v4 cc rejects this.  */
3951     char *t;
3952     char const *s = 0 ? (char *) 0 : (char const *) 0;
3953
3954     *t++ = 0;
3955     if (s) return 0;
3956   }
3957   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3958     int x[] = {25, 17};
3959     const int *foo = &x[0];
3960     ++foo;
3961   }
3962   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3963     typedef const int *iptr;
3964     iptr p = 0;
3965     ++p;
3966   }
3967   { /* AIX XL C 1.02.0.0 rejects this saying
3968        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3969     struct s { int j; const int *ap[3]; };
3970     struct s *b; b->j = 5;
3971   }
3972   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3973     const int foo = 10;
3974     if (!foo) return 0;
3975   }
3976   return !x[0] && !zero.x;
3977 #endif
3978
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3985 case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990   (eval "$ac_compile") 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } &&
3997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3998   { (case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_try") 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; } &&
4007          { ac_try='test -s conftest.$ac_objext'
4008   { (case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_try") 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   ac_cv_c_const=yes
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022         ac_cv_c_const=no
4023 fi
4024
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 fi
4027 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4028 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4029 if test $ac_cv_c_const = no; then
4030
4031 cat >>confdefs.h <<\_ACEOF
4032 #define const
4033 _ACEOF
4034
4035 fi
4036
4037
4038 # Checks for library functions.
4039 #AC_PROG_GCC_TRADITIONAL
4040
4041 ac_ext=c
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4048 # On Suns, sometimes $CPP names a directory.
4049 if test -n "$CPP" && test -d "$CPP"; then
4050   CPP=
4051 fi
4052 if test -z "$CPP"; then
4053   if test "${ac_cv_prog_CPP+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056       # Double quotes because CPP needs to be expanded
4057     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4058     do
4059       ac_preproc_ok=false
4060 for ac_c_preproc_warn_flag in '' yes
4061 do
4062   # Use a header file that comes with gcc, so configuring glibc
4063   # with a fresh cross-compiler works.
4064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065   # <limits.h> exists even on freestanding compilers.
4066   # On the NeXT, cc -E runs the code through the compiler's parser,
4067   # not just through cpp. "Syntax error" is here to catch this case.
4068   cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #ifdef __STDC__
4075 # include <limits.h>
4076 #else
4077 # include <assert.h>
4078 #endif
4079                      Syntax error
4080 _ACEOF
4081 if { (ac_try="$ac_cpp conftest.$ac_ext"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } >/dev/null; then
4094   if test -s conftest.err; then
4095     ac_cpp_err=$ac_c_preproc_warn_flag
4096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097   else
4098     ac_cpp_err=
4099   fi
4100 else
4101   ac_cpp_err=yes
4102 fi
4103 if test -z "$ac_cpp_err"; then
4104   :
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109   # Broken: fails on valid input.
4110 continue
4111 fi
4112
4113 rm -f conftest.err conftest.$ac_ext
4114
4115   # OK, works on sane cases.  Now check whether nonexistent headers
4116   # can be detected and how.
4117   cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123 #include <ac_nonexistent.h>
4124 _ACEOF
4125 if { (ac_try="$ac_cpp conftest.$ac_ext"
4126 case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132   ac_status=$?
4133   grep -v '^ *+' conftest.er1 >conftest.err
4134   rm -f conftest.er1
4135   cat conftest.err >&5
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); } >/dev/null; then
4138   if test -s conftest.err; then
4139     ac_cpp_err=$ac_c_preproc_warn_flag
4140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4141   else
4142     ac_cpp_err=
4143   fi
4144 else
4145   ac_cpp_err=yes
4146 fi
4147 if test -z "$ac_cpp_err"; then
4148   # Broken: success on invalid input.
4149 continue
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154   # Passes both tests.
4155 ac_preproc_ok=:
4156 break
4157 fi
4158
4159 rm -f conftest.err conftest.$ac_ext
4160
4161 done
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4165   break
4166 fi
4167
4168     done
4169     ac_cv_prog_CPP=$CPP
4170
4171 fi
4172   CPP=$ac_cv_prog_CPP
4173 else
4174   ac_cv_prog_CPP=$CPP
4175 fi
4176 { echo "$as_me:$LINENO: result: $CPP" >&5
4177 echo "${ECHO_T}$CPP" >&6; }
4178 ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4180 do
4181   # Use a header file that comes with gcc, so configuring glibc
4182   # with a fresh cross-compiler works.
4183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184   # <limits.h> exists even on freestanding compilers.
4185   # On the NeXT, cc -E runs the code through the compiler's parser,
4186   # not just through cpp. "Syntax error" is here to catch this case.
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #ifdef __STDC__
4194 # include <limits.h>
4195 #else
4196 # include <assert.h>
4197 #endif
4198                      Syntax error
4199 _ACEOF
4200 if { (ac_try="$ac_cpp conftest.$ac_ext"
4201 case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207   ac_status=$?
4208   grep -v '^ *+' conftest.er1 >conftest.err
4209   rm -f conftest.er1
4210   cat conftest.err >&5
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); } >/dev/null; then
4213   if test -s conftest.err; then
4214     ac_cpp_err=$ac_c_preproc_warn_flag
4215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4216   else
4217     ac_cpp_err=
4218   fi
4219 else
4220   ac_cpp_err=yes
4221 fi
4222 if test -z "$ac_cpp_err"; then
4223   :
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228   # Broken: fails on valid input.
4229 continue
4230 fi
4231
4232 rm -f conftest.err conftest.$ac_ext
4233
4234   # OK, works on sane cases.  Now check whether nonexistent headers
4235   # can be detected and how.
4236   cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 #include <ac_nonexistent.h>
4243 _ACEOF
4244 if { (ac_try="$ac_cpp conftest.$ac_ext"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } >/dev/null; then
4257   if test -s conftest.err; then
4258     ac_cpp_err=$ac_c_preproc_warn_flag
4259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260   else
4261     ac_cpp_err=
4262   fi
4263 else
4264   ac_cpp_err=yes
4265 fi
4266 if test -z "$ac_cpp_err"; then
4267   # Broken: success on invalid input.
4268 continue
4269 else
4270   echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273   # Passes both tests.
4274 ac_preproc_ok=:
4275 break
4276 fi
4277
4278 rm -f conftest.err conftest.$ac_ext
4279
4280 done
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then
4284   :
4285 else
4286   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details." >&5
4288 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details." >&2;}
4290    { (exit 1); exit 1; }; }
4291 fi
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299
4300 { echo "$as_me:$LINENO: checking for X" >&5
4301 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4302
4303
4304 # Check whether --with-x was given.
4305 if test "${with_x+set}" = set; then
4306   withval=$with_x;
4307 fi
4308
4309 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4310 if test "x$with_x" = xno; then
4311   # The user explicitly disabled X.
4312   have_x=disabled
4313 else
4314   case $x_includes,$x_libraries in #(
4315     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4316 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4317    { (exit 1); exit 1; }; };; #(
4318     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   # One or both of the vars are not set, and there is no cached value.
4322 ac_x_includes=no ac_x_libraries=no
4323 rm -f -r conftest.dir
4324 if mkdir conftest.dir; then
4325   cd conftest.dir
4326   cat >Imakefile <<'_ACEOF'
4327 incroot:
4328         @echo incroot='${INCROOT}'
4329 usrlibdir:
4330         @echo usrlibdir='${USRLIBDIR}'
4331 libdir:
4332         @echo libdir='${LIBDIR}'
4333 _ACEOF
4334   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4335     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4336     for ac_var in incroot usrlibdir libdir; do
4337       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4338     done
4339     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4340     for ac_extension in a so sl; do
4341       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4342          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4343         ac_im_usrlibdir=$ac_im_libdir; break
4344       fi
4345     done
4346     # Screen out bogus values from the imake configuration.  They are
4347     # bogus both because they are the default anyway, and because
4348     # using them would break gcc on systems where it needs fixed includes.
4349     case $ac_im_incroot in
4350         /usr/include) ac_x_includes= ;;
4351         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4352     esac
4353     case $ac_im_usrlibdir in
4354         /usr/lib | /lib) ;;
4355         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4356     esac
4357   fi
4358   cd ..
4359   rm -f -r conftest.dir
4360 fi
4361
4362 # Standard set of common directories for X headers.
4363 # Check X11 before X11Rn because it is often a symlink to the current release.
4364 ac_x_header_dirs='
4365 /usr/X11/include
4366 /usr/X11R6/include
4367 /usr/X11R5/include
4368 /usr/X11R4/include
4369
4370 /usr/include/X11
4371 /usr/include/X11R6
4372 /usr/include/X11R5
4373 /usr/include/X11R4
4374
4375 /usr/local/X11/include
4376 /usr/local/X11R6/include
4377 /usr/local/X11R5/include
4378 /usr/local/X11R4/include
4379
4380 /usr/local/include/X11
4381 /usr/local/include/X11R6
4382 /usr/local/include/X11R5
4383 /usr/local/include/X11R4
4384
4385 /usr/X386/include
4386 /usr/x386/include
4387 /usr/XFree86/include/X11
4388
4389 /usr/include
4390 /usr/local/include
4391 /usr/unsupported/include
4392 /usr/athena/include
4393 /usr/local/x11r5/include
4394 /usr/lpp/Xamples/include
4395
4396 /usr/openwin/include
4397 /usr/openwin/share/include'
4398
4399 if test "$ac_x_includes" = no; then
4400   # Guess where to find include files, by looking for Xlib.h.
4401   # First, try using that file with no special directory specified.
4402   cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408 #include <X11/Xlib.h>
4409 _ACEOF
4410 if { (ac_try="$ac_cpp conftest.$ac_ext"
4411 case "(($ac_try" in
4412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413   *) ac_try_echo=$ac_try;;
4414 esac
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4417   ac_status=$?
4418   grep -v '^ *+' conftest.er1 >conftest.err
4419   rm -f conftest.er1
4420   cat conftest.err >&5
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); } >/dev/null; then
4423   if test -s conftest.err; then
4424     ac_cpp_err=$ac_c_preproc_warn_flag
4425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4426   else
4427     ac_cpp_err=
4428   fi
4429 else
4430   ac_cpp_err=yes
4431 fi
4432 if test -z "$ac_cpp_err"; then
4433   # We can compile using X headers with no special include directory.
4434 ac_x_includes=
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439   for ac_dir in $ac_x_header_dirs; do
4440   if test -r "$ac_dir/X11/Xlib.h"; then
4441     ac_x_includes=$ac_dir
4442     break
4443   fi
4444 done
4445 fi
4446
4447 rm -f conftest.err conftest.$ac_ext
4448 fi # $ac_x_includes = no
4449
4450 if test "$ac_x_libraries" = no; then
4451   # Check for the libraries.
4452   # See if we find them without any special options.
4453   # Don't add to $LIBS permanently.
4454   ac_save_LIBS=$LIBS
4455   LIBS="-lXt $LIBS"
4456   cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 #include <X11/Xlib.h>
4463 int
4464 main ()
4465 {
4466 XrmInitialize ()
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_link") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } &&
4485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4486   { (case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_try") 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }; } &&
4495          { ac_try='test -s conftest$ac_exeext'
4496   { (case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501   (eval "$ac_try") 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   LIBS=$ac_save_LIBS
4506 # We can link X programs with no special library path.
4507 ac_x_libraries=
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512         LIBS=$ac_save_LIBS
4513 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4514 do
4515   # Don't even attempt the hair of trying to link an X program!
4516   for ac_extension in a so sl; do
4517     if test -r "$ac_dir/libXt.$ac_extension"; then
4518       ac_x_libraries=$ac_dir
4519       break 2
4520     fi
4521   done
4522 done
4523 fi
4524
4525 rm -f core conftest.err conftest.$ac_objext \
4526       conftest$ac_exeext conftest.$ac_ext
4527 fi # $ac_x_libraries = no
4528
4529 case $ac_x_includes,$ac_x_libraries in #(
4530   no,* | *,no | *\'*)
4531     # Didn't find X, or a directory has "'" in its name.
4532     ac_cv_have_x="have_x=no";; #(
4533   *)
4534     # Record where we found X for the cache.
4535     ac_cv_have_x="have_x=yes\
4536         ac_x_includes='$ac_x_includes'\
4537         ac_x_libraries='$ac_x_libraries'"
4538 esac
4539 fi
4540 ;; #(
4541     *) have_x=yes;;
4542   esac
4543   eval "$ac_cv_have_x"
4544 fi # $with_x != no
4545
4546 if test "$have_x" != yes; then
4547   { echo "$as_me:$LINENO: result: $have_x" >&5
4548 echo "${ECHO_T}$have_x" >&6; }
4549   no_x=yes
4550 else
4551   # If each of the values was on the command line, it overrides each guess.
4552   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4553   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4554   # Update the cache value to reflect the command line values.
4555   ac_cv_have_x="have_x=yes\
4556         ac_x_includes='$x_includes'\
4557         ac_x_libraries='$x_libraries'"
4558   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4559 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4560 fi
4561
4562 if test "$no_x" = yes; then
4563   # Not all programs may use this symbol, but it does not hurt to define it.
4564
4565 cat >>confdefs.h <<\_ACEOF
4566 #define X_DISPLAY_MISSING 1
4567 _ACEOF
4568
4569   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4570 else
4571   if test -n "$x_includes"; then
4572     X_CFLAGS="$X_CFLAGS -I$x_includes"
4573   fi
4574
4575   # It would also be nice to do this for all -L options, not just this one.
4576   if test -n "$x_libraries"; then
4577     X_LIBS="$X_LIBS -L$x_libraries"
4578     # For Solaris; some versions of Sun CC require a space after -R and
4579     # others require no space.  Words are not sufficient . . . .
4580     case `(uname -sr) 2>/dev/null` in
4581     "SunOS 5"*)
4582       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4583 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4584       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4585       cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591
4592 int
4593 main ()
4594 {
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4602 case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607   (eval "$ac_link") 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4615   { (case "(($ac_try" in
4616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617   *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620   (eval "$ac_try") 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; } &&
4624          { ac_try='test -s conftest$ac_exeext'
4625   { (case "(($ac_try" in
4626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627   *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630   (eval "$ac_try") 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; }; then
4634   ac_R_nospace=yes
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639         ac_R_nospace=no
4640 fi
4641
4642 rm -f core conftest.err conftest.$ac_objext \
4643       conftest$ac_exeext conftest.$ac_ext
4644       if test $ac_R_nospace = yes; then
4645         { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4647         X_LIBS="$X_LIBS -R$x_libraries"
4648       else
4649         LIBS="$ac_xsave_LIBS -R $x_libraries"
4650         cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 int
4658 main ()
4659 {
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (ac_try="$ac_link"
4667 case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672   (eval "$ac_link") 2>conftest.er1
4673   ac_status=$?
4674   grep -v '^ *+' conftest.er1 >conftest.err
4675   rm -f conftest.er1
4676   cat conftest.err >&5
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); } &&
4679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4680   { (case "(($ac_try" in
4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682   *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685   (eval "$ac_try") 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); }; } &&
4689          { ac_try='test -s conftest$ac_exeext'
4690   { (case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695   (eval "$ac_try") 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   ac_R_space=yes
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704         ac_R_space=no
4705 fi
4706
4707 rm -f core conftest.err conftest.$ac_objext \
4708       conftest$ac_exeext conftest.$ac_ext
4709         if test $ac_R_space = yes; then
4710           { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4712           X_LIBS="$X_LIBS -R $x_libraries"
4713         else
4714           { echo "$as_me:$LINENO: result: neither works" >&5
4715 echo "${ECHO_T}neither works" >&6; }
4716         fi
4717       fi
4718       LIBS=$ac_xsave_LIBS
4719     esac
4720   fi
4721
4722   # Check for system-dependent libraries X programs must link with.
4723   # Do this before checking for the system-independent R6 libraries
4724   # (-lICE), since we may need -lsocket or whatever for X linking.
4725
4726   if test "$ISC" = yes; then
4727     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4728   else
4729     # Martyn Johnson says this is needed for Ultrix, if the X
4730     # libraries were built with DECnet support.  And Karl Berry says
4731     # the Alpha needs dnet_stub (dnet does not exist).
4732     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4733     cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739
4740 /* Override any GCC internal prototype to avoid an error.
4741    Use char because int might match the return type of a GCC
4742    builtin and then its argument prototype would still apply.  */
4743 #ifdef __cplusplus
4744 extern "C"
4745 #endif
4746 char XOpenDisplay ();
4747 int
4748 main ()
4749 {
4750 return XOpenDisplay ();
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4757 case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_link") 2>conftest.er1
4763   ac_status=$?
4764   grep -v '^ *+' conftest.er1 >conftest.err
4765   rm -f conftest.er1
4766   cat conftest.err >&5
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); } &&
4769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4770   { (case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_try") 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; } &&
4779          { ac_try='test -s conftest$ac_exeext'
4780   { (case "(($ac_try" in
4781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782   *) ac_try_echo=$ac_try;;
4783 esac
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785   (eval "$ac_try") 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; }; then
4789   :
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4795 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4796 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799   ac_check_lib_save_LIBS=$LIBS
4800 LIBS="-ldnet  $LIBS"
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807
4808 /* Override any GCC internal prototype to avoid an error.
4809    Use char because int might match the return type of a GCC
4810    builtin and then its argument prototype would still apply.  */
4811 #ifdef __cplusplus
4812 extern "C"
4813 #endif
4814 char dnet_ntoa ();
4815 int
4816 main ()
4817 {
4818 return dnet_ntoa ();
4819   ;
4820   return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest.$ac_objext conftest$ac_exeext
4824 if { (ac_try="$ac_link"
4825 case "(($ac_try" in
4826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827   *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830   (eval "$ac_link") 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4838   { (case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843   (eval "$ac_try") 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); }; } &&
4847          { ac_try='test -s conftest$ac_exeext'
4848   { (case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853   (eval "$ac_try") 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; }; then
4857   ac_cv_lib_dnet_dnet_ntoa=yes
4858 else
4859   echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862         ac_cv_lib_dnet_dnet_ntoa=no
4863 fi
4864
4865 rm -f core conftest.err conftest.$ac_objext \
4866       conftest$ac_exeext conftest.$ac_ext
4867 LIBS=$ac_check_lib_save_LIBS
4868 fi
4869 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4870 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4871 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4872   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4873 fi
4874
4875     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4876       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4877 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4878 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   ac_check_lib_save_LIBS=$LIBS
4882 LIBS="-ldnet_stub  $LIBS"
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889
4890 /* Override any GCC internal prototype to avoid an error.
4891    Use char because int might match the return type of a GCC
4892    builtin and then its argument prototype would still apply.  */
4893 #ifdef __cplusplus
4894 extern "C"
4895 #endif
4896 char dnet_ntoa ();
4897 int
4898 main ()
4899 {
4900 return dnet_ntoa ();
4901   ;
4902   return 0;
4903 }
4904 _ACEOF
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (ac_try="$ac_link"
4907 case "(($ac_try" in
4908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909   *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912   (eval "$ac_link") 2>conftest.er1
4913   ac_status=$?
4914   grep -v '^ *+' conftest.er1 >conftest.err
4915   rm -f conftest.er1
4916   cat conftest.err >&5
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } &&
4919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4920   { (case "(($ac_try" in
4921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922   *) ac_try_echo=$ac_try;;
4923 esac
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925   (eval "$ac_try") 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; } &&
4929          { ac_try='test -s conftest$ac_exeext'
4930   { (case "(($ac_try" in
4931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932   *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935   (eval "$ac_try") 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944         ac_cv_lib_dnet_stub_dnet_ntoa=no
4945 fi
4946
4947 rm -f core conftest.err conftest.$ac_objext \
4948       conftest$ac_exeext conftest.$ac_ext
4949 LIBS=$ac_check_lib_save_LIBS
4950 fi
4951 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4952 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4953 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4954   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4955 fi
4956
4957     fi
4958 fi
4959
4960 rm -f core conftest.err conftest.$ac_objext \
4961       conftest$ac_exeext conftest.$ac_ext
4962     LIBS="$ac_xsave_LIBS"
4963
4964     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4965     # to get the SysV transport functions.
4966     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4967     # needs -lnsl.
4968     # The nsl library prevents programs from opening the X display
4969     # on Irix 5.2, according to T.E. Dickey.
4970     # The functions gethostbyname, getservbyname, and inet_addr are
4971     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4972     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4973 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4974 if test "${ac_cv_func_gethostbyname+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h.  */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h.  */
4983 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4985 #define gethostbyname innocuous_gethostbyname
4986
4987 /* System header to define __stub macros and hopefully few prototypes,
4988     which can conflict with char gethostbyname (); below.
4989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990     <limits.h> exists even on freestanding compilers.  */
4991
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4997
4998 #undef gethostbyname
4999
5000 /* Override any GCC internal prototype to avoid an error.
5001    Use char because int might match the return type of a GCC
5002    builtin and then its argument prototype would still apply.  */
5003 #ifdef __cplusplus
5004 extern "C"
5005 #endif
5006 char gethostbyname ();
5007 /* The GNU C library defines this for functions which it implements
5008     to always fail with ENOSYS.  Some functions are actually named
5009     something starting with __ and the normal name is an alias.  */
5010 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5011 choke me
5012 #endif
5013
5014 int
5015 main ()
5016 {
5017 return gethostbyname ();
5018   ;
5019   return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5024 case "(($ac_try" in
5025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026   *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029   (eval "$ac_link") 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5037   { (case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042   (eval "$ac_try") 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; } &&
5046          { ac_try='test -s conftest$ac_exeext'
5047   { (case "(($ac_try" in
5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049   *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052   (eval "$ac_try") 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; }; then
5056   ac_cv_func_gethostbyname=yes
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061         ac_cv_func_gethostbyname=no
5062 fi
5063
5064 rm -f core conftest.err conftest.$ac_objext \
5065       conftest$ac_exeext conftest.$ac_ext
5066 fi
5067 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5068 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5069
5070     if test $ac_cv_func_gethostbyname = no; then
5071       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5072 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5073 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   ac_check_lib_save_LIBS=$LIBS
5077 LIBS="-lnsl  $LIBS"
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084
5085 /* Override any GCC internal prototype to avoid an error.
5086    Use char because int might match the return type of a GCC
5087    builtin and then its argument prototype would still apply.  */
5088 #ifdef __cplusplus
5089 extern "C"
5090 #endif
5091 char gethostbyname ();
5092 int
5093 main ()
5094 {
5095 return gethostbyname ();
5096   ;
5097   return 0;
5098 }
5099 _ACEOF
5100 rm -f conftest.$ac_objext conftest$ac_exeext
5101 if { (ac_try="$ac_link"
5102 case "(($ac_try" in
5103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104   *) ac_try_echo=$ac_try;;
5105 esac
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107   (eval "$ac_link") 2>conftest.er1
5108   ac_status=$?
5109   grep -v '^ *+' conftest.er1 >conftest.err
5110   rm -f conftest.er1
5111   cat conftest.err >&5
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } &&
5114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5115   { (case "(($ac_try" in
5116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117   *) ac_try_echo=$ac_try;;
5118 esac
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120   (eval "$ac_try") 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; } &&
5124          { ac_try='test -s conftest$ac_exeext'
5125   { (case "(($ac_try" in
5126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127   *) ac_try_echo=$ac_try;;
5128 esac
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130   (eval "$ac_try") 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; }; then
5134   ac_cv_lib_nsl_gethostbyname=yes
5135 else
5136   echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139         ac_cv_lib_nsl_gethostbyname=no
5140 fi
5141
5142 rm -f core conftest.err conftest.$ac_objext \
5143       conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5145 fi
5146 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5147 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5148 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5149   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5150 fi
5151
5152       if test $ac_cv_lib_nsl_gethostbyname = no; then
5153         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5154 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5155 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158   ac_check_lib_save_LIBS=$LIBS
5159 LIBS="-lbsd  $LIBS"
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166
5167 /* Override any GCC internal prototype to avoid an error.
5168    Use char because int might match the return type of a GCC
5169    builtin and then its argument prototype would still apply.  */
5170 #ifdef __cplusplus
5171 extern "C"
5172 #endif
5173 char gethostbyname ();
5174 int
5175 main ()
5176 {
5177 return gethostbyname ();
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (ac_try="$ac_link"
5184 case "(($ac_try" in
5185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186   *) ac_try_echo=$ac_try;;
5187 esac
5188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189   (eval "$ac_link") 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5197   { (case "(($ac_try" in
5198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199   *) ac_try_echo=$ac_try;;
5200 esac
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202   (eval "$ac_try") 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); }; } &&
5206          { ac_try='test -s conftest$ac_exeext'
5207   { (case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212   (eval "$ac_try") 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; }; then
5216   ac_cv_lib_bsd_gethostbyname=yes
5217 else
5218   echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221         ac_cv_lib_bsd_gethostbyname=no
5222 fi
5223
5224 rm -f core conftest.err conftest.$ac_objext \
5225       conftest$ac_exeext conftest.$ac_ext
5226 LIBS=$ac_check_lib_save_LIBS
5227 fi
5228 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5229 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5230 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5231   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5232 fi
5233
5234       fi
5235     fi
5236
5237     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5238     # socket/setsockopt and other routines are undefined under SCO ODT
5239     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5240     # on later versions), says Simon Leinen: it contains gethostby*
5241     # variants that don't use the name server (or something).  -lsocket
5242     # must be given before -lnsl if both are needed.  We assume that
5243     # if connect needs -lnsl, so does gethostbyname.
5244     { echo "$as_me:$LINENO: checking for connect" >&5
5245 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5246 if test "${ac_cv_func_connect+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h.  */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h.  */
5255 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5257 #define connect innocuous_connect
5258
5259 /* System header to define __stub macros and hopefully few prototypes,
5260     which can conflict with char connect (); below.
5261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262     <limits.h> exists even on freestanding compilers.  */
5263
5264 #ifdef __STDC__
5265 # include <limits.h>
5266 #else
5267 # include <assert.h>
5268 #endif
5269
5270 #undef connect
5271
5272 /* Override any GCC internal prototype to avoid an error.
5273    Use char because int might match the return type of a GCC
5274    builtin and then its argument prototype would still apply.  */
5275 #ifdef __cplusplus
5276 extern "C"
5277 #endif
5278 char connect ();
5279 /* The GNU C library defines this for functions which it implements
5280     to always fail with ENOSYS.  Some functions are actually named
5281     something starting with __ and the normal name is an alias.  */
5282 #if defined __stub_connect || defined __stub___connect
5283 choke me
5284 #endif
5285
5286 int
5287 main ()
5288 {
5289 return connect ();
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (ac_try="$ac_link"
5296 case "(($ac_try" in
5297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298   *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301   (eval "$ac_link") 2>conftest.er1
5302   ac_status=$?
5303   grep -v '^ *+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5309   { (case "(($ac_try" in
5310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311   *) ac_try_echo=$ac_try;;
5312 esac
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314   (eval "$ac_try") 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); }; } &&
5318          { ac_try='test -s conftest$ac_exeext'
5319   { (case "(($ac_try" in
5320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321   *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324   (eval "$ac_try") 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }; }; then
5328   ac_cv_func_connect=yes
5329 else
5330   echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5332
5333         ac_cv_func_connect=no
5334 fi
5335
5336 rm -f core conftest.err conftest.$ac_objext \
5337       conftest$ac_exeext conftest.$ac_ext
5338 fi
5339 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5340 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5341
5342     if test $ac_cv_func_connect = no; then
5343       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5344 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5345 if test "${ac_cv_lib_socket_connect+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356
5357 /* Override any GCC internal prototype to avoid an error.
5358    Use char because int might match the return type of a GCC
5359    builtin and then its argument prototype would still apply.  */
5360 #ifdef __cplusplus
5361 extern "C"
5362 #endif
5363 char connect ();
5364 int
5365 main ()
5366 {
5367 return connect ();
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (ac_try="$ac_link"
5374 case "(($ac_try" in
5375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376   *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379   (eval "$ac_link") 2>conftest.er1
5380   ac_status=$?
5381   grep -v '^ *+' conftest.er1 >conftest.err
5382   rm -f conftest.er1
5383   cat conftest.err >&5
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } &&
5386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5387   { (case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_try") 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; } &&
5396          { ac_try='test -s conftest$ac_exeext'
5397   { (case "(($ac_try" in
5398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399   *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402   (eval "$ac_try") 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   ac_cv_lib_socket_connect=yes
5407 else
5408   echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411         ac_cv_lib_socket_connect=no
5412 fi
5413
5414 rm -f core conftest.err conftest.$ac_objext \
5415       conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5417 fi
5418 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5419 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5420 if test $ac_cv_lib_socket_connect = yes; then
5421   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5422 fi
5423
5424     fi
5425
5426     # Guillermo Gomez says -lposix is necessary on A/UX.
5427     { echo "$as_me:$LINENO: checking for remove" >&5
5428 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5429 if test "${ac_cv_func_remove+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5440 #define remove innocuous_remove
5441
5442 /* System header to define __stub macros and hopefully few prototypes,
5443     which can conflict with char remove (); below.
5444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445     <limits.h> exists even on freestanding compilers.  */
5446
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452
5453 #undef remove
5454
5455 /* Override any GCC internal prototype to avoid an error.
5456    Use char because int might match the return type of a GCC
5457    builtin and then its argument prototype would still apply.  */
5458 #ifdef __cplusplus
5459 extern "C"
5460 #endif
5461 char remove ();
5462 /* The GNU C library defines this for functions which it implements
5463     to always fail with ENOSYS.  Some functions are actually named
5464     something starting with __ and the normal name is an alias.  */
5465 #if defined __stub_remove || defined __stub___remove
5466 choke me
5467 #endif
5468
5469 int
5470 main ()
5471 {
5472 return remove ();
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (ac_try="$ac_link"
5479 case "(($ac_try" in
5480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481   *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484   (eval "$ac_link") 2>conftest.er1
5485   ac_status=$?
5486   grep -v '^ *+' conftest.er1 >conftest.err
5487   rm -f conftest.er1
5488   cat conftest.err >&5
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } &&
5491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5492   { (case "(($ac_try" in
5493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494   *) ac_try_echo=$ac_try;;
5495 esac
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497   (eval "$ac_try") 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; } &&
5501          { ac_try='test -s conftest$ac_exeext'
5502   { (case "(($ac_try" in
5503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504   *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507   (eval "$ac_try") 2>&5
5508   ac_status=$?
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); }; }; then
5511   ac_cv_func_remove=yes
5512 else
5513   echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516         ac_cv_func_remove=no
5517 fi
5518
5519 rm -f core conftest.err conftest.$ac_objext \
5520       conftest$ac_exeext conftest.$ac_ext
5521 fi
5522 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5523 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5524
5525     if test $ac_cv_func_remove = no; then
5526       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5527 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5528 if test "${ac_cv_lib_posix_remove+set}" = set; then
5529   echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531   ac_check_lib_save_LIBS=$LIBS
5532 LIBS="-lposix  $LIBS"
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h.  */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h.  */
5539
5540 /* Override any GCC internal prototype to avoid an error.
5541    Use char because int might match the return type of a GCC
5542    builtin and then its argument prototype would still apply.  */
5543 #ifdef __cplusplus
5544 extern "C"
5545 #endif
5546 char remove ();
5547 int
5548 main ()
5549 {
5550 return remove ();
5551   ;
5552   return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (ac_try="$ac_link"
5557 case "(($ac_try" in
5558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559   *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562   (eval "$ac_link") 2>conftest.er1
5563   ac_status=$?
5564   grep -v '^ *+' conftest.er1 >conftest.err
5565   rm -f conftest.er1
5566   cat conftest.err >&5
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); } &&
5569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5570   { (case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_try") 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }; } &&
5579          { ac_try='test -s conftest$ac_exeext'
5580   { (case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_try") 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; }; then
5589   ac_cv_lib_posix_remove=yes
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594         ac_cv_lib_posix_remove=no
5595 fi
5596
5597 rm -f core conftest.err conftest.$ac_objext \
5598       conftest$ac_exeext conftest.$ac_ext
5599 LIBS=$ac_check_lib_save_LIBS
5600 fi
5601 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5602 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5603 if test $ac_cv_lib_posix_remove = yes; then
5604   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5605 fi
5606
5607     fi
5608
5609     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5610     { echo "$as_me:$LINENO: checking for shmat" >&5
5611 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5612 if test "${ac_cv_func_shmat+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5623 #define shmat innocuous_shmat
5624
5625 /* System header to define __stub macros and hopefully few prototypes,
5626     which can conflict with char shmat (); below.
5627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628     <limits.h> exists even on freestanding compilers.  */
5629
5630 #ifdef __STDC__
5631 # include <limits.h>
5632 #else
5633 # include <assert.h>
5634 #endif
5635
5636 #undef shmat
5637
5638 /* Override any GCC internal prototype to avoid an error.
5639    Use char because int might match the return type of a GCC
5640    builtin and then its argument prototype would still apply.  */
5641 #ifdef __cplusplus
5642 extern "C"
5643 #endif
5644 char shmat ();
5645 /* The GNU C library defines this for functions which it implements
5646     to always fail with ENOSYS.  Some functions are actually named
5647     something starting with __ and the normal name is an alias.  */
5648 #if defined __stub_shmat || defined __stub___shmat
5649 choke me
5650 #endif
5651
5652 int
5653 main ()
5654 {
5655 return shmat ();
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (ac_try="$ac_link"
5662 case "(($ac_try" in
5663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664   *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667   (eval "$ac_link") 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5675   { (case "(($ac_try" in
5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677   *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680   (eval "$ac_try") 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; } &&
5684          { ac_try='test -s conftest$ac_exeext'
5685   { (case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_try") 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; }; then
5694   ac_cv_func_shmat=yes
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699         ac_cv_func_shmat=no
5700 fi
5701
5702 rm -f core conftest.err conftest.$ac_objext \
5703       conftest$ac_exeext conftest.$ac_ext
5704 fi
5705 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5706 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5707
5708     if test $ac_cv_func_shmat = no; then
5709       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5710 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5711 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   ac_check_lib_save_LIBS=$LIBS
5715 LIBS="-lipc  $LIBS"
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722
5723 /* Override any GCC internal prototype to avoid an error.
5724    Use char because int might match the return type of a GCC
5725    builtin and then its argument prototype would still apply.  */
5726 #ifdef __cplusplus
5727 extern "C"
5728 #endif
5729 char shmat ();
5730 int
5731 main ()
5732 {
5733 return shmat ();
5734   ;
5735   return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (ac_try="$ac_link"
5740 case "(($ac_try" in
5741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742   *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745   (eval "$ac_link") 2>conftest.er1
5746   ac_status=$?
5747   grep -v '^ *+' conftest.er1 >conftest.err
5748   rm -f conftest.er1
5749   cat conftest.err >&5
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); } &&
5752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5753   { (case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_try") 2>&5
5759   ac_status=$?
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); }; } &&
5762          { ac_try='test -s conftest$ac_exeext'
5763   { (case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768   (eval "$ac_try") 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; }; then
5772   ac_cv_lib_ipc_shmat=yes
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777         ac_cv_lib_ipc_shmat=no
5778 fi
5779
5780 rm -f core conftest.err conftest.$ac_objext \
5781       conftest$ac_exeext conftest.$ac_ext
5782 LIBS=$ac_check_lib_save_LIBS
5783 fi
5784 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5785 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5786 if test $ac_cv_lib_ipc_shmat = yes; then
5787   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5788 fi
5789
5790     fi
5791   fi
5792
5793   # Check for libraries that X11R6 Xt/Xaw programs need.
5794   ac_save_LDFLAGS=$LDFLAGS
5795   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5796   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5797   # check for ICE first), but we must link in the order -lSM -lICE or
5798   # we get undefined symbols.  So assume we have SM if we have ICE.
5799   # These have to be linked with before -lX11, unlike the other
5800   # libraries we check for below, so use a different variable.
5801   # John Interrante, Karl Berry
5802   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5803 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5804 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   ac_check_lib_save_LIBS=$LIBS
5808 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h.  */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h.  */
5815
5816 /* Override any GCC internal prototype to avoid an error.
5817    Use char because int might match the return type of a GCC
5818    builtin and then its argument prototype would still apply.  */
5819 #ifdef __cplusplus
5820 extern "C"
5821 #endif
5822 char IceConnectionNumber ();
5823 int
5824 main ()
5825 {
5826 return IceConnectionNumber ();
5827   ;
5828   return 0;
5829 }
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5833 case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838   (eval "$ac_link") 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5846   { (case "(($ac_try" in
5847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848   *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851   (eval "$ac_try") 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; } &&
5855          { ac_try='test -s conftest$ac_exeext'
5856   { (case "(($ac_try" in
5857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858   *) ac_try_echo=$ac_try;;
5859 esac
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861   (eval "$ac_try") 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; }; then
5865   ac_cv_lib_ICE_IceConnectionNumber=yes
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870         ac_cv_lib_ICE_IceConnectionNumber=no
5871 fi
5872
5873 rm -f core conftest.err conftest.$ac_objext \
5874       conftest$ac_exeext conftest.$ac_ext
5875 LIBS=$ac_check_lib_save_LIBS
5876 fi
5877 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5878 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5879 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5880   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5881 fi
5882
5883   LDFLAGS=$ac_save_LDFLAGS
5884
5885 fi
5886
5887
5888
5889
5890
5891
5892   { echo "$as_me:$LINENO: checking for Qt" >&5
5893 echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
5894
5895
5896 # Check whether --with-Qt-dir was given.
5897 if test "${with_Qt_dir+set}" = set; then
5898   withval=$with_Qt_dir;
5899 fi
5900
5901
5902 # Check whether --with-Qt-include-dir was given.
5903 if test "${with_Qt_include_dir+set}" = set; then
5904   withval=$with_Qt_include_dir;
5905 fi
5906
5907
5908 # Check whether --with-Qt-bin-dir was given.
5909 if test "${with_Qt_bin_dir+set}" = set; then
5910   withval=$with_Qt_bin_dir;
5911 fi
5912
5913
5914 # Check whether --with-Qt-lib-dir was given.
5915 if test "${with_Qt_lib_dir+set}" = set; then
5916   withval=$with_Qt_lib_dir;
5917 fi
5918
5919
5920 # Check whether --with-Qt-lib was given.
5921 if test "${with_Qt_lib+set}" = set; then
5922   withval=$with_Qt_lib;
5923 fi
5924
5925   if test x"$with_Qt_dir" = x"no" ||
5926      test x"$with_Qt_include-dir" = x"no" ||
5927      test x"$with_Qt_bin_dir" = x"no" ||
5928      test x"$with_Qt_lib_dir" = x"no" ||
5929      test x"$with_Qt_lib" = x"no"; then
5930     # user disabled Qt. Leave cache alone.
5931     have_qt="User disabled Qt."
5932   else
5933     # "yes" is a bogus option
5934     if test x"$with_Qt_dir" = xyes; then
5935       with_Qt_dir=
5936     fi
5937     if test x"$with_Qt_include_dir" = xyes; then
5938       with_Qt_include_dir=
5939     fi
5940     if test x"$with_Qt_bin_dir" = xyes; then
5941       with_Qt_bin_dir=
5942     fi
5943     if test x"$with_Qt_lib_dir" = xyes; then
5944       with_Qt_lib_dir=
5945     fi
5946     if test x"$with_Qt_lib" = xyes; then
5947       with_Qt_lib=
5948     fi
5949     # No Qt unless we discover otherwise
5950     have_qt=no
5951     # Check whether we are requested to link with a specific version
5952     if test x"$with_Qt_lib" != x; then
5953       bnv_qt_lib="$with_Qt_lib"
5954     fi
5955     # Check whether we were supplied with an answer already
5956     if test x"$with_Qt_dir" != x; then
5957       have_qt=yes
5958       bnv_qt_dir="$with_Qt_dir"
5959       bnv_qt_include_dir="$with_Qt_dir/include"
5960       bnv_qt_bin_dir="$with_Qt_dir/bin"
5961       bnv_qt_lib_dir="$with_Qt_dir/lib"
5962       # Only search for the lib if the user did not define one already
5963       if test x"$bnv_qt_lib" = x; then
5964         bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
5965                      sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
5966       fi
5967       bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
5968     else
5969       # Use cached value or do search, starting with suggestions from
5970       # the command line
5971       if test "${bnv_cv_have_qt+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974
5975         # We are not given a solution and there is no cached value.
5976         bnv_qt_dir=NO
5977         bnv_qt_include_dir=NO
5978         bnv_qt_lib_dir=NO
5979         if test x"$bnv_qt_lib" = x; then
5980           bnv_qt_lib=NO
5981         fi
5982
5983   ## Binary utilities ##
5984   if test x"$with_Qt_bin_dir" != x; then
5985     bnv_qt_bin_dir=$with_Qt_bin_dir
5986   fi
5987   ## Look for header files ##
5988   if test x"$with_Qt_include_dir" != x; then
5989     bnv_qt_include_dir="$with_Qt_include_dir"
5990   else
5991     # The following header file is expected to define QT_VERSION.
5992     qt_direct_test_header=qglobal.h
5993     # Look for the header file in a standard set of common directories.
5994     bnv_include_path_list="
5995       /usr/include
5996       `ls -dr ${QTDIR}/include 2>/dev/null`
5997       `ls -dr /usr/include/qt* 2>/dev/null`
5998       `ls -dr /usr/lib/qt*/include 2>/dev/null`
5999       `ls -dr /usr/local/qt*/include 2>/dev/null`
6000       `ls -dr /opt/qt*/include 2>/dev/null`
6001       `ls -dr /Developer/qt*/include 2>/dev/null`
6002     "
6003     for bnv_dir in $bnv_include_path_list; do
6004       if test -r "$bnv_dir/$qt_direct_test_header"; then
6005         bnv_dirs="$bnv_dirs $bnv_dir"
6006       fi
6007     done
6008     # Now look for the newest in this list
6009     bnv_prev_ver=0
6010     for bnv_dir in $bnv_dirs; do
6011       bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//`
6012       if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then
6013         bnv_qt_include_dir=$bnv_dir
6014         bnv_prev_ver=$bnv_this_ver
6015       fi
6016     done
6017   fi
6018   # Are these headers located in a traditional Trolltech installation?
6019   # That would be $bnv_qt_include_dir stripped from its last element:
6020   bnv_possible_qt_dir=`dirname $bnv_qt_include_dir`
6021   if (test -x $bnv_possible_qt_dir/bin/moc) &&
6022      ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) ||
6023       (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then
6024     # Then the rest is a piece of cake
6025     bnv_qt_dir=$bnv_possible_qt_dir
6026     bnv_qt_bin_dir="$bnv_qt_dir/bin"
6027     if test x"$with_Qt_lib_dir" != x; then
6028       bnv_qt_lib_dir="$with_Qt_lib_dir"
6029     else
6030       if (test -d $bnv_qt_dir/lib64); then
6031         bnv_qt_lib_dir="$bnv_qt_dir/lib64"
6032       else
6033         bnv_qt_lib_dir="$bnv_qt_dir/lib"
6034       fi
6035     fi
6036     # Only look for lib if the user did not supply it already
6037     if test x"$bnv_qt_lib" = xNO; then
6038       bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
6039                    sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
6040     fi
6041     bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6042   else
6043     # There is no valid definition for $QTDIR as Trolltech likes to see it
6044     bnv_qt_dir=
6045     ## Look for Qt library ##
6046     if test x"$with_Qt_lib_dir" != x; then
6047       bnv_qt_lib_dir="$with_Qt_lib_dir"
6048       # Only look for lib if the user did not supply it already
6049       if test x"$bnv_qt_lib" = xNO; then
6050         bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
6051                      sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
6052       fi
6053       bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6054     else
6055       # Normally, when there is no traditional Trolltech installation,
6056       # the library is installed in a place where the linker finds it
6057       # automatically.
6058       # If the user did not define the library name, try with qt
6059       if test x"$bnv_qt_lib" = xNO; then
6060         bnv_qt_lib=qt
6061       fi
6062       qt_direct_test_header=qapplication.h
6063       qt_direct_test_main="
6064         int argc;
6065         char ** argv;
6066         QApplication app(argc,argv);
6067       "
6068       # See if we find the library without any special options.
6069       # Don't add top $LIBS permanently yet
6070       bnv_save_LIBS="$LIBS"
6071       LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6072       bnv_qt_LIBS="$LIBS"
6073       bnv_save_CXXFLAGS="$CXXFLAGS"
6074       CXXFLAGS="-I$bnv_qt_include_dir"
6075       cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h.  */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h.  */
6081 #include <$qt_direct_test_header>
6082 int
6083 main ()
6084 {
6085 $qt_direct_test_main
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097   (eval "$ac_link") 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } &&
6104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6105   { (case "(($ac_try" in
6106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107   *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110   (eval "$ac_try") 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (case "(($ac_try" in
6116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117   *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120   (eval "$ac_try") 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; }; then
6124
6125         # Success.
6126         # We can link with no special library directory.
6127         bnv_qt_lib_dir=
6128
6129 else
6130   echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133
6134         # That did not work. Try the multi-threaded version
6135         echo "Non-critical error, please neglect the above." >&5
6136         bnv_qt_lib=qt-mt
6137         LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6138         cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 #include <$qt_direct_test_header>
6145 int
6146 main ()
6147 {
6148 $qt_direct_test_main
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext conftest$ac_exeext
6154 if { (ac_try="$ac_link"
6155 case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160   (eval "$ac_link") 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } &&
6167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168   { (case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_try") 2>&5
6174   ac_status=$?
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); }; } &&
6177          { ac_try='test -s conftest$ac_exeext'
6178   { (case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_try") 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187
6188           # Success.
6189           # We can link with no special library directory.
6190           bnv_qt_lib_dir=
6191
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196
6197           # That did not work. Try the OpenGL version
6198           echo "Non-critical error, please neglect the above." >&5
6199           bnv_qt_lib=qt-gl
6200           LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6201           cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207 #include <$qt_direct_test_header>
6208 int
6209 main ()
6210 {
6211 $qt_direct_test_main
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6218 case "(($ac_try" in
6219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220   *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223   (eval "$ac_link") 2>conftest.er1
6224   ac_status=$?
6225   grep -v '^ *+' conftest.er1 >conftest.err
6226   rm -f conftest.er1
6227   cat conftest.err >&5
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); } &&
6230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6231   { (case "(($ac_try" in
6232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233   *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236   (eval "$ac_try") 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; } &&
6240          { ac_try='test -s conftest$ac_exeext'
6241   { (case "(($ac_try" in
6242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243   *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246   (eval "$ac_try") 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; }; then
6250
6251             # Success.
6252             # We can link with no special library directory.
6253             bnv_qt_lib_dir=
6254
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259
6260             # That did not work. Maybe a library version I don't know about?
6261             echo "Non-critical error, please neglect the above." >&5
6262             # Look for some Qt lib in a standard set of common directories.
6263             bnv_dir_list="
6264               `echo $bnv_qt_includes | sed ss/includess`
6265               /lib
6266               /usr/lib64
6267               /usr/lib
6268               /usr/local/lib64
6269               /usr/local/lib
6270               /opt/lib64
6271               /opt/lib
6272               `ls -dr /usr/lib64/qt* 2>/dev/null`
6273               `ls -dr /usr/lib64/qt*/lib64 2>/dev/null`
6274               `ls -dr /usr/lib/qt* 2>/dev/null`
6275               `ls -dr /usr/local/qt* 2>/dev/null`
6276               `ls -dr /opt/qt* 2>/dev/null`
6277             "
6278             for bnv_dir in $bnv_dir_list; do
6279               if ls $bnv_dir/libqt* >/dev/null 2>/dev/null; then
6280                 # Gamble that it's the first one...
6281                 bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p |
6282                             sed s@$bnv_dir/lib@@ | sed s/[.].*//`"
6283                 bnv_qt_lib_dir="$bnv_dir"
6284                 break
6285               fi
6286             done
6287             # Try with that one
6288             LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
6289             cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #include <$qt_direct_test_header>
6296 int
6297 main ()
6298 {
6299 $qt_direct_test_main
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (ac_try="$ac_link"
6306 case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_link") 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } &&
6318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6319   { (case "(($ac_try" in
6320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321   *) ac_try_echo=$ac_try;;
6322 esac
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324   (eval "$ac_try") 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); }; } &&
6328          { ac_try='test -s conftest$ac_exeext'
6329   { (case "(($ac_try" in
6330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331   *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334   (eval "$ac_try") 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; }; then
6338
6339               # Success.
6340               # We can link with no special library directory.
6341               bnv_qt_lib_dir=
6342
6343 else
6344   echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347
6348               # Leave bnv_qt_lib_dir defined
6349
6350 fi
6351
6352 rm -f core conftest.err conftest.$ac_objext \
6353       conftest$ac_exeext conftest.$ac_ext
6354
6355 fi
6356
6357 rm -f core conftest.err conftest.$ac_objext \
6358       conftest$ac_exeext conftest.$ac_ext
6359
6360 fi
6361
6362 rm -f core conftest.err conftest.$ac_objext \
6363       conftest$ac_exeext conftest.$ac_ext
6364
6365 fi
6366
6367 rm -f core conftest.err conftest.$ac_objext \
6368       conftest$ac_exeext conftest.$ac_ext
6369       if test x"$bnv_qt_lib_dir" != x; then
6370         bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS"
6371       else
6372         bnv_qt_LIBS="$LIBS"
6373       fi
6374       LIBS="$bnv_save_LIBS"
6375       CXXFLAGS="$bnv_save_CXXFLAGS"
6376     fi   fi
6377         if test "$bnv_qt_dir" = NO ||
6378            test "$bnv_qt_include_dir" = NO ||
6379            test "$bnv_qt_lib_dir" = NO ||
6380            test "$bnv_qt_lib" = NO; then
6381           # Problem with finding complete Qt.  Cache the known absence of Qt.
6382           bnv_cv_have_qt="have_qt=no"
6383         else
6384           # Record where we found Qt for the cache.
6385           bnv_cv_have_qt="have_qt=yes                  \
6386                        bnv_qt_dir=$bnv_qt_dir          \
6387                bnv_qt_include_dir=$bnv_qt_include_dir  \
6388                    bnv_qt_bin_dir=$bnv_qt_bin_dir      \
6389                       bnv_qt_LIBS=\"$bnv_qt_LIBS\""
6390         fi
6391
6392 fi
6393       eval "$bnv_cv_have_qt"
6394     fi # all $bnv_qt_* are set
6395   fi   # $have_qt reflects the system status
6396   if test x"$have_qt" = xyes; then
6397     QT_CXXFLAGS="-I$bnv_qt_include_dir"
6398     if test x"$bnv_qt_lib" = xqt-mt; then
6399         QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT"
6400     fi
6401     QT_DIR="$bnv_qt_dir"
6402     QT_LIBS="$bnv_qt_LIBS"
6403     # If bnv_qt_dir is defined, utilities are expected to be in the
6404     # bin subdirectory
6405     if test x"$bnv_qt_dir" != x; then
6406         if test -x "$bnv_qt_dir/bin/uic"; then
6407           QT_UIC="$bnv_qt_dir/bin/uic"
6408         else
6409           # Old versions of Qt don't have uic
6410           QT_UIC=
6411         fi
6412       QT_MOC="$bnv_qt_dir/bin/moc"
6413     else
6414       # Or maybe we are told where to look for the utilities
6415       if test x"$bnv_qt_bin_dir" != x; then
6416         if test -x "$bnv_qt_bin_dir/uic"; then
6417           QT_UIC="$bnv_qt_bin_dir/uic"
6418         else
6419           # Old versions of Qt don't have uic
6420           QT_UIC=
6421         fi
6422         QT_MOC="$bnv_qt_bin_dir/moc"
6423       else
6424       # Last possibility is that they are in $PATH
6425         QT_UIC="`which uic`"
6426         QT_MOC="`which moc`"
6427       fi
6428     fi
6429     # All variables are defined, report the result
6430     { echo "$as_me:$LINENO: result: $have_qt:
6431     QT_CXXFLAGS=$QT_CXXFLAGS
6432     QT_DIR=$QT_DIR
6433     QT_LIBS=$QT_LIBS
6434     QT_UIC=$QT_UIC
6435     QT_MOC=$QT_MOC" >&5
6436 echo "${ECHO_T}$have_qt:
6437     QT_CXXFLAGS=$QT_CXXFLAGS
6438     QT_DIR=$QT_DIR
6439     QT_LIBS=$QT_LIBS
6440     QT_UIC=$QT_UIC
6441     QT_MOC=$QT_MOC" >&6; }
6442   else
6443     # Qt was not found
6444     QT_CXXFLAGS=
6445     QT_DIR=
6446     QT_LIBS=
6447     QT_UIC=
6448     QT_MOC=
6449     { echo "$as_me:$LINENO: result: $have_qt" >&5
6450 echo "${ECHO_T}$have_qt" >&6; }
6451   fi
6452
6453
6454
6455
6456
6457
6458   #### Being paranoid:
6459   if test x"$have_qt" = xyes; then
6460     { echo "$as_me:$LINENO: checking correct functioning of Qt installation" >&5
6461 echo $ECHO_N "checking correct functioning of Qt installation... $ECHO_C" >&6; }
6462     if test "${bnv_cv_qt_test_result+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465
6466       cat > bnv_qt_test.h << EOF
6467 #include <qobject.h>
6468 class Test : public QObject
6469 {
6470 Q_OBJECT
6471 public:
6472   Test() {}
6473   ~Test() {}
6474 public slots:
6475   void receive() {}
6476 signals:
6477   void send();
6478 };
6479 EOF
6480
6481       cat > bnv_qt_main.$ac_ext << EOF
6482 #include "bnv_qt_test.h"
6483 #include <qapplication.h>
6484 int main( int argc, char **argv )
6485 {
6486   QApplication app( argc, argv );
6487   Test t;
6488   QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) );
6489 }
6490 EOF
6491
6492       bnv_cv_qt_test_result="failure"
6493       bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
6494       { (eval echo "$as_me:$LINENO: \"$bnv_try_1\"") >&5
6495   (eval $bnv_try_1) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }
6499       if test x"$ac_status" != x0; then
6500         echo "$bnv_err_1" >&5
6501         echo "configure: could not run $QT_MOC on:" >&5
6502         cat bnv_qt_test.h >&5
6503       else
6504         bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
6505         { (eval echo "$as_me:$LINENO: \"$bnv_try_2\"") >&5
6506   (eval $bnv_try_2) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }
6510         if test x"$ac_status" != x0; then
6511           echo "$bnv_err_2" >&5
6512           echo "configure: could not compile:" >&5
6513           cat moc_bnv_qt_test.$ac_ext >&5
6514         else
6515           bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null"
6516           { (eval echo "$as_me:$LINENO: \"$bnv_try_3\"") >&5
6517   (eval $bnv_try_3) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }
6521           if test x"$ac_status" != x0; then
6522             echo "$bnv_err_3" >&5
6523             echo "configure: could not compile:" >&5
6524             cat bnv_qt_main.$ac_ext >&5
6525           else
6526             bnv_try_4="$CXX $QT_LIBS $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o >/dev/null 2>/dev/null"
6527             { (eval echo "$as_me:$LINENO: \"$bnv_try_4\"") >&5
6528   (eval $bnv_try_4) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }
6532             if test x"$ac_status" != x0; then
6533               echo "$bnv_err_4" >&5
6534             else
6535               bnv_cv_qt_test_result="success"
6536             fi
6537           fi
6538         fi
6539       fi
6540
6541 fi
6542     { echo "$as_me:$LINENO: result: $bnv_cv_qt_test_result" >&5
6543 echo "${ECHO_T}$bnv_cv_qt_test_result" >&6; };
6544     if test x"$bnv_cv_qt_test_result" = "xfailure"; then
6545       { { echo "$as_me:$LINENO: error: Failed to find matching components of a complete
6546                   Qt installation. Try using more options,
6547                   see ./configure --help." >&5
6548 echo "$as_me: error: Failed to find matching components of a complete
6549                   Qt installation. Try using more options,
6550                   see ./configure --help." >&2;}
6551    { (exit 1); exit 1; }; }
6552     fi
6553
6554     rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \
6555           bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main
6556   fi
6557
6558 if test "x$have_qt" = "xno"
6559 then
6560         { { echo "$as_me:$LINENO: error: \"Qt library is required to compile QComicBook!\"" >&5
6561 echo "$as_me: error: \"Qt library is required to compile QComicBook!\"" >&2;}
6562    { (exit 1); exit 1; }; }
6563 fi
6564
6565 #
6566 # custom test for correct Qt version
6567 ac_ext=cpp
6568 ac_cpp='$CXXCPP $CPPFLAGS'
6569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6572
6573 #save_CPPFLAGS="$CPPFLAGS"
6574 #CPPFLAGS="$CPPFLAGS $QT_CXXFLAGS $QT_LIBS"
6575 #AC_MSG_CHECKING([for correct version of Qt (>=3.3.1)])
6576 #AC_RUN_IFELSE(
6577 #             [AC_LANG_PROGRAM([[#include <qglobal.h> #include <stdlib.h>]],[[exit(QT_VERSION<0x030301);]])],
6578 #             [AC_MSG_RESULT(yes)], [AC_MSG_ERROR(Too old!)],[])
6579 #CPPFLAGS="$save_CPPFLAGS"
6580
6581
6582
6583 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6584         if test -n "$ac_tool_prefix"; then
6585   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   case $PKG_CONFIG in
6593   [\\/]* | ?:[\\/]*)
6594   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6595   ;;
6596   *)
6597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602   for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612   ;;
6613 esac
6614 fi
6615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6616 if test -n "$PKG_CONFIG"; then
6617   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6618 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6619 else
6620   { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6622 fi
6623
6624
6625 fi
6626 if test -z "$ac_cv_path_PKG_CONFIG"; then
6627   ac_pt_PKG_CONFIG=$PKG_CONFIG
6628   # Extract the first word of "pkg-config", so it can be a program name with args.
6629 set dummy pkg-config; ac_word=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   case $ac_pt_PKG_CONFIG in
6636   [\\/]* | ?:[\\/]*)
6637   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6638   ;;
6639   *)
6640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645   for ac_exec_ext in '' $ac_executable_extensions; do
6646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6647     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655   ;;
6656 esac
6657 fi
6658 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6659 if test -n "$ac_pt_PKG_CONFIG"; then
6660   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6661 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6662 else
6663   { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666
6667   if test "x$ac_pt_PKG_CONFIG" = x; then
6668     PKG_CONFIG=""
6669   else
6670     case $cross_compiling:$ac_tool_warned in
6671 yes:)
6672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6673 whose name does not start with the host triplet.  If you think this
6674 configuration is useful to you, please write to autoconf@gnu.org." >&5
6675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet.  If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680     PKG_CONFIG=$ac_pt_PKG_CONFIG
6681   fi
6682 else
6683   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6684 fi
6685
6686 fi
6687 if test -n "$PKG_CONFIG"; then
6688         _pkg_min_version=0.9.0
6689         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6690 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6691         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6692                 { echo "$as_me:$LINENO: result: yes" >&5
6693 echo "${ECHO_T}yes" >&6; }
6694         else
6695                 { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6697                 PKG_CONFIG=""
6698         fi
6699
6700 fi
6701
6702 pkg_failed=no
6703 { echo "$as_me:$LINENO: checking for Imlib2" >&5
6704 echo $ECHO_N "checking for Imlib2... $ECHO_C" >&6; }
6705
6706 if test -n "$PKG_CONFIG"; then
6707     if test -n "$Imlib2_CFLAGS"; then
6708         pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
6709     else
6710         if test -n "$PKG_CONFIG" && \
6711     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
6712   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); }; then
6716   pkg_cv_Imlib2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
6717 else
6718   pkg_failed=yes
6719 fi
6720     fi
6721 else
6722         pkg_failed=untried
6723 fi
6724 if test -n "$PKG_CONFIG"; then
6725     if test -n "$Imlib2_LIBS"; then
6726         pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
6727     else
6728         if test -n "$PKG_CONFIG" && \
6729     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
6730   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; then
6734   pkg_cv_Imlib2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
6735 else
6736   pkg_failed=yes
6737 fi
6738     fi
6739 else
6740         pkg_failed=untried
6741 fi
6742
6743
6744
6745 if test $pkg_failed = yes; then
6746
6747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6748         _pkg_short_errors_supported=yes
6749 else
6750         _pkg_short_errors_supported=no
6751 fi
6752         if test $_pkg_short_errors_supported = yes; then
6753                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
6754         else
6755                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
6756         fi
6757         # Put the nasty error message in config.log where it belongs
6758         echo "$Imlib2_PKG_ERRORS" >&5
6759
6760         ac_imlib=no
6761 elif test $pkg_failed = untried; then
6762         ac_imlib=no
6763 else
6764         Imlib2_CFLAGS=$pkg_cv_Imlib2_CFLAGS
6765         Imlib2_LIBS=$pkg_cv_Imlib2_LIBS
6766         { echo "$as_me:$LINENO: result: yes" >&5
6767 echo "${ECHO_T}yes" >&6; }
6768         ac_imlib=yes
6769 fi
6770 if test "x$ac_imlib" = "xno"
6771 then
6772         { { echo "$as_me:$LINENO: error: \"Imlib2 not found!\"" >&5
6773 echo "$as_me: error: \"Imlib2 not found!\"" >&2;}
6774    { (exit 1); exit 1; }; }
6775 fi
6776
6777
6778
6779 ac_config_files="$ac_config_files Makefile src/Makefile icons/Makefile help/Makefile help/en/Makefile"
6780
6781 cat >confcache <<\_ACEOF
6782 # This file is a shell script that caches the results of configure
6783 # tests run on this system so they can be shared between configure
6784 # scripts and configure runs, see configure's option --config-cache.
6785 # It is not useful on other systems.  If it contains results you don't
6786 # want to keep, you may remove or edit it.
6787 #
6788 # config.status only pays attention to the cache file if you give it
6789 # the --recheck option to rerun configure.
6790 #
6791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6793 # following values.
6794
6795 _ACEOF
6796
6797 # The following way of writing the cache mishandles newlines in values,
6798 # but we know of no workaround that is simple, portable, and efficient.
6799 # So, we kill variables containing newlines.
6800 # Ultrix sh set writes to stderr and can't be redirected directly,
6801 # and sets the high bit in the cache file unless we assign to the vars.
6802 (
6803   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6804     eval ac_val=\$$ac_var
6805     case $ac_val in #(
6806     *${as_nl}*)
6807       case $ac_var in #(
6808       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6810       esac
6811       case $ac_var in #(
6812       _ | IFS | as_nl) ;; #(
6813       *) $as_unset $ac_var ;;
6814       esac ;;
6815     esac
6816   done
6817
6818   (set) 2>&1 |
6819     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6820     *${as_nl}ac_space=\ *)
6821       # `set' does not quote correctly, so add quotes (double-quote
6822       # substitution turns \\\\ into \\, and sed turns \\ into \).
6823       sed -n \
6824         "s/'/'\\\\''/g;
6825           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6826       ;; #(
6827     *)
6828       # `set' quotes correctly as required by POSIX, so do not add quotes.
6829       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6830       ;;
6831     esac |
6832     sort
6833 ) |
6834   sed '
6835      /^ac_cv_env_/b end
6836      t clear
6837      :clear
6838      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6839      t end
6840      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6841      :end' >>confcache
6842 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6843   if test -w "$cache_file"; then
6844     test "x$cache_file" != "x/dev/null" &&
6845       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6846 echo "$as_me: updating cache $cache_file" >&6;}
6847     cat confcache >$cache_file
6848   else
6849     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6850 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6851   fi
6852 fi
6853 rm -f confcache
6854
6855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6856 # Let make expand exec_prefix.
6857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6858
6859 DEFS=-DHAVE_CONFIG_H
6860
6861 ac_libobjs=
6862 ac_ltlibobjs=
6863 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6864   # 1. Remove the extension, and $U if already installed.
6865   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6866   ac_i=`echo "$ac_i" | sed "$ac_script"`
6867   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6868   #    will be set to the directory where LIBOBJS objects are built.
6869   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6870   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6871 done
6872 LIBOBJS=$ac_libobjs
6873
6874 LTLIBOBJS=$ac_ltlibobjs
6875
6876
6877 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6878   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6879 Usually this means the macro was only invoked conditionally." >&5
6880 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6881 Usually this means the macro was only invoked conditionally." >&2;}
6882    { (exit 1); exit 1; }; }
6883 fi
6884 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6885   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6886 Usually this means the macro was only invoked conditionally." >&5
6887 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6888 Usually this means the macro was only invoked conditionally." >&2;}
6889    { (exit 1); exit 1; }; }
6890 fi
6891 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6892   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6893 Usually this means the macro was only invoked conditionally." >&5
6894 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6895 Usually this means the macro was only invoked conditionally." >&2;}
6896    { (exit 1); exit 1; }; }
6897 fi
6898
6899 : ${CONFIG_STATUS=./config.status}
6900 ac_clean_files_save=$ac_clean_files
6901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6902 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6903 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6904 cat >$CONFIG_STATUS <<_ACEOF
6905 #! $SHELL
6906 # Generated by $as_me.
6907 # Run this file to recreate the current configuration.
6908 # Compiler output produced by configure, useful for debugging
6909 # configure, is in config.log if it exists.
6910
6911 debug=false
6912 ac_cs_recheck=false
6913 ac_cs_silent=false
6914 SHELL=\${CONFIG_SHELL-$SHELL}
6915 _ACEOF
6916
6917 cat >>$CONFIG_STATUS <<\_ACEOF
6918 ## --------------------- ##
6919 ## M4sh Initialization.  ##
6920 ## --------------------- ##
6921
6922 # Be Bourne compatible
6923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6924   emulate sh
6925   NULLCMD=:
6926   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6927   # is contrary to our usage.  Disable this feature.
6928   alias -g '${1+"$@"}'='"$@"'
6929   setopt NO_GLOB_SUBST
6930 else
6931   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6932 fi
6933 BIN_SH=xpg4; export BIN_SH # for Tru64
6934 DUALCASE=1; export DUALCASE # for MKS sh
6935
6936
6937 # PATH needs CR
6938 # Avoid depending upon Character Ranges.
6939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6942 as_cr_digits='0123456789'
6943 as_cr_alnum=$as_cr_Letters$as_cr_digits
6944
6945 # The user is always right.
6946 if test "${PATH_SEPARATOR+set}" != set; then
6947   echo "#! /bin/sh" >conf$$.sh
6948   echo  "exit 0"   >>conf$$.sh
6949   chmod +x conf$$.sh
6950   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6951     PATH_SEPARATOR=';'
6952   else
6953     PATH_SEPARATOR=:
6954   fi
6955   rm -f conf$$.sh
6956 fi
6957
6958 # Support unset when possible.
6959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6960   as_unset=unset
6961 else
6962   as_unset=false
6963 fi
6964
6965
6966 # IFS
6967 # We need space, tab and new line, in precisely that order.  Quoting is
6968 # there to prevent editors from complaining about space-tab.
6969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6970 # splitting by setting IFS to empty value.)
6971 as_nl='
6972 '
6973 IFS=" ""        $as_nl"
6974
6975 # Find who we are.  Look in the path if we contain no directory separator.
6976 case $0 in
6977   *[\\/]* ) as_myself=$0 ;;
6978   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6984 done
6985 IFS=$as_save_IFS
6986
6987      ;;
6988 esac
6989 # We did not find ourselves, most probably we were run as `sh COMMAND'
6990 # in which case we are not to be found in the path.
6991 if test "x$as_myself" = x; then
6992   as_myself=$0
6993 fi
6994 if test ! -f "$as_myself"; then
6995   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6996   { (exit 1); exit 1; }
6997 fi
6998
6999 # Work around bugs in pre-3.0 UWIN ksh.
7000 for as_var in ENV MAIL MAILPATH
7001 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7002 done
7003 PS1='$ '
7004 PS2='> '
7005 PS4='+ '
7006
7007 # NLS nuisances.
7008 for as_var in \
7009   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7010   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7011   LC_TELEPHONE LC_TIME
7012 do
7013   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7014     eval $as_var=C; export $as_var
7015   else
7016     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7017   fi
7018 done
7019
7020 # Required to use basename.
7021 if expr a : '\(a\)' >/dev/null 2>&1 &&
7022    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7023   as_expr=expr
7024 else
7025   as_expr=false
7026 fi
7027
7028 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7029   as_basename=basename
7030 else
7031   as_basename=false
7032 fi
7033
7034
7035 # Name of the executable.
7036 as_me=`$as_basename -- "$0" ||
7037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7038          X"$0" : 'X\(//\)$' \| \
7039          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7040 echo X/"$0" |
7041     sed '/^.*\/\([^/][^/]*\)\/*$/{
7042             s//\1/
7043             q
7044           }
7045           /^X\/\(\/\/\)$/{
7046             s//\1/
7047             q
7048           }
7049           /^X\/\(\/\).*/{
7050             s//\1/
7051             q
7052           }
7053           s/.*/./; q'`
7054
7055 # CDPATH.
7056 $as_unset CDPATH
7057
7058
7059
7060   as_lineno_1=$LINENO
7061   as_lineno_2=$LINENO
7062   test "x$as_lineno_1" != "x$as_lineno_2" &&
7063   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7064
7065   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7066   # uniformly replaced by the line number.  The first 'sed' inserts a
7067   # line-number line after each line using $LINENO; the second 'sed'
7068   # does the real work.  The second script uses 'N' to pair each
7069   # line-number line with the line containing $LINENO, and appends
7070   # trailing '-' during substitution so that $LINENO is not a special
7071   # case at line end.
7072   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7073   # scripts with optimization help from Paolo Bonzini.  Blame Lee
7074   # E. McMahon (1931-1989) for sed's syntax.  :-)
7075   sed -n '
7076     p
7077     /[$]LINENO/=
7078   ' <$as_myself |
7079     sed '
7080       s/[$]LINENO.*/&-/
7081       t lineno
7082       b
7083       :lineno
7084       N
7085       :loop
7086       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7087       t loop
7088       s/-\n.*//
7089     ' >$as_me.lineno &&
7090   chmod +x "$as_me.lineno" ||
7091     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7092    { (exit 1); exit 1; }; }
7093
7094   # Don't try to exec as it changes $[0], causing all sort of problems
7095   # (the dirname of $[0] is not the place where we might find the
7096   # original and so on.  Autoconf is especially sensitive to this).
7097   . "./$as_me.lineno"
7098   # Exit status is that of the last command.
7099   exit
7100 }
7101
7102
7103 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7104   as_dirname=dirname
7105 else
7106   as_dirname=false
7107 fi
7108
7109 ECHO_C= ECHO_N= ECHO_T=
7110 case `echo -n x` in
7111 -n*)
7112   case `echo 'x\c'` in
7113   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7114   *)   ECHO_C='\c';;
7115   esac;;
7116 *)
7117   ECHO_N='-n';;
7118 esac
7119
7120 if expr a : '\(a\)' >/dev/null 2>&1 &&
7121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7122   as_expr=expr
7123 else
7124   as_expr=false
7125 fi
7126
7127 rm -f conf$$ conf$$.exe conf$$.file
7128 if test -d conf$$.dir; then
7129   rm -f conf$$.dir/conf$$.file
7130 else
7131   rm -f conf$$.dir
7132   mkdir conf$$.dir
7133 fi
7134 echo >conf$$.file
7135 if ln -s conf$$.file conf$$ 2>/dev/null; then
7136   as_ln_s='ln -s'
7137   # ... but there are two gotchas:
7138   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7139   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7140   # In both cases, we have to default to `cp -p'.
7141   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7142     as_ln_s='cp -p'
7143 elif ln conf$$.file conf$$ 2>/dev/null; then
7144   as_ln_s=ln
7145 else
7146   as_ln_s='cp -p'
7147 fi
7148 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7149 rmdir conf$$.dir 2>/dev/null
7150
7151 if mkdir -p . 2>/dev/null; then
7152   as_mkdir_p=:
7153 else
7154   test -d ./-p && rmdir ./-p
7155   as_mkdir_p=false
7156 fi
7157
7158 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
7159 # systems may use methods other than mode bits to determine executability.
7160 cat >conf$$.file <<_ASEOF
7161 #! /bin/sh
7162 exit 0
7163 _ASEOF
7164 chmod +x conf$$.file
7165 if test -x conf$$.file >/dev/null 2>&1; then
7166   as_executable_p="test -x"
7167 else
7168   as_executable_p=:
7169 fi
7170 rm -f conf$$.file
7171
7172 # Sed expression to map a string onto a valid CPP name.
7173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7174
7175 # Sed expression to map a string onto a valid variable name.
7176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7177
7178
7179 exec 6>&1
7180
7181 # Save the log message, to keep $[0] and so on meaningful, and to
7182 # report actual input values of CONFIG_FILES etc. instead of their
7183 # values after options handling.
7184 ac_log="
7185 This file was extended by QComicBook $as_me 0.3.4, which was
7186 generated by GNU Autoconf 2.60.  Invocation command line was
7187
7188   CONFIG_FILES    = $CONFIG_FILES
7189   CONFIG_HEADERS  = $CONFIG_HEADERS
7190   CONFIG_LINKS    = $CONFIG_LINKS
7191   CONFIG_COMMANDS = $CONFIG_COMMANDS
7192   $ $0 $@
7193
7194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7195 "
7196
7197 _ACEOF
7198
7199 cat >>$CONFIG_STATUS <<_ACEOF
7200 # Files that config.status was made for.
7201 config_files="$ac_config_files"
7202 config_headers="$ac_config_headers"
7203 config_commands="$ac_config_commands"
7204
7205 _ACEOF
7206
7207 cat >>$CONFIG_STATUS <<\_ACEOF
7208 ac_cs_usage="\
7209 \`$as_me' instantiates files from templates according to the
7210 current configuration.
7211
7212 Usage: $0 [OPTIONS] [FILE]...
7213
7214   -h, --help       print this help, then exit
7215   -V, --version    print version number, then exit
7216   -q, --quiet      do not print progress messages
7217   -d, --debug      don't remove temporary files
7218       --recheck    update $as_me by reconfiguring in the same conditions
7219   --file=FILE[:TEMPLATE]
7220                    instantiate the configuration file FILE
7221   --header=FILE[:TEMPLATE]
7222                    instantiate the configuration header FILE
7223
7224 Configuration files:
7225 $config_files
7226
7227 Configuration headers:
7228 $config_headers
7229
7230 Configuration commands:
7231 $config_commands
7232
7233 Report bugs to <bug-autoconf@gnu.org>."
7234
7235 _ACEOF
7236 cat >>$CONFIG_STATUS <<_ACEOF
7237 ac_cs_version="\\
7238 QComicBook config.status 0.3.4
7239 configured by $0, generated by GNU Autoconf 2.60,
7240   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7241
7242 Copyright (C) 2006 Free Software Foundation, Inc.
7243 This config.status script is free software; the Free Software Foundation
7244 gives unlimited permission to copy, distribute and modify it."
7245
7246 ac_pwd='$ac_pwd'
7247 srcdir='$srcdir'
7248 INSTALL='$INSTALL'
7249 _ACEOF
7250
7251 cat >>$CONFIG_STATUS <<\_ACEOF
7252 # If no file are specified by the user, then we need to provide default
7253 # value.  By we need to know if files were specified by the user.
7254 ac_need_defaults=:
7255 while test $# != 0
7256 do
7257   case $1 in
7258   --*=*)
7259     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7260     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7261     ac_shift=:
7262     ;;
7263   *)
7264     ac_option=$1
7265     ac_optarg=$2
7266     ac_shift=shift
7267     ;;
7268   esac
7269
7270   case $ac_option in
7271   # Handling of the options.
7272   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7273     ac_cs_recheck=: ;;
7274   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7275     echo "$ac_cs_version"; exit ;;
7276   --debug | --debu | --deb | --de | --d | -d )
7277     debug=: ;;
7278   --file | --fil | --fi | --f )
7279     $ac_shift
7280     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7281     ac_need_defaults=false;;
7282   --header | --heade | --head | --hea )
7283     $ac_shift
7284     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7285     ac_need_defaults=false;;
7286   --he | --h)
7287     # Conflict between --help and --header
7288     { echo "$as_me: error: ambiguous option: $1
7289 Try \`$0 --help' for more information." >&2
7290    { (exit 1); exit 1; }; };;
7291   --help | --hel | -h )
7292     echo "$ac_cs_usage"; exit ;;
7293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7294   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7295     ac_cs_silent=: ;;
7296
7297   # This is an error.
7298   -*) { echo "$as_me: error: unrecognized option: $1
7299 Try \`$0 --help' for more information." >&2
7300    { (exit 1); exit 1; }; } ;;
7301
7302   *) ac_config_targets="$ac_config_targets $1"
7303      ac_need_defaults=false ;;
7304
7305   esac
7306   shift
7307 done
7308
7309 ac_configure_extra_args=
7310
7311 if $ac_cs_silent; then
7312   exec 6>/dev/null
7313   ac_configure_extra_args="$ac_configure_extra_args --silent"
7314 fi
7315
7316 _ACEOF
7317 cat >>$CONFIG_STATUS <<_ACEOF
7318 if \$ac_cs_recheck; then
7319   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7320   CONFIG_SHELL=$SHELL
7321   export CONFIG_SHELL
7322   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7323 fi
7324
7325 _ACEOF
7326 cat >>$CONFIG_STATUS <<\_ACEOF
7327 exec 5>>config.log
7328 {
7329   echo
7330   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7331 ## Running $as_me. ##
7332 _ASBOX
7333   echo "$ac_log"
7334 } >&5
7335
7336 _ACEOF
7337 cat >>$CONFIG_STATUS <<_ACEOF
7338 #
7339 # INIT-COMMANDS
7340 #
7341 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7342
7343 _ACEOF
7344
7345 cat >>$CONFIG_STATUS <<\_ACEOF
7346
7347 # Handling of arguments.
7348 for ac_config_target in $ac_config_targets
7349 do
7350   case $ac_config_target in
7351     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7352     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7353     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7354     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7355     "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
7356     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
7357     "help/en/Makefile") CONFIG_FILES="$CONFIG_FILES help/en/Makefile" ;;
7358
7359   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7360 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7361    { (exit 1); exit 1; }; };;
7362   esac
7363 done
7364
7365
7366 # If the user did not use the arguments to specify the items to instantiate,
7367 # then the envvar interface is used.  Set only those that are not.
7368 # We use the long form for the default assignment because of an extremely
7369 # bizarre bug on SunOS 4.1.3.
7370 if $ac_need_defaults; then
7371   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7372   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7373   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7374 fi
7375
7376 # Have a temporary directory for convenience.  Make it in the build tree
7377 # simply because there is no reason against having it here, and in addition,
7378 # creating and moving files from /tmp can sometimes cause problems.
7379 # Hook for its removal unless debugging.
7380 # Note that there is a small window in which the directory will not be cleaned:
7381 # after its creation but before its name has been assigned to `$tmp'.
7382 $debug ||
7383 {
7384   tmp=
7385   trap 'exit_status=$?
7386   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7387 ' 0
7388   trap '{ (exit 1); exit 1; }' 1 2 13 15
7389 }
7390 # Create a (secure) tmp directory for tmp files.
7391
7392 {
7393   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7394   test -n "$tmp" && test -d "$tmp"
7395 }  ||
7396 {
7397   tmp=./conf$$-$RANDOM
7398   (umask 077 && mkdir "$tmp")
7399 } ||
7400 {
7401    echo "$me: cannot create a temporary directory in ." >&2
7402    { (exit 1); exit 1; }
7403 }
7404
7405 #
7406 # Set up the sed scripts for CONFIG_FILES section.
7407 #
7408
7409 # No need to generate the scripts if there are no CONFIG_FILES.
7410 # This happens for instance when ./config.status config.h
7411 if test -n "$CONFIG_FILES"; then
7412
7413 _ACEOF
7414
7415
7416
7417 ac_delim='%!_!# '
7418 for ac_last_try in false false false false false :; do
7419   cat >conf$$subs.sed <<_ACEOF
7420 SHELL!$SHELL$ac_delim
7421 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7422 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7423 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7424 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7425 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7426 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7427 exec_prefix!$exec_prefix$ac_delim
7428 prefix!$prefix$ac_delim
7429 program_transform_name!$program_transform_name$ac_delim
7430 bindir!$bindir$ac_delim
7431 sbindir!$sbindir$ac_delim
7432 libexecdir!$libexecdir$ac_delim
7433 datarootdir!$datarootdir$ac_delim
7434 datadir!$datadir$ac_delim
7435 sysconfdir!$sysconfdir$ac_delim
7436 sharedstatedir!$sharedstatedir$ac_delim
7437 localstatedir!$localstatedir$ac_delim
7438 includedir!$includedir$ac_delim
7439 oldincludedir!$oldincludedir$ac_delim
7440 docdir!$docdir$ac_delim
7441 infodir!$infodir$ac_delim
7442 htmldir!$htmldir$ac_delim
7443 dvidir!$dvidir$ac_delim
7444 pdfdir!$pdfdir$ac_delim
7445 psdir!$psdir$ac_delim
7446 libdir!$libdir$ac_delim
7447 localedir!$localedir$ac_delim
7448 mandir!$mandir$ac_delim
7449 DEFS!$DEFS$ac_delim
7450 ECHO_C!$ECHO_C$ac_delim
7451 ECHO_N!$ECHO_N$ac_delim
7452 ECHO_T!$ECHO_T$ac_delim
7453 LIBS!$LIBS$ac_delim
7454 build_alias!$build_alias$ac_delim
7455 host_alias!$host_alias$ac_delim
7456 target_alias!$target_alias$ac_delim
7457 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7458 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7459 INSTALL_DATA!$INSTALL_DATA$ac_delim
7460 CYGPATH_W!$CYGPATH_W$ac_delim
7461 PACKAGE!$PACKAGE$ac_delim
7462 VERSION!$VERSION$ac_delim
7463 ACLOCAL!$ACLOCAL$ac_delim
7464 AUTOCONF!$AUTOCONF$ac_delim
7465 AUTOMAKE!$AUTOMAKE$ac_delim
7466 AUTOHEADER!$AUTOHEADER$ac_delim
7467 MAKEINFO!$MAKEINFO$ac_delim
7468 install_sh!$install_sh$ac_delim
7469 STRIP!$STRIP$ac_delim
7470 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7471 mkdir_p!$mkdir_p$ac_delim
7472 AWK!$AWK$ac_delim
7473 SET_MAKE!$SET_MAKE$ac_delim
7474 am__leading_dot!$am__leading_dot$ac_delim
7475 AMTAR!$AMTAR$ac_delim
7476 am__tar!$am__tar$ac_delim
7477 am__untar!$am__untar$ac_delim
7478 CXX!$CXX$ac_delim
7479 CXXFLAGS!$CXXFLAGS$ac_delim
7480 LDFLAGS!$LDFLAGS$ac_delim
7481 CPPFLAGS!$CPPFLAGS$ac_delim
7482 ac_ct_CXX!$ac_ct_CXX$ac_delim
7483 EXEEXT!$EXEEXT$ac_delim
7484 OBJEXT!$OBJEXT$ac_delim
7485 DEPDIR!$DEPDIR$ac_delim
7486 am__include!$am__include$ac_delim
7487 am__quote!$am__quote$ac_delim
7488 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7489 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7490 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7491 CXXDEPMODE!$CXXDEPMODE$ac_delim
7492 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7493 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7494 CC!$CC$ac_delim
7495 CFLAGS!$CFLAGS$ac_delim
7496 ac_ct_CC!$ac_ct_CC$ac_delim
7497 CCDEPMODE!$CCDEPMODE$ac_delim
7498 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7499 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7500 XMKMF!$XMKMF$ac_delim
7501 CPP!$CPP$ac_delim
7502 X_CFLAGS!$X_CFLAGS$ac_delim
7503 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
7504 X_LIBS!$X_LIBS$ac_delim
7505 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
7506 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
7507 QT_DIR!$QT_DIR$ac_delim
7508 QT_LIBS!$QT_LIBS$ac_delim
7509 QT_UIC!$QT_UIC$ac_delim
7510 QT_MOC!$QT_MOC$ac_delim
7511 PKG_CONFIG!$PKG_CONFIG$ac_delim
7512 Imlib2_CFLAGS!$Imlib2_CFLAGS$ac_delim
7513 Imlib2_LIBS!$Imlib2_LIBS$ac_delim
7514 LIBOBJS!$LIBOBJS$ac_delim
7515 LTLIBOBJS!$LTLIBOBJS$ac_delim
7516 _ACEOF
7517
7518   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
7519     break
7520   elif $ac_last_try; then
7521     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7522 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7523    { (exit 1); exit 1; }; }
7524   else
7525     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7526   fi
7527 done
7528
7529 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7530 if test -n "$ac_eof"; then
7531   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7532   ac_eof=`expr $ac_eof + 1`
7533 fi
7534
7535 cat >>$CONFIG_STATUS <<_ACEOF
7536 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7538 _ACEOF
7539 sed '
7540 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7541 s/^/s,@/; s/!/@,|#_!!_#|/
7542 :n
7543 t n
7544 s/'"$ac_delim"'$/,g/; t
7545 s/$/\\/; p
7546 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7547 ' >>$CONFIG_STATUS <conf$$subs.sed
7548 rm -f conf$$subs.sed
7549 cat >>$CONFIG_STATUS <<_ACEOF
7550 CEOF$ac_eof
7551 _ACEOF
7552
7553
7554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7556 # trailing colons and then remove the whole line if VPATH becomes empty
7557 # (actually we leave an empty line to preserve line numbers).
7558 if test "x$srcdir" = x.; then
7559   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7560 s/:*\$(srcdir):*/:/
7561 s/:*\${srcdir}:*/:/
7562 s/:*@srcdir@:*/:/
7563 s/^\([^=]*=[     ]*\):*/\1/
7564 s/:*$//
7565 s/^[^=]*=[       ]*$//
7566 }'
7567 fi
7568
7569 cat >>$CONFIG_STATUS <<\_ACEOF
7570 fi # test -n "$CONFIG_FILES"
7571
7572
7573 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7574 do
7575   case $ac_tag in
7576   :[FHLC]) ac_mode=$ac_tag; continue;;
7577   esac
7578   case $ac_mode$ac_tag in
7579   :[FHL]*:*);;
7580   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7581 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7582    { (exit 1); exit 1; }; };;
7583   :[FH]-) ac_tag=-:-;;
7584   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7585   esac
7586   ac_save_IFS=$IFS
7587   IFS=:
7588   set x $ac_tag
7589   IFS=$ac_save_IFS
7590   shift
7591   ac_file=$1
7592   shift
7593
7594   case $ac_mode in
7595   :L) ac_source=$1;;
7596   :[FH])
7597     ac_file_inputs=
7598     for ac_f
7599     do
7600       case $ac_f in
7601       -) ac_f="$tmp/stdin";;
7602       *) # Look for the file first in the build tree, then in the source tree
7603          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7604          # because $ac_f cannot contain `:'.
7605          test -f "$ac_f" ||
7606            case $ac_f in
7607            [\\/$]*) false;;
7608            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7609            esac ||
7610            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7611 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7612    { (exit 1); exit 1; }; };;
7613       esac
7614       ac_file_inputs="$ac_file_inputs $ac_f"
7615     done
7616
7617     # Let's still pretend it is `configure' which instantiates (i.e., don't
7618     # use $as_me), people would be surprised to read:
7619     #    /* config.h.  Generated by config.status.  */
7620     configure_input="Generated from "`IFS=:
7621           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7622     if test x"$ac_file" != x-; then
7623       configure_input="$ac_file.  $configure_input"
7624       { echo "$as_me:$LINENO: creating $ac_file" >&5
7625 echo "$as_me: creating $ac_file" >&6;}
7626     fi
7627
7628     case $ac_tag in
7629     *:-:* | *:-) cat >"$tmp/stdin";;
7630     esac
7631     ;;
7632   esac
7633
7634   ac_dir=`$as_dirname -- "$ac_file" ||
7635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7636          X"$ac_file" : 'X\(//\)[^/]' \| \
7637          X"$ac_file" : 'X\(//\)$' \| \
7638          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7639 echo X"$ac_file" |
7640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7641             s//\1/
7642             q
7643           }
7644           /^X\(\/\/\)[^/].*/{
7645             s//\1/
7646             q
7647           }
7648           /^X\(\/\/\)$/{
7649             s//\1/
7650             q
7651           }
7652           /^X\(\/\).*/{
7653             s//\1/
7654             q
7655           }
7656           s/.*/./; q'`
7657   { as_dir="$ac_dir"
7658   case $as_dir in #(
7659   -*) as_dir=./$as_dir;;
7660   esac
7661   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7662     as_dirs=
7663     while :; do
7664       case $as_dir in #(
7665       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7666       *) as_qdir=$as_dir;;
7667       esac
7668       as_dirs="'$as_qdir' $as_dirs"
7669       as_dir=`$as_dirname -- "$as_dir" ||
7670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7671          X"$as_dir" : 'X\(//\)[^/]' \| \
7672          X"$as_dir" : 'X\(//\)$' \| \
7673          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7674 echo X"$as_dir" |
7675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7676             s//\1/
7677             q
7678           }
7679           /^X\(\/\/\)[^/].*/{
7680             s//\1/
7681             q
7682           }
7683           /^X\(\/\/\)$/{
7684             s//\1/
7685             q
7686           }
7687           /^X\(\/\).*/{
7688             s//\1/
7689             q
7690           }
7691           s/.*/./; q'`
7692       test -d "$as_dir" && break
7693     done
7694     test -z "$as_dirs" || eval "mkdir $as_dirs"
7695   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7696 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7697    { (exit 1); exit 1; }; }; }
7698   ac_builddir=.
7699
7700 case "$ac_dir" in
7701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7702 *)
7703   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7704   # A ".." for each directory in $ac_dir_suffix.
7705   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7706   case $ac_top_builddir_sub in
7707   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7708   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7709   esac ;;
7710 esac
7711 ac_abs_top_builddir=$ac_pwd
7712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7713 # for backward compatibility:
7714 ac_top_builddir=$ac_top_build_prefix
7715
7716 case $srcdir in
7717   .)  # We are building in place.
7718     ac_srcdir=.
7719     ac_top_srcdir=$ac_top_builddir_sub
7720     ac_abs_top_srcdir=$ac_pwd ;;
7721   [\\/]* | ?:[\\/]* )  # Absolute name.
7722     ac_srcdir=$srcdir$ac_dir_suffix;
7723     ac_top_srcdir=$srcdir
7724     ac_abs_top_srcdir=$srcdir ;;
7725   *) # Relative name.
7726     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7727     ac_top_srcdir=$ac_top_build_prefix$srcdir
7728     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7729 esac
7730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7731
7732
7733   case $ac_mode in
7734   :F)
7735   #
7736   # CONFIG_FILE
7737   #
7738
7739   case $INSTALL in
7740   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7741   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7742   esac
7743 _ACEOF
7744
7745 cat >>$CONFIG_STATUS <<\_ACEOF
7746 # If the template does not know about datarootdir, expand it.
7747 # FIXME: This hack should be removed a few years after 2.60.
7748 ac_datarootdir_hack=; ac_datarootdir_seen=
7749
7750 case `sed -n '/datarootdir/ {
7751   p
7752   q
7753 }
7754 /@datadir@/p
7755 /@docdir@/p
7756 /@infodir@/p
7757 /@localedir@/p
7758 /@mandir@/p
7759 ' $ac_file_inputs` in
7760 *datarootdir*) ac_datarootdir_seen=yes;;
7761 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7762   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7763 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7764 _ACEOF
7765 cat >>$CONFIG_STATUS <<_ACEOF
7766   ac_datarootdir_hack='
7767   s&@datadir@&$datadir&g
7768   s&@docdir@&$docdir&g
7769   s&@infodir@&$infodir&g
7770   s&@localedir@&$localedir&g
7771   s&@mandir@&$mandir&g
7772     s&\\\${datarootdir}&$datarootdir&g' ;;
7773 esac
7774 _ACEOF
7775
7776 # Neutralize VPATH when `$srcdir' = `.'.
7777 # Shell code in configure.ac might set extrasub.
7778 # FIXME: do we really want to maintain this feature?
7779 cat >>$CONFIG_STATUS <<_ACEOF
7780   sed "$ac_vpsub
7781 $extrasub
7782 _ACEOF
7783 cat >>$CONFIG_STATUS <<\_ACEOF
7784 :t
7785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7786 s&@configure_input@&$configure_input&;t t
7787 s&@top_builddir@&$ac_top_builddir_sub&;t t
7788 s&@srcdir@&$ac_srcdir&;t t
7789 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7790 s&@top_srcdir@&$ac_top_srcdir&;t t
7791 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7792 s&@builddir@&$ac_builddir&;t t
7793 s&@abs_builddir@&$ac_abs_builddir&;t t
7794 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7795 s&@INSTALL@&$ac_INSTALL&;t t
7796 $ac_datarootdir_hack
7797 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
7798
7799 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7800   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7801   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7802   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7803 which seems to be undefined.  Please make sure it is defined." >&5
7804 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7805 which seems to be undefined.  Please make sure it is defined." >&2;}
7806
7807   rm -f "$tmp/stdin"
7808   case $ac_file in
7809   -) cat "$tmp/out"; rm -f "$tmp/out";;
7810   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7811   esac
7812  ;;
7813   :H)
7814   #
7815   # CONFIG_HEADER
7816   #
7817 _ACEOF
7818
7819 # Transform confdefs.h into a sed script `conftest.defines', that
7820 # substitutes the proper values into config.h.in to produce config.h.
7821 rm -f conftest.defines conftest.tail
7822 # First, append a space to every undef/define line, to ease matching.
7823 echo 's/$/ /' >conftest.defines
7824 # Then, protect against being on the right side of a sed subst, or in
7825 # an unquoted here document, in config.status.  If some macros were
7826 # called several times there might be several #defines for the same
7827 # symbol, which is useless.  But do not sort them, since the last
7828 # AC_DEFINE must be honored.
7829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7830 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7831 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7832 # PARAMS is the parameter list in the macro definition--in most cases, it's
7833 # just an empty string.
7834 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
7835 ac_dB='\\)[      (].*,\\1define\\2'
7836 ac_dC=' '
7837 ac_dD=' ,'
7838
7839 uniq confdefs.h |
7840   sed -n '
7841         t rset
7842         :rset
7843         s/^[     ]*#[    ]*define[       ][      ]*//
7844         t ok
7845         d
7846         :ok
7847         s/[\\&,]/\\&/g
7848         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7849         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7850   ' >>conftest.defines
7851
7852 # Remove the space that was appended to ease matching.
7853 # Then replace #undef with comments.  This is necessary, for
7854 # example, in the case of _POSIX_SOURCE, which is predefined and required
7855 # on some systems where configure will not decide to define it.
7856 # (The regexp can be short, since the line contains either #define or #undef.)
7857 echo 's/ $//
7858 s,^[     #]*u.*,/* & */,' >>conftest.defines
7859
7860 # Break up conftest.defines:
7861 ac_max_sed_lines=50
7862
7863 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7864 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7865 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7866 # et cetera.
7867 ac_in='$ac_file_inputs'
7868 ac_out='"$tmp/out1"'
7869 ac_nxt='"$tmp/out2"'
7870
7871 while :
7872 do
7873   # Write a here document:
7874     cat >>$CONFIG_STATUS <<_ACEOF
7875     # First, check the format of the line:
7876     cat >"\$tmp/defines.sed" <<\\CEOF
7877 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
7878 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
7879 b
7880 :def
7881 _ACEOF
7882   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7883   echo 'CEOF
7884     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7885   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7886   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7887   grep . conftest.tail >/dev/null || break
7888   rm -f conftest.defines
7889   mv conftest.tail conftest.defines
7890 done
7891 rm -f conftest.defines conftest.tail
7892
7893 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7894 cat >>$CONFIG_STATUS <<\_ACEOF
7895   if test x"$ac_file" != x-; then
7896     echo "/* $configure_input  */" >"$tmp/config.h"
7897     cat "$ac_result" >>"$tmp/config.h"
7898     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7899       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7900 echo "$as_me: $ac_file is unchanged" >&6;}
7901     else
7902       rm -f $ac_file
7903       mv "$tmp/config.h" $ac_file
7904     fi
7905   else
7906     echo "/* $configure_input  */"
7907     cat "$ac_result"
7908   fi
7909   rm -f "$tmp/out12"
7910 # Compute $ac_file's index in $config_headers.
7911 _am_stamp_count=1
7912 for _am_header in $config_headers :; do
7913   case $_am_header in
7914     $ac_file | $ac_file:* )
7915       break ;;
7916     * )
7917       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7918   esac
7919 done
7920 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7921 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7922          X$ac_file : 'X\(//\)[^/]' \| \
7923          X$ac_file : 'X\(//\)$' \| \
7924          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7925 echo X$ac_file |
7926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7927             s//\1/
7928             q
7929           }
7930           /^X\(\/\/\)[^/].*/{
7931             s//\1/
7932             q
7933           }
7934           /^X\(\/\/\)$/{
7935             s//\1/
7936             q
7937           }
7938           /^X\(\/\).*/{
7939             s//\1/
7940             q
7941           }
7942           s/.*/./; q'`/stamp-h$_am_stamp_count
7943  ;;
7944
7945   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7946 echo "$as_me: executing $ac_file commands" >&6;}
7947  ;;
7948   esac
7949
7950
7951   case $ac_file$ac_mode in
7952     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7953   # Strip MF so we end up with the name of the file.
7954   mf=`echo "$mf" | sed -e 's/:.*$//'`
7955   # Check whether this is an Automake generated Makefile or not.
7956   # We used to match only the files named `Makefile.in', but
7957   # some people rename them; so instead we look at the file content.
7958   # Grep'ing the first line is not enough: some people post-process
7959   # each Makefile.in and add a new line on top of each file to say so.
7960   # So let's grep whole file.
7961   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7962     dirpart=`$as_dirname -- "$mf" ||
7963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7964          X"$mf" : 'X\(//\)[^/]' \| \
7965          X"$mf" : 'X\(//\)$' \| \
7966          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7967 echo X"$mf" |
7968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7969             s//\1/
7970             q
7971           }
7972           /^X\(\/\/\)[^/].*/{
7973             s//\1/
7974             q
7975           }
7976           /^X\(\/\/\)$/{
7977             s//\1/
7978             q
7979           }
7980           /^X\(\/\).*/{
7981             s//\1/
7982             q
7983           }
7984           s/.*/./; q'`
7985   else
7986     continue
7987   fi
7988   # Extract the definition of DEPDIR, am__include, and am__quote
7989   # from the Makefile without running `make'.
7990   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7991   test -z "$DEPDIR" && continue
7992   am__include=`sed -n 's/^am__include = //p' < "$mf"`
7993   test -z "am__include" && continue
7994   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7995   # When using ansi2knr, U may be empty or an underscore; expand it
7996   U=`sed -n 's/^U = //p' < "$mf"`
7997   # Find all dependency output files, they are included files with
7998   # $(DEPDIR) in their names.  We invoke sed twice because it is the
7999   # simplest approach to changing $(DEPDIR) to its actual value in the
8000   # expansion.
8001   for file in `sed -n "
8002     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8003        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8004     # Make sure the directory exists.
8005     test -f "$dirpart/$file" && continue
8006     fdir=`$as_dirname -- "$file" ||
8007 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8008          X"$file" : 'X\(//\)[^/]' \| \
8009          X"$file" : 'X\(//\)$' \| \
8010          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8011 echo X"$file" |
8012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8013             s//\1/
8014             q
8015           }
8016           /^X\(\/\/\)[^/].*/{
8017             s//\1/
8018             q
8019           }
8020           /^X\(\/\/\)$/{
8021             s//\1/
8022             q
8023           }
8024           /^X\(\/\).*/{
8025             s//\1/
8026             q
8027           }
8028           s/.*/./; q'`
8029     { as_dir=$dirpart/$fdir
8030   case $as_dir in #(
8031   -*) as_dir=./$as_dir;;
8032   esac
8033   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8034     as_dirs=
8035     while :; do
8036       case $as_dir in #(
8037       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8038       *) as_qdir=$as_dir;;
8039       esac
8040       as_dirs="'$as_qdir' $as_dirs"
8041       as_dir=`$as_dirname -- "$as_dir" ||
8042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8043          X"$as_dir" : 'X\(//\)[^/]' \| \
8044          X"$as_dir" : 'X\(//\)$' \| \
8045          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8046 echo X"$as_dir" |
8047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8048             s//\1/
8049             q
8050           }
8051           /^X\(\/\/\)[^/].*/{
8052             s//\1/
8053             q
8054           }
8055           /^X\(\/\/\)$/{
8056             s//\1/
8057             q
8058           }
8059           /^X\(\/\).*/{
8060             s//\1/
8061             q
8062           }
8063           s/.*/./; q'`
8064       test -d "$as_dir" && break
8065     done
8066     test -z "$as_dirs" || eval "mkdir $as_dirs"
8067   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8068 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8069    { (exit 1); exit 1; }; }; }
8070     # echo "creating $dirpart/$file"
8071     echo '# dummy' > "$dirpart/$file"
8072   done
8073 done
8074  ;;
8075
8076   esac
8077 done # for ac_tag
8078
8079
8080 { (exit 0); exit 0; }
8081 _ACEOF
8082 chmod +x $CONFIG_STATUS
8083 ac_clean_files=$ac_clean_files_save
8084
8085
8086 # configure is writing to config.log, and then calls config.status.
8087 # config.status does its own redirection, appending to config.log.
8088 # Unfortunately, on DOS this fails, as config.log is still kept open
8089 # by configure, so config.status won't be able to write to it; its
8090 # output is simply discarded.  So we exec the FD to /dev/null,
8091 # effectively closing config.log, so it can be properly (re)opened and
8092 # appended to by config.status.  When coming back to configure, we
8093 # need to make the FD available again.
8094 if test "$no_create" != yes; then
8095   ac_cs_success=:
8096   ac_config_status_args=
8097   test "$silent" = yes &&
8098     ac_config_status_args="$ac_config_status_args --quiet"
8099   exec 5>/dev/null
8100   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8101   exec 5>>config.log
8102   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8103   # would make configure fail if this is the last instruction.
8104   $ac_cs_success || { (exit 1); exit 1; }
8105 fi
8106
8107