~peter-pearse/ubuntu/oneiric/x11-apps/prop001

« back to all changes in this revision

Viewing changes to xwd/configure

  • Committer: Bazaar Package Importer
  • Author(s): Brice Goglin, Julien Cristau, Brice Goglin
  • Date: 2009-12-06 12:23:46 UTC
  • Revision ID: james.westby@ubuntu.com-20091206122346-7r0tbgnaby4qdh82
Tags: 7.5+1
[ Julien Cristau ]
* Update xload config.{guess,sub}, adding avr32 support (closes: #536410)
* Improve the long description using patch from Justin B Rye (closes:
  #549457).  Thanks!

[ Brice Goglin ]
* Add ico 1.0.2, closes: #518383.
* bitmap 1.0.4.
* xclipboard 1.1.0.
  + Add UTF8 support, closes: #489998.
* xclock 1.0.4.
  + Drop 06_xclock_geometry.diff, applied upstream.
* xcursorgen 1.0.3.
* xeyes 1.0.991.
* xgc 1.0.2.
* xmag 1.0.3.
* xman 1.1.0.
* xwd 1.0.3.
  + Drop 01_xwd_do_not_spew_usage_on_connection_error.diff, applied upstream.
* xwud 1.0.2.
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.62 for xwd 1.0.2.
 
3
# Generated by GNU Autoconf 2.63 for xwd 1.0.3.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
596
596
# Identity of this package.
597
597
PACKAGE_NAME='xwd'
598
598
PACKAGE_TARNAME='xwd'
599
 
PACKAGE_VERSION='1.0.2'
600
 
PACKAGE_STRING='xwd 1.0.2'
 
599
PACKAGE_VERSION='1.0.3'
 
600
PACKAGE_STRING='xwd 1.0.3'
601
601
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
602
602
 
603
 
ac_subst_vars='SHELL
604
 
PATH_SEPARATOR
605
 
PACKAGE_NAME
606
 
PACKAGE_TARNAME
607
 
PACKAGE_VERSION
608
 
PACKAGE_STRING
609
 
PACKAGE_BUGREPORT
610
 
exec_prefix
611
 
prefix
612
 
program_transform_name
613
 
bindir
614
 
sbindir
615
 
libexecdir
616
 
datarootdir
617
 
datadir
618
 
sysconfdir
619
 
sharedstatedir
620
 
localstatedir
621
 
includedir
622
 
oldincludedir
623
 
docdir
624
 
infodir
625
 
htmldir
626
 
dvidir
627
 
pdfdir
628
 
psdir
629
 
libdir
630
 
localedir
631
 
mandir
632
 
DEFS
633
 
ECHO_C
634
 
ECHO_N
635
 
ECHO_T
636
 
LIBS
637
 
build_alias
638
 
host_alias
639
 
target_alias
640
 
INSTALL_PROGRAM
641
 
INSTALL_SCRIPT
642
 
INSTALL_DATA
643
 
am__isrc
644
 
CYGPATH_W
645
 
PACKAGE
646
 
VERSION
647
 
ACLOCAL
648
 
AUTOCONF
649
 
AUTOMAKE
650
 
AUTOHEADER
651
 
MAKEINFO
652
 
install_sh
653
 
STRIP
654
 
INSTALL_STRIP_PROGRAM
655
 
MKDIR_P
656
 
mkdir_p
657
 
AWK
658
 
SET_MAKE
659
 
am__leading_dot
660
 
AMTAR
661
 
am__tar
662
 
am__untar
663
 
MAINTAINER_MODE_TRUE
664
 
MAINTAINER_MODE_FALSE
665
 
MAINT
666
 
CC
667
 
CFLAGS
668
 
LDFLAGS
669
 
CPPFLAGS
670
 
ac_ct_CC
671
 
EXEEXT
672
 
OBJEXT
673
 
DEPDIR
674
 
am__include
675
 
am__quote
676
 
AMDEP_TRUE
677
 
AMDEP_FALSE
678
 
AMDEPBACKSLASH
679
 
CCDEPMODE
680
 
am__fastdepCC_TRUE
681
 
am__fastdepCC_FALSE
682
 
PKG_CONFIG
683
 
XWD_CFLAGS
 
603
# Factoring default headers for most tests.
 
604
ac_includes_default="\
 
605
#include <stdio.h>
 
606
#ifdef HAVE_SYS_TYPES_H
 
607
# include <sys/types.h>
 
608
#endif
 
609
#ifdef HAVE_SYS_STAT_H
 
610
# include <sys/stat.h>
 
611
#endif
 
612
#ifdef STDC_HEADERS
 
613
# include <stdlib.h>
 
614
# include <stddef.h>
 
615
#else
 
616
# ifdef HAVE_STDLIB_H
 
617
#  include <stdlib.h>
 
618
# endif
 
619
#endif
 
620
#ifdef HAVE_STRING_H
 
621
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
622
#  include <memory.h>
 
623
# endif
 
624
# include <string.h>
 
625
#endif
 
626
#ifdef HAVE_STRINGS_H
 
627
# include <strings.h>
 
628
#endif
 
629
#ifdef HAVE_INTTYPES_H
 
630
# include <inttypes.h>
 
631
#endif
 
632
#ifdef HAVE_STDINT_H
 
633
# include <stdint.h>
 
634
#endif
 
635
#ifdef HAVE_UNISTD_H
 
636
# include <unistd.h>
 
637
#endif"
 
638
 
 
639
ac_subst_vars='am__EXEEXT_FALSE
 
640
am__EXEEXT_TRUE
 
641
LTLIBOBJS
 
642
LIBOBJS
684
643
XWD_LIBS
 
644
XWD_CFLAGS
 
645
PKG_CONFIG
 
646
ADMIN_MAN_DIR
 
647
DRIVER_MAN_DIR
 
648
MISC_MAN_DIR
 
649
FILE_MAN_DIR
 
650
LIB_MAN_DIR
 
651
APP_MAN_DIR
 
652
ADMIN_MAN_SUFFIX
 
653
DRIVER_MAN_SUFFIX
 
654
MISC_MAN_SUFFIX
 
655
FILE_MAN_SUFFIX
 
656
LIB_MAN_SUFFIX
 
657
APP_MAN_SUFFIX
 
658
host_os
 
659
host_vendor
 
660
host_cpu
 
661
host
 
662
build_os
 
663
build_vendor
 
664
build_cpu
685
665
build
686
 
build_cpu
687
 
build_vendor
688
 
build_os
689
 
host
690
 
host_cpu
691
 
host_vendor
692
 
host_os
693
 
APP_MAN_SUFFIX
694
 
LIB_MAN_SUFFIX
695
 
FILE_MAN_SUFFIX
696
 
MISC_MAN_SUFFIX
697
 
DRIVER_MAN_SUFFIX
698
 
ADMIN_MAN_SUFFIX
699
 
APP_MAN_DIR
700
 
LIB_MAN_DIR
701
 
FILE_MAN_DIR
702
 
MISC_MAN_DIR
703
 
DRIVER_MAN_DIR
704
 
ADMIN_MAN_DIR
705
 
LIBOBJS
706
 
LTLIBOBJS'
 
666
distcleancheck_listfiles
 
667
CHANGELOG_CMD
 
668
AM_BACKSLASH
 
669
AM_DEFAULT_VERBOSITY
 
670
CWARNFLAGS
 
671
EGREP
 
672
GREP
 
673
CPP
 
674
am__fastdepCC_FALSE
 
675
am__fastdepCC_TRUE
 
676
CCDEPMODE
 
677
AMDEPBACKSLASH
 
678
AMDEP_FALSE
 
679
AMDEP_TRUE
 
680
am__quote
 
681
am__include
 
682
DEPDIR
 
683
OBJEXT
 
684
EXEEXT
 
685
ac_ct_CC
 
686
CPPFLAGS
 
687
LDFLAGS
 
688
CFLAGS
 
689
CC
 
690
MAINT
 
691
MAINTAINER_MODE_FALSE
 
692
MAINTAINER_MODE_TRUE
 
693
am__untar
 
694
am__tar
 
695
AMTAR
 
696
am__leading_dot
 
697
SET_MAKE
 
698
AWK
 
699
mkdir_p
 
700
MKDIR_P
 
701
INSTALL_STRIP_PROGRAM
 
702
STRIP
 
703
install_sh
 
704
MAKEINFO
 
705
AUTOHEADER
 
706
AUTOMAKE
 
707
AUTOCONF
 
708
ACLOCAL
 
709
VERSION
 
710
PACKAGE
 
711
CYGPATH_W
 
712
am__isrc
 
713
INSTALL_DATA
 
714
INSTALL_SCRIPT
 
715
INSTALL_PROGRAM
 
716
target_alias
 
717
host_alias
 
718
build_alias
 
719
LIBS
 
720
ECHO_T
 
721
ECHO_N
 
722
ECHO_C
 
723
DEFS
 
724
mandir
 
725
localedir
 
726
libdir
 
727
psdir
 
728
pdfdir
 
729
dvidir
 
730
htmldir
 
731
infodir
 
732
docdir
 
733
oldincludedir
 
734
includedir
 
735
localstatedir
 
736
sharedstatedir
 
737
sysconfdir
 
738
datadir
 
739
datarootdir
 
740
libexecdir
 
741
sbindir
 
742
bindir
 
743
program_transform_name
 
744
prefix
 
745
exec_prefix
 
746
PACKAGE_BUGREPORT
 
747
PACKAGE_STRING
 
748
PACKAGE_VERSION
 
749
PACKAGE_TARNAME
 
750
PACKAGE_NAME
 
751
PATH_SEPARATOR
 
752
SHELL'
707
753
ac_subst_files=''
708
754
ac_user_opts='
709
755
enable_option_checking
710
756
enable_maintainer_mode
711
757
enable_dependency_tracking
 
758
enable_silent_rules
 
759
enable_strict_compilation
712
760
with_release_version
713
761
'
714
762
      ac_precious_vars='build_alias
719
767
LDFLAGS
720
768
LIBS
721
769
CPPFLAGS
 
770
CPP
722
771
PKG_CONFIG
723
772
XWD_CFLAGS
724
773
XWD_LIBS'
1144
1193
if test -n "$ac_unrecognized_opts"; then
1145
1194
  case $enable_option_checking in
1146
1195
    no) ;;
1147
 
    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
 
1196
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1148
1197
   { (exit 1); exit 1; }; } ;;
1149
 
    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1198
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1150
1199
  esac
1151
1200
fi
1152
1201
 
1199
1248
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200
1249
ac_ls_di=`ls -di .` &&
1201
1250
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202
 
  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
 
1251
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1203
1252
   { (exit 1); exit 1; }; }
1204
1253
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1205
1254
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1274
1323
  # Omit some internal or obsolete options to make the list less imposing.
1275
1324
  # This message is too long to be a string in the A/UX 3.1 sh.
1276
1325
  cat <<_ACEOF
1277
 
\`configure' configures xwd 1.0.2 to adapt to many kinds of systems.
 
1326
\`configure' configures xwd 1.0.3 to adapt to many kinds of systems.
1278
1327
 
1279
1328
Usage: $0 [OPTION]... [VAR=VALUE]...
1280
1329
 
1344
1393
 
1345
1394
if test -n "$ac_init_help"; then
1346
1395
  case $ac_init_help in
1347
 
     short | recursive ) echo "Configuration of xwd 1.0.2:";;
 
1396
     short | recursive ) echo "Configuration of xwd 1.0.3:";;
1348
1397
   esac
1349
1398
  cat <<\_ACEOF
1350
1399
 
1356
1405
                          (and sometimes confusing) to the casual installer
1357
1406
  --disable-dependency-tracking  speeds up one-time build
1358
1407
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1408
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1409
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1410
  --enable-strict-compilation
 
1411
                          Enable all warnings from compiler and make them
 
1412
                          errors (default: disabled)
1359
1413
 
1360
1414
Optional Packages:
1361
1415
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1371
1425
  LIBS        libraries to pass to the linker, e.g. -l<library>
1372
1426
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373
1427
              you have headers in a nonstandard directory <include dir>
 
1428
  CPP         C preprocessor
1374
1429
  PKG_CONFIG  path to pkg-config utility
1375
1430
  XWD_CFLAGS  C compiler flags for XWD, overriding pkg-config
1376
1431
  XWD_LIBS    linker flags for XWD, overriding pkg-config
1441
1496
test -n "$ac_init_help" && exit $ac_status
1442
1497
if $ac_init_version; then
1443
1498
  cat <<\_ACEOF
1444
 
xwd configure 1.0.2
1445
 
generated by GNU Autoconf 2.62
 
1499
xwd configure 1.0.3
 
1500
generated by GNU Autoconf 2.63
1446
1501
 
1447
1502
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448
1503
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1455
1510
This file contains any messages produced by compilers while
1456
1511
running configure, to aid debugging if configure makes a mistake.
1457
1512
 
1458
 
It was created by xwd $as_me 1.0.2, which was
1459
 
generated by GNU Autoconf 2.62.  Invocation command line was
 
1513
It was created by xwd $as_me 1.0.3, which was
 
1514
generated by GNU Autoconf 2.63.  Invocation command line was
1460
1515
 
1461
1516
  $ $0 $@
1462
1517
 
1579
1634
    case $ac_val in #(
1580
1635
    *${as_nl}*)
1581
1636
      case $ac_var in #(
1582
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583
 
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1637
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1638
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1584
1639
      esac
1585
1640
      case $ac_var in #(
1586
1641
      _ | IFS | as_nl) ;; #(
1783
1838
  fi
1784
1839
done
1785
1840
if $ac_cache_corrupted; then
 
1841
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
1842
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1786
1843
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787
1844
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788
1845
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821
1878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822
1879
 
1823
1880
 
1824
 
am__api_version='1.10'
 
1881
am__api_version='1.11'
1825
1882
 
1826
1883
ac_aux_dir=
1827
1884
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1952
2009
# Just in case
1953
2010
sleep 1
1954
2011
echo timestamp > conftest.file
 
2012
# Reject unsafe characters in $srcdir or the absolute working directory
 
2013
# name.  Accept space and tab only in the latter.
 
2014
am_lf='
 
2015
'
 
2016
case `pwd` in
 
2017
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2018
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2019
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2020
   { (exit 1); exit 1; }; };;
 
2021
esac
 
2022
case $srcdir in
 
2023
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2024
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2025
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2026
   { (exit 1); exit 1; }; };;
 
2027
esac
 
2028
 
1955
2029
# Do `set' in a subshell so we don't clobber the current shell's
1956
2030
# arguments.  Must try -L first in case configure is actually a
1957
2031
# symlink; some systems play weird games with the mod time of symlinks
1958
2032
# (eg FreeBSD returns the mod time of the symlink's containing
1959
2033
# directory).
1960
2034
if (
1961
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2035
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1962
2036
   if test "$*" = "X"; then
1963
2037
      # -L didn't work.
1964
 
      set X `ls -t $srcdir/configure conftest.file`
 
2038
      set X `ls -t "$srcdir/configure" conftest.file`
1965
2039
   fi
1966
2040
   rm -f conftest.file
1967
2041
   if test "$*" != "X $srcdir/configure conftest.file" \
2005
2079
# expand $ac_aux_dir to an absolute path
2006
2080
am_aux_dir=`cd $ac_aux_dir && pwd`
2007
2081
 
2008
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2082
if test x"${MISSING+set}" != xset; then
 
2083
  case $am_aux_dir in
 
2084
  *\ * | *\     *)
 
2085
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2086
  *)
 
2087
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2088
  esac
 
2089
fi
2009
2090
# Use eval to expand $SHELL
2010
2091
if eval "$MISSING --run true"; then
2011
2092
  am_missing_run="$MISSING --run "
2015
2096
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2016
2097
fi
2017
2098
 
 
2099
if test x"${install_sh}" != xset; then
 
2100
  case $am_aux_dir in
 
2101
  *\ * | *\     *)
 
2102
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2103
  *)
 
2104
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2105
  esac
 
2106
fi
 
2107
 
 
2108
# Installed binaries are usually stripped using `strip' when the user
 
2109
# run `make install-strip'.  However `strip' might not be the right
 
2110
# tool to use in cross-compilation environments, therefore Automake
 
2111
# will honor the `STRIP' environment variable to overrule this program.
 
2112
if test "$cross_compiling" != no; then
 
2113
  if test -n "$ac_tool_prefix"; then
 
2114
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2115
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2116
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2117
$as_echo_n "checking for $ac_word... " >&6; }
 
2118
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2119
  $as_echo_n "(cached) " >&6
 
2120
else
 
2121
  if test -n "$STRIP"; then
 
2122
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2123
else
 
2124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2125
for as_dir in $PATH
 
2126
do
 
2127
  IFS=$as_save_IFS
 
2128
  test -z "$as_dir" && as_dir=.
 
2129
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2130
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2131
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2132
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2133
    break 2
 
2134
  fi
 
2135
done
 
2136
done
 
2137
IFS=$as_save_IFS
 
2138
 
 
2139
fi
 
2140
fi
 
2141
STRIP=$ac_cv_prog_STRIP
 
2142
if test -n "$STRIP"; then
 
2143
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2144
$as_echo "$STRIP" >&6; }
 
2145
else
 
2146
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2147
$as_echo "no" >&6; }
 
2148
fi
 
2149
 
 
2150
 
 
2151
fi
 
2152
if test -z "$ac_cv_prog_STRIP"; then
 
2153
  ac_ct_STRIP=$STRIP
 
2154
  # Extract the first word of "strip", so it can be a program name with args.
 
2155
set dummy strip; ac_word=$2
 
2156
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2157
$as_echo_n "checking for $ac_word... " >&6; }
 
2158
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2159
  $as_echo_n "(cached) " >&6
 
2160
else
 
2161
  if test -n "$ac_ct_STRIP"; then
 
2162
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2163
else
 
2164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2165
for as_dir in $PATH
 
2166
do
 
2167
  IFS=$as_save_IFS
 
2168
  test -z "$as_dir" && as_dir=.
 
2169
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2171
    ac_cv_prog_ac_ct_STRIP="strip"
 
2172
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2173
    break 2
 
2174
  fi
 
2175
done
 
2176
done
 
2177
IFS=$as_save_IFS
 
2178
 
 
2179
fi
 
2180
fi
 
2181
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2182
if test -n "$ac_ct_STRIP"; then
 
2183
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2184
$as_echo "$ac_ct_STRIP" >&6; }
 
2185
else
 
2186
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2187
$as_echo "no" >&6; }
 
2188
fi
 
2189
 
 
2190
  if test "x$ac_ct_STRIP" = x; then
 
2191
    STRIP=":"
 
2192
  else
 
2193
    case $cross_compiling:$ac_tool_warned in
 
2194
yes:)
 
2195
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2197
ac_tool_warned=yes ;;
 
2198
esac
 
2199
    STRIP=$ac_ct_STRIP
 
2200
  fi
 
2201
else
 
2202
  STRIP="$ac_cv_prog_STRIP"
 
2203
fi
 
2204
 
 
2205
fi
 
2206
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2207
 
2018
2208
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2019
2209
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2020
2210
if test -z "$MKDIR_P"; then
2169
2359
 
2170
2360
# Define the identity of the package.
2171
2361
 PACKAGE='xwd'
2172
 
 VERSION='1.0.2'
 
2362
 VERSION='1.0.3'
2173
2363
 
2174
2364
 
2175
2365
cat >>confdefs.h <<_ACEOF
2197
2387
 
2198
2388
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2199
2389
 
2200
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2201
 
 
2202
 
# Installed binaries are usually stripped using `strip' when the user
2203
 
# run `make install-strip'.  However `strip' might not be the right
2204
 
# tool to use in cross-compilation environments, therefore Automake
2205
 
# will honor the `STRIP' environment variable to overrule this program.
2206
 
if test "$cross_compiling" != no; then
2207
 
  if test -n "$ac_tool_prefix"; then
2208
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2209
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2210
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2211
 
$as_echo_n "checking for $ac_word... " >&6; }
2212
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2213
 
  $as_echo_n "(cached) " >&6
2214
 
else
2215
 
  if test -n "$STRIP"; then
2216
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2217
 
else
2218
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219
 
for as_dir in $PATH
2220
 
do
2221
 
  IFS=$as_save_IFS
2222
 
  test -z "$as_dir" && as_dir=.
2223
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2224
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2226
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227
 
    break 2
2228
 
  fi
2229
 
done
2230
 
done
2231
 
IFS=$as_save_IFS
2232
 
 
2233
 
fi
2234
 
fi
2235
 
STRIP=$ac_cv_prog_STRIP
2236
 
if test -n "$STRIP"; then
2237
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2238
 
$as_echo "$STRIP" >&6; }
2239
 
else
2240
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2241
 
$as_echo "no" >&6; }
2242
 
fi
2243
 
 
2244
 
 
2245
 
fi
2246
 
if test -z "$ac_cv_prog_STRIP"; then
2247
 
  ac_ct_STRIP=$STRIP
2248
 
  # Extract the first word of "strip", so it can be a program name with args.
2249
 
set dummy strip; ac_word=$2
2250
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2251
 
$as_echo_n "checking for $ac_word... " >&6; }
2252
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2253
 
  $as_echo_n "(cached) " >&6
2254
 
else
2255
 
  if test -n "$ac_ct_STRIP"; then
2256
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2257
 
else
2258
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259
 
for as_dir in $PATH
2260
 
do
2261
 
  IFS=$as_save_IFS
2262
 
  test -z "$as_dir" && as_dir=.
2263
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2264
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265
 
    ac_cv_prog_ac_ct_STRIP="strip"
2266
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267
 
    break 2
2268
 
  fi
2269
 
done
2270
 
done
2271
 
IFS=$as_save_IFS
2272
 
 
2273
 
fi
2274
 
fi
2275
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2276
 
if test -n "$ac_ct_STRIP"; then
2277
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2278
 
$as_echo "$ac_ct_STRIP" >&6; }
2279
 
else
2280
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2281
 
$as_echo "no" >&6; }
2282
 
fi
2283
 
 
2284
 
  if test "x$ac_ct_STRIP" = x; then
2285
 
    STRIP=":"
2286
 
  else
2287
 
    case $cross_compiling:$ac_tool_warned in
2288
 
yes:)
2289
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2290
 
whose name does not start with the host triplet.  If you think this
2291
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2292
 
$as_echo "$as_me: 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." >&2;}
2295
 
ac_tool_warned=yes ;;
2296
 
esac
2297
 
    STRIP=$ac_ct_STRIP
2298
 
  fi
2299
 
else
2300
 
  STRIP="$ac_cv_prog_STRIP"
2301
 
fi
2302
 
 
2303
 
fi
2304
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2305
 
 
2306
2390
# We need awk for the "check" target.  The system "awk" is bad on
2307
2391
# some platforms.
2308
2392
# Always define AMTAR for backward compatibility.
2315
2399
 
2316
2400
 
2317
2401
 
 
2402
 
2318
2403
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2319
2404
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2320
2405
    # Check whether --enable-maintainer-mode was given.
2338
2423
 
2339
2424
 
2340
2425
 
 
2426
# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
 
2427
 
 
2428
 
 
2429
 
 
2430
 
 
2431
 
 
2432
 
 
2433
 
 
2434
 
 
2435
 
 
2436
 
 
2437
 
 
2438
 
2341
2439
ac_config_headers="$ac_config_headers config.h"
2342
2440
 
2343
2441
 
2428
2526
  else
2429
2527
    case $cross_compiling:$ac_tool_warned in
2430
2528
yes:)
2431
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432
 
whose name does not start with the host triplet.  If you think this
2433
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2434
 
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435
 
whose name does not start with the host triplet.  If you think this
2436
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2529
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2530
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2437
2531
ac_tool_warned=yes ;;
2438
2532
esac
2439
2533
    CC=$ac_ct_CC
2632
2726
  else
2633
2727
    case $cross_compiling:$ac_tool_warned in
2634
2728
yes:)
2635
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2636
 
whose name does not start with the host triplet.  If you think this
2637
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2638
 
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2639
 
whose name does not start with the host triplet.  If you think this
2640
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2729
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2730
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641
2731
ac_tool_warned=yes ;;
2642
2732
esac
2643
2733
    CC=$ac_ct_CC
2647
2737
fi
2648
2738
 
2649
2739
 
2650
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2740
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2741
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2742
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2651
2743
See \`config.log' for more details." >&5
2652
2744
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2653
2745
See \`config.log' for more details." >&2;}
2654
 
   { (exit 1); exit 1; }; }
 
2746
   { (exit 1); exit 1; }; }; }
2655
2747
 
2656
2748
# Provide some information about the compiler.
2657
2749
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2781
2873
  $as_echo "$as_me: failed program was:" >&5
2782
2874
sed 's/^/| /' conftest.$ac_ext >&5
2783
2875
 
 
2876
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2877
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784
2878
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2785
2879
See \`config.log' for more details." >&5
2786
2880
$as_echo "$as_me: error: C compiler cannot create executables
2787
2881
See \`config.log' for more details." >&2;}
2788
 
   { (exit 77); exit 77; }; }
 
2882
   { (exit 77); exit 77; }; }; }
2789
2883
fi
2790
2884
 
2791
2885
ac_exeext=$ac_cv_exeext
2813
2907
    if test "$cross_compiling" = maybe; then
2814
2908
        cross_compiling=yes
2815
2909
    else
2816
 
        { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2910
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2911
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2912
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2817
2913
If you meant to cross compile, use \`--host'.
2818
2914
See \`config.log' for more details." >&5
2819
2915
$as_echo "$as_me: error: cannot run C compiled programs.
2820
2916
If you meant to cross compile, use \`--host'.
2821
2917
See \`config.log' for more details." >&2;}
2822
 
   { (exit 1); exit 1; }; }
 
2918
   { (exit 1); exit 1; }; }; }
2823
2919
    fi
2824
2920
  fi
2825
2921
fi
2862
2958
  esac
2863
2959
done
2864
2960
else
2865
 
  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2961
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2962
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2963
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2866
2964
See \`config.log' for more details." >&5
2867
2965
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2868
2966
See \`config.log' for more details." >&2;}
2869
 
   { (exit 1); exit 1; }; }
 
2967
   { (exit 1); exit 1; }; }; }
2870
2968
fi
2871
2969
 
2872
2970
rm -f conftest$ac_cv_exeext
2920
3018
  $as_echo "$as_me: failed program was:" >&5
2921
3019
sed 's/^/| /' conftest.$ac_ext >&5
2922
3020
 
 
3021
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3022
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923
3023
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924
3024
See \`config.log' for more details." >&5
2925
3025
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926
3026
See \`config.log' for more details." >&2;}
2927
 
   { (exit 1); exit 1; }; }
 
3027
   { (exit 1); exit 1; }; }; }
2928
3028
fi
2929
3029
 
2930
3030
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3279
3379
am_make=${MAKE-make}
3280
3380
cat > confinc << 'END'
3281
3381
am__doit:
3282
 
        @echo done
 
3382
        @echo this is the am__doit target
3283
3383
.PHONY: am__doit
3284
3384
END
3285
3385
# If we don't find an include directive, just comment out the code.
3290
3390
_am_result=none
3291
3391
# First try GNU make style include.
3292
3392
echo "include confinc" > confmf
3293
 
# We grep out `Entering directory' and `Leaving directory'
3294
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3295
 
# In particular we don't look at `^make:' because GNU make might
3296
 
# be invoked under some other name (usually "gmake"), in which
3297
 
# case it prints its new name instead of `make'.
3298
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3299
 
   am__include=include
3300
 
   am__quote=
3301
 
   _am_result=GNU
3302
 
fi
 
3393
# Ignore all kinds of additional output from `make'.
 
3394
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3395
*the\ am__doit\ target*)
 
3396
  am__include=include
 
3397
  am__quote=
 
3398
  _am_result=GNU
 
3399
  ;;
 
3400
esac
3303
3401
# Now try BSD make style include.
3304
3402
if test "$am__include" = "#"; then
3305
3403
   echo '.include "confinc"' > confmf
3306
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3307
 
      am__include=.include
3308
 
      am__quote="\""
3309
 
      _am_result=BSD
3310
 
   fi
 
3404
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3405
   *the\ am__doit\ target*)
 
3406
     am__include=.include
 
3407
     am__quote="\""
 
3408
     _am_result=BSD
 
3409
     ;;
 
3410
   esac
3311
3411
fi
3312
3412
 
3313
3413
 
3364
3464
  if test "$am_compiler_list" = ""; then
3365
3465
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3366
3466
  fi
 
3467
  am__universal=false
 
3468
  case " $depcc " in #(
 
3469
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3470
     esac
 
3471
 
3367
3472
  for depmode in $am_compiler_list; do
3368
3473
    # Setup a source with many dependencies, because some compilers
3369
3474
    # like to wrap large dependency lists on column 80 (with \), and
3381
3486
    done
3382
3487
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3383
3488
 
 
3489
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3490
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3491
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3492
    # versions had trouble with output in subdirs
 
3493
    am__obj=sub/conftest.${OBJEXT-o}
 
3494
    am__minus_obj="-o $am__obj"
3384
3495
    case $depmode in
 
3496
    gcc)
 
3497
      # This depmode causes a compiler race in universal mode.
 
3498
      test "$am__universal" = false || continue
 
3499
      ;;
3385
3500
    nosideeffect)
3386
3501
      # after this tag, mechanisms are not by side-effect, so they'll
3387
3502
      # only be used when explicitly requested
3391
3506
        break
3392
3507
      fi
3393
3508
      ;;
 
3509
    msvisualcpp | msvcmsys)
 
3510
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3511
      # not run yet.  These depmodes are late enough in the game, and
 
3512
      # so weak that their functioning should not be impacted.
 
3513
      am__obj=conftest.${OBJEXT-o}
 
3514
      am__minus_obj=
 
3515
      ;;
3394
3516
    none) break ;;
3395
3517
    esac
3396
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3397
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3398
 
    # handle `-M -o', and we need to detect this.
3399
3518
    if depmode=$depmode \
3400
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3519
       source=sub/conftest.c object=$am__obj \
3401
3520
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3402
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3521
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3403
3522
         >/dev/null 2>conftest.err &&
3404
3523
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3405
3524
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3406
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3525
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3407
3526
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3408
3527
      # icc doesn't choke on unknown options, it will just issue warnings
3409
3528
      # or remarks (even with -Werror).  So we grep stderr for any message
3442
3561
fi
3443
3562
 
3444
3563
 
3445
 
if test "x$CC" != xcc; then
3446
 
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3447
 
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3448
 
else
3449
 
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3450
 
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3451
 
fi
3452
 
set dummy $CC; ac_cc=`$as_echo "$2" |
3453
 
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3454
 
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3455
 
  $as_echo_n "(cached) " >&6
3456
 
else
3457
 
  cat >conftest.$ac_ext <<_ACEOF
3458
 
/* confdefs.h.  */
3459
 
_ACEOF
3460
 
cat confdefs.h >>conftest.$ac_ext
3461
 
cat >>conftest.$ac_ext <<_ACEOF
3462
 
/* end confdefs.h.  */
 
3564
# Find a good install program.  We prefer a C program (faster),
 
3565
# so one script is as good as another.  But avoid the broken or
 
3566
# incompatible versions:
 
3567
# SysV /etc/install, /usr/sbin/install
 
3568
# SunOS /usr/etc/install
 
3569
# IRIX /sbin/install
 
3570
# AIX /bin/install
 
3571
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3572
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3573
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3574
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3575
# OS/2's system install, which has a completely different semantic
 
3576
# ./install, which can be erroneously created by make from ./install.sh.
 
3577
# Reject install programs that cannot install multiple files.
 
3578
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3579
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3580
if test -z "$INSTALL"; then
 
3581
if test "${ac_cv_path_install+set}" = set; then
 
3582
  $as_echo_n "(cached) " >&6
 
3583
else
 
3584
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3585
for as_dir in $PATH
 
3586
do
 
3587
  IFS=$as_save_IFS
 
3588
  test -z "$as_dir" && as_dir=.
 
3589
  # Account for people who put trailing slashes in PATH elements.
 
3590
case $as_dir/ in
 
3591
  ./ | .// | /cC/* | \
 
3592
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3593
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3594
  /usr/ucb/* ) ;;
 
3595
  *)
 
3596
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3597
    # Don't use installbsd from OSF since it installs stuff as root
 
3598
    # by default.
 
3599
    for ac_prog in ginstall scoinst install; do
 
3600
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3601
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3602
          if test $ac_prog = install &&
 
3603
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3604
            # AIX install.  It has an incompatible calling convention.
 
3605
            :
 
3606
          elif test $ac_prog = install &&
 
3607
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3608
            # program-specific install script used by HP pwplus--don't use.
 
3609
            :
 
3610
          else
 
3611
            rm -rf conftest.one conftest.two conftest.dir
 
3612
            echo one > conftest.one
 
3613
            echo two > conftest.two
 
3614
            mkdir conftest.dir
 
3615
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3616
              test -s conftest.one && test -s conftest.two &&
 
3617
              test -s conftest.dir/conftest.one &&
 
3618
              test -s conftest.dir/conftest.two
 
3619
            then
 
3620
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3621
              break 3
 
3622
            fi
 
3623
          fi
 
3624
        fi
 
3625
      done
 
3626
    done
 
3627
    ;;
 
3628
esac
 
3629
 
 
3630
done
 
3631
IFS=$as_save_IFS
 
3632
 
 
3633
rm -rf conftest.one conftest.two conftest.dir
 
3634
 
 
3635
fi
 
3636
  if test "${ac_cv_path_install+set}" = set; then
 
3637
    INSTALL=$ac_cv_path_install
 
3638
  else
 
3639
    # As a last resort, use the slow shell script.  Don't cache a
 
3640
    # value for INSTALL within a source directory, because that will
 
3641
    # break other packages using the cache if that directory is
 
3642
    # removed, or if the value is a relative name.
 
3643
    INSTALL=$ac_install_sh
 
3644
  fi
 
3645
fi
 
3646
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3647
$as_echo "$INSTALL" >&6; }
 
3648
 
 
3649
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3650
# It thinks the first close brace ends the variable substitution.
 
3651
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3652
 
 
3653
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3654
 
 
3655
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3656
 
 
3657
 
 
3658
 
 
3659
ac_ext=c
 
3660
ac_cpp='$CPP $CPPFLAGS'
 
3661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3664
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3665
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3666
# On Suns, sometimes $CPP names a directory.
 
3667
if test -n "$CPP" && test -d "$CPP"; then
 
3668
  CPP=
 
3669
fi
 
3670
if test -z "$CPP"; then
 
3671
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3672
  $as_echo_n "(cached) " >&6
 
3673
else
 
3674
      # Double quotes because CPP needs to be expanded
 
3675
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3676
    do
 
3677
      ac_preproc_ok=false
 
3678
for ac_c_preproc_warn_flag in '' yes
 
3679
do
 
3680
  # Use a header file that comes with gcc, so configuring glibc
 
3681
  # with a fresh cross-compiler works.
 
3682
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3683
  # <limits.h> exists even on freestanding compilers.
 
3684
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3685
  # not just through cpp. "Syntax error" is here to catch this case.
 
3686
  cat >conftest.$ac_ext <<_ACEOF
 
3687
/* confdefs.h.  */
 
3688
_ACEOF
 
3689
cat confdefs.h >>conftest.$ac_ext
 
3690
cat >>conftest.$ac_ext <<_ACEOF
 
3691
/* end confdefs.h.  */
 
3692
#ifdef __STDC__
 
3693
# include <limits.h>
 
3694
#else
 
3695
# include <assert.h>
 
3696
#endif
 
3697
                     Syntax error
 
3698
_ACEOF
 
3699
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3700
case "(($ac_try" in
 
3701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3702
  *) ac_try_echo=$ac_try;;
 
3703
esac
 
3704
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3705
$as_echo "$ac_try_echo") >&5
 
3706
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3707
  ac_status=$?
 
3708
  grep -v '^ *+' conftest.er1 >conftest.err
 
3709
  rm -f conftest.er1
 
3710
  cat conftest.err >&5
 
3711
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3712
  (exit $ac_status); } >/dev/null && {
 
3713
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3714
         test ! -s conftest.err
 
3715
       }; then
 
3716
  :
 
3717
else
 
3718
  $as_echo "$as_me: failed program was:" >&5
 
3719
sed 's/^/| /' conftest.$ac_ext >&5
 
3720
 
 
3721
  # Broken: fails on valid input.
 
3722
continue
 
3723
fi
 
3724
 
 
3725
rm -f conftest.err conftest.$ac_ext
 
3726
 
 
3727
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3728
  # can be detected and how.
 
3729
  cat >conftest.$ac_ext <<_ACEOF
 
3730
/* confdefs.h.  */
 
3731
_ACEOF
 
3732
cat confdefs.h >>conftest.$ac_ext
 
3733
cat >>conftest.$ac_ext <<_ACEOF
 
3734
/* end confdefs.h.  */
 
3735
#include <ac_nonexistent.h>
 
3736
_ACEOF
 
3737
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3738
case "(($ac_try" in
 
3739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3740
  *) ac_try_echo=$ac_try;;
 
3741
esac
 
3742
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3743
$as_echo "$ac_try_echo") >&5
 
3744
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3745
  ac_status=$?
 
3746
  grep -v '^ *+' conftest.er1 >conftest.err
 
3747
  rm -f conftest.er1
 
3748
  cat conftest.err >&5
 
3749
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3750
  (exit $ac_status); } >/dev/null && {
 
3751
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3752
         test ! -s conftest.err
 
3753
       }; then
 
3754
  # Broken: success on invalid input.
 
3755
continue
 
3756
else
 
3757
  $as_echo "$as_me: failed program was:" >&5
 
3758
sed 's/^/| /' conftest.$ac_ext >&5
 
3759
 
 
3760
  # Passes both tests.
 
3761
ac_preproc_ok=:
 
3762
break
 
3763
fi
 
3764
 
 
3765
rm -f conftest.err conftest.$ac_ext
 
3766
 
 
3767
done
 
3768
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3769
rm -f conftest.err conftest.$ac_ext
 
3770
if $ac_preproc_ok; then
 
3771
  break
 
3772
fi
 
3773
 
 
3774
    done
 
3775
    ac_cv_prog_CPP=$CPP
 
3776
 
 
3777
fi
 
3778
  CPP=$ac_cv_prog_CPP
 
3779
else
 
3780
  ac_cv_prog_CPP=$CPP
 
3781
fi
 
3782
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
3783
$as_echo "$CPP" >&6; }
 
3784
ac_preproc_ok=false
 
3785
for ac_c_preproc_warn_flag in '' yes
 
3786
do
 
3787
  # Use a header file that comes with gcc, so configuring glibc
 
3788
  # with a fresh cross-compiler works.
 
3789
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3790
  # <limits.h> exists even on freestanding compilers.
 
3791
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3792
  # not just through cpp. "Syntax error" is here to catch this case.
 
3793
  cat >conftest.$ac_ext <<_ACEOF
 
3794
/* confdefs.h.  */
 
3795
_ACEOF
 
3796
cat confdefs.h >>conftest.$ac_ext
 
3797
cat >>conftest.$ac_ext <<_ACEOF
 
3798
/* end confdefs.h.  */
 
3799
#ifdef __STDC__
 
3800
# include <limits.h>
 
3801
#else
 
3802
# include <assert.h>
 
3803
#endif
 
3804
                     Syntax error
 
3805
_ACEOF
 
3806
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3807
case "(($ac_try" in
 
3808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3809
  *) ac_try_echo=$ac_try;;
 
3810
esac
 
3811
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3812
$as_echo "$ac_try_echo") >&5
 
3813
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3814
  ac_status=$?
 
3815
  grep -v '^ *+' conftest.er1 >conftest.err
 
3816
  rm -f conftest.er1
 
3817
  cat conftest.err >&5
 
3818
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3819
  (exit $ac_status); } >/dev/null && {
 
3820
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3821
         test ! -s conftest.err
 
3822
       }; then
 
3823
  :
 
3824
else
 
3825
  $as_echo "$as_me: failed program was:" >&5
 
3826
sed 's/^/| /' conftest.$ac_ext >&5
 
3827
 
 
3828
  # Broken: fails on valid input.
 
3829
continue
 
3830
fi
 
3831
 
 
3832
rm -f conftest.err conftest.$ac_ext
 
3833
 
 
3834
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3835
  # can be detected and how.
 
3836
  cat >conftest.$ac_ext <<_ACEOF
 
3837
/* confdefs.h.  */
 
3838
_ACEOF
 
3839
cat confdefs.h >>conftest.$ac_ext
 
3840
cat >>conftest.$ac_ext <<_ACEOF
 
3841
/* end confdefs.h.  */
 
3842
#include <ac_nonexistent.h>
 
3843
_ACEOF
 
3844
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3845
case "(($ac_try" in
 
3846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3847
  *) ac_try_echo=$ac_try;;
 
3848
esac
 
3849
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3850
$as_echo "$ac_try_echo") >&5
 
3851
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3852
  ac_status=$?
 
3853
  grep -v '^ *+' conftest.er1 >conftest.err
 
3854
  rm -f conftest.er1
 
3855
  cat conftest.err >&5
 
3856
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3857
  (exit $ac_status); } >/dev/null && {
 
3858
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3859
         test ! -s conftest.err
 
3860
       }; then
 
3861
  # Broken: success on invalid input.
 
3862
continue
 
3863
else
 
3864
  $as_echo "$as_me: failed program was:" >&5
 
3865
sed 's/^/| /' conftest.$ac_ext >&5
 
3866
 
 
3867
  # Passes both tests.
 
3868
ac_preproc_ok=:
 
3869
break
 
3870
fi
 
3871
 
 
3872
rm -f conftest.err conftest.$ac_ext
 
3873
 
 
3874
done
 
3875
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3876
rm -f conftest.err conftest.$ac_ext
 
3877
if $ac_preproc_ok; then
 
3878
  :
 
3879
else
 
3880
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3881
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3882
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3883
See \`config.log' for more details." >&5
 
3884
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3885
See \`config.log' for more details." >&2;}
 
3886
   { (exit 1); exit 1; }; }; }
 
3887
fi
 
3888
 
 
3889
ac_ext=c
 
3890
ac_cpp='$CPP $CPPFLAGS'
 
3891
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3892
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3893
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3894
 
 
3895
 
 
3896
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3897
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3898
if test "${ac_cv_path_GREP+set}" = set; then
 
3899
  $as_echo_n "(cached) " >&6
 
3900
else
 
3901
  if test -z "$GREP"; then
 
3902
  ac_path_GREP_found=false
 
3903
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3904
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3905
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3906
do
 
3907
  IFS=$as_save_IFS
 
3908
  test -z "$as_dir" && as_dir=.
 
3909
  for ac_prog in grep ggrep; do
 
3910
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3911
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3912
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3913
# Check for GNU ac_path_GREP and select it if it is found.
 
3914
  # Check for GNU $ac_path_GREP
 
3915
case `"$ac_path_GREP" --version 2>&1` in
 
3916
*GNU*)
 
3917
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3918
*)
 
3919
  ac_count=0
 
3920
  $as_echo_n 0123456789 >"conftest.in"
 
3921
  while :
 
3922
  do
 
3923
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3924
    mv "conftest.tmp" "conftest.in"
 
3925
    cp "conftest.in" "conftest.nl"
 
3926
    $as_echo 'GREP' >> "conftest.nl"
 
3927
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3928
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3929
    ac_count=`expr $ac_count + 1`
 
3930
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3931
      # Best one so far, save it but keep looking for a better one
 
3932
      ac_cv_path_GREP="$ac_path_GREP"
 
3933
      ac_path_GREP_max=$ac_count
 
3934
    fi
 
3935
    # 10*(2^10) chars as input seems more than enough
 
3936
    test $ac_count -gt 10 && break
 
3937
  done
 
3938
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3939
esac
 
3940
 
 
3941
      $ac_path_GREP_found && break 3
 
3942
    done
 
3943
  done
 
3944
done
 
3945
IFS=$as_save_IFS
 
3946
  if test -z "$ac_cv_path_GREP"; then
 
3947
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3948
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3949
   { (exit 1); exit 1; }; }
 
3950
  fi
 
3951
else
 
3952
  ac_cv_path_GREP=$GREP
 
3953
fi
 
3954
 
 
3955
fi
 
3956
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3957
$as_echo "$ac_cv_path_GREP" >&6; }
 
3958
 GREP="$ac_cv_path_GREP"
 
3959
 
 
3960
 
 
3961
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3962
$as_echo_n "checking for egrep... " >&6; }
 
3963
if test "${ac_cv_path_EGREP+set}" = set; then
 
3964
  $as_echo_n "(cached) " >&6
 
3965
else
 
3966
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3967
   then ac_cv_path_EGREP="$GREP -E"
 
3968
   else
 
3969
     if test -z "$EGREP"; then
 
3970
  ac_path_EGREP_found=false
 
3971
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3972
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3973
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3974
do
 
3975
  IFS=$as_save_IFS
 
3976
  test -z "$as_dir" && as_dir=.
 
3977
  for ac_prog in egrep; do
 
3978
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3979
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3980
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3981
# Check for GNU ac_path_EGREP and select it if it is found.
 
3982
  # Check for GNU $ac_path_EGREP
 
3983
case `"$ac_path_EGREP" --version 2>&1` in
 
3984
*GNU*)
 
3985
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3986
*)
 
3987
  ac_count=0
 
3988
  $as_echo_n 0123456789 >"conftest.in"
 
3989
  while :
 
3990
  do
 
3991
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3992
    mv "conftest.tmp" "conftest.in"
 
3993
    cp "conftest.in" "conftest.nl"
 
3994
    $as_echo 'EGREP' >> "conftest.nl"
 
3995
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3996
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3997
    ac_count=`expr $ac_count + 1`
 
3998
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3999
      # Best one so far, save it but keep looking for a better one
 
4000
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4001
      ac_path_EGREP_max=$ac_count
 
4002
    fi
 
4003
    # 10*(2^10) chars as input seems more than enough
 
4004
    test $ac_count -gt 10 && break
 
4005
  done
 
4006
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4007
esac
 
4008
 
 
4009
      $ac_path_EGREP_found && break 3
 
4010
    done
 
4011
  done
 
4012
done
 
4013
IFS=$as_save_IFS
 
4014
  if test -z "$ac_cv_path_EGREP"; then
 
4015
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4016
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4017
   { (exit 1); exit 1; }; }
 
4018
  fi
 
4019
else
 
4020
  ac_cv_path_EGREP=$EGREP
 
4021
fi
 
4022
 
 
4023
   fi
 
4024
fi
 
4025
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4026
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4027
 EGREP="$ac_cv_path_EGREP"
 
4028
 
 
4029
 
 
4030
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4031
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4032
if test "${ac_cv_header_stdc+set}" = set; then
 
4033
  $as_echo_n "(cached) " >&6
 
4034
else
 
4035
  cat >conftest.$ac_ext <<_ACEOF
 
4036
/* confdefs.h.  */
 
4037
_ACEOF
 
4038
cat confdefs.h >>conftest.$ac_ext
 
4039
cat >>conftest.$ac_ext <<_ACEOF
 
4040
/* end confdefs.h.  */
 
4041
#include <stdlib.h>
 
4042
#include <stdarg.h>
 
4043
#include <string.h>
 
4044
#include <float.h>
3463
4045
 
3464
4046
int
3465
4047
main ()
3469
4051
  return 0;
3470
4052
}
3471
4053
_ACEOF
3472
 
# Make sure it works both with $CC and with simple cc.
3473
 
# We do the test twice because some compilers refuse to overwrite an
3474
 
# existing .o file with -o, though they will create one.
3475
 
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3476
 
rm -f conftest2.*
3477
 
if { (case "(($ac_try" in
3478
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479
 
  *) ac_try_echo=$ac_try;;
3480
 
esac
3481
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482
 
$as_echo "$ac_try_echo") >&5
3483
 
  (eval "$ac_try") 2>&5
3484
 
  ac_status=$?
3485
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486
 
  (exit $ac_status); } &&
3487
 
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
3488
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489
 
  *) ac_try_echo=$ac_try;;
3490
 
esac
3491
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492
 
$as_echo "$ac_try_echo") >&5
3493
 
  (eval "$ac_try") 2>&5
3494
 
  ac_status=$?
3495
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496
 
  (exit $ac_status); };
3497
 
then
3498
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3499
 
  if test "x$CC" != xcc; then
3500
 
    # Test first that cc exists at all.
3501
 
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4054
rm -f conftest.$ac_objext
 
4055
if { (ac_try="$ac_compile"
 
4056
case "(($ac_try" in
 
4057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4058
  *) ac_try_echo=$ac_try;;
 
4059
esac
 
4060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4061
$as_echo "$ac_try_echo") >&5
 
4062
  (eval "$ac_compile") 2>conftest.er1
 
4063
  ac_status=$?
 
4064
  grep -v '^ *+' conftest.er1 >conftest.err
 
4065
  rm -f conftest.er1
 
4066
  cat conftest.err >&5
 
4067
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4068
  (exit $ac_status); } && {
 
4069
         test -z "$ac_c_werror_flag" ||
 
4070
         test ! -s conftest.err
 
4071
       } && test -s conftest.$ac_objext; then
 
4072
  ac_cv_header_stdc=yes
 
4073
else
 
4074
  $as_echo "$as_me: failed program was:" >&5
 
4075
sed 's/^/| /' conftest.$ac_ext >&5
 
4076
 
 
4077
        ac_cv_header_stdc=no
 
4078
fi
 
4079
 
 
4080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4081
 
 
4082
if test $ac_cv_header_stdc = yes; then
 
4083
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4084
  cat >conftest.$ac_ext <<_ACEOF
 
4085
/* confdefs.h.  */
 
4086
_ACEOF
 
4087
cat confdefs.h >>conftest.$ac_ext
 
4088
cat >>conftest.$ac_ext <<_ACEOF
 
4089
/* end confdefs.h.  */
 
4090
#include <string.h>
 
4091
 
 
4092
_ACEOF
 
4093
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4094
  $EGREP "memchr" >/dev/null 2>&1; then
 
4095
  :
 
4096
else
 
4097
  ac_cv_header_stdc=no
 
4098
fi
 
4099
rm -f conftest*
 
4100
 
 
4101
fi
 
4102
 
 
4103
if test $ac_cv_header_stdc = yes; then
 
4104
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4105
  cat >conftest.$ac_ext <<_ACEOF
 
4106
/* confdefs.h.  */
 
4107
_ACEOF
 
4108
cat confdefs.h >>conftest.$ac_ext
 
4109
cat >>conftest.$ac_ext <<_ACEOF
 
4110
/* end confdefs.h.  */
 
4111
#include <stdlib.h>
 
4112
 
 
4113
_ACEOF
 
4114
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4115
  $EGREP "free" >/dev/null 2>&1; then
 
4116
  :
 
4117
else
 
4118
  ac_cv_header_stdc=no
 
4119
fi
 
4120
rm -f conftest*
 
4121
 
 
4122
fi
 
4123
 
 
4124
if test $ac_cv_header_stdc = yes; then
 
4125
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4126
  if test "$cross_compiling" = yes; then
 
4127
  :
 
4128
else
 
4129
  cat >conftest.$ac_ext <<_ACEOF
 
4130
/* confdefs.h.  */
 
4131
_ACEOF
 
4132
cat confdefs.h >>conftest.$ac_ext
 
4133
cat >>conftest.$ac_ext <<_ACEOF
 
4134
/* end confdefs.h.  */
 
4135
#include <ctype.h>
 
4136
#include <stdlib.h>
 
4137
#if ((' ' & 0x0FF) == 0x020)
 
4138
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4139
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4140
#else
 
4141
# define ISLOWER(c) \
 
4142
                   (('a' <= (c) && (c) <= 'i') \
 
4143
                     || ('j' <= (c) && (c) <= 'r') \
 
4144
                     || ('s' <= (c) && (c) <= 'z'))
 
4145
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4146
#endif
 
4147
 
 
4148
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4149
int
 
4150
main ()
 
4151
{
 
4152
  int i;
 
4153
  for (i = 0; i < 256; i++)
 
4154
    if (XOR (islower (i), ISLOWER (i))
 
4155
        || toupper (i) != TOUPPER (i))
 
4156
      return 2;
 
4157
  return 0;
 
4158
}
 
4159
_ACEOF
 
4160
rm -f conftest$ac_exeext
 
4161
if { (ac_try="$ac_link"
 
4162
case "(($ac_try" in
 
4163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4164
  *) ac_try_echo=$ac_try;;
 
4165
esac
 
4166
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4167
$as_echo "$ac_try_echo") >&5
 
4168
  (eval "$ac_link") 2>&5
 
4169
  ac_status=$?
 
4170
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4171
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3502
4172
  { (case "(($ac_try" in
3503
4173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504
4174
  *) ac_try_echo=$ac_try;;
3509
4179
  ac_status=$?
3510
4180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511
4181
  (exit $ac_status); }; }; then
3512
 
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3513
 
      rm -f conftest2.*
3514
 
      if { (case "(($ac_try" in
3515
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516
 
  *) ac_try_echo=$ac_try;;
3517
 
esac
3518
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519
 
$as_echo "$ac_try_echo") >&5
3520
 
  (eval "$ac_try") 2>&5
3521
 
  ac_status=$?
3522
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523
 
  (exit $ac_status); } &&
3524
 
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
3525
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526
 
  *) ac_try_echo=$ac_try;;
3527
 
esac
3528
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529
 
$as_echo "$ac_try_echo") >&5
3530
 
  (eval "$ac_try") 2>&5
3531
 
  ac_status=$?
3532
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533
 
  (exit $ac_status); };
3534
 
      then
3535
 
        # cc works too.
3536
 
        :
3537
 
      else
3538
 
        # cc exists but doesn't like -o.
3539
 
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
3540
 
      fi
3541
 
    fi
3542
 
  fi
3543
 
else
3544
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3545
 
fi
3546
 
rm -f core conftest*
3547
 
 
3548
 
fi
3549
 
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3550
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
3551
 
$as_echo "yes" >&6; }
3552
 
else
3553
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3554
 
$as_echo "no" >&6; }
 
4182
  :
 
4183
else
 
4184
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
4185
$as_echo "$as_me: failed program was:" >&5
 
4186
sed 's/^/| /' conftest.$ac_ext >&5
 
4187
 
 
4188
( exit $ac_status )
 
4189
ac_cv_header_stdc=no
 
4190
fi
 
4191
rm -rf conftest.dSYM
 
4192
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4193
fi
 
4194
 
 
4195
 
 
4196
fi
 
4197
fi
 
4198
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4199
$as_echo "$ac_cv_header_stdc" >&6; }
 
4200
if test $ac_cv_header_stdc = yes; then
3555
4201
 
3556
4202
cat >>confdefs.h <<\_ACEOF
3557
 
#define NO_MINUS_C_MINUS_O 1
3558
 
_ACEOF
3559
 
 
3560
 
fi
3561
 
 
3562
 
# FIXME: we rely on the cache variable name because
3563
 
# there is no other way.
3564
 
set dummy $CC
3565
 
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3566
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3567
 
   # Losing compiler, so override with the script.
3568
 
   # FIXME: It is wrong to rewrite CC.
3569
 
   # But if we don't then we get into trouble of one sort or another.
3570
 
   # A longer-term fix would be to have automake use am__CC in this case,
3571
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3572
 
   CC="$am_aux_dir/compile $CC"
3573
 
fi
3574
 
 
3575
 
 
3576
 
# Find a good install program.  We prefer a C program (faster),
3577
 
# so one script is as good as another.  But avoid the broken or
3578
 
# incompatible versions:
3579
 
# SysV /etc/install, /usr/sbin/install
3580
 
# SunOS /usr/etc/install
3581
 
# IRIX /sbin/install
3582
 
# AIX /bin/install
3583
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3584
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3585
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3586
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3587
 
# OS/2's system install, which has a completely different semantic
3588
 
# ./install, which can be erroneously created by make from ./install.sh.
3589
 
# Reject install programs that cannot install multiple files.
3590
 
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3591
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3592
 
if test -z "$INSTALL"; then
3593
 
if test "${ac_cv_path_install+set}" = set; then
3594
 
  $as_echo_n "(cached) " >&6
3595
 
else
3596
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597
 
for as_dir in $PATH
3598
 
do
3599
 
  IFS=$as_save_IFS
3600
 
  test -z "$as_dir" && as_dir=.
3601
 
  # Account for people who put trailing slashes in PATH elements.
3602
 
case $as_dir/ in
3603
 
  ./ | .// | /cC/* | \
3604
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3605
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3606
 
  /usr/ucb/* ) ;;
3607
 
  *)
3608
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3609
 
    # Don't use installbsd from OSF since it installs stuff as root
3610
 
    # by default.
3611
 
    for ac_prog in ginstall scoinst install; do
3612
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3613
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3614
 
          if test $ac_prog = install &&
3615
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616
 
            # AIX install.  It has an incompatible calling convention.
3617
 
            :
3618
 
          elif test $ac_prog = install &&
3619
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3620
 
            # program-specific install script used by HP pwplus--don't use.
3621
 
            :
3622
 
          else
3623
 
            rm -rf conftest.one conftest.two conftest.dir
3624
 
            echo one > conftest.one
3625
 
            echo two > conftest.two
3626
 
            mkdir conftest.dir
3627
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3628
 
              test -s conftest.one && test -s conftest.two &&
3629
 
              test -s conftest.dir/conftest.one &&
3630
 
              test -s conftest.dir/conftest.two
3631
 
            then
3632
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3633
 
              break 3
3634
 
            fi
3635
 
          fi
3636
 
        fi
3637
 
      done
3638
 
    done
3639
 
    ;;
3640
 
esac
3641
 
 
3642
 
done
3643
 
IFS=$as_save_IFS
3644
 
 
3645
 
rm -rf conftest.one conftest.two conftest.dir
3646
 
 
3647
 
fi
3648
 
  if test "${ac_cv_path_install+set}" = set; then
3649
 
    INSTALL=$ac_cv_path_install
3650
 
  else
3651
 
    # As a last resort, use the slow shell script.  Don't cache a
3652
 
    # value for INSTALL within a source directory, because that will
3653
 
    # break other packages using the cache if that directory is
3654
 
    # removed, or if the value is a relative name.
3655
 
    INSTALL=$ac_install_sh
3656
 
  fi
3657
 
fi
3658
 
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3659
 
$as_echo "$INSTALL" >&6; }
3660
 
 
3661
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3662
 
# It thinks the first close brace ends the variable substitution.
3663
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3664
 
 
3665
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3666
 
 
3667
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3668
 
 
3669
 
 
3670
 
# Checks for pkg-config packages
3671
 
 
3672
 
 
3673
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3674
 
        if test -n "$ac_tool_prefix"; then
3675
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3676
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3677
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3678
 
$as_echo_n "checking for $ac_word... " >&6; }
3679
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3680
 
  $as_echo_n "(cached) " >&6
3681
 
else
3682
 
  case $PKG_CONFIG in
3683
 
  [\\/]* | ?:[\\/]*)
3684
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3685
 
  ;;
3686
 
  *)
3687
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688
 
for as_dir in $PATH
3689
 
do
3690
 
  IFS=$as_save_IFS
3691
 
  test -z "$as_dir" && as_dir=.
3692
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3693
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3695
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696
 
    break 2
3697
 
  fi
3698
 
done
3699
 
done
3700
 
IFS=$as_save_IFS
3701
 
 
3702
 
  ;;
3703
 
esac
3704
 
fi
3705
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3706
 
if test -n "$PKG_CONFIG"; then
3707
 
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3708
 
$as_echo "$PKG_CONFIG" >&6; }
3709
 
else
3710
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3711
 
$as_echo "no" >&6; }
3712
 
fi
3713
 
 
3714
 
 
3715
 
fi
3716
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
3717
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
3718
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
3719
 
set dummy pkg-config; ac_word=$2
3720
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3721
 
$as_echo_n "checking for $ac_word... " >&6; }
3722
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3723
 
  $as_echo_n "(cached) " >&6
3724
 
else
3725
 
  case $ac_pt_PKG_CONFIG in
3726
 
  [\\/]* | ?:[\\/]*)
3727
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3728
 
  ;;
3729
 
  *)
3730
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731
 
for as_dir in $PATH
3732
 
do
3733
 
  IFS=$as_save_IFS
3734
 
  test -z "$as_dir" && as_dir=.
3735
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3736
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3738
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739
 
    break 2
3740
 
  fi
3741
 
done
3742
 
done
3743
 
IFS=$as_save_IFS
3744
 
 
3745
 
  ;;
3746
 
esac
3747
 
fi
3748
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3749
 
if test -n "$ac_pt_PKG_CONFIG"; then
3750
 
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3751
 
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3752
 
else
3753
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3754
 
$as_echo "no" >&6; }
3755
 
fi
3756
 
 
3757
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
3758
 
    PKG_CONFIG=""
3759
 
  else
3760
 
    case $cross_compiling:$ac_tool_warned in
3761
 
yes:)
3762
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3763
 
whose name does not start with the host triplet.  If you think this
3764
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3765
 
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3766
 
whose name does not start with the host triplet.  If you think this
3767
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3768
 
ac_tool_warned=yes ;;
3769
 
esac
3770
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
3771
 
  fi
3772
 
else
3773
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3774
 
fi
3775
 
 
3776
 
fi
3777
 
if test -n "$PKG_CONFIG"; then
3778
 
        _pkg_min_version=0.9.0
3779
 
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3780
 
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3781
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3782
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
3783
 
$as_echo "yes" >&6; }
3784
 
        else
3785
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
3786
 
$as_echo "no" >&6; }
3787
 
                PKG_CONFIG=""
3788
 
        fi
3789
 
 
3790
 
fi
3791
 
 
3792
 
pkg_failed=no
3793
 
{ $as_echo "$as_me:$LINENO: checking for XWD" >&5
3794
 
$as_echo_n "checking for XWD... " >&6; }
3795
 
 
3796
 
if test -n "$XWD_CFLAGS"; then
3797
 
    pkg_cv_XWD_CFLAGS="$XWD_CFLAGS"
3798
 
 elif test -n "$PKG_CONFIG"; then
3799
 
    if test -n "$PKG_CONFIG" && \
3800
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
3801
 
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
3802
 
  ac_status=$?
3803
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804
 
  (exit $ac_status); }; then
3805
 
  pkg_cv_XWD_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
3806
 
else
3807
 
  pkg_failed=yes
3808
 
fi
3809
 
 else
3810
 
    pkg_failed=untried
3811
 
fi
3812
 
if test -n "$XWD_LIBS"; then
3813
 
    pkg_cv_XWD_LIBS="$XWD_LIBS"
3814
 
 elif test -n "$PKG_CONFIG"; then
3815
 
    if test -n "$PKG_CONFIG" && \
3816
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
3817
 
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
3818
 
  ac_status=$?
3819
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820
 
  (exit $ac_status); }; then
3821
 
  pkg_cv_XWD_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
3822
 
else
3823
 
  pkg_failed=yes
3824
 
fi
3825
 
 else
3826
 
    pkg_failed=untried
3827
 
fi
3828
 
 
3829
 
 
3830
 
 
3831
 
if test $pkg_failed = yes; then
3832
 
 
3833
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3834
 
        _pkg_short_errors_supported=yes
3835
 
else
3836
 
        _pkg_short_errors_supported=no
3837
 
fi
3838
 
        if test $_pkg_short_errors_supported = yes; then
3839
 
                XWD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
3840
 
        else
3841
 
                XWD_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
3842
 
        fi
3843
 
        # Put the nasty error message in config.log where it belongs
3844
 
        echo "$XWD_PKG_ERRORS" >&5
3845
 
 
3846
 
        { { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
3847
 
 
3848
 
$XWD_PKG_ERRORS
3849
 
 
3850
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
3851
 
installed software in a non-standard prefix.
3852
 
 
3853
 
Alternatively, you may set the environment variables XWD_CFLAGS
3854
 
and XWD_LIBS to avoid the need to call pkg-config.
3855
 
See the pkg-config man page for more details.
3856
 
" >&5
3857
 
$as_echo "$as_me: error: Package requirements (x11) were not met:
3858
 
 
3859
 
$XWD_PKG_ERRORS
3860
 
 
3861
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
3862
 
installed software in a non-standard prefix.
3863
 
 
3864
 
Alternatively, you may set the environment variables XWD_CFLAGS
3865
 
and XWD_LIBS to avoid the need to call pkg-config.
3866
 
See the pkg-config man page for more details.
3867
 
" >&2;}
3868
 
   { (exit 1); exit 1; }; }
3869
 
elif test $pkg_failed = untried; then
3870
 
        { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
3871
 
is in your PATH or set the PKG_CONFIG environment variable to the full
3872
 
path to pkg-config.
3873
 
 
3874
 
Alternatively, you may set the environment variables XWD_CFLAGS
3875
 
and XWD_LIBS to avoid the need to call pkg-config.
3876
 
See the pkg-config man page for more details.
3877
 
 
3878
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3879
 
See \`config.log' for more details." >&5
3880
 
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
3881
 
is in your PATH or set the PKG_CONFIG environment variable to the full
3882
 
path to pkg-config.
3883
 
 
3884
 
Alternatively, you may set the environment variables XWD_CFLAGS
3885
 
and XWD_LIBS to avoid the need to call pkg-config.
3886
 
See the pkg-config man page for more details.
3887
 
 
3888
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3889
 
See \`config.log' for more details." >&2;}
3890
 
   { (exit 1); exit 1; }; }
3891
 
else
3892
 
        XWD_CFLAGS=$pkg_cv_XWD_CFLAGS
3893
 
        XWD_LIBS=$pkg_cv_XWD_LIBS
3894
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
3895
 
$as_echo "yes" >&6; }
3896
 
        :
3897
 
fi
 
4203
#define STDC_HEADERS 1
 
4204
_ACEOF
 
4205
 
 
4206
fi
 
4207
 
 
4208
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4209
 
 
4210
 
 
4211
 
 
4212
 
 
4213
 
 
4214
 
 
4215
 
 
4216
 
 
4217
 
 
4218
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4219
                  inttypes.h stdint.h unistd.h
 
4220
do
 
4221
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4222
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4223
$as_echo_n "checking for $ac_header... " >&6; }
 
4224
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4225
  $as_echo_n "(cached) " >&6
 
4226
else
 
4227
  cat >conftest.$ac_ext <<_ACEOF
 
4228
/* confdefs.h.  */
 
4229
_ACEOF
 
4230
cat confdefs.h >>conftest.$ac_ext
 
4231
cat >>conftest.$ac_ext <<_ACEOF
 
4232
/* end confdefs.h.  */
 
4233
$ac_includes_default
 
4234
 
 
4235
#include <$ac_header>
 
4236
_ACEOF
 
4237
rm -f conftest.$ac_objext
 
4238
if { (ac_try="$ac_compile"
 
4239
case "(($ac_try" in
 
4240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4241
  *) ac_try_echo=$ac_try;;
 
4242
esac
 
4243
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4244
$as_echo "$ac_try_echo") >&5
 
4245
  (eval "$ac_compile") 2>conftest.er1
 
4246
  ac_status=$?
 
4247
  grep -v '^ *+' conftest.er1 >conftest.err
 
4248
  rm -f conftest.er1
 
4249
  cat conftest.err >&5
 
4250
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4251
  (exit $ac_status); } && {
 
4252
         test -z "$ac_c_werror_flag" ||
 
4253
         test ! -s conftest.err
 
4254
       } && test -s conftest.$ac_objext; then
 
4255
  eval "$as_ac_Header=yes"
 
4256
else
 
4257
  $as_echo "$as_me: failed program was:" >&5
 
4258
sed 's/^/| /' conftest.$ac_ext >&5
 
4259
 
 
4260
        eval "$as_ac_Header=no"
 
4261
fi
 
4262
 
 
4263
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4264
fi
 
4265
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4266
                 $as_echo "$as_val"'`
 
4267
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4268
$as_echo "$ac_res" >&6; }
 
4269
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4270
                 $as_echo "$as_val"'`
 
4271
   if test "x$as_val" = x""yes; then
 
4272
  cat >>confdefs.h <<_ACEOF
 
4273
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4274
_ACEOF
 
4275
 
 
4276
fi
 
4277
 
 
4278
done
 
4279
 
 
4280
 
 
4281
   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
4282
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
4283
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
4284
  $as_echo_n "(cached) " >&6
 
4285
else
 
4286
  ac_cv_prog_cc_c99=no
 
4287
ac_save_CC=$CC
 
4288
cat >conftest.$ac_ext <<_ACEOF
 
4289
/* confdefs.h.  */
 
4290
_ACEOF
 
4291
cat confdefs.h >>conftest.$ac_ext
 
4292
cat >>conftest.$ac_ext <<_ACEOF
 
4293
/* end confdefs.h.  */
 
4294
#include <stdarg.h>
 
4295
#include <stdbool.h>
 
4296
#include <stdlib.h>
 
4297
#include <wchar.h>
 
4298
#include <stdio.h>
 
4299
 
 
4300
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
4301
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
4302
#define showlist(...) puts (#__VA_ARGS__)
 
4303
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
4304
static void
 
4305
test_varargs_macros (void)
 
4306
{
 
4307
  int x = 1234;
 
4308
  int y = 5678;
 
4309
  debug ("Flag");
 
4310
  debug ("X = %d\n", x);
 
4311
  showlist (The first, second, and third items.);
 
4312
  report (x>y, "x is %d but y is %d", x, y);
 
4313
}
 
4314
 
 
4315
// Check long long types.
 
4316
#define BIG64 18446744073709551615ull
 
4317
#define BIG32 4294967295ul
 
4318
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
4319
#if !BIG_OK
 
4320
  your preprocessor is broken;
 
4321
#endif
 
4322
#if BIG_OK
 
4323
#else
 
4324
  your preprocessor is broken;
 
4325
#endif
 
4326
static long long int bignum = -9223372036854775807LL;
 
4327
static unsigned long long int ubignum = BIG64;
 
4328
 
 
4329
struct incomplete_array
 
4330
{
 
4331
  int datasize;
 
4332
  double data[];
 
4333
};
 
4334
 
 
4335
struct named_init {
 
4336
  int number;
 
4337
  const wchar_t *name;
 
4338
  double average;
 
4339
};
 
4340
 
 
4341
typedef const char *ccp;
 
4342
 
 
4343
static inline int
 
4344
test_restrict (ccp restrict text)
 
4345
{
 
4346
  // See if C++-style comments work.
 
4347
  // Iterate through items via the restricted pointer.
 
4348
  // Also check for declarations in for loops.
 
4349
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
4350
    continue;
 
4351
  return 0;
 
4352
}
 
4353
 
 
4354
// Check varargs and va_copy.
 
4355
static void
 
4356
test_varargs (const char *format, ...)
 
4357
{
 
4358
  va_list args;
 
4359
  va_start (args, format);
 
4360
  va_list args_copy;
 
4361
  va_copy (args_copy, args);
 
4362
 
 
4363
  const char *str;
 
4364
  int number;
 
4365
  float fnumber;
 
4366
 
 
4367
  while (*format)
 
4368
    {
 
4369
      switch (*format++)
 
4370
        {
 
4371
        case 's': // string
 
4372
          str = va_arg (args_copy, const char *);
 
4373
          break;
 
4374
        case 'd': // int
 
4375
          number = va_arg (args_copy, int);
 
4376
          break;
 
4377
        case 'f': // float
 
4378
          fnumber = va_arg (args_copy, double);
 
4379
          break;
 
4380
        default:
 
4381
          break;
 
4382
        }
 
4383
    }
 
4384
  va_end (args_copy);
 
4385
  va_end (args);
 
4386
}
 
4387
 
 
4388
int
 
4389
main ()
 
4390
{
 
4391
 
 
4392
  // Check bool.
 
4393
  _Bool success = false;
 
4394
 
 
4395
  // Check restrict.
 
4396
  if (test_restrict ("String literal") == 0)
 
4397
    success = true;
 
4398
  char *restrict newvar = "Another string";
 
4399
 
 
4400
  // Check varargs.
 
4401
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
4402
  test_varargs_macros ();
 
4403
 
 
4404
  // Check flexible array members.
 
4405
  struct incomplete_array *ia =
 
4406
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
4407
  ia->datasize = 10;
 
4408
  for (int i = 0; i < ia->datasize; ++i)
 
4409
    ia->data[i] = i * 1.234;
 
4410
 
 
4411
  // Check named initializers.
 
4412
  struct named_init ni = {
 
4413
    .number = 34,
 
4414
    .name = L"Test wide string",
 
4415
    .average = 543.34343,
 
4416
  };
 
4417
 
 
4418
  ni.number = 58;
 
4419
 
 
4420
  int dynamic_array[ni.number];
 
4421
  dynamic_array[ni.number - 1] = 543;
 
4422
 
 
4423
  // work around unused variable warnings
 
4424
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
4425
          || dynamic_array[ni.number - 1] != 543);
 
4426
 
 
4427
  ;
 
4428
  return 0;
 
4429
}
 
4430
_ACEOF
 
4431
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
4432
do
 
4433
  CC="$ac_save_CC $ac_arg"
 
4434
  rm -f conftest.$ac_objext
 
4435
if { (ac_try="$ac_compile"
 
4436
case "(($ac_try" in
 
4437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4438
  *) ac_try_echo=$ac_try;;
 
4439
esac
 
4440
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4441
$as_echo "$ac_try_echo") >&5
 
4442
  (eval "$ac_compile") 2>conftest.er1
 
4443
  ac_status=$?
 
4444
  grep -v '^ *+' conftest.er1 >conftest.err
 
4445
  rm -f conftest.er1
 
4446
  cat conftest.err >&5
 
4447
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4448
  (exit $ac_status); } && {
 
4449
         test -z "$ac_c_werror_flag" ||
 
4450
         test ! -s conftest.err
 
4451
       } && test -s conftest.$ac_objext; then
 
4452
  ac_cv_prog_cc_c99=$ac_arg
 
4453
else
 
4454
  $as_echo "$as_me: failed program was:" >&5
 
4455
sed 's/^/| /' conftest.$ac_ext >&5
 
4456
 
 
4457
 
 
4458
fi
 
4459
 
 
4460
rm -f core conftest.err conftest.$ac_objext
 
4461
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
4462
done
 
4463
rm -f conftest.$ac_ext
 
4464
CC=$ac_save_CC
 
4465
 
 
4466
fi
 
4467
# AC_CACHE_VAL
 
4468
case "x$ac_cv_prog_cc_c99" in
 
4469
  x)
 
4470
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
4471
$as_echo "none needed" >&6; } ;;
 
4472
  xno)
 
4473
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
4474
$as_echo "unsupported" >&6; } ;;
 
4475
  *)
 
4476
    CC="$CC $ac_cv_prog_cc_c99"
 
4477
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
4478
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
4479
esac
3898
4480
 
3899
4481
 
3900
4482
 
3984
4566
 
3985
4567
 
3986
4568
 
 
4569
if  test "x$GCC" = xyes ; then
 
4570
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
 
4571
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
 
4572
-Wbad-function-cast"
 
4573
    case `$CC -dumpversion` in
 
4574
    3.4.* | 4.*)
 
4575
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
 
4576
        ;;
 
4577
    esac
 
4578
else
 
4579
    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
4580
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
4581
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
4582
  $as_echo_n "(cached) " >&6
 
4583
else
 
4584
  cat >conftest.$ac_ext <<_ACEOF
 
4585
/* confdefs.h.  */
 
4586
_ACEOF
 
4587
cat confdefs.h >>conftest.$ac_ext
 
4588
cat >>conftest.$ac_ext <<_ACEOF
 
4589
/* end confdefs.h.  */
 
4590
$ac_includes_default
 
4591
int
 
4592
main ()
 
4593
{
 
4594
#ifndef __SUNPRO_C
 
4595
  (void) __SUNPRO_C;
 
4596
#endif
 
4597
 
 
4598
  ;
 
4599
  return 0;
 
4600
}
 
4601
_ACEOF
 
4602
rm -f conftest.$ac_objext
 
4603
if { (ac_try="$ac_compile"
 
4604
case "(($ac_try" in
 
4605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4606
  *) ac_try_echo=$ac_try;;
 
4607
esac
 
4608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4609
$as_echo "$ac_try_echo") >&5
 
4610
  (eval "$ac_compile") 2>conftest.er1
 
4611
  ac_status=$?
 
4612
  grep -v '^ *+' conftest.er1 >conftest.err
 
4613
  rm -f conftest.er1
 
4614
  cat conftest.err >&5
 
4615
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4616
  (exit $ac_status); } && {
 
4617
         test -z "$ac_c_werror_flag" ||
 
4618
         test ! -s conftest.err
 
4619
       } && test -s conftest.$ac_objext; then
 
4620
  ac_cv_have_decl___SUNPRO_C=yes
 
4621
else
 
4622
  $as_echo "$as_me: failed program was:" >&5
 
4623
sed 's/^/| /' conftest.$ac_ext >&5
 
4624
 
 
4625
        ac_cv_have_decl___SUNPRO_C=no
 
4626
fi
 
4627
 
 
4628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4629
fi
 
4630
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
4631
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
4632
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
4633
  SUNCC="yes"
 
4634
else
 
4635
  SUNCC="no"
 
4636
fi
 
4637
 
 
4638
    if test "x$SUNCC" = "xyes"; then
 
4639
        CWARNFLAGS="-v"
 
4640
    fi
 
4641
fi
 
4642
 
 
4643
# Check whether --enable-silent-rules was given.
 
4644
if test "${enable_silent_rules+set}" = set; then
 
4645
  enableval=$enable_silent_rules;
 
4646
fi
 
4647
 
 
4648
case $enable_silent_rules in
 
4649
yes) AM_DEFAULT_VERBOSITY=0;;
 
4650
no)  AM_DEFAULT_VERBOSITY=1;;
 
4651
*)   AM_DEFAULT_VERBOSITY=0;;
 
4652
esac
 
4653
AM_BACKSLASH='\'
 
4654
 
 
4655
 
 
4656
 
 
4657
 
 
4658
 
 
4659
 
 
4660
 
 
4661
# Check whether --enable-strict-compilation was given.
 
4662
if test "${enable_strict_compilation+set}" = set; then
 
4663
  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
 
4664
else
 
4665
  STRICT_COMPILE=no
 
4666
fi
 
4667
 
 
4668
if test "x$STRICT_COMPILE" = "xyes"; then
 
4669
        { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
4670
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
4671
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
4672
  $as_echo_n "(cached) " >&6
 
4673
else
 
4674
  cat >conftest.$ac_ext <<_ACEOF
 
4675
/* confdefs.h.  */
 
4676
_ACEOF
 
4677
cat confdefs.h >>conftest.$ac_ext
 
4678
cat >>conftest.$ac_ext <<_ACEOF
 
4679
/* end confdefs.h.  */
 
4680
$ac_includes_default
 
4681
int
 
4682
main ()
 
4683
{
 
4684
#ifndef __SUNPRO_C
 
4685
  (void) __SUNPRO_C;
 
4686
#endif
 
4687
 
 
4688
  ;
 
4689
  return 0;
 
4690
}
 
4691
_ACEOF
 
4692
rm -f conftest.$ac_objext
 
4693
if { (ac_try="$ac_compile"
 
4694
case "(($ac_try" in
 
4695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4696
  *) ac_try_echo=$ac_try;;
 
4697
esac
 
4698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4699
$as_echo "$ac_try_echo") >&5
 
4700
  (eval "$ac_compile") 2>conftest.er1
 
4701
  ac_status=$?
 
4702
  grep -v '^ *+' conftest.er1 >conftest.err
 
4703
  rm -f conftest.er1
 
4704
  cat conftest.err >&5
 
4705
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4706
  (exit $ac_status); } && {
 
4707
         test -z "$ac_c_werror_flag" ||
 
4708
         test ! -s conftest.err
 
4709
       } && test -s conftest.$ac_objext; then
 
4710
  ac_cv_have_decl___SUNPRO_C=yes
 
4711
else
 
4712
  $as_echo "$as_me: failed program was:" >&5
 
4713
sed 's/^/| /' conftest.$ac_ext >&5
 
4714
 
 
4715
        ac_cv_have_decl___SUNPRO_C=no
 
4716
fi
 
4717
 
 
4718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4719
fi
 
4720
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
4721
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
4722
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
4723
  SUNCC="yes"
 
4724
else
 
4725
  SUNCC="no"
 
4726
fi
 
4727
 
 
4728
        { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
 
4729
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
 
4730
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
 
4731
  $as_echo_n "(cached) " >&6
 
4732
else
 
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
$ac_includes_default
 
4740
int
 
4741
main ()
 
4742
{
 
4743
#ifndef __INTEL_COMPILER
 
4744
  (void) __INTEL_COMPILER;
 
4745
#endif
 
4746
 
 
4747
  ;
 
4748
  return 0;
 
4749
}
 
4750
_ACEOF
 
4751
rm -f conftest.$ac_objext
 
4752
if { (ac_try="$ac_compile"
 
4753
case "(($ac_try" in
 
4754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4755
  *) ac_try_echo=$ac_try;;
 
4756
esac
 
4757
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4758
$as_echo "$ac_try_echo") >&5
 
4759
  (eval "$ac_compile") 2>conftest.er1
 
4760
  ac_status=$?
 
4761
  grep -v '^ *+' conftest.er1 >conftest.err
 
4762
  rm -f conftest.er1
 
4763
  cat conftest.err >&5
 
4764
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4765
  (exit $ac_status); } && {
 
4766
         test -z "$ac_c_werror_flag" ||
 
4767
         test ! -s conftest.err
 
4768
       } && test -s conftest.$ac_objext; then
 
4769
  ac_cv_have_decl___INTEL_COMPILER=yes
 
4770
else
 
4771
  $as_echo "$as_me: failed program was:" >&5
 
4772
sed 's/^/| /' conftest.$ac_ext >&5
 
4773
 
 
4774
        ac_cv_have_decl___INTEL_COMPILER=no
 
4775
fi
 
4776
 
 
4777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4778
fi
 
4779
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
 
4780
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
 
4781
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
 
4782
  INTELCC="yes"
 
4783
else
 
4784
  INTELCC="no"
 
4785
fi
 
4786
 
 
4787
        if test "x$GCC" = xyes ; then
 
4788
                STRICT_CFLAGS="-pedantic -Werror"
 
4789
        elif test "x$SUNCC" = "xyes"; then
 
4790
                STRICT_CFLAGS="-errwarn"
 
4791
    elif test "x$INTELCC" = "xyes"; then
 
4792
                STRICT_CFLAGS="-Werror"
 
4793
        fi
 
4794
fi
 
4795
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
4796
 
 
4797
 
 
4798
 
 
4799
 
 
4800
# Check whether --with-release-version was given.
 
4801
if test "${with_release_version+set}" = set; then
 
4802
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
4803
else
 
4804
  RELEASE_VERSION=""
 
4805
fi
 
4806
 
 
4807
        if test "x$RELEASE_VERSION" != "x"; then
 
4808
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
4809
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
4810
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
4811
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
4812
        fi
 
4813
 
 
4814
cat >>confdefs.h <<_ACEOF
 
4815
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
4816
_ACEOF
 
4817
 
 
4818
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
4819
        if test "x$PVM" = "x"; then
 
4820
                PVM="0"
 
4821
        fi
 
4822
 
 
4823
cat >>confdefs.h <<_ACEOF
 
4824
#define PACKAGE_VERSION_MINOR $PVM
 
4825
_ACEOF
 
4826
 
 
4827
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
4828
        if test "x$PVP" = "x"; then
 
4829
                PVP="0"
 
4830
        fi
 
4831
 
 
4832
cat >>confdefs.h <<_ACEOF
 
4833
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
4834
_ACEOF
 
4835
 
 
4836
 
 
4837
 
 
4838
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
 
4839
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
 
4840
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
4841
 
 
4842
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
 
4843
 
 
4844
 
 
4845
 
 
4846
 
 
4847
 
3987
4848
if test x$APP_MAN_SUFFIX = x    ; then
3988
4849
    APP_MAN_SUFFIX=1
3989
4850
fi
4020
4881
 
4021
4882
if test x$DRIVER_MAN_SUFFIX = x    ; then
4022
4883
    case $host_os in
4023
 
        linux*)         DRIVER_MAN_SUFFIX=4x ;;
4024
4884
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
4025
4885
        *)              DRIVER_MAN_SUFFIX=4  ;;
4026
4886
    esac
4055
4915
 
4056
4916
 
4057
4917
 
4058
 
# Check whether --with-release-version was given.
4059
 
if test "${with_release_version+set}" = set; then
4060
 
  withval=$with_release_version; RELEASE_VERSION="$withval"
4061
 
else
4062
 
  RELEASE_VERSION=""
4063
 
fi
4064
 
 
4065
 
        if test "x$RELEASE_VERSION" != "x"; then
4066
 
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
4067
 
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4068
 
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4069
 
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4070
 
        fi
4071
 
 
4072
 
cat >>confdefs.h <<_ACEOF
4073
 
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4074
 
_ACEOF
4075
 
 
4076
 
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4077
 
        if test "x$PVM" = "x"; then
4078
 
                PVM="0"
4079
 
        fi
4080
 
 
4081
 
cat >>confdefs.h <<_ACEOF
4082
 
#define PACKAGE_VERSION_MINOR $PVM
4083
 
_ACEOF
4084
 
 
4085
 
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4086
 
        if test "x$PVP" = "x"; then
4087
 
                PVP="0"
4088
 
        fi
4089
 
 
4090
 
cat >>confdefs.h <<_ACEOF
4091
 
#define PACKAGE_VERSION_PATCHLEVEL $PVP
4092
 
_ACEOF
 
4918
# Checks for pkg-config packages
 
4919
 
 
4920
 
 
4921
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
4922
        if test -n "$ac_tool_prefix"; then
 
4923
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
4924
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
4925
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4926
$as_echo_n "checking for $ac_word... " >&6; }
 
4927
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
4928
  $as_echo_n "(cached) " >&6
 
4929
else
 
4930
  case $PKG_CONFIG in
 
4931
  [\\/]* | ?:[\\/]*)
 
4932
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
4933
  ;;
 
4934
  *)
 
4935
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4936
for as_dir in $PATH
 
4937
do
 
4938
  IFS=$as_save_IFS
 
4939
  test -z "$as_dir" && as_dir=.
 
4940
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4941
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4942
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4943
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4944
    break 2
 
4945
  fi
 
4946
done
 
4947
done
 
4948
IFS=$as_save_IFS
 
4949
 
 
4950
  ;;
 
4951
esac
 
4952
fi
 
4953
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
4954
if test -n "$PKG_CONFIG"; then
 
4955
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
4956
$as_echo "$PKG_CONFIG" >&6; }
 
4957
else
 
4958
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4959
$as_echo "no" >&6; }
 
4960
fi
 
4961
 
 
4962
 
 
4963
fi
 
4964
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
4965
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
4966
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
4967
set dummy pkg-config; ac_word=$2
 
4968
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4969
$as_echo_n "checking for $ac_word... " >&6; }
 
4970
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
4971
  $as_echo_n "(cached) " >&6
 
4972
else
 
4973
  case $ac_pt_PKG_CONFIG in
 
4974
  [\\/]* | ?:[\\/]*)
 
4975
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
4976
  ;;
 
4977
  *)
 
4978
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4979
for as_dir in $PATH
 
4980
do
 
4981
  IFS=$as_save_IFS
 
4982
  test -z "$as_dir" && as_dir=.
 
4983
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4984
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4985
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4986
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4987
    break 2
 
4988
  fi
 
4989
done
 
4990
done
 
4991
IFS=$as_save_IFS
 
4992
 
 
4993
  ;;
 
4994
esac
 
4995
fi
 
4996
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
4997
if test -n "$ac_pt_PKG_CONFIG"; then
 
4998
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
4999
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
5000
else
 
5001
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5002
$as_echo "no" >&6; }
 
5003
fi
 
5004
 
 
5005
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
5006
    PKG_CONFIG=""
 
5007
  else
 
5008
    case $cross_compiling:$ac_tool_warned in
 
5009
yes:)
 
5010
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5011
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5012
ac_tool_warned=yes ;;
 
5013
esac
 
5014
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
5015
  fi
 
5016
else
 
5017
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
5018
fi
 
5019
 
 
5020
fi
 
5021
if test -n "$PKG_CONFIG"; then
 
5022
        _pkg_min_version=0.9.0
 
5023
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
5024
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
5025
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
5026
                { $as_echo "$as_me:$LINENO: result: yes" >&5
 
5027
$as_echo "yes" >&6; }
 
5028
        else
 
5029
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
5030
$as_echo "no" >&6; }
 
5031
                PKG_CONFIG=""
 
5032
        fi
 
5033
 
 
5034
fi
 
5035
 
 
5036
pkg_failed=no
 
5037
{ $as_echo "$as_me:$LINENO: checking for XWD" >&5
 
5038
$as_echo_n "checking for XWD... " >&6; }
 
5039
 
 
5040
if test -n "$XWD_CFLAGS"; then
 
5041
    pkg_cv_XWD_CFLAGS="$XWD_CFLAGS"
 
5042
 elif test -n "$PKG_CONFIG"; then
 
5043
    if test -n "$PKG_CONFIG" && \
 
5044
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
 
5045
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
5046
  ac_status=$?
 
5047
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5048
  (exit $ac_status); }; then
 
5049
  pkg_cv_XWD_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
 
5050
else
 
5051
  pkg_failed=yes
 
5052
fi
 
5053
 else
 
5054
    pkg_failed=untried
 
5055
fi
 
5056
if test -n "$XWD_LIBS"; then
 
5057
    pkg_cv_XWD_LIBS="$XWD_LIBS"
 
5058
 elif test -n "$PKG_CONFIG"; then
 
5059
    if test -n "$PKG_CONFIG" && \
 
5060
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
 
5061
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
5062
  ac_status=$?
 
5063
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5064
  (exit $ac_status); }; then
 
5065
  pkg_cv_XWD_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
 
5066
else
 
5067
  pkg_failed=yes
 
5068
fi
 
5069
 else
 
5070
    pkg_failed=untried
 
5071
fi
 
5072
 
 
5073
 
 
5074
 
 
5075
if test $pkg_failed = yes; then
 
5076
 
 
5077
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
5078
        _pkg_short_errors_supported=yes
 
5079
else
 
5080
        _pkg_short_errors_supported=no
 
5081
fi
 
5082
        if test $_pkg_short_errors_supported = yes; then
 
5083
                XWD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
 
5084
        else
 
5085
                XWD_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
 
5086
        fi
 
5087
        # Put the nasty error message in config.log where it belongs
 
5088
        echo "$XWD_PKG_ERRORS" >&5
 
5089
 
 
5090
        { { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
 
5091
 
 
5092
$XWD_PKG_ERRORS
 
5093
 
 
5094
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
5095
installed software in a non-standard prefix.
 
5096
 
 
5097
Alternatively, you may set the environment variables XWD_CFLAGS
 
5098
and XWD_LIBS to avoid the need to call pkg-config.
 
5099
See the pkg-config man page for more details.
 
5100
" >&5
 
5101
$as_echo "$as_me: error: Package requirements (x11) were not met:
 
5102
 
 
5103
$XWD_PKG_ERRORS
 
5104
 
 
5105
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
5106
installed software in a non-standard prefix.
 
5107
 
 
5108
Alternatively, you may set the environment variables XWD_CFLAGS
 
5109
and XWD_LIBS to avoid the need to call pkg-config.
 
5110
See the pkg-config man page for more details.
 
5111
" >&2;}
 
5112
   { (exit 1); exit 1; }; }
 
5113
elif test $pkg_failed = untried; then
 
5114
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
5115
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5116
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
5117
is in your PATH or set the PKG_CONFIG environment variable to the full
 
5118
path to pkg-config.
 
5119
 
 
5120
Alternatively, you may set the environment variables XWD_CFLAGS
 
5121
and XWD_LIBS to avoid the need to call pkg-config.
 
5122
See the pkg-config man page for more details.
 
5123
 
 
5124
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
5125
See \`config.log' for more details." >&5
 
5126
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
5127
is in your PATH or set the PKG_CONFIG environment variable to the full
 
5128
path to pkg-config.
 
5129
 
 
5130
Alternatively, you may set the environment variables XWD_CFLAGS
 
5131
and XWD_LIBS to avoid the need to call pkg-config.
 
5132
See the pkg-config man page for more details.
 
5133
 
 
5134
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
5135
See \`config.log' for more details." >&2;}
 
5136
   { (exit 1); exit 1; }; }; }
 
5137
else
 
5138
        XWD_CFLAGS=$pkg_cv_XWD_CFLAGS
 
5139
        XWD_LIBS=$pkg_cv_XWD_LIBS
 
5140
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
5141
$as_echo "yes" >&6; }
 
5142
        :
 
5143
fi
4093
5144
 
4094
5145
 
4095
5146
 
4122
5173
    case $ac_val in #(
4123
5174
    *${as_nl}*)
4124
5175
      case $ac_var in #(
4125
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4126
 
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
5176
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
5177
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4127
5178
      esac
4128
5179
      case $ac_var in #(
4129
5180
      _ | IFS | as_nl) ;; #(
4192
5243
LTLIBOBJS=$ac_ltlibobjs
4193
5244
 
4194
5245
 
 
5246
 if test -n "$EXEEXT"; then
 
5247
  am__EXEEXT_TRUE=
 
5248
  am__EXEEXT_FALSE='#'
 
5249
else
 
5250
  am__EXEEXT_TRUE='#'
 
5251
  am__EXEEXT_FALSE=
 
5252
fi
 
5253
 
4195
5254
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4196
5255
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4197
5256
Usually this means the macro was only invoked conditionally." >&5
4535
5594
# report actual input values of CONFIG_FILES etc. instead of their
4536
5595
# values after options handling.
4537
5596
ac_log="
4538
 
This file was extended by xwd $as_me 1.0.2, which was
4539
 
generated by GNU Autoconf 2.62.  Invocation command line was
 
5597
This file was extended by xwd $as_me 1.0.3, which was
 
5598
generated by GNU Autoconf 2.63.  Invocation command line was
4540
5599
 
4541
5600
  CONFIG_FILES    = $CONFIG_FILES
4542
5601
  CONFIG_HEADERS  = $CONFIG_HEADERS
4549
5608
 
4550
5609
_ACEOF
4551
5610
 
 
5611
case $ac_config_files in *"
 
5612
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
5613
esac
 
5614
 
 
5615
case $ac_config_headers in *"
 
5616
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
5617
esac
 
5618
 
 
5619
 
4552
5620
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4553
5621
# Files that config.status was made for.
4554
5622
config_files="$ac_config_files"
4562
5630
\`$as_me' instantiates files from templates according to the
4563
5631
current configuration.
4564
5632
 
4565
 
Usage: $0 [OPTIONS] [FILE]...
 
5633
Usage: $0 [OPTION]... [FILE]...
4566
5634
 
4567
5635
  -h, --help       print this help, then exit
4568
5636
  -V, --version    print version number and configuration settings, then exit
4569
 
  -q, --quiet      do not print progress messages
 
5637
  -q, --quiet, --silent
 
5638
                   do not print progress messages
4570
5639
  -d, --debug      don't remove temporary files
4571
5640
      --recheck    update $as_me by reconfiguring in the same conditions
4572
 
  --file=FILE[:TEMPLATE]
 
5641
      --file=FILE[:TEMPLATE]
4573
5642
                   instantiate the configuration file FILE
4574
 
  --header=FILE[:TEMPLATE]
 
5643
      --header=FILE[:TEMPLATE]
4575
5644
                   instantiate the configuration header FILE
4576
5645
 
4577
5646
Configuration files:
4588
5657
_ACEOF
4589
5658
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4590
5659
ac_cs_version="\\
4591
 
xwd config.status 1.0.2
4592
 
configured by $0, generated by GNU Autoconf 2.62,
 
5660
xwd config.status 1.0.3
 
5661
configured by $0, generated by GNU Autoconf 2.63,
4593
5662
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4594
5663
 
4595
5664
Copyright (C) 2008 Free Software Foundation, Inc.
4795
5864
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4796
5865
   { (exit 1); exit 1; }; }
4797
5866
 
4798
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
 
5867
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
5868
  if test $ac_delim_n = $ac_delim_num; then
4799
5869
    break
4800
5870
  elif $ac_last_try; then
4801
5871
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5000
6070
  }
5001
6071
  split(mac1, mac2, "(") #)
5002
6072
  macro = mac2[1]
 
6073
  prefix = substr(line, 1, index(line, defundef) - 1)
5003
6074
  if (D_is_set[macro]) {
5004
6075
    # Preserve the white space surrounding the "#".
5005
 
    prefix = substr(line, 1, index(line, defundef) - 1)
5006
6076
    print prefix "define", macro P[macro] D[macro]
5007
6077
    next
5008
6078
  } else {
5010
6080
    # in the case of _POSIX_SOURCE, which is predefined and required
5011
6081
    # on some systems where configure will not decide to define it.
5012
6082
    if (defundef == "undef") {
5013
 
      print "/*", line, "*/"
 
6083
      print "/*", prefix defundef, macro, "*/"
5014
6084
      next
5015
6085
    }
5016
6086
  }
5034
6104
  esac
5035
6105
  case $ac_mode$ac_tag in
5036
6106
  :[FHL]*:*);;
5037
 
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5038
 
$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
6107
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
6108
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5039
6109
   { (exit 1); exit 1; }; };;
5040
6110
  :[FH]-) ac_tag=-:-;;
5041
6111
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5367
6437
 
5368
6438
 
5369
6439
  case $ac_file$ac_mode in
5370
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5371
 
  # Strip MF so we end up with the name of the file.
5372
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
5373
 
  # Check whether this is an Automake generated Makefile or not.
5374
 
  # We used to match only the files named `Makefile.in', but
5375
 
  # some people rename them; so instead we look at the file content.
5376
 
  # Grep'ing the first line is not enough: some people post-process
5377
 
  # each Makefile.in and add a new line on top of each file to say so.
5378
 
  # Grep'ing the whole file is not good either: AIX grep has a line
5379
 
  # limit of 2048, but all sed's we know have understand at least 4000.
5380
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5381
 
    dirpart=`$as_dirname -- "$mf" ||
 
6440
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
6441
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
6442
  # are listed without --file.  Let's play safe and only enable the eval
 
6443
  # if we detect the quoting.
 
6444
  case $CONFIG_FILES in
 
6445
  *\'*) eval set x "$CONFIG_FILES" ;;
 
6446
  *)   set x $CONFIG_FILES ;;
 
6447
  esac
 
6448
  shift
 
6449
  for mf
 
6450
  do
 
6451
    # Strip MF so we end up with the name of the file.
 
6452
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
6453
    # Check whether this is an Automake generated Makefile or not.
 
6454
    # We used to match only the files named `Makefile.in', but
 
6455
    # some people rename them; so instead we look at the file content.
 
6456
    # Grep'ing the first line is not enough: some people post-process
 
6457
    # each Makefile.in and add a new line on top of each file to say so.
 
6458
    # Grep'ing the whole file is not good either: AIX grep has a line
 
6459
    # limit of 2048, but all sed's we know have understand at least 4000.
 
6460
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
6461
      dirpart=`$as_dirname -- "$mf" ||
5382
6462
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5383
6463
         X"$mf" : 'X\(//\)[^/]' \| \
5384
6464
         X"$mf" : 'X\(//\)$' \| \
5401
6481
            q
5402
6482
          }
5403
6483
          s/.*/./; q'`
5404
 
  else
5405
 
    continue
5406
 
  fi
5407
 
  # Extract the definition of DEPDIR, am__include, and am__quote
5408
 
  # from the Makefile without running `make'.
5409
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5410
 
  test -z "$DEPDIR" && continue
5411
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
5412
 
  test -z "am__include" && continue
5413
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5414
 
  # When using ansi2knr, U may be empty or an underscore; expand it
5415
 
  U=`sed -n 's/^U = //p' < "$mf"`
5416
 
  # Find all dependency output files, they are included files with
5417
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
5418
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
5419
 
  # expansion.
5420
 
  for file in `sed -n "
5421
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5422
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5423
 
    # Make sure the directory exists.
5424
 
    test -f "$dirpart/$file" && continue
5425
 
    fdir=`$as_dirname -- "$file" ||
 
6484
    else
 
6485
      continue
 
6486
    fi
 
6487
    # Extract the definition of DEPDIR, am__include, and am__quote
 
6488
    # from the Makefile without running `make'.
 
6489
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
6490
    test -z "$DEPDIR" && continue
 
6491
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6492
    test -z "am__include" && continue
 
6493
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
6494
    # When using ansi2knr, U may be empty or an underscore; expand it
 
6495
    U=`sed -n 's/^U = //p' < "$mf"`
 
6496
    # Find all dependency output files, they are included files with
 
6497
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6498
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
6499
    # expansion.
 
6500
    for file in `sed -n "
 
6501
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
6502
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
6503
      # Make sure the directory exists.
 
6504
      test -f "$dirpart/$file" && continue
 
6505
      fdir=`$as_dirname -- "$file" ||
5426
6506
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5427
6507
         X"$file" : 'X\(//\)[^/]' \| \
5428
6508
         X"$file" : 'X\(//\)$' \| \
5445
6525
            q
5446
6526
          }
5447
6527
          s/.*/./; q'`
5448
 
    { as_dir=$dirpart/$fdir
 
6528
      { as_dir=$dirpart/$fdir
5449
6529
  case $as_dir in #(
5450
6530
  -*) as_dir=./$as_dir;;
5451
6531
  esac
5486
6566
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5487
6567
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
5488
6568
   { (exit 1); exit 1; }; }; }
5489
 
    # echo "creating $dirpart/$file"
5490
 
    echo '# dummy' > "$dirpart/$file"
 
6569
      # echo "creating $dirpart/$file"
 
6570
      echo '# dummy' > "$dirpart/$file"
 
6571
    done
5491
6572
  done
5492
 
done
 
6573
}
5493
6574
 ;;
5494
6575
 
5495
6576
  esac
5528
6609
  $ac_cs_success || { (exit 1); exit 1; }
5529
6610
fi
5530
6611
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5531
 
  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
5532
 
$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
 
6612
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
6613
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5533
6614
fi
5534
6615