1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for fvwm3 1.0.4.
4#
5# Report bugs to <fvwm-workers@fvwm.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: fvwm-workers@fvwm.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='fvwm3'
582PACKAGE_TARNAME='fvwm3'
583PACKAGE_VERSION='1.0.4'
584PACKAGE_STRING='fvwm3 1.0.4'
585PACKAGE_BUGREPORT='fvwm-workers@fvwm.org'
586PACKAGE_URL=''
587
588ac_config_libobj_dir=libs
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628with_xpm
629with_xrender
630with_xrandr
631with_xft
632with_xcursor
633with_sm
634with_shm
635with_shape
636with_readline
637with_rsvg
638with_png
639with_perllib
640with_iconv
641with_gettext
642with_gdkimlib
643with_bidi
644GDK_IMLIB_LIBS
645GDK_IMLIB_CFLAGS
646IMLIBCONF
647RANLIB
648LN_S
649CATOBJEXT
650DUMMYPOFILES
651UPDATEPOFILES
652GMOFILES
653POFILES
654CATALOGS
655INST_LINGUAS
656MKINSTALLDIRS
657LOCALEDIR
658POSUB
659USE_NLS
660intl_CFLAGS
661intl_LIBS
662MSGUNIQ
663MSGMERGE
664XGETTEXT
665GMSGFMT
666MSGFMT
667ALL_DOMAINS
668FVWMSCRIPT_DOMAIN
669FVWMTASKBAR_DOMAIN
670FVWM_DOMAIN
671ALL_LINGUAS
672FVWM_PERLLIB
673Bidi_CFLAGS
674Bidi_LIBS
675FRIBIDI_CONFIG
676iconv_CFLAGS
677iconv_LIBS
678readline_CFLAGS
679readline_LIBS
680rsvg_LIBS
681rsvg_CFLAGS
682png_LIBS
683png_CFLAGS
684xpm_CFLAGS
685xpm_LIBS
686Xft_CFLAGS
687Xft_LIBS
688XFT_LIBS
689XFT_CFLAGS
690XFT_CONFIG
691FC_LIBS
692FC_CFLAGS
693FC_CONFIG
694freetype_LIBS
695freetype_CFLAGS
696Xcursor_LIBS
697Xcursor_CFLAGS
698Xrender_CFLAGS
699Xrender_LIBS
700XRandR_CFLAGS
701XRandR_LIBS
702xrandr_LIBS
703xrandr_CFLAGS
704libevent_LIBS
705libevent_CFLAGS
706FVWM_BUILD_MANDOC_FALSE
707FVWM_BUILD_MANDOC_TRUE
708ASCIIDOC
709xt_LIBS
710xt_CFLAGS
711PKG_CONFIG_LIBDIR
712PKG_CONFIG_PATH
713PKG_CONFIG
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722EGREP
723GREP
724FVWM_IMAGEPATH
725X_EXTRA_LIBS
726X_LIBS
727X_PRE_LIBS
728X_CFLAGS
729CPP
730XMKMF
731LIBOBJS
732am__fastdepCC_FALSE
733am__fastdepCC_TRUE
734CCDEPMODE
735am__nodep
736AMDEPBACKSLASH
737AMDEP_FALSE
738AMDEP_TRUE
739am__include
740DEPDIR
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748FVWM_DOCDIR
749FVWM_CONFDIR
750FVWM_PERLLIBDIR
751FVWM_DATADIR
752FVWM_MODULEDIR
753PERL
754REQUIRED_PERL_VERSION
755FVWM_BUILD_GOLANG_FALSE
756FVWM_BUILD_GOLANG_TRUE
757GO
758PYTHON
759REQUIRED_PYTHON_VERSION
760SED
761MANPAGE_PREAMBLE
762FVWMWORKERSLISTLONG
763FVWMWORKERSLIST
764FVWMLIST
765FVWMHOMEPAGE
766FVWMNAMELONG
767RELDATENUM
768RELDATESHORT
769RELDATELONG
770VERSIONINFO
771ISRELEASED
772AM_BACKSLASH
773AM_DEFAULT_VERBOSITY
774AM_DEFAULT_V
775AM_V
776am__untar
777am__tar
778AMTAR
779am__leading_dot
780SET_MAKE
781AWK
782mkdir_p
783MKDIR_P
784INSTALL_STRIP_PROGRAM
785STRIP
786install_sh
787MAKEINFO
788AUTOHEADER
789AUTOMAKE
790AUTOCONF
791ACLOCAL
792VERSION
793PACKAGE
794CYGPATH_W
795am__isrc
796INSTALL_DATA
797INSTALL_SCRIPT
798INSTALL_PROGRAM
799target_alias
800host_alias
801build_alias
802LIBS
803ECHO_T
804ECHO_N
805ECHO_C
806DEFS
807mandir
808localedir
809libdir
810psdir
811pdfdir
812dvidir
813htmldir
814infodir
815docdir
816oldincludedir
817includedir
818localstatedir
819sharedstatedir
820sysconfdir
821datadir
822datarootdir
823libexecdir
824sbindir
825bindir
826program_transform_name
827prefix
828exec_prefix
829PACKAGE_URL
830PACKAGE_BUGREPORT
831PACKAGE_STRING
832PACKAGE_VERSION
833PACKAGE_TARNAME
834PACKAGE_NAME
835PATH_SEPARATOR
836SHELL
837AR_FLAGS
838am__quote'
839ac_subst_files=''
840ac_user_opts='
841enable_option_checking
842enable_silent_rules
843enable_golang
844enable_package_subdirs
845enable_dependency_tracking
846enable_dmalloc
847enable_efence
848with_x
849with_imagepath
850with_pkgconfig_prefix
851with_pkgconfig_exec_prefix
852enable_mandoc
853enable_sm
854enable_shape
855enable_shm
856enable_xrender
857enable_xcursor
858enable_xft
859with_fontconfig_prefix
860with_fontconfig_exec_prefix
861enable_fontconfigtest
862with_xft_prefix
863with_xft_exec_prefix
864enable_xfttest
865with_xpm_library
866with_xpm_includes
867enable_png
868enable_rsvg
869with_termcap_library
870with_readline_library
871with_readline_includes
872with_ncurses_library
873enable_iconv
874with_iconv_library
875with_iconv_includes
876enable_bidi
877with_fribidi_bindir
878enable_perllib
879enable_nls
880with_intl_library
881with_intl_includes
882with_imlib_prefix
883with_imlib_exec_prefix
884enable_imlibtest
885'
886      ac_precious_vars='build_alias
887host_alias
888target_alias
889CC
890CFLAGS
891LDFLAGS
892LIBS
893CPPFLAGS
894XMKMF
895CPP
896PKG_CONFIG
897PKG_CONFIG_PATH
898PKG_CONFIG_LIBDIR
899xt_CFLAGS
900xt_LIBS
901libevent_CFLAGS
902libevent_LIBS
903xrandr_CFLAGS
904xrandr_LIBS
905png_CFLAGS
906png_LIBS'
907
908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912ac_unrecognized_opts=
913ac_unrecognized_sep=
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945includedir='${prefix}/include'
946oldincludedir='/usr/include'
947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
956
957ac_prev=
958ac_dashdash=
959for ac_option
960do
961  # If the previous option needs an argument, assign it.
962  if test -n "$ac_prev"; then
963    eval $ac_prev=\$ac_option
964    ac_prev=
965    continue
966  fi
967
968  case $ac_option in
969  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970  *=)   ac_optarg= ;;
971  *)    ac_optarg=yes ;;
972  esac
973
974  # Accept the important Cygnus configure options, so we can diagnose typos.
975
976  case $ac_dashdash$ac_option in
977  --)
978    ac_dashdash=yes ;;
979
980  -bindir | --bindir | --bindi | --bind | --bin | --bi)
981    ac_prev=bindir ;;
982  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983    bindir=$ac_optarg ;;
984
985  -build | --build | --buil | --bui | --bu)
986    ac_prev=build_alias ;;
987  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988    build_alias=$ac_optarg ;;
989
990  -cache-file | --cache-file | --cache-fil | --cache-fi \
991  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992    ac_prev=cache_file ;;
993  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995    cache_file=$ac_optarg ;;
996
997  --config-cache | -C)
998    cache_file=config.cache ;;
999
1000  -datadir | --datadir | --datadi | --datad)
1001    ac_prev=datadir ;;
1002  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003    datadir=$ac_optarg ;;
1004
1005  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006  | --dataroo | --dataro | --datar)
1007    ac_prev=datarootdir ;;
1008  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010    datarootdir=$ac_optarg ;;
1011
1012  -disable-* | --disable-*)
1013    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014    # Reject names that are not valid shell variable names.
1015    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016      as_fn_error $? "invalid feature name: $ac_useropt"
1017    ac_useropt_orig=$ac_useropt
1018    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019    case $ac_user_opts in
1020      *"
1021"enable_$ac_useropt"
1022"*) ;;
1023      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024	 ac_unrecognized_sep=', ';;
1025    esac
1026    eval enable_$ac_useropt=no ;;
1027
1028  -docdir | --docdir | --docdi | --doc | --do)
1029    ac_prev=docdir ;;
1030  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031    docdir=$ac_optarg ;;
1032
1033  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034    ac_prev=dvidir ;;
1035  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036    dvidir=$ac_optarg ;;
1037
1038  -enable-* | --enable-*)
1039    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040    # Reject names that are not valid shell variable names.
1041    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042      as_fn_error $? "invalid feature name: $ac_useropt"
1043    ac_useropt_orig=$ac_useropt
1044    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045    case $ac_user_opts in
1046      *"
1047"enable_$ac_useropt"
1048"*) ;;
1049      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050	 ac_unrecognized_sep=', ';;
1051    esac
1052    eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056  | --exec | --exe | --ex)
1057    ac_prev=exec_prefix ;;
1058  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060  | --exec=* | --exe=* | --ex=*)
1061    exec_prefix=$ac_optarg ;;
1062
1063  -gas | --gas | --ga | --g)
1064    # Obsolete; use --with-gas.
1065    with_gas=yes ;;
1066
1067  -help | --help | --hel | --he | -h)
1068    ac_init_help=long ;;
1069  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070    ac_init_help=recursive ;;
1071  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072    ac_init_help=short ;;
1073
1074  -host | --host | --hos | --ho)
1075    ac_prev=host_alias ;;
1076  -host=* | --host=* | --hos=* | --ho=*)
1077    host_alias=$ac_optarg ;;
1078
1079  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080    ac_prev=htmldir ;;
1081  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082  | --ht=*)
1083    htmldir=$ac_optarg ;;
1084
1085  -includedir | --includedir | --includedi | --included | --include \
1086  | --includ | --inclu | --incl | --inc)
1087    ac_prev=includedir ;;
1088  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089  | --includ=* | --inclu=* | --incl=* | --inc=*)
1090    includedir=$ac_optarg ;;
1091
1092  -infodir | --infodir | --infodi | --infod | --info | --inf)
1093    ac_prev=infodir ;;
1094  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095    infodir=$ac_optarg ;;
1096
1097  -libdir | --libdir | --libdi | --libd)
1098    ac_prev=libdir ;;
1099  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100    libdir=$ac_optarg ;;
1101
1102  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103  | --libexe | --libex | --libe)
1104    ac_prev=libexecdir ;;
1105  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106  | --libexe=* | --libex=* | --libe=*)
1107    libexecdir=$ac_optarg ;;
1108
1109  -localedir | --localedir | --localedi | --localed | --locale)
1110    ac_prev=localedir ;;
1111  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112    localedir=$ac_optarg ;;
1113
1114  -localstatedir | --localstatedir | --localstatedi | --localstated \
1115  | --localstate | --localstat | --localsta | --localst | --locals)
1116    ac_prev=localstatedir ;;
1117  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119    localstatedir=$ac_optarg ;;
1120
1121  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122    ac_prev=mandir ;;
1123  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124    mandir=$ac_optarg ;;
1125
1126  -nfp | --nfp | --nf)
1127    # Obsolete; use --without-fp.
1128    with_fp=no ;;
1129
1130  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131  | --no-cr | --no-c | -n)
1132    no_create=yes ;;
1133
1134  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136    no_recursion=yes ;;
1137
1138  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140  | --oldin | --oldi | --old | --ol | --o)
1141    ac_prev=oldincludedir ;;
1142  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145    oldincludedir=$ac_optarg ;;
1146
1147  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148    ac_prev=prefix ;;
1149  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150    prefix=$ac_optarg ;;
1151
1152  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153  | --program-pre | --program-pr | --program-p)
1154    ac_prev=program_prefix ;;
1155  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157    program_prefix=$ac_optarg ;;
1158
1159  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160  | --program-suf | --program-su | --program-s)
1161    ac_prev=program_suffix ;;
1162  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164    program_suffix=$ac_optarg ;;
1165
1166  -program-transform-name | --program-transform-name \
1167  | --program-transform-nam | --program-transform-na \
1168  | --program-transform-n | --program-transform- \
1169  | --program-transform | --program-transfor \
1170  | --program-transfo | --program-transf \
1171  | --program-trans | --program-tran \
1172  | --progr-tra | --program-tr | --program-t)
1173    ac_prev=program_transform_name ;;
1174  -program-transform-name=* | --program-transform-name=* \
1175  | --program-transform-nam=* | --program-transform-na=* \
1176  | --program-transform-n=* | --program-transform-=* \
1177  | --program-transform=* | --program-transfor=* \
1178  | --program-transfo=* | --program-transf=* \
1179  | --program-trans=* | --program-tran=* \
1180  | --progr-tra=* | --program-tr=* | --program-t=*)
1181    program_transform_name=$ac_optarg ;;
1182
1183  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184    ac_prev=pdfdir ;;
1185  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186    pdfdir=$ac_optarg ;;
1187
1188  -psdir | --psdir | --psdi | --psd | --ps)
1189    ac_prev=psdir ;;
1190  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191    psdir=$ac_optarg ;;
1192
1193  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194  | -silent | --silent | --silen | --sile | --sil)
1195    silent=yes ;;
1196
1197  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198    ac_prev=sbindir ;;
1199  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200  | --sbi=* | --sb=*)
1201    sbindir=$ac_optarg ;;
1202
1203  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205  | --sharedst | --shareds | --shared | --share | --shar \
1206  | --sha | --sh)
1207    ac_prev=sharedstatedir ;;
1208  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211  | --sha=* | --sh=*)
1212    sharedstatedir=$ac_optarg ;;
1213
1214  -site | --site | --sit)
1215    ac_prev=site ;;
1216  -site=* | --site=* | --sit=*)
1217    site=$ac_optarg ;;
1218
1219  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220    ac_prev=srcdir ;;
1221  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222    srcdir=$ac_optarg ;;
1223
1224  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225  | --syscon | --sysco | --sysc | --sys | --sy)
1226    ac_prev=sysconfdir ;;
1227  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229    sysconfdir=$ac_optarg ;;
1230
1231  -target | --target | --targe | --targ | --tar | --ta | --t)
1232    ac_prev=target_alias ;;
1233  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234    target_alias=$ac_optarg ;;
1235
1236  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237    verbose=yes ;;
1238
1239  -version | --version | --versio | --versi | --vers | -V)
1240    ac_init_version=: ;;
1241
1242  -with-* | --with-*)
1243    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244    # Reject names that are not valid shell variable names.
1245    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246      as_fn_error $? "invalid package name: $ac_useropt"
1247    ac_useropt_orig=$ac_useropt
1248    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249    case $ac_user_opts in
1250      *"
1251"with_$ac_useropt"
1252"*) ;;
1253      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254	 ac_unrecognized_sep=', ';;
1255    esac
1256    eval with_$ac_useropt=\$ac_optarg ;;
1257
1258  -without-* | --without-*)
1259    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260    # Reject names that are not valid shell variable names.
1261    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262      as_fn_error $? "invalid package name: $ac_useropt"
1263    ac_useropt_orig=$ac_useropt
1264    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265    case $ac_user_opts in
1266      *"
1267"with_$ac_useropt"
1268"*) ;;
1269      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270	 ac_unrecognized_sep=', ';;
1271    esac
1272    eval with_$ac_useropt=no ;;
1273
1274  --x)
1275    # Obsolete; use --with-x.
1276    with_x=yes ;;
1277
1278  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279  | --x-incl | --x-inc | --x-in | --x-i)
1280    ac_prev=x_includes ;;
1281  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283    x_includes=$ac_optarg ;;
1284
1285  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287    ac_prev=x_libraries ;;
1288  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290    x_libraries=$ac_optarg ;;
1291
1292  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293Try \`$0 --help' for more information"
1294    ;;
1295
1296  *=*)
1297    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298    # Reject names that are not valid shell variable names.
1299    case $ac_envvar in #(
1300      '' | [0-9]* | *[!_$as_cr_alnum]* )
1301      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302    esac
1303    eval $ac_envvar=\$ac_optarg
1304    export $ac_envvar ;;
1305
1306  *)
1307    # FIXME: should be removed in autoconf 3.0.
1308    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312    ;;
1313
1314  esac
1315done
1316
1317if test -n "$ac_prev"; then
1318  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319  as_fn_error $? "missing argument to $ac_option"
1320fi
1321
1322if test -n "$ac_unrecognized_opts"; then
1323  case $enable_option_checking in
1324    no) ;;
1325    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327  esac
1328fi
1329
1330# Check all directory arguments for consistency.
1331for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332		datadir sysconfdir sharedstatedir localstatedir includedir \
1333		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334		libdir localedir mandir
1335do
1336  eval ac_val=\$$ac_var
1337  # Remove trailing slashes.
1338  case $ac_val in
1339    */ )
1340      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341      eval $ac_var=\$ac_val;;
1342  esac
1343  # Be sure to have absolute directory names.
1344  case $ac_val in
1345    [\\/$]* | ?:[\\/]* )  continue;;
1346    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347  esac
1348  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1349done
1350
1351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
1357
1358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360  if test "x$build_alias" = x; then
1361    cross_compiling=maybe
1362  elif test "x$build_alias" != "x$host_alias"; then
1363    cross_compiling=yes
1364  fi
1365fi
1366
1367ac_tool_prefix=
1368test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370test "$silent" = yes && exec 6>/dev/null
1371
1372
1373ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374ac_ls_di=`ls -di .` &&
1375ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376  as_fn_error $? "working directory cannot be determined"
1377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378  as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381# Find the source files, if location was not specified.
1382if test -z "$srcdir"; then
1383  ac_srcdir_defaulted=yes
1384  # Try the directory containing this script, then the parent directory.
1385  ac_confdir=`$as_dirname -- "$as_myself" ||
1386$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387	 X"$as_myself" : 'X\(//\)[^/]' \| \
1388	 X"$as_myself" : 'X\(//\)$' \| \
1389	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390$as_echo X"$as_myself" |
1391    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\/\)[^/].*/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\/\)$/{
1400	    s//\1/
1401	    q
1402	  }
1403	  /^X\(\/\).*/{
1404	    s//\1/
1405	    q
1406	  }
1407	  s/.*/./; q'`
1408  srcdir=$ac_confdir
1409  if test ! -r "$srcdir/$ac_unique_file"; then
1410    srcdir=..
1411  fi
1412else
1413  ac_srcdir_defaulted=no
1414fi
1415if test ! -r "$srcdir/$ac_unique_file"; then
1416  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418fi
1419ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420ac_abs_confdir=`(
1421	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422	pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425  srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435  eval ac_env_${ac_var}_value=\$${ac_var}
1436  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
1439
1440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444  # Omit some internal or obsolete options to make the list less imposing.
1445  # This message is too long to be a string in the A/UX 3.1 sh.
1446  cat <<_ACEOF
1447\`configure' configures fvwm3 1.0.4 to adapt to many kinds of systems.
1448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE.  See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457  -h, --help              display this help and exit
1458      --help=short        display options specific to this package
1459      --help=recursive    display the short help of all the included packages
1460  -V, --version           display version information and exit
1461  -q, --quiet, --silent   do not print \`checking ...' messages
1462      --cache-file=FILE   cache test results in FILE [disabled]
1463  -C, --config-cache      alias for \`--cache-file=config.cache'
1464  -n, --no-create         do not create output files
1465      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1466
1467Installation directories:
1468  --prefix=PREFIX         install architecture-independent files in PREFIX
1469                          [$ac_default_prefix]
1470  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1471                          [PREFIX]
1472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
1481  --bindir=DIR            user executables [EPREFIX/bin]
1482  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1483  --libexecdir=DIR        program executables [EPREFIX/libexec]
1484  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1485  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1486  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1487  --libdir=DIR            object code libraries [EPREFIX/lib]
1488  --includedir=DIR        C header files [PREFIX/include]
1489  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1490  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1491  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1492  --infodir=DIR           info documentation [DATAROOTDIR/info]
1493  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1494  --mandir=DIR            man documentation [DATAROOTDIR/man]
1495  --docdir=DIR            documentation root [DATAROOTDIR/doc/fvwm3]
1496  --htmldir=DIR           html documentation [DOCDIR]
1497  --dvidir=DIR            dvi documentation [DOCDIR]
1498  --pdfdir=DIR            pdf documentation [DOCDIR]
1499  --psdir=DIR             ps documentation [DOCDIR]
1500_ACEOF
1501
1502  cat <<\_ACEOF
1503
1504Program names:
1505  --program-prefix=PREFIX            prepend PREFIX to installed program names
1506  --program-suffix=SUFFIX            append SUFFIX to installed program names
1507  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1508
1509X features:
1510  --x-includes=DIR    X include files are in DIR
1511  --x-libraries=DIR   X library files are in DIR
1512
1513System types:
1514  --build=BUILD     configure for building on BUILD [guessed]
1515  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516_ACEOF
1517fi
1518
1519if test -n "$ac_init_help"; then
1520  case $ac_init_help in
1521     short | recursive ) echo "Configuration of fvwm3 1.0.4:";;
1522   esac
1523  cat <<\_ACEOF
1524
1525Optional Features:
1526  --disable-option-checking  ignore unrecognized --enable/--with options
1527  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529  --enable-silent-rules   less verbose build output (undo: "make V=1")
1530  --disable-silent-rules  verbose build output (undo: "make V=0")
1531  --enable-golang         enable compilation of modules written in Go
1532  --disable-package-subdirs
1533                          do not create subdirs for modules and data
1534  --enable-dependency-tracking
1535                          do not reject slow dependency extractors
1536  --disable-dependency-tracking
1537                          speeds up one-time build
1538  --enable-dmalloc        enable support for the dmalloc debugging library
1539  --enable-efence         enable support for the efence debugging library
1540  --enable-mandoc         enable generation of man pages
1541  --disable-sm            disable session management support
1542  --disable-shape         disable shaped window support
1543  --disable-shm           disable MIT Shared Memory Extension
1544  --disable-xrender       disable Xrender alpha-blend rendering
1545  --disable-xcursor       disable Xcursor ARGB/animated cursor loading
1546  --disable-xft           disable Xft anti-aliased font rendering
1547  --disable-fontconfigtest
1548                          do not try to compile and run a test fontconfig
1549                          program
1550  --disable-xfttest       do not try to compile and run a test Xft program
1551  --disable-png           Disables libpng support.
1552  --disable-rsvg          disable scalable vector graphics (SVG images)
1553  --disable-iconv         disable support for iconv character conversion
1554  --disable-bidi          disable bi-directional text support
1555  --disable-perllib       disable installing fvwm perl library
1556  --disable-nls           do not use Native Language Support
1557  --disable-imlibtest     do not try to compile and run a test IMLIB program
1558
1559Optional Packages:
1560  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562  --with-x                use the X Window System
1563  --with-imagepath=PATH   colon-delimited search path for images
1564  --with-pkgconfig-prefix=PFX
1565                          prefix where pkg-config is installed
1566  --with-pkgconfig-exec-prefix=PFX
1567                          exec prefix where pkg-config is installed
1568  --with-fontconfig-prefix=PFX
1569                          prefix where fontconfig is installed (for Xft2)
1570  --with-fontconfig-exec-prefix=PFX
1571                          exec prefix where fontconfig is installed
1572  --with-xft-prefix=PFX   prefix where Xft2 is installed (optional)
1573  --with-xft-exec-prefix=PFX
1574                          exec prefix where Xft2 is installed
1575  --with-xpm-library=PATH use xpm library (for coloured or shaped icons)
1576  --with-xpm-includes=DIR set directory for xpm headers
1577  --with-termcap-library=PATH
1578                          use termcap library (to accomplish readline)
1579  --with-readline-library=PATH
1580                          use readline library (line editing/history)
1581  --with-readline-includes=DIR
1582                          set directory for readline headers
1583  --with-ncurses-library=PATH
1584                          use ncurses library (to accomplish readline)
1585  --with-iconv-library=PATH
1586                          use iconv library (if not found sys iconv is used)
1587  --with-iconv-includes=DIR
1588                          set directory for iconv headers
1589  --with-fribidi-bindir=DIR
1590                          directory of fribidi-config if not in PATH
1591  --with-intl-library=PATH
1592                          use intl library (for Native Language Support)
1593  --with-intl-includes=DIR
1594                          set directory for intl headers
1595  --with-imlib-prefix=PFX prefix for IMLIB files (optional)
1596  --with-imlib-exec-prefix=PFX
1597                          exec prefix for IMLIB files (optional)
1598
1599Some influential environment variables:
1600  CC          C compiler command
1601  CFLAGS      C compiler flags
1602  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1603              nonstandard directory <lib dir>
1604  LIBS        libraries to pass to the linker, e.g. -l<library>
1605  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606              you have headers in a nonstandard directory <include dir>
1607  XMKMF       Path to xmkmf, Makefile generator for X Window System
1608  CPP         C preprocessor
1609  PKG_CONFIG  path to pkg-config utility
1610  PKG_CONFIG_PATH
1611              directories to add to pkg-config's search path
1612  PKG_CONFIG_LIBDIR
1613              path overriding pkg-config's built-in search path
1614  xt_CFLAGS   C compiler flags for xt, overriding pkg-config
1615  xt_LIBS     linker flags for xt, overriding pkg-config
1616  libevent_CFLAGS
1617              C compiler flags for libevent, overriding pkg-config
1618  libevent_LIBS
1619              linker flags for libevent, overriding pkg-config
1620  xrandr_CFLAGS
1621              C compiler flags for xrandr, overriding pkg-config
1622  xrandr_LIBS linker flags for xrandr, overriding pkg-config
1623  png_CFLAGS  C compiler flags for png, overriding pkg-config
1624  png_LIBS    linker flags for png, overriding pkg-config
1625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
1629Report bugs to <fvwm-workers@fvwm.org>.
1630_ACEOF
1631ac_status=$?
1632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635  # If there are subdirs, report their specific --help.
1636  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637    test -d "$ac_dir" ||
1638      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639      continue
1640    ac_builddir=.
1641
1642case "$ac_dir" in
1643.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644*)
1645  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646  # A ".." for each directory in $ac_dir_suffix.
1647  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648  case $ac_top_builddir_sub in
1649  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651  esac ;;
1652esac
1653ac_abs_top_builddir=$ac_pwd
1654ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655# for backward compatibility:
1656ac_top_builddir=$ac_top_build_prefix
1657
1658case $srcdir in
1659  .)  # We are building in place.
1660    ac_srcdir=.
1661    ac_top_srcdir=$ac_top_builddir_sub
1662    ac_abs_top_srcdir=$ac_pwd ;;
1663  [\\/]* | ?:[\\/]* )  # Absolute name.
1664    ac_srcdir=$srcdir$ac_dir_suffix;
1665    ac_top_srcdir=$srcdir
1666    ac_abs_top_srcdir=$srcdir ;;
1667  *) # Relative name.
1668    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669    ac_top_srcdir=$ac_top_build_prefix$srcdir
1670    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671esac
1672ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674    cd "$ac_dir" || { ac_status=$?; continue; }
1675    # Check for guested configure.
1676    if test -f "$ac_srcdir/configure.gnu"; then
1677      echo &&
1678      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679    elif test -f "$ac_srcdir/configure"; then
1680      echo &&
1681      $SHELL "$ac_srcdir/configure" --help=recursive
1682    else
1683      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684    fi || ac_status=$?
1685    cd "$ac_pwd" || { ac_status=$?; break; }
1686  done
1687fi
1688
1689test -n "$ac_init_help" && exit $ac_status
1690if $ac_init_version; then
1691  cat <<\_ACEOF
1692fvwm3 configure 1.0.4
1693generated by GNU Autoconf 2.69
1694
1695Copyright (C) 2012 Free Software Foundation, Inc.
1696This configure script is free software; the Free Software Foundation
1697gives unlimited permission to copy, distribute and modify it.
1698_ACEOF
1699  exit
1700fi
1701
1702## ------------------------ ##
1703## Autoconf initialization. ##
1704## ------------------------ ##
1705
1706# ac_fn_c_try_compile LINENO
1707# --------------------------
1708# Try to compile conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_compile ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  rm -f conftest.$ac_objext
1713  if { { ac_try="$ac_compile"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_compile") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } && {
1729	 test -z "$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       } && test -s conftest.$ac_objext; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737	ac_retval=1
1738fi
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_compile
1743
1744# ac_fn_c_try_link LINENO
1745# -----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_link ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  rm -f conftest.$ac_objext conftest$ac_exeext
1751  if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_link") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } && {
1767	 test -z "$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       } && test -s conftest$ac_exeext && {
1770	 test "$cross_compiling" = yes ||
1771	 test -x conftest$ac_exeext
1772       }; then :
1773  ac_retval=0
1774else
1775  $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778	ac_retval=1
1779fi
1780  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782  # interfere with the next link command; also delete a directory that is
1783  # left behind by Apple's compiler.  We do this before executing the actions.
1784  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786  as_fn_set_status $ac_retval
1787
1788} # ac_fn_c_try_link
1789
1790# ac_fn_c_check_func LINENO FUNC VAR
1791# ----------------------------------
1792# Tests whether FUNC exists, setting the cache variable VAR accordingly
1793ac_fn_c_check_func ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
1798if eval \${$3+:} false; then :
1799  $as_echo_n "(cached) " >&6
1800else
1801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h.  */
1803/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1805#define $2 innocuous_$2
1806
1807/* System header to define __stub macros and hopefully few prototypes,
1808    which can conflict with char $2 (); below.
1809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1810    <limits.h> exists even on freestanding compilers.  */
1811
1812#ifdef __STDC__
1813# include <limits.h>
1814#else
1815# include <assert.h>
1816#endif
1817
1818#undef $2
1819
1820/* Override any GCC internal prototype to avoid an error.
1821   Use char because int might match the return type of a GCC
1822   builtin and then its argument prototype would still apply.  */
1823#ifdef __cplusplus
1824extern "C"
1825#endif
1826char $2 ();
1827/* The GNU C library defines this for functions which it implements
1828    to always fail with ENOSYS.  Some functions are actually named
1829    something starting with __ and the normal name is an alias.  */
1830#if defined __stub_$2 || defined __stub___$2
1831choke me
1832#endif
1833
1834int
1835main ()
1836{
1837return $2 ();
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_link "$LINENO"; then :
1843  eval "$3=yes"
1844else
1845  eval "$3=no"
1846fi
1847rm -f core conftest.err conftest.$ac_objext \
1848    conftest$ac_exeext conftest.$ac_ext
1849fi
1850eval ac_res=\$$3
1851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852$as_echo "$ac_res" >&6; }
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} # ac_fn_c_check_func
1856
1857# ac_fn_c_try_cpp LINENO
1858# ----------------------
1859# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860ac_fn_c_try_cpp ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  if { { ac_try="$ac_cpp conftest.$ac_ext"
1864case "(($ac_try" in
1865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866  *) ac_try_echo=$ac_try;;
1867esac
1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869$as_echo "$ac_try_echo"; } >&5
1870  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871  ac_status=$?
1872  if test -s conftest.err; then
1873    grep -v '^ *+' conftest.err >conftest.er1
1874    cat conftest.er1 >&5
1875    mv -f conftest.er1 conftest.err
1876  fi
1877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878  test $ac_status = 0; } > conftest.i && {
1879	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880	 test ! -s conftest.err
1881       }; then :
1882  ac_retval=0
1883else
1884  $as_echo "$as_me: failed program was:" >&5
1885sed 's/^/| /' conftest.$ac_ext >&5
1886
1887    ac_retval=1
1888fi
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890  as_fn_set_status $ac_retval
1891
1892} # ac_fn_c_try_cpp
1893
1894# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895# -------------------------------------------------------
1896# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897# the include files in INCLUDES and setting the cache variable VAR
1898# accordingly.
1899ac_fn_c_check_header_mongrel ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  if eval \${$3+:} false; then :
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906  $as_echo_n "(cached) " >&6
1907fi
1908eval ac_res=\$$3
1909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911else
1912  # Is the header compilable?
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914$as_echo_n "checking $2 usability... " >&6; }
1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917$4
1918#include <$2>
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921  ac_header_compiler=yes
1922else
1923  ac_header_compiler=no
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927$as_echo "$ac_header_compiler" >&6; }
1928
1929# Is the header present?
1930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931$as_echo_n "checking $2 presence... " >&6; }
1932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934#include <$2>
1935_ACEOF
1936if ac_fn_c_try_cpp "$LINENO"; then :
1937  ac_header_preproc=yes
1938else
1939  ac_header_preproc=no
1940fi
1941rm -f conftest.err conftest.i conftest.$ac_ext
1942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943$as_echo "$ac_header_preproc" >&6; }
1944
1945# So?  What about this header?
1946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947  yes:no: )
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952    ;;
1953  no:yes:* )
1954    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1957$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1958    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1961$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1962    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964( $as_echo "## ------------------------------------ ##
1965## Report this to fvwm-workers@fvwm.org ##
1966## ------------------------------------ ##"
1967     ) | sed "s/^/$as_me: WARNING:     /" >&2
1968    ;;
1969esac
1970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if eval \${$3+:} false; then :
1973  $as_echo_n "(cached) " >&6
1974else
1975  eval "$3=\$ac_header_compiler"
1976fi
1977eval ac_res=\$$3
1978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980fi
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_header_mongrel
1984
1985# ac_fn_c_try_run LINENO
1986# ----------------------
1987# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1988# that executables *can* be run.
1989ac_fn_c_try_run ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  if { { ac_try="$ac_link"
1993case "(($ac_try" in
1994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995  *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999  (eval "$ac_link") 2>&5
2000  ac_status=$?
2001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2003  { { case "(($ac_try" in
2004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005  *) ac_try_echo=$ac_try;;
2006esac
2007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008$as_echo "$ac_try_echo"; } >&5
2009  (eval "$ac_try") 2>&5
2010  ac_status=$?
2011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012  test $ac_status = 0; }; }; then :
2013  ac_retval=0
2014else
2015  $as_echo "$as_me: program exited with status $ac_status" >&5
2016       $as_echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019       ac_retval=$ac_status
2020fi
2021  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023  as_fn_set_status $ac_retval
2024
2025} # ac_fn_c_try_run
2026
2027# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2028# -------------------------------------------------------
2029# Tests whether HEADER exists and can be compiled using the include files in
2030# INCLUDES, setting the cache variable VAR accordingly.
2031ac_fn_c_check_header_compile ()
2032{
2033  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035$as_echo_n "checking for $2... " >&6; }
2036if eval \${$3+:} false; then :
2037  $as_echo_n "(cached) " >&6
2038else
2039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h.  */
2041$4
2042#include <$2>
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045  eval "$3=yes"
2046else
2047  eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056} # ac_fn_c_check_header_compile
2057
2058# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2059# --------------------------------------------
2060# Tries to find the compile-time value of EXPR in a program that includes
2061# INCLUDES, setting VAR accordingly. Returns whether the value could be
2062# computed
2063ac_fn_c_compute_int ()
2064{
2065  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066  if test "$cross_compiling" = yes; then
2067    # Depending upon the size, compute the lo and hi bounds.
2068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h.  */
2070$4
2071int
2072main ()
2073{
2074static int test_array [1 - 2 * !(($2) >= 0)];
2075test_array [0] = 0;
2076return test_array [0];
2077
2078  ;
2079  return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083  ac_lo=0 ac_mid=0
2084  while :; do
2085    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h.  */
2087$4
2088int
2089main ()
2090{
2091static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2092test_array [0] = 0;
2093return test_array [0];
2094
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  ac_hi=$ac_mid; break
2101else
2102  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103			if test $ac_lo -le $ac_mid; then
2104			  ac_lo= ac_hi=
2105			  break
2106			fi
2107			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110  done
2111else
2112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h.  */
2114$4
2115int
2116main ()
2117{
2118static int test_array [1 - 2 * !(($2) < 0)];
2119test_array [0] = 0;
2120return test_array [0];
2121
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127  ac_hi=-1 ac_mid=-1
2128  while :; do
2129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2136test_array [0] = 0;
2137return test_array [0];
2138
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144  ac_lo=$ac_mid; break
2145else
2146  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2147			if test $ac_mid -le $ac_hi; then
2148			  ac_lo= ac_hi=
2149			  break
2150			fi
2151			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154  done
2155else
2156  ac_lo= ac_hi=
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161# Binary search between lo and hi bounds.
2162while test "x$ac_lo" != "x$ac_hi"; do
2163  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h.  */
2166$4
2167int
2168main ()
2169{
2170static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171test_array [0] = 0;
2172return test_array [0];
2173
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179  ac_hi=$ac_mid
2180else
2181  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184done
2185case $ac_lo in #((
2186?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2187'') ac_retval=1 ;;
2188esac
2189  else
2190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$4
2193static long int longval () { return $2; }
2194static unsigned long int ulongval () { return $2; }
2195#include <stdio.h>
2196#include <stdlib.h>
2197int
2198main ()
2199{
2200
2201  FILE *f = fopen ("conftest.val", "w");
2202  if (! f)
2203    return 1;
2204  if (($2) < 0)
2205    {
2206      long int i = longval ();
2207      if (i != ($2))
2208	return 1;
2209      fprintf (f, "%ld", i);
2210    }
2211  else
2212    {
2213      unsigned long int i = ulongval ();
2214      if (i != ($2))
2215	return 1;
2216      fprintf (f, "%lu", i);
2217    }
2218  /* Do not output a trailing newline, as this causes \r\n confusion
2219     on some platforms.  */
2220  return ferror (f) || fclose (f) != 0;
2221
2222  ;
2223  return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_run "$LINENO"; then :
2227  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228else
2229  ac_retval=1
2230fi
2231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232  conftest.$ac_objext conftest.beam conftest.$ac_ext
2233rm -f conftest.val
2234
2235  fi
2236  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237  as_fn_set_status $ac_retval
2238
2239} # ac_fn_c_compute_int
2240
2241# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242# -------------------------------------------
2243# Tests whether TYPE exists after having included INCLUDES, setting cache
2244# variable VAR accordingly.
2245ac_fn_c_check_type ()
2246{
2247  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249$as_echo_n "checking for $2... " >&6; }
2250if eval \${$3+:} false; then :
2251  $as_echo_n "(cached) " >&6
2252else
2253  eval "$3=no"
2254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256$4
2257int
2258main ()
2259{
2260if (sizeof ($2))
2261	 return 0;
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_compile "$LINENO"; then :
2267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268/* end confdefs.h.  */
2269$4
2270int
2271main ()
2272{
2273if (sizeof (($2)))
2274	    return 0;
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280
2281else
2282  eval "$3=yes"
2283fi
2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285fi
2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288eval ac_res=\$$3
2289	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292
2293} # ac_fn_c_check_type
2294
2295# ac_fn_c_find_intX_t LINENO BITS VAR
2296# -----------------------------------
2297# Finds a signed integer type with width BITS, setting cache variable VAR
2298# accordingly.
2299ac_fn_c_find_intX_t ()
2300{
2301  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2303$as_echo_n "checking for int$2_t... " >&6; }
2304if eval \${$3+:} false; then :
2305  $as_echo_n "(cached) " >&6
2306else
2307  eval "$3=no"
2308     # Order is important - never check a type that is potentially smaller
2309     # than half of the expected target width.
2310     for ac_type in int$2_t 'int' 'long int' \
2311	 'long long int' 'short int' 'signed char'; do
2312       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h.  */
2314$ac_includes_default
2315	     enum { N = $2 / 2 - 1 };
2316int
2317main ()
2318{
2319static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2320test_array [0] = 0;
2321return test_array [0];
2322
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327if ac_fn_c_try_compile "$LINENO"; then :
2328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$ac_includes_default
2331	        enum { N = $2 / 2 - 1 };
2332int
2333main ()
2334{
2335static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2336		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2337test_array [0] = 0;
2338return test_array [0];
2339
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_compile "$LINENO"; then :
2345
2346else
2347  case $ac_type in #(
2348  int$2_t) :
2349    eval "$3=yes" ;; #(
2350  *) :
2351    eval "$3=\$ac_type" ;;
2352esac
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357       if eval test \"x\$"$3"\" = x"no"; then :
2358
2359else
2360  break
2361fi
2362     done
2363fi
2364eval ac_res=\$$3
2365	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366$as_echo "$ac_res" >&6; }
2367  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368
2369} # ac_fn_c_find_intX_t
2370
2371# ac_fn_c_find_uintX_t LINENO BITS VAR
2372# ------------------------------------
2373# Finds an unsigned integer type with width BITS, setting cache variable VAR
2374# accordingly.
2375ac_fn_c_find_uintX_t ()
2376{
2377  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2379$as_echo_n "checking for uint$2_t... " >&6; }
2380if eval \${$3+:} false; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  eval "$3=no"
2384     # Order is important - never check a type that is potentially smaller
2385     # than half of the expected target width.
2386     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2387	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2388       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389/* end confdefs.h.  */
2390$ac_includes_default
2391int
2392main ()
2393{
2394static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2395test_array [0] = 0;
2396return test_array [0];
2397
2398  ;
2399  return 0;
2400}
2401_ACEOF
2402if ac_fn_c_try_compile "$LINENO"; then :
2403  case $ac_type in #(
2404  uint$2_t) :
2405    eval "$3=yes" ;; #(
2406  *) :
2407    eval "$3=\$ac_type" ;;
2408esac
2409fi
2410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411       if eval test \"x\$"$3"\" = x"no"; then :
2412
2413else
2414  break
2415fi
2416     done
2417fi
2418eval ac_res=\$$3
2419	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420$as_echo "$ac_res" >&6; }
2421  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422
2423} # ac_fn_c_find_uintX_t
2424cat >config.log <<_ACEOF
2425This file contains any messages produced by compilers while
2426running configure, to aid debugging if configure makes a mistake.
2427
2428It was created by fvwm3 $as_me 1.0.4, which was
2429generated by GNU Autoconf 2.69.  Invocation command line was
2430
2431  $ $0 $@
2432
2433_ACEOF
2434exec 5>>config.log
2435{
2436cat <<_ASUNAME
2437## --------- ##
2438## Platform. ##
2439## --------- ##
2440
2441hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2442uname -m = `(uname -m) 2>/dev/null || echo unknown`
2443uname -r = `(uname -r) 2>/dev/null || echo unknown`
2444uname -s = `(uname -s) 2>/dev/null || echo unknown`
2445uname -v = `(uname -v) 2>/dev/null || echo unknown`
2446
2447/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2448/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2449
2450/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2451/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2452/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2453/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2454/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2455/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2456/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2457
2458_ASUNAME
2459
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    $as_echo "PATH: $as_dir"
2466  done
2467IFS=$as_save_IFS
2468
2469} >&5
2470
2471cat >&5 <<_ACEOF
2472
2473
2474## ----------- ##
2475## Core tests. ##
2476## ----------- ##
2477
2478_ACEOF
2479
2480
2481# Keep a trace of the command line.
2482# Strip out --no-create and --no-recursion so they do not pile up.
2483# Strip out --silent because we don't want to record it for future runs.
2484# Also quote any args containing shell meta-characters.
2485# Make two passes to allow for proper duplicate-argument suppression.
2486ac_configure_args=
2487ac_configure_args0=
2488ac_configure_args1=
2489ac_must_keep_next=false
2490for ac_pass in 1 2
2491do
2492  for ac_arg
2493  do
2494    case $ac_arg in
2495    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2496    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2497    | -silent | --silent | --silen | --sile | --sil)
2498      continue ;;
2499    *\'*)
2500      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2501    esac
2502    case $ac_pass in
2503    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2504    2)
2505      as_fn_append ac_configure_args1 " '$ac_arg'"
2506      if test $ac_must_keep_next = true; then
2507	ac_must_keep_next=false # Got value, back to normal.
2508      else
2509	case $ac_arg in
2510	  *=* | --config-cache | -C | -disable-* | --disable-* \
2511	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2512	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2513	  | -with-* | --with-* | -without-* | --without-* | --x)
2514	    case "$ac_configure_args0 " in
2515	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2516	    esac
2517	    ;;
2518	  -* ) ac_must_keep_next=true ;;
2519	esac
2520      fi
2521      as_fn_append ac_configure_args " '$ac_arg'"
2522      ;;
2523    esac
2524  done
2525done
2526{ ac_configure_args0=; unset ac_configure_args0;}
2527{ ac_configure_args1=; unset ac_configure_args1;}
2528
2529# When interrupted or exit'd, cleanup temporary files, and complete
2530# config.log.  We remove comments because anyway the quotes in there
2531# would cause problems or look ugly.
2532# WARNING: Use '\'' to represent an apostrophe within the trap.
2533# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2534trap 'exit_status=$?
2535  # Save into config.log some information that might help in debugging.
2536  {
2537    echo
2538
2539    $as_echo "## ---------------- ##
2540## Cache variables. ##
2541## ---------------- ##"
2542    echo
2543    # The following way of writing the cache mishandles newlines in values,
2544(
2545  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2546    eval ac_val=\$$ac_var
2547    case $ac_val in #(
2548    *${as_nl}*)
2549      case $ac_var in #(
2550      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2551$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2552      esac
2553      case $ac_var in #(
2554      _ | IFS | as_nl) ;; #(
2555      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2556      *) { eval $ac_var=; unset $ac_var;} ;;
2557      esac ;;
2558    esac
2559  done
2560  (set) 2>&1 |
2561    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2562    *${as_nl}ac_space=\ *)
2563      sed -n \
2564	"s/'\''/'\''\\\\'\'''\''/g;
2565	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2566      ;; #(
2567    *)
2568      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2569      ;;
2570    esac |
2571    sort
2572)
2573    echo
2574
2575    $as_echo "## ----------------- ##
2576## Output variables. ##
2577## ----------------- ##"
2578    echo
2579    for ac_var in $ac_subst_vars
2580    do
2581      eval ac_val=\$$ac_var
2582      case $ac_val in
2583      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584      esac
2585      $as_echo "$ac_var='\''$ac_val'\''"
2586    done | sort
2587    echo
2588
2589    if test -n "$ac_subst_files"; then
2590      $as_echo "## ------------------- ##
2591## File substitutions. ##
2592## ------------------- ##"
2593      echo
2594      for ac_var in $ac_subst_files
2595      do
2596	eval ac_val=\$$ac_var
2597	case $ac_val in
2598	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2599	esac
2600	$as_echo "$ac_var='\''$ac_val'\''"
2601      done | sort
2602      echo
2603    fi
2604
2605    if test -s confdefs.h; then
2606      $as_echo "## ----------- ##
2607## confdefs.h. ##
2608## ----------- ##"
2609      echo
2610      cat confdefs.h
2611      echo
2612    fi
2613    test "$ac_signal" != 0 &&
2614      $as_echo "$as_me: caught signal $ac_signal"
2615    $as_echo "$as_me: exit $exit_status"
2616  } >&5
2617  rm -f core *.core core.conftest.* &&
2618    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619    exit $exit_status
2620' 0
2621for ac_signal in 1 2 13 15; do
2622  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2623done
2624ac_signal=0
2625
2626# confdefs.h avoids OS command line length limits that DEFS can exceed.
2627rm -f -r conftest* confdefs.h
2628
2629$as_echo "/* confdefs.h */" > confdefs.h
2630
2631# Predefined preprocessor variables.
2632
2633cat >>confdefs.h <<_ACEOF
2634#define PACKAGE_NAME "$PACKAGE_NAME"
2635_ACEOF
2636
2637cat >>confdefs.h <<_ACEOF
2638#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2639_ACEOF
2640
2641cat >>confdefs.h <<_ACEOF
2642#define PACKAGE_VERSION "$PACKAGE_VERSION"
2643_ACEOF
2644
2645cat >>confdefs.h <<_ACEOF
2646#define PACKAGE_STRING "$PACKAGE_STRING"
2647_ACEOF
2648
2649cat >>confdefs.h <<_ACEOF
2650#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2651_ACEOF
2652
2653cat >>confdefs.h <<_ACEOF
2654#define PACKAGE_URL "$PACKAGE_URL"
2655_ACEOF
2656
2657
2658# Let the site file select an alternate cache file if it wants to.
2659# Prefer an explicitly selected file to automatically selected ones.
2660ac_site_file1=NONE
2661ac_site_file2=NONE
2662if test -n "$CONFIG_SITE"; then
2663  # We do not want a PATH search for config.site.
2664  case $CONFIG_SITE in #((
2665    -*)  ac_site_file1=./$CONFIG_SITE;;
2666    */*) ac_site_file1=$CONFIG_SITE;;
2667    *)   ac_site_file1=./$CONFIG_SITE;;
2668  esac
2669elif test "x$prefix" != xNONE; then
2670  ac_site_file1=$prefix/share/config.site
2671  ac_site_file2=$prefix/etc/config.site
2672else
2673  ac_site_file1=$ac_default_prefix/share/config.site
2674  ac_site_file2=$ac_default_prefix/etc/config.site
2675fi
2676for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2677do
2678  test "x$ac_site_file" = xNONE && continue
2679  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2680    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2682    sed 's/^/| /' "$ac_site_file" >&5
2683    . "$ac_site_file" \
2684      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686as_fn_error $? "failed to load site script $ac_site_file
2687See \`config.log' for more details" "$LINENO" 5; }
2688  fi
2689done
2690
2691if test -r "$cache_file"; then
2692  # Some versions of bash will fail to source /dev/null (special files
2693  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2694  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696$as_echo "$as_me: loading cache $cache_file" >&6;}
2697    case $cache_file in
2698      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699      *)                      . "./$cache_file";;
2700    esac
2701  fi
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704$as_echo "$as_me: creating cache $cache_file" >&6;}
2705  >$cache_file
2706fi
2707
2708# Check that the precious variables saved in the cache have kept the same
2709# value.
2710ac_cache_corrupted=false
2711for ac_var in $ac_precious_vars; do
2712  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2713  eval ac_new_set=\$ac_env_${ac_var}_set
2714  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2715  eval ac_new_val=\$ac_env_${ac_var}_value
2716  case $ac_old_set,$ac_new_set in
2717    set,)
2718      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2719$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2720      ac_cache_corrupted=: ;;
2721    ,set)
2722      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2723$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2724      ac_cache_corrupted=: ;;
2725    ,);;
2726    *)
2727      if test "x$ac_old_val" != "x$ac_new_val"; then
2728	# differences in whitespace do not lead to failure.
2729	ac_old_val_w=`echo x $ac_old_val`
2730	ac_new_val_w=`echo x $ac_new_val`
2731	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2732	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2733$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2734	  ac_cache_corrupted=:
2735	else
2736	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2737$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2738	  eval $ac_var=\$ac_old_val
2739	fi
2740	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2741$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2742	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2743$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2744      fi;;
2745  esac
2746  # Pass precious variables to config.status.
2747  if test "$ac_new_set" = set; then
2748    case $ac_new_val in
2749    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2750    *) ac_arg=$ac_var=$ac_new_val ;;
2751    esac
2752    case " $ac_configure_args " in
2753      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2754      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2755    esac
2756  fi
2757done
2758if $ac_cache_corrupted; then
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2762$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2763  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2764fi
2765## -------------------- ##
2766## Main body of script. ##
2767## -------------------- ##
2768
2769ac_ext=c
2770ac_cpp='$CPP $CPPFLAGS'
2771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774
2775
2776ac_aux_dir=
2777for ac_dir in etc "$srcdir"/etc; do
2778  if test -f "$ac_dir/install-sh"; then
2779    ac_aux_dir=$ac_dir
2780    ac_install_sh="$ac_aux_dir/install-sh -c"
2781    break
2782  elif test -f "$ac_dir/install.sh"; then
2783    ac_aux_dir=$ac_dir
2784    ac_install_sh="$ac_aux_dir/install.sh -c"
2785    break
2786  elif test -f "$ac_dir/shtool"; then
2787    ac_aux_dir=$ac_dir
2788    ac_install_sh="$ac_aux_dir/shtool install -c"
2789    break
2790  fi
2791done
2792if test -z "$ac_aux_dir"; then
2793  as_fn_error $? "cannot find install-sh, install.sh, or shtool in etc \"$srcdir\"/etc" "$LINENO" 5
2794fi
2795
2796# These three variables are undocumented and unsupported,
2797# and are intended to be withdrawn in a future Autoconf release.
2798# They can cause serious problems if a builder's source tree is in a directory
2799# whose full name contains unusual characters.
2800ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2801ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2802ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2803
2804
2805
2806am__api_version='1.16'
2807
2808# Find a good install program.  We prefer a C program (faster),
2809# so one script is as good as another.  But avoid the broken or
2810# incompatible versions:
2811# SysV /etc/install, /usr/sbin/install
2812# SunOS /usr/etc/install
2813# IRIX /sbin/install
2814# AIX /bin/install
2815# AmigaOS /C/install, which installs bootblocks on floppy discs
2816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2819# OS/2's system install, which has a completely different semantic
2820# ./install, which can be erroneously created by make from ./install.sh.
2821# Reject install programs that cannot install multiple files.
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2823$as_echo_n "checking for a BSD-compatible install... " >&6; }
2824if test -z "$INSTALL"; then
2825if ${ac_cv_path_install+:} false; then :
2826  $as_echo_n "(cached) " >&6
2827else
2828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    # Account for people who put trailing slashes in PATH elements.
2834case $as_dir/ in #((
2835  ./ | .// | /[cC]/* | \
2836  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2837  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2838  /usr/ucb/* ) ;;
2839  *)
2840    # OSF1 and SCO ODT 3.0 have their own names for install.
2841    # Don't use installbsd from OSF since it installs stuff as root
2842    # by default.
2843    for ac_prog in ginstall scoinst install; do
2844      for ac_exec_ext in '' $ac_executable_extensions; do
2845	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2846	  if test $ac_prog = install &&
2847	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848	    # AIX install.  It has an incompatible calling convention.
2849	    :
2850	  elif test $ac_prog = install &&
2851	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2852	    # program-specific install script used by HP pwplus--don't use.
2853	    :
2854	  else
2855	    rm -rf conftest.one conftest.two conftest.dir
2856	    echo one > conftest.one
2857	    echo two > conftest.two
2858	    mkdir conftest.dir
2859	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2860	      test -s conftest.one && test -s conftest.two &&
2861	      test -s conftest.dir/conftest.one &&
2862	      test -s conftest.dir/conftest.two
2863	    then
2864	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2865	      break 3
2866	    fi
2867	  fi
2868	fi
2869      done
2870    done
2871    ;;
2872esac
2873
2874  done
2875IFS=$as_save_IFS
2876
2877rm -rf conftest.one conftest.two conftest.dir
2878
2879fi
2880  if test "${ac_cv_path_install+set}" = set; then
2881    INSTALL=$ac_cv_path_install
2882  else
2883    # As a last resort, use the slow shell script.  Don't cache a
2884    # value for INSTALL within a source directory, because that will
2885    # break other packages using the cache if that directory is
2886    # removed, or if the value is a relative name.
2887    INSTALL=$ac_install_sh
2888  fi
2889fi
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2891$as_echo "$INSTALL" >&6; }
2892
2893# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2894# It thinks the first close brace ends the variable substitution.
2895test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2896
2897test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2898
2899test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2900
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2902$as_echo_n "checking whether build environment is sane... " >&6; }
2903# Reject unsafe characters in $srcdir or the absolute working directory
2904# name.  Accept space and tab only in the latter.
2905am_lf='
2906'
2907case `pwd` in
2908  *[\\\"\#\$\&\'\`$am_lf]*)
2909    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2910esac
2911case $srcdir in
2912  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2913    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2914esac
2915
2916# Do 'set' in a subshell so we don't clobber the current shell's
2917# arguments.  Must try -L first in case configure is actually a
2918# symlink; some systems play weird games with the mod time of symlinks
2919# (eg FreeBSD returns the mod time of the symlink's containing
2920# directory).
2921if (
2922   am_has_slept=no
2923   for am_try in 1 2; do
2924     echo "timestamp, slept: $am_has_slept" > conftest.file
2925     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2926     if test "$*" = "X"; then
2927	# -L didn't work.
2928	set X `ls -t "$srcdir/configure" conftest.file`
2929     fi
2930     if test "$*" != "X $srcdir/configure conftest.file" \
2931	&& test "$*" != "X conftest.file $srcdir/configure"; then
2932
2933	# If neither matched, then we have a broken ls.  This can happen
2934	# if, for instance, CONFIG_SHELL is bash and it inherits a
2935	# broken ls alias from the environment.  This has actually
2936	# happened.  Such a system could not be considered "sane".
2937	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2938  alias in your environment" "$LINENO" 5
2939     fi
2940     if test "$2" = conftest.file || test $am_try -eq 2; then
2941       break
2942     fi
2943     # Just in case.
2944     sleep 1
2945     am_has_slept=yes
2946   done
2947   test "$2" = conftest.file
2948   )
2949then
2950   # Ok.
2951   :
2952else
2953   as_fn_error $? "newly created file is older than distributed files!
2954Check your system clock" "$LINENO" 5
2955fi
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957$as_echo "yes" >&6; }
2958# If we didn't sleep, we still need to ensure time stamps of config.status and
2959# generated files are strictly newer.
2960am_sleep_pid=
2961if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2962  ( sleep 1 ) &
2963  am_sleep_pid=$!
2964fi
2965
2966rm -f conftest.file
2967
2968test "$program_prefix" != NONE &&
2969  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2970# Use a double $ so make ignores it.
2971test "$program_suffix" != NONE &&
2972  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2973# Double any \ or $.
2974# By default was `s,x,x', remove it if useless.
2975ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2976program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2977
2978# Expand $ac_aux_dir to an absolute path.
2979am_aux_dir=`cd "$ac_aux_dir" && pwd`
2980
2981if test x"${MISSING+set}" != xset; then
2982  case $am_aux_dir in
2983  *\ * | *\	*)
2984    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2985  *)
2986    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2987  esac
2988fi
2989# Use eval to expand $SHELL
2990if eval "$MISSING --is-lightweight"; then
2991  am_missing_run="$MISSING "
2992else
2993  am_missing_run=
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2995$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2996fi
2997
2998if test x"${install_sh+set}" != xset; then
2999  case $am_aux_dir in
3000  *\ * | *\	*)
3001    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3002  *)
3003    install_sh="\${SHELL} $am_aux_dir/install-sh"
3004  esac
3005fi
3006
3007# Installed binaries are usually stripped using 'strip' when the user
3008# run "make install-strip".  However 'strip' might not be the right
3009# tool to use in cross-compilation environments, therefore Automake
3010# will honor the 'STRIP' environment variable to overrule this program.
3011if test "$cross_compiling" != no; then
3012  if test -n "$ac_tool_prefix"; then
3013  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3014set dummy ${ac_tool_prefix}strip; ac_word=$2
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016$as_echo_n "checking for $ac_word... " >&6; }
3017if ${ac_cv_prog_STRIP+:} false; then :
3018  $as_echo_n "(cached) " >&6
3019else
3020  if test -n "$STRIP"; then
3021  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038fi
3039fi
3040STRIP=$ac_cv_prog_STRIP
3041if test -n "$STRIP"; then
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3043$as_echo "$STRIP" >&6; }
3044else
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047fi
3048
3049
3050fi
3051if test -z "$ac_cv_prog_STRIP"; then
3052  ac_ct_STRIP=$STRIP
3053  # Extract the first word of "strip", so it can be a program name with args.
3054set dummy strip; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test -n "$ac_ct_STRIP"; then
3061  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  test -z "$as_dir" && as_dir=.
3068    for ac_exec_ext in '' $ac_executable_extensions; do
3069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070    ac_cv_prog_ac_ct_STRIP="strip"
3071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072    break 2
3073  fi
3074done
3075  done
3076IFS=$as_save_IFS
3077
3078fi
3079fi
3080ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3081if test -n "$ac_ct_STRIP"; then
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3083$as_echo "$ac_ct_STRIP" >&6; }
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089  if test "x$ac_ct_STRIP" = x; then
3090    STRIP=":"
3091  else
3092    case $cross_compiling:$ac_tool_warned in
3093yes:)
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096ac_tool_warned=yes ;;
3097esac
3098    STRIP=$ac_ct_STRIP
3099  fi
3100else
3101  STRIP="$ac_cv_prog_STRIP"
3102fi
3103
3104fi
3105INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3106
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3108$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3109if test -z "$MKDIR_P"; then
3110  if ${ac_cv_path_mkdir+:} false; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118    for ac_prog in mkdir gmkdir; do
3119	 for ac_exec_ext in '' $ac_executable_extensions; do
3120	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3121	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3122	     'mkdir (GNU coreutils) '* | \
3123	     'mkdir (coreutils) '* | \
3124	     'mkdir (fileutils) '4.1*)
3125	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3126	       break 3;;
3127	   esac
3128	 done
3129       done
3130  done
3131IFS=$as_save_IFS
3132
3133fi
3134
3135  test -d ./--version && rmdir ./--version
3136  if test "${ac_cv_path_mkdir+set}" = set; then
3137    MKDIR_P="$ac_cv_path_mkdir -p"
3138  else
3139    # As a last resort, use the slow shell script.  Don't cache a
3140    # value for MKDIR_P within a source directory, because that will
3141    # break other packages using the cache if that directory is
3142    # removed, or if the value is a relative name.
3143    MKDIR_P="$ac_install_sh -d"
3144  fi
3145fi
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3147$as_echo "$MKDIR_P" >&6; }
3148
3149for ac_prog in gawk mawk nawk awk
3150do
3151  # Extract the first word of "$ac_prog", so it can be a program name with args.
3152set dummy $ac_prog; ac_word=$2
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154$as_echo_n "checking for $ac_word... " >&6; }
3155if ${ac_cv_prog_AWK+:} false; then :
3156  $as_echo_n "(cached) " >&6
3157else
3158  if test -n "$AWK"; then
3159  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164  IFS=$as_save_IFS
3165  test -z "$as_dir" && as_dir=.
3166    for ac_exec_ext in '' $ac_executable_extensions; do
3167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168    ac_cv_prog_AWK="$ac_prog"
3169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170    break 2
3171  fi
3172done
3173  done
3174IFS=$as_save_IFS
3175
3176fi
3177fi
3178AWK=$ac_cv_prog_AWK
3179if test -n "$AWK"; then
3180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3181$as_echo "$AWK" >&6; }
3182else
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
3185fi
3186
3187
3188  test -n "$AWK" && break
3189done
3190
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3192$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3193set x ${MAKE-make}
3194ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3195if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198  cat >conftest.make <<\_ACEOF
3199SHELL = /bin/sh
3200all:
3201	@echo '@@@%%%=$(MAKE)=@@@%%%'
3202_ACEOF
3203# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3204case `${MAKE-make} -f conftest.make 2>/dev/null` in
3205  *@@@%%%=?*=@@@%%%*)
3206    eval ac_cv_prog_make_${ac_make}_set=yes;;
3207  *)
3208    eval ac_cv_prog_make_${ac_make}_set=no;;
3209esac
3210rm -f conftest.make
3211fi
3212if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214$as_echo "yes" >&6; }
3215  SET_MAKE=
3216else
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219  SET_MAKE="MAKE=${MAKE-make}"
3220fi
3221
3222rm -rf .tst 2>/dev/null
3223mkdir .tst 2>/dev/null
3224if test -d .tst; then
3225  am__leading_dot=.
3226else
3227  am__leading_dot=_
3228fi
3229rmdir .tst 2>/dev/null
3230
3231# Check whether --enable-silent-rules was given.
3232if test "${enable_silent_rules+set}" = set; then :
3233  enableval=$enable_silent_rules;
3234fi
3235
3236case $enable_silent_rules in # (((
3237  yes) AM_DEFAULT_VERBOSITY=0;;
3238   no) AM_DEFAULT_VERBOSITY=1;;
3239    *) AM_DEFAULT_VERBOSITY=1;;
3240esac
3241am_make=${MAKE-make}
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3243$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3244if ${am_cv_make_support_nested_variables+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  if $as_echo 'TRUE=$(BAR$(V))
3248BAR0=false
3249BAR1=true
3250V=1
3251am__doit:
3252	@$(TRUE)
3253.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3254  am_cv_make_support_nested_variables=yes
3255else
3256  am_cv_make_support_nested_variables=no
3257fi
3258fi
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3260$as_echo "$am_cv_make_support_nested_variables" >&6; }
3261if test $am_cv_make_support_nested_variables = yes; then
3262    AM_V='$(V)'
3263  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3264else
3265  AM_V=$AM_DEFAULT_VERBOSITY
3266  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3267fi
3268AM_BACKSLASH='\'
3269
3270if test "`cd $srcdir && pwd`" != "`pwd`"; then
3271  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3272  # is not polluted with repeated "-I."
3273  am__isrc=' -I$(srcdir)'
3274  # test to see if srcdir already configured
3275  if test -f $srcdir/config.status; then
3276    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3277  fi
3278fi
3279
3280# test whether we have cygpath
3281if test -z "$CYGPATH_W"; then
3282  if (cygpath --version) >/dev/null 2>/dev/null; then
3283    CYGPATH_W='cygpath -w'
3284  else
3285    CYGPATH_W=echo
3286  fi
3287fi
3288
3289
3290# Define the identity of the package.
3291 PACKAGE='fvwm3'
3292 VERSION='1.0.4'
3293
3294
3295cat >>confdefs.h <<_ACEOF
3296#define PACKAGE "$PACKAGE"
3297_ACEOF
3298
3299
3300cat >>confdefs.h <<_ACEOF
3301#define VERSION "$VERSION"
3302_ACEOF
3303
3304# Some tools Automake needs.
3305
3306ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3307
3308
3309AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3310
3311
3312AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3313
3314
3315AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3316
3317
3318MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3319
3320# For better backward compatibility.  To be removed once Automake 1.9.x
3321# dies out for good.  For more background, see:
3322# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3323# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3324mkdir_p='$(MKDIR_P)'
3325
3326# We need awk for the "check" target (and possibly the TAP driver).  The
3327# system "awk" is bad on some platforms.
3328# Always define AMTAR for backward compatibility.  Yes, it's still used
3329# in the wild :-(  We should find a proper way to deprecate it ...
3330AMTAR='$${TAR-tar}'
3331
3332
3333# We'll loop over all known methods to create a tar archive until one works.
3334_am_tools='gnutar  pax cpio none'
3335
3336am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3337
3338
3339
3340
3341
3342
3343# POSIX will say in a future version that running "rm -f" with no argument
3344# is OK; and we want to be able to make that assumption in our Makefile
3345# recipes.  So use an aggressive probe to check that the usage we want is
3346# actually supported "in the wild" to an acceptable degree.
3347# See automake bug#10828.
3348# To make any issue more visible, cause the running configure to be aborted
3349# by default if the 'rm' program in use doesn't match our expectations; the
3350# user can still override this though.
3351if rm -f && rm -fr && rm -rf; then : OK; else
3352  cat >&2 <<'END'
3353Oops!
3354
3355Your 'rm' program seems unable to run without file operands specified
3356on the command line, even when the '-f' option is present.  This is contrary
3357to the behaviour of most rm programs out there, and not conforming with
3358the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3359
3360Please tell bug-automake@gnu.org about your system, including the value
3361of your $PATH and any error possibly output before this message.  This
3362can help us improve future automake versions.
3363
3364END
3365  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3366    echo 'Configuration will proceed anyway, since you have set the' >&2
3367    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3368    echo >&2
3369  else
3370    cat >&2 <<'END'
3371Aborting the configuration process, to ensure you take notice of the issue.
3372
3373You can download and install GNU coreutils to get an 'rm' implementation
3374that behaves properly: <https://www.gnu.org/software/coreutils/>.
3375
3376If you want to complete the configuration process using your problematic
3377'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3378to "yes", and re-run configure.
3379
3380END
3381    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3382  fi
3383fi
3384
3385# Check whether --enable-silent-rules was given.
3386if test "${enable_silent_rules+set}" = set; then :
3387  enableval=$enable_silent_rules;
3388fi
3389
3390case $enable_silent_rules in # (((
3391  yes) AM_DEFAULT_VERBOSITY=0;;
3392   no) AM_DEFAULT_VERBOSITY=1;;
3393    *) AM_DEFAULT_VERBOSITY=0;;
3394esac
3395am_make=${MAKE-make}
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3397$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3398if ${am_cv_make_support_nested_variables+:} false; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401  if $as_echo 'TRUE=$(BAR$(V))
3402BAR0=false
3403BAR1=true
3404V=1
3405am__doit:
3406	@$(TRUE)
3407.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3408  am_cv_make_support_nested_variables=yes
3409else
3410  am_cv_make_support_nested_variables=no
3411fi
3412fi
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3414$as_echo "$am_cv_make_support_nested_variables" >&6; }
3415if test $am_cv_make_support_nested_variables = yes; then
3416    AM_V='$(V)'
3417  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3418else
3419  AM_V=$AM_DEFAULT_VERBOSITY
3420  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3421fi
3422AM_BACKSLASH='\'
3423
3424ac_config_headers="$ac_config_headers config.h"
3425
3426
3427VERSIONINFO=released
3428
3429
3430RELDATELONG="17 July 21"
3431RELDATESHORT="17-Jul-21"
3432RELDATENUM="21-07-17"
3433
3434# constant variable settings
3435FVWMNAMELONG="F? Virtual Window Manager"
3436FVWMHOMEPAGE="http://fvwm.org/"
3437FVWMLIST="fvwm@fvwm.org"
3438FVWMWORKERSLIST="fvwm-workers@fvwm.org"
3439FVWMWORKERSLISTLONG="fvwm workers list <fvwm-workers@fvwm.org>"
3440MANPAGE_PREAMBLE='.\" WARNING: This file was automatically generated.  Edit the .in file instead.'
3441
3442
3443
3444cat >>confdefs.h <<_ACEOF
3445#define VERSIONINFO "$VERSIONINFO"
3446_ACEOF
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459# check for programs needed to build html docs
3460# Extract the first word of "sed", so it can be a program name with args.
3461set dummy sed; ac_word=$2
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463$as_echo_n "checking for $ac_word... " >&6; }
3464if ${ac_cv_prog_SED+:} false; then :
3465  $as_echo_n "(cached) " >&6
3466else
3467  if test -n "$SED"; then
3468  ac_cv_prog_SED="$SED" # Let the user override the test.
3469else
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  test -z "$as_dir" && as_dir=.
3475    for ac_exec_ext in '' $ac_executable_extensions; do
3476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477    ac_cv_prog_SED="sed"
3478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479    break 2
3480  fi
3481done
3482  done
3483IFS=$as_save_IFS
3484
3485  test -z "$ac_cv_prog_SED" && ac_cv_prog_SED=""""
3486fi
3487fi
3488SED=$ac_cv_prog_SED
3489if test -n "$SED"; then
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3491$as_echo "$SED" >&6; }
3492else
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495fi
3496
3497
3498
3499
3500# optional python:
3501PYTHON=
3502REQUIRED_PYTHON_VERSION=3.0
3503
3504# Extract the first word of "python3", so it can be a program name with args.
3505set dummy python3; ac_word=$2
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507$as_echo_n "checking for $ac_word... " >&6; }
3508if ${ac_cv_path_PYTHON+:} false; then :
3509  $as_echo_n "(cached) " >&6
3510else
3511  case $PYTHON in
3512  [\\/]* | ?:[\\/]*)
3513  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3514  ;;
3515  *)
3516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519  IFS=$as_save_IFS
3520  test -z "$as_dir" && as_dir=.
3521    for ac_exec_ext in '' $ac_executable_extensions; do
3522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525    break 2
3526  fi
3527done
3528  done
3529IFS=$as_save_IFS
3530
3531  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
3532  ;;
3533esac
3534fi
3535PYTHON=$ac_cv_path_PYTHON
3536if test -n "$PYTHON"; then
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3538$as_echo "$PYTHON" >&6; }
3539else
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545if test "$PYTHON" != ":"; then :
3546  prog="import sys
3547# split strings by '.' and convert to numeric.  Append some zeros
3548# because we need at least 4 digits for the hex conversion.
3549# map returns an iterator in Python 3.0 and a list in 2.x
3550minver = list(map(int, '$REQUIRED_PYTHON_VERSION'.split('.'))) + [0, 0, 0]
3551minverhex = 0
3552# xrange is not present in Python 3.0 and range returns an iterator
3553for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3554sys.exit(sys.hexversion < minverhex)"
3555  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3556   ($PYTHON -c "$prog") >&5 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; then :
3560  :
3561else
3562  PYTHON=":"
3563fi
3564fi
3565
3566# Golang
3567problem_golang=""
3568# Check whether --enable-golang was given.
3569if test "${enable_golang+set}" = set; then :
3570  enableval=$enable_golang;  if test x"$enableval" = xyes; then
3571		with_golang="yes, check"
3572	else
3573		with_golang="no"
3574		problem_golang=": Explicitly disabled"
3575	fi
3576else
3577   with_golang="no"
3578
3579fi
3580
3581
3582if test ! x"$with_golang" = xno; then
3583	for ac_prog in go
3584do
3585  # Extract the first word of "$ac_prog", so it can be a program name with args.
3586set dummy $ac_prog; ac_word=$2
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588$as_echo_n "checking for $ac_word... " >&6; }
3589if ${ac_cv_prog_GO+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  if test -n "$GO"; then
3593  ac_cv_prog_GO="$GO" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598  IFS=$as_save_IFS
3599  test -z "$as_dir" && as_dir=.
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602    ac_cv_prog_GO="$ac_prog"
3603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604    break 2
3605  fi
3606done
3607  done
3608IFS=$as_save_IFS
3609
3610fi
3611fi
3612GO=$ac_cv_prog_GO
3613if test -n "$GO"; then
3614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5
3615$as_echo "$GO" >&6; }
3616else
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618$as_echo "no" >&6; }
3619fi
3620
3621
3622  test -n "$GO" && break
3623done
3624
3625	if test -n "$GO" ; then
3626	    GOVERSIONOPTION=version
3627	    go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version go//' | \
3628		sed -e 's/ .*$//')
3629	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether go version is >= 1.14.x ($go_version)" >&5
3630$as_echo_n "checking whether go version is >= 1.14.x ($go_version)... " >&6; }
3631	    case "$go_version" in
3632	     1.14*|1.15*|1.16*|1.17*|1.18*|1.19*)
3633	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - version is: $go_version" >&5
3634$as_echo "yes - version is: $go_version" >&6; }
3635	      with_golang="yes"
3636	      GO=
3637	      ;;
3638	    *)
3639	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - version is: $go_version" >&5
3640$as_echo "no - version is: $go_version" >&6; }
3641	      with_golang="no"
3642	      problem_golang=": version of go ($go_version) <= 1.14.x"
3643	      ;;
3644	    esac
3645	fi
3646fi
3647 if test x"$with_golang" = xyes; then
3648  FVWM_BUILD_GOLANG_TRUE=
3649  FVWM_BUILD_GOLANG_FALSE='#'
3650else
3651  FVWM_BUILD_GOLANG_TRUE='#'
3652  FVWM_BUILD_GOLANG_FALSE=
3653fi
3654
3655
3656
3657#!!!
3658PERL=""
3659REQUIRED_PERL_VERSION=5.004
3660
3661if test x"$PERL" = x; then
3662	# Extract the first word of "perl", so it can be a program name with args.
3663set dummy perl; ac_word=$2
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665$as_echo_n "checking for $ac_word... " >&6; }
3666if ${ac_cv_path_PERL+:} false; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  case $PERL in
3670  [\\/]* | ?:[\\/]*)
3671  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3672  ;;
3673  *)
3674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677  IFS=$as_save_IFS
3678  test -z "$as_dir" && as_dir=.
3679    for ac_exec_ext in '' $ac_executable_extensions; do
3680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683    break 2
3684  fi
3685done
3686  done
3687IFS=$as_save_IFS
3688
3689  ;;
3690esac
3691fi
3692PERL=$ac_cv_path_PERL
3693if test -n "$PERL"; then
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3695$as_echo "$PERL" >&6; }
3696else
3697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702fi
3703if test ! x"$PERL" = x; then
3704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl $REQUIRED_PERL_VERSION or better" >&5
3705$as_echo_n "checking for perl $REQUIRED_PERL_VERSION or better... " >&6; }
3706	HAVE_PERL_FOR_DOCS=1
3707	if ("$PERL" -e "require $REQUIRED_PERL_VERSION;") 2>/dev/null; then
3708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3709$as_echo "yes" >&6; }
3710	else
3711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712$as_echo "no" >&6; }
3713		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $PERL not found or too old" >&5
3714$as_echo "$as_me: WARNING: $PERL not found or too old" >&2;}
3715	fi
3716else
3717	HAVE_PERL_FOR_DOCS=0
3718	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl is not found, it is required for some scripts and modules" >&5
3719$as_echo "$as_me: WARNING: perl is not found, it is required for some scripts and modules" >&2;}
3720	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It is recommended to install perl $REQUIRED_PERL_VERSION or better later" >&5
3721$as_echo "$as_me: WARNING: It is recommended to install perl $REQUIRED_PERL_VERSION or better later" >&2;}
3722	PERL=/usr/bin/perl
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $PERL as perl location" >&5
3725$as_echo "assuming $PERL as perl location" >&6; }
3726
3727
3728# installation paths
3729transform=`echo "${program_transform_name}" | "$SED" -e 's/\\$\\$/\\$/'`
3730PPACKAGE=`echo "${PACKAGE}" | "$SED" -e "${transform}"`
3731FVWM_MODULESUBDIR=/${PPACKAGE}/${VERSION}
3732FVWM_DATASUBDIR=/${PPACKAGE}
3733
3734# Check whether --enable-package-subdirs was given.
3735if test "${enable_package_subdirs+set}" = set; then :
3736  enableval=$enable_package_subdirs; if test x"$enableval" = xno; then FVWM_MODULESUBDIR=""; FVWM_DATASUBDIR="";
3737  fi
3738fi
3739
3740
3741
3742FVWM_MODULEDIR='${libexecdir}'"$FVWM_MODULESUBDIR"
3743FVWM_DATADIR='${datadir}'"$FVWM_DATASUBDIR"
3744FVWM_DOCDIR='${datadir}'"$FVWM_DOCSUBDIR"
3745FVWM_PERLLIBDIR='${datadir}'"$FVWM_DATASUBDIR/perllib"
3746FVWM_CONFDIR='${sysconfdir}'
3747
3748
3749
3750
3751
3752
3753# Check for compatiblity for missing implementations.
3754DEPDIR="${am__leading_dot}deps"
3755
3756ac_config_commands="$ac_config_commands depfiles"
3757
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3759$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3760cat > confinc.mk << 'END'
3761am__doit:
3762	@echo this is the am__doit target >confinc.out
3763.PHONY: am__doit
3764END
3765am__include="#"
3766am__quote=
3767# BSD make does it like this.
3768echo '.include "confinc.mk" # ignored' > confmf.BSD
3769# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3770echo 'include confinc.mk # ignored' > confmf.GNU
3771_am_result=no
3772for s in GNU BSD; do
3773  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3774   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); }
3778  case $?:`cat confinc.out 2>/dev/null` in #(
3779  '0:this is the am__doit target') :
3780    case $s in #(
3781  BSD) :
3782    am__include='.include' am__quote='"' ;; #(
3783  *) :
3784    am__include='include' am__quote='' ;;
3785esac ;; #(
3786  *) :
3787     ;;
3788esac
3789  if test "$am__include" != "#"; then
3790    _am_result="yes ($s style)"
3791    break
3792  fi
3793done
3794rm -f confinc.* confmf.*
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3796$as_echo "${_am_result}" >&6; }
3797
3798# Check whether --enable-dependency-tracking was given.
3799if test "${enable_dependency_tracking+set}" = set; then :
3800  enableval=$enable_dependency_tracking;
3801fi
3802
3803if test "x$enable_dependency_tracking" != xno; then
3804  am_depcomp="$ac_aux_dir/depcomp"
3805  AMDEPBACKSLASH='\'
3806  am__nodep='_no'
3807fi
3808 if test "x$enable_dependency_tracking" != xno; then
3809  AMDEP_TRUE=
3810  AMDEP_FALSE='#'
3811else
3812  AMDEP_TRUE='#'
3813  AMDEP_FALSE=
3814fi
3815
3816
3817ac_ext=c
3818ac_cpp='$CPP $CPPFLAGS'
3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822if test -n "$ac_tool_prefix"; then
3823  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3824set dummy ${ac_tool_prefix}gcc; ac_word=$2
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826$as_echo_n "checking for $ac_word... " >&6; }
3827if ${ac_cv_prog_CC+:} false; then :
3828  $as_echo_n "(cached) " >&6
3829else
3830  if test -n "$CC"; then
3831  ac_cv_prog_CC="$CC" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836  IFS=$as_save_IFS
3837  test -z "$as_dir" && as_dir=.
3838    for ac_exec_ext in '' $ac_executable_extensions; do
3839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842    break 2
3843  fi
3844done
3845  done
3846IFS=$as_save_IFS
3847
3848fi
3849fi
3850CC=$ac_cv_prog_CC
3851if test -n "$CC"; then
3852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853$as_echo "$CC" >&6; }
3854else
3855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856$as_echo "no" >&6; }
3857fi
3858
3859
3860fi
3861if test -z "$ac_cv_prog_CC"; then
3862  ac_ct_CC=$CC
3863  # Extract the first word of "gcc", so it can be a program name with args.
3864set dummy gcc; ac_word=$2
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866$as_echo_n "checking for $ac_word... " >&6; }
3867if ${ac_cv_prog_ac_ct_CC+:} false; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  if test -n "$ac_ct_CC"; then
3871  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3872else
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876  IFS=$as_save_IFS
3877  test -z "$as_dir" && as_dir=.
3878    for ac_exec_ext in '' $ac_executable_extensions; do
3879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880    ac_cv_prog_ac_ct_CC="gcc"
3881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882    break 2
3883  fi
3884done
3885  done
3886IFS=$as_save_IFS
3887
3888fi
3889fi
3890ac_ct_CC=$ac_cv_prog_ac_ct_CC
3891if test -n "$ac_ct_CC"; then
3892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3893$as_echo "$ac_ct_CC" >&6; }
3894else
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896$as_echo "no" >&6; }
3897fi
3898
3899  if test "x$ac_ct_CC" = x; then
3900    CC=""
3901  else
3902    case $cross_compiling:$ac_tool_warned in
3903yes:)
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906ac_tool_warned=yes ;;
3907esac
3908    CC=$ac_ct_CC
3909  fi
3910else
3911  CC="$ac_cv_prog_CC"
3912fi
3913
3914if test -z "$CC"; then
3915          if test -n "$ac_tool_prefix"; then
3916    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3917set dummy ${ac_tool_prefix}cc; ac_word=$2
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919$as_echo_n "checking for $ac_word... " >&6; }
3920if ${ac_cv_prog_CC+:} false; then :
3921  $as_echo_n "(cached) " >&6
3922else
3923  if test -n "$CC"; then
3924  ac_cv_prog_CC="$CC" # Let the user override the test.
3925else
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929  IFS=$as_save_IFS
3930  test -z "$as_dir" && as_dir=.
3931    for ac_exec_ext in '' $ac_executable_extensions; do
3932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933    ac_cv_prog_CC="${ac_tool_prefix}cc"
3934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935    break 2
3936  fi
3937done
3938  done
3939IFS=$as_save_IFS
3940
3941fi
3942fi
3943CC=$ac_cv_prog_CC
3944if test -n "$CC"; then
3945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946$as_echo "$CC" >&6; }
3947else
3948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949$as_echo "no" >&6; }
3950fi
3951
3952
3953  fi
3954fi
3955if test -z "$CC"; then
3956  # Extract the first word of "cc", so it can be a program name with args.
3957set dummy cc; ac_word=$2
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
3960if ${ac_cv_prog_CC+:} false; then :
3961  $as_echo_n "(cached) " >&6
3962else
3963  if test -n "$CC"; then
3964  ac_cv_prog_CC="$CC" # Let the user override the test.
3965else
3966  ac_prog_rejected=no
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970  IFS=$as_save_IFS
3971  test -z "$as_dir" && as_dir=.
3972    for ac_exec_ext in '' $ac_executable_extensions; do
3973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3975       ac_prog_rejected=yes
3976       continue
3977     fi
3978    ac_cv_prog_CC="cc"
3979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980    break 2
3981  fi
3982done
3983  done
3984IFS=$as_save_IFS
3985
3986if test $ac_prog_rejected = yes; then
3987  # We found a bogon in the path, so make sure we never use it.
3988  set dummy $ac_cv_prog_CC
3989  shift
3990  if test $# != 0; then
3991    # We chose a different compiler from the bogus one.
3992    # However, it has the same basename, so the bogon will be chosen
3993    # first if we set CC to just the basename; use the full file name.
3994    shift
3995    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3996  fi
3997fi
3998fi
3999fi
4000CC=$ac_cv_prog_CC
4001if test -n "$CC"; then
4002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003$as_echo "$CC" >&6; }
4004else
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006$as_echo "no" >&6; }
4007fi
4008
4009
4010fi
4011if test -z "$CC"; then
4012  if test -n "$ac_tool_prefix"; then
4013  for ac_prog in cl.exe
4014  do
4015    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if ${ac_cv_prog_CC+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  if test -n "$CC"; then
4023  ac_cv_prog_CC="$CC" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_exec_ext in '' $ac_executable_extensions; do
4031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034    break 2
4035  fi
4036done
4037  done
4038IFS=$as_save_IFS
4039
4040fi
4041fi
4042CC=$ac_cv_prog_CC
4043if test -n "$CC"; then
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4045$as_echo "$CC" >&6; }
4046else
4047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051
4052    test -n "$CC" && break
4053  done
4054fi
4055if test -z "$CC"; then
4056  ac_ct_CC=$CC
4057  for ac_prog in cl.exe
4058do
4059  # Extract the first word of "$ac_prog", so it can be a program name with args.
4060set dummy $ac_prog; ac_word=$2
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062$as_echo_n "checking for $ac_word... " >&6; }
4063if ${ac_cv_prog_ac_ct_CC+:} false; then :
4064  $as_echo_n "(cached) " >&6
4065else
4066  if test -n "$ac_ct_CC"; then
4067  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4068else
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072  IFS=$as_save_IFS
4073  test -z "$as_dir" && as_dir=.
4074    for ac_exec_ext in '' $ac_executable_extensions; do
4075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076    ac_cv_prog_ac_ct_CC="$ac_prog"
4077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078    break 2
4079  fi
4080done
4081  done
4082IFS=$as_save_IFS
4083
4084fi
4085fi
4086ac_ct_CC=$ac_cv_prog_ac_ct_CC
4087if test -n "$ac_ct_CC"; then
4088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4089$as_echo "$ac_ct_CC" >&6; }
4090else
4091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092$as_echo "no" >&6; }
4093fi
4094
4095
4096  test -n "$ac_ct_CC" && break
4097done
4098
4099  if test "x$ac_ct_CC" = x; then
4100    CC=""
4101  else
4102    case $cross_compiling:$ac_tool_warned in
4103yes:)
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106ac_tool_warned=yes ;;
4107esac
4108    CC=$ac_ct_CC
4109  fi
4110fi
4111
4112fi
4113
4114
4115test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117as_fn_error $? "no acceptable C compiler found in \$PATH
4118See \`config.log' for more details" "$LINENO" 5; }
4119
4120# Provide some information about the compiler.
4121$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4122set X $ac_compile
4123ac_compiler=$2
4124for ac_option in --version -v -V -qversion; do
4125  { { ac_try="$ac_compiler $ac_option >&5"
4126case "(($ac_try" in
4127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128  *) ac_try_echo=$ac_try;;
4129esac
4130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131$as_echo "$ac_try_echo"; } >&5
4132  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4133  ac_status=$?
4134  if test -s conftest.err; then
4135    sed '10a\
4136... rest of stderr output deleted ...
4137         10q' conftest.err >conftest.er1
4138    cat conftest.er1 >&5
4139  fi
4140  rm -f conftest.er1 conftest.err
4141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142  test $ac_status = 0; }
4143done
4144
4145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147
4148int
4149main ()
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156ac_clean_files_save=$ac_clean_files
4157ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4158# Try to create an executable without -o first, disregard a.out.
4159# It will help us diagnose broken compilers, and finding out an intuition
4160# of exeext.
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4162$as_echo_n "checking whether the C compiler works... " >&6; }
4163ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4164
4165# The possible output files:
4166ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4167
4168ac_rmfiles=
4169for ac_file in $ac_files
4170do
4171  case $ac_file in
4172    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4173    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4174  esac
4175done
4176rm -f $ac_rmfiles
4177
4178if { { ac_try="$ac_link_default"
4179case "(($ac_try" in
4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181  *) ac_try_echo=$ac_try;;
4182esac
4183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184$as_echo "$ac_try_echo"; } >&5
4185  (eval "$ac_link_default") 2>&5
4186  ac_status=$?
4187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188  test $ac_status = 0; }; then :
4189  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4190# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4191# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4192# so that the user can short-circuit this test for compilers unknown to
4193# Autoconf.
4194for ac_file in $ac_files ''
4195do
4196  test -f "$ac_file" || continue
4197  case $ac_file in
4198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4199	;;
4200    [ab].out )
4201	# We found the default executable, but exeext='' is most
4202	# certainly right.
4203	break;;
4204    *.* )
4205	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4206	then :; else
4207	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4208	fi
4209	# We set ac_cv_exeext here because the later test for it is not
4210	# safe: cross compilers may not add the suffix if given an `-o'
4211	# argument, so we may need to know it at that point already.
4212	# Even if this section looks crufty: it has the advantage of
4213	# actually working.
4214	break;;
4215    * )
4216	break;;
4217  esac
4218done
4219test "$ac_cv_exeext" = no && ac_cv_exeext=
4220
4221else
4222  ac_file=''
4223fi
4224if test -z "$ac_file"; then :
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226$as_echo "no" >&6; }
4227$as_echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232as_fn_error 77 "C compiler cannot create executables
4233See \`config.log' for more details" "$LINENO" 5; }
4234else
4235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4236$as_echo "yes" >&6; }
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4239$as_echo_n "checking for C compiler default output file name... " >&6; }
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4241$as_echo "$ac_file" >&6; }
4242ac_exeext=$ac_cv_exeext
4243
4244rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4245ac_clean_files=$ac_clean_files_save
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4247$as_echo_n "checking for suffix of executables... " >&6; }
4248if { { ac_try="$ac_link"
4249case "(($ac_try" in
4250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251  *) ac_try_echo=$ac_try;;
4252esac
4253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254$as_echo "$ac_try_echo"; } >&5
4255  (eval "$ac_link") 2>&5
4256  ac_status=$?
4257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258  test $ac_status = 0; }; then :
4259  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4260# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4261# work properly (i.e., refer to `conftest.exe'), while it won't with
4262# `rm'.
4263for ac_file in conftest.exe conftest conftest.*; do
4264  test -f "$ac_file" || continue
4265  case $ac_file in
4266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4267    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4268	  break;;
4269    * ) break;;
4270  esac
4271done
4272else
4273  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4276See \`config.log' for more details" "$LINENO" 5; }
4277fi
4278rm -f conftest conftest$ac_cv_exeext
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4280$as_echo "$ac_cv_exeext" >&6; }
4281
4282rm -f conftest.$ac_ext
4283EXEEXT=$ac_cv_exeext
4284ac_exeext=$EXEEXT
4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h.  */
4287#include <stdio.h>
4288int
4289main ()
4290{
4291FILE *f = fopen ("conftest.out", "w");
4292 return ferror (f) || fclose (f) != 0;
4293
4294  ;
4295  return 0;
4296}
4297_ACEOF
4298ac_clean_files="$ac_clean_files conftest.out"
4299# Check that the compiler produces executables we can run.  If not, either
4300# the compiler is broken, or we cross compile.
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4302$as_echo_n "checking whether we are cross compiling... " >&6; }
4303if test "$cross_compiling" != yes; then
4304  { { ac_try="$ac_link"
4305case "(($ac_try" in
4306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307  *) ac_try_echo=$ac_try;;
4308esac
4309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310$as_echo "$ac_try_echo"; } >&5
4311  (eval "$ac_link") 2>&5
4312  ac_status=$?
4313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314  test $ac_status = 0; }
4315  if { ac_try='./conftest$ac_cv_exeext'
4316  { { case "(($ac_try" in
4317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318  *) ac_try_echo=$ac_try;;
4319esac
4320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321$as_echo "$ac_try_echo"; } >&5
4322  (eval "$ac_try") 2>&5
4323  ac_status=$?
4324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325  test $ac_status = 0; }; }; then
4326    cross_compiling=no
4327  else
4328    if test "$cross_compiling" = maybe; then
4329	cross_compiling=yes
4330    else
4331	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4333as_fn_error $? "cannot run C compiled programs.
4334If you meant to cross compile, use \`--host'.
4335See \`config.log' for more details" "$LINENO" 5; }
4336    fi
4337  fi
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4340$as_echo "$cross_compiling" >&6; }
4341
4342rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4343ac_clean_files=$ac_clean_files_save
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4345$as_echo_n "checking for suffix of object files... " >&6; }
4346if ${ac_cv_objext+:} false; then :
4347  $as_echo_n "(cached) " >&6
4348else
4349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h.  */
4351
4352int
4353main ()
4354{
4355
4356  ;
4357  return 0;
4358}
4359_ACEOF
4360rm -f conftest.o conftest.obj
4361if { { ac_try="$ac_compile"
4362case "(($ac_try" in
4363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364  *) ac_try_echo=$ac_try;;
4365esac
4366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367$as_echo "$ac_try_echo"; } >&5
4368  (eval "$ac_compile") 2>&5
4369  ac_status=$?
4370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371  test $ac_status = 0; }; then :
4372  for ac_file in conftest.o conftest.obj conftest.*; do
4373  test -f "$ac_file" || continue;
4374  case $ac_file in
4375    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4376    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4377       break;;
4378  esac
4379done
4380else
4381  $as_echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386as_fn_error $? "cannot compute suffix of object files: cannot compile
4387See \`config.log' for more details" "$LINENO" 5; }
4388fi
4389rm -f conftest.$ac_cv_objext conftest.$ac_ext
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4392$as_echo "$ac_cv_objext" >&6; }
4393OBJEXT=$ac_cv_objext
4394ac_objext=$OBJEXT
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4396$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4397if ${ac_cv_c_compiler_gnu+:} false; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402
4403int
4404main ()
4405{
4406#ifndef __GNUC__
4407       choke me
4408#endif
4409
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415  ac_compiler_gnu=yes
4416else
4417  ac_compiler_gnu=no
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420ac_cv_c_compiler_gnu=$ac_compiler_gnu
4421
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4424$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4425if test $ac_compiler_gnu = yes; then
4426  GCC=yes
4427else
4428  GCC=
4429fi
4430ac_test_CFLAGS=${CFLAGS+set}
4431ac_save_CFLAGS=$CFLAGS
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4433$as_echo_n "checking whether $CC accepts -g... " >&6; }
4434if ${ac_cv_prog_cc_g+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  ac_save_c_werror_flag=$ac_c_werror_flag
4438   ac_c_werror_flag=yes
4439   ac_cv_prog_cc_g=no
4440   CFLAGS="-g"
4441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442/* end confdefs.h.  */
4443
4444int
4445main ()
4446{
4447
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452if ac_fn_c_try_compile "$LINENO"; then :
4453  ac_cv_prog_cc_g=yes
4454else
4455  CFLAGS=""
4456      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458
4459int
4460main ()
4461{
4462
4463  ;
4464  return 0;
4465}
4466_ACEOF
4467if ac_fn_c_try_compile "$LINENO"; then :
4468
4469else
4470  ac_c_werror_flag=$ac_save_c_werror_flag
4471	 CFLAGS="-g"
4472	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h.  */
4474
4475int
4476main ()
4477{
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"; then :
4484  ac_cv_prog_cc_g=yes
4485fi
4486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487fi
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489fi
4490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491   ac_c_werror_flag=$ac_save_c_werror_flag
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4494$as_echo "$ac_cv_prog_cc_g" >&6; }
4495if test "$ac_test_CFLAGS" = set; then
4496  CFLAGS=$ac_save_CFLAGS
4497elif test $ac_cv_prog_cc_g = yes; then
4498  if test "$GCC" = yes; then
4499    CFLAGS="-g -O2"
4500  else
4501    CFLAGS="-g"
4502  fi
4503else
4504  if test "$GCC" = yes; then
4505    CFLAGS="-O2"
4506  else
4507    CFLAGS=
4508  fi
4509fi
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4511$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4512if ${ac_cv_prog_cc_c89+:} false; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  ac_cv_prog_cc_c89=no
4516ac_save_CC=$CC
4517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519#include <stdarg.h>
4520#include <stdio.h>
4521struct stat;
4522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4523struct buf { int x; };
4524FILE * (*rcsopen) (struct buf *, struct stat *, int);
4525static char *e (p, i)
4526     char **p;
4527     int i;
4528{
4529  return p[i];
4530}
4531static char *f (char * (*g) (char **, int), char **p, ...)
4532{
4533  char *s;
4534  va_list v;
4535  va_start (v,p);
4536  s = g (p, va_arg (v,int));
4537  va_end (v);
4538  return s;
4539}
4540
4541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4542   function prototypes and stuff, but not '\xHH' hex character constants.
4543   These don't provoke an error unfortunately, instead are silently treated
4544   as 'x'.  The following induces an error, until -std is added to get
4545   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4546   array size at least.  It's necessary to write '\x00'==0 to get something
4547   that's true only with -std.  */
4548int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4549
4550/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4551   inside strings and character constants.  */
4552#define FOO(x) 'x'
4553int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4554
4555int test (int i, double x);
4556struct s1 {int (*f) (int a);};
4557struct s2 {int (*f) (double a);};
4558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4559int argc;
4560char **argv;
4561int
4562main ()
4563{
4564return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4565  ;
4566  return 0;
4567}
4568_ACEOF
4569for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4570	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4571do
4572  CC="$ac_save_CC $ac_arg"
4573  if ac_fn_c_try_compile "$LINENO"; then :
4574  ac_cv_prog_cc_c89=$ac_arg
4575fi
4576rm -f core conftest.err conftest.$ac_objext
4577  test "x$ac_cv_prog_cc_c89" != "xno" && break
4578done
4579rm -f conftest.$ac_ext
4580CC=$ac_save_CC
4581
4582fi
4583# AC_CACHE_VAL
4584case "x$ac_cv_prog_cc_c89" in
4585  x)
4586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4587$as_echo "none needed" >&6; } ;;
4588  xno)
4589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4590$as_echo "unsupported" >&6; } ;;
4591  *)
4592    CC="$CC $ac_cv_prog_cc_c89"
4593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4594$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4595esac
4596if test "x$ac_cv_prog_cc_c89" != xno; then :
4597
4598fi
4599
4600ac_ext=c
4601ac_cpp='$CPP $CPPFLAGS'
4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605
4606ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4612$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4613if ${am_cv_prog_cc_c_o+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618
4619int
4620main ()
4621{
4622
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627  # Make sure it works both with $CC and with simple cc.
4628  # Following AC_PROG_CC_C_O, we do the test twice because some
4629  # compilers refuse to overwrite an existing .o file with -o,
4630  # though they will create one.
4631  am_cv_prog_cc_c_o=yes
4632  for am_i in 1 2; do
4633    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4634   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } \
4638         && test -f conftest2.$ac_objext; then
4639      : OK
4640    else
4641      am_cv_prog_cc_c_o=no
4642      break
4643    fi
4644  done
4645  rm -f core conftest*
4646  unset am_i
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4649$as_echo "$am_cv_prog_cc_c_o" >&6; }
4650if test "$am_cv_prog_cc_c_o" != yes; then
4651   # Losing compiler, so override with the script.
4652   # FIXME: It is wrong to rewrite CC.
4653   # But if we don't then we get into trouble of one sort or another.
4654   # A longer-term fix would be to have automake use am__CC in this case,
4655   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4656   CC="$am_aux_dir/compile $CC"
4657fi
4658ac_ext=c
4659ac_cpp='$CPP $CPPFLAGS'
4660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662ac_compiler_gnu=$ac_cv_c_compiler_gnu
4663
4664
4665depcc="$CC"   am_compiler_list=
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4668$as_echo_n "checking dependency style of $depcc... " >&6; }
4669if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4670  $as_echo_n "(cached) " >&6
4671else
4672  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4673  # We make a subdir and do the tests there.  Otherwise we can end up
4674  # making bogus files that we don't know about and never remove.  For
4675  # instance it was reported that on HP-UX the gcc test will end up
4676  # making a dummy file named 'D' -- because '-MD' means "put the output
4677  # in D".
4678  rm -rf conftest.dir
4679  mkdir conftest.dir
4680  # Copy depcomp to subdir because otherwise we won't find it if we're
4681  # using a relative directory.
4682  cp "$am_depcomp" conftest.dir
4683  cd conftest.dir
4684  # We will build objects and dependencies in a subdirectory because
4685  # it helps to detect inapplicable dependency modes.  For instance
4686  # both Tru64's cc and ICC support -MD to output dependencies as a
4687  # side effect of compilation, but ICC will put the dependencies in
4688  # the current directory while Tru64 will put them in the object
4689  # directory.
4690  mkdir sub
4691
4692  am_cv_CC_dependencies_compiler_type=none
4693  if test "$am_compiler_list" = ""; then
4694     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4695  fi
4696  am__universal=false
4697  case " $depcc " in #(
4698     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4699     esac
4700
4701  for depmode in $am_compiler_list; do
4702    # Setup a source with many dependencies, because some compilers
4703    # like to wrap large dependency lists on column 80 (with \), and
4704    # we should not choose a depcomp mode which is confused by this.
4705    #
4706    # We need to recreate these files for each test, as the compiler may
4707    # overwrite some of them when testing with obscure command lines.
4708    # This happens at least with the AIX C compiler.
4709    : > sub/conftest.c
4710    for i in 1 2 3 4 5 6; do
4711      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4712      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4713      # Solaris 10 /bin/sh.
4714      echo '/* dummy */' > sub/conftst$i.h
4715    done
4716    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4717
4718    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4719    # mode.  It turns out that the SunPro C++ compiler does not properly
4720    # handle '-M -o', and we need to detect this.  Also, some Intel
4721    # versions had trouble with output in subdirs.
4722    am__obj=sub/conftest.${OBJEXT-o}
4723    am__minus_obj="-o $am__obj"
4724    case $depmode in
4725    gcc)
4726      # This depmode causes a compiler race in universal mode.
4727      test "$am__universal" = false || continue
4728      ;;
4729    nosideeffect)
4730      # After this tag, mechanisms are not by side-effect, so they'll
4731      # only be used when explicitly requested.
4732      if test "x$enable_dependency_tracking" = xyes; then
4733	continue
4734      else
4735	break
4736      fi
4737      ;;
4738    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4739      # This compiler won't grok '-c -o', but also, the minuso test has
4740      # not run yet.  These depmodes are late enough in the game, and
4741      # so weak that their functioning should not be impacted.
4742      am__obj=conftest.${OBJEXT-o}
4743      am__minus_obj=
4744      ;;
4745    none) break ;;
4746    esac
4747    if depmode=$depmode \
4748       source=sub/conftest.c object=$am__obj \
4749       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4750       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4751         >/dev/null 2>conftest.err &&
4752       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4753       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4754       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4755       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4756      # icc doesn't choke on unknown options, it will just issue warnings
4757      # or remarks (even with -Werror).  So we grep stderr for any message
4758      # that says an option was ignored or not supported.
4759      # When given -MP, icc 7.0 and 7.1 complain thusly:
4760      #   icc: Command line warning: ignoring option '-M'; no argument required
4761      # The diagnosis changed in icc 8.0:
4762      #   icc: Command line remark: option '-MP' not supported
4763      if (grep 'ignoring option' conftest.err ||
4764          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4765        am_cv_CC_dependencies_compiler_type=$depmode
4766        break
4767      fi
4768    fi
4769  done
4770
4771  cd ..
4772  rm -rf conftest.dir
4773else
4774  am_cv_CC_dependencies_compiler_type=none
4775fi
4776
4777fi
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4779$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4780CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4781
4782 if
4783  test "x$enable_dependency_tracking" != xno \
4784  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4785  am__fastdepCC_TRUE=
4786  am__fastdepCC_FALSE='#'
4787else
4788  am__fastdepCC_TRUE='#'
4789  am__fastdepCC_FALSE=
4790fi
4791
4792
4793
4794ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
4795if test "x$ac_cv_func_asprintf" = xyes; then :
4796  $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
4797
4798else
4799  case " $LIBOBJS " in
4800  *" asprintf.$ac_objext "* ) ;;
4801  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
4802 ;;
4803esac
4804
4805fi
4806
4807
4808
4809
4810$as_echo "#define FVWM_CONFIG \"config\"" >>confdefs.h
4811
4812
4813
4814$as_echo "#define FVWM2RC \".fvwm2rc\"" >>confdefs.h
4815
4816
4817# Various configure-time options
4818
4819# Check whether --enable-dmalloc was given.
4820if test "${enable_dmalloc+set}" = set; then :
4821  enableval=$enable_dmalloc; ac_cv_dmalloc="$enableval"
4822else
4823  ac_cv_dmalloc="no"
4824fi
4825
4826
4827# Check whether --enable-efence was given.
4828if test "${enable_efence+set}" = set; then :
4829  enableval=$enable_efence; ac_cv_efence="$enableval"
4830else
4831  ac_cv_efence="no"
4832fi
4833
4834
4835
4836# Need to know where X is, for finding some libraries (e.g. xpm)
4837no_x=""
4838ac_ext=c
4839ac_cpp='$CPP $CPPFLAGS'
4840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4844$as_echo_n "checking how to run the C preprocessor... " >&6; }
4845# On Suns, sometimes $CPP names a directory.
4846if test -n "$CPP" && test -d "$CPP"; then
4847  CPP=
4848fi
4849if test -z "$CPP"; then
4850  if ${ac_cv_prog_CPP+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853      # Double quotes because CPP needs to be expanded
4854    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4855    do
4856      ac_preproc_ok=false
4857for ac_c_preproc_warn_flag in '' yes
4858do
4859  # Use a header file that comes with gcc, so configuring glibc
4860  # with a fresh cross-compiler works.
4861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862  # <limits.h> exists even on freestanding compilers.
4863  # On the NeXT, cc -E runs the code through the compiler's parser,
4864  # not just through cpp. "Syntax error" is here to catch this case.
4865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h.  */
4867#ifdef __STDC__
4868# include <limits.h>
4869#else
4870# include <assert.h>
4871#endif
4872		     Syntax error
4873_ACEOF
4874if ac_fn_c_try_cpp "$LINENO"; then :
4875
4876else
4877  # Broken: fails on valid input.
4878continue
4879fi
4880rm -f conftest.err conftest.i conftest.$ac_ext
4881
4882  # OK, works on sane cases.  Now check whether nonexistent headers
4883  # can be detected and how.
4884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886#include <ac_nonexistent.h>
4887_ACEOF
4888if ac_fn_c_try_cpp "$LINENO"; then :
4889  # Broken: success on invalid input.
4890continue
4891else
4892  # Passes both tests.
4893ac_preproc_ok=:
4894break
4895fi
4896rm -f conftest.err conftest.i conftest.$ac_ext
4897
4898done
4899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900rm -f conftest.i conftest.err conftest.$ac_ext
4901if $ac_preproc_ok; then :
4902  break
4903fi
4904
4905    done
4906    ac_cv_prog_CPP=$CPP
4907
4908fi
4909  CPP=$ac_cv_prog_CPP
4910else
4911  ac_cv_prog_CPP=$CPP
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4914$as_echo "$CPP" >&6; }
4915ac_preproc_ok=false
4916for ac_c_preproc_warn_flag in '' yes
4917do
4918  # Use a header file that comes with gcc, so configuring glibc
4919  # with a fresh cross-compiler works.
4920  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921  # <limits.h> exists even on freestanding compilers.
4922  # On the NeXT, cc -E runs the code through the compiler's parser,
4923  # not just through cpp. "Syntax error" is here to catch this case.
4924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926#ifdef __STDC__
4927# include <limits.h>
4928#else
4929# include <assert.h>
4930#endif
4931		     Syntax error
4932_ACEOF
4933if ac_fn_c_try_cpp "$LINENO"; then :
4934
4935else
4936  # Broken: fails on valid input.
4937continue
4938fi
4939rm -f conftest.err conftest.i conftest.$ac_ext
4940
4941  # OK, works on sane cases.  Now check whether nonexistent headers
4942  # can be detected and how.
4943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h.  */
4945#include <ac_nonexistent.h>
4946_ACEOF
4947if ac_fn_c_try_cpp "$LINENO"; then :
4948  # Broken: success on invalid input.
4949continue
4950else
4951  # Passes both tests.
4952ac_preproc_ok=:
4953break
4954fi
4955rm -f conftest.err conftest.i conftest.$ac_ext
4956
4957done
4958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959rm -f conftest.i conftest.err conftest.$ac_ext
4960if $ac_preproc_ok; then :
4961
4962else
4963  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4966See \`config.log' for more details" "$LINENO" 5; }
4967fi
4968
4969ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974
4975
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4977$as_echo_n "checking for X... " >&6; }
4978
4979
4980# Check whether --with-x was given.
4981if test "${with_x+set}" = set; then :
4982  withval=$with_x;
4983fi
4984
4985# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4986if test "x$with_x" = xno; then
4987  # The user explicitly disabled X.
4988  have_x=disabled
4989else
4990  case $x_includes,$x_libraries in #(
4991    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4992    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  # One or both of the vars are not set, and there is no cached value.
4996ac_x_includes=no ac_x_libraries=no
4997rm -f -r conftest.dir
4998if mkdir conftest.dir; then
4999  cd conftest.dir
5000  cat >Imakefile <<'_ACEOF'
5001incroot:
5002	@echo incroot='${INCROOT}'
5003usrlibdir:
5004	@echo usrlibdir='${USRLIBDIR}'
5005libdir:
5006	@echo libdir='${LIBDIR}'
5007_ACEOF
5008  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5009    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5010    for ac_var in incroot usrlibdir libdir; do
5011      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5012    done
5013    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5014    for ac_extension in a so sl dylib la dll; do
5015      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5016	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5017	ac_im_usrlibdir=$ac_im_libdir; break
5018      fi
5019    done
5020    # Screen out bogus values from the imake configuration.  They are
5021    # bogus both because they are the default anyway, and because
5022    # using them would break gcc on systems where it needs fixed includes.
5023    case $ac_im_incroot in
5024	/usr/include) ac_x_includes= ;;
5025	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5026    esac
5027    case $ac_im_usrlibdir in
5028	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
5029	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5030    esac
5031  fi
5032  cd ..
5033  rm -f -r conftest.dir
5034fi
5035
5036# Standard set of common directories for X headers.
5037# Check X11 before X11Rn because it is often a symlink to the current release.
5038ac_x_header_dirs='
5039/usr/X11/include
5040/usr/X11R7/include
5041/usr/X11R6/include
5042/usr/X11R5/include
5043/usr/X11R4/include
5044
5045/usr/include/X11
5046/usr/include/X11R7
5047/usr/include/X11R6
5048/usr/include/X11R5
5049/usr/include/X11R4
5050
5051/usr/local/X11/include
5052/usr/local/X11R7/include
5053/usr/local/X11R6/include
5054/usr/local/X11R5/include
5055/usr/local/X11R4/include
5056
5057/usr/local/include/X11
5058/usr/local/include/X11R7
5059/usr/local/include/X11R6
5060/usr/local/include/X11R5
5061/usr/local/include/X11R4
5062
5063/usr/X386/include
5064/usr/x386/include
5065/usr/XFree86/include/X11
5066
5067/usr/include
5068/usr/local/include
5069/usr/unsupported/include
5070/usr/athena/include
5071/usr/local/x11r5/include
5072/usr/lpp/Xamples/include
5073
5074/usr/openwin/include
5075/usr/openwin/share/include'
5076
5077if test "$ac_x_includes" = no; then
5078  # Guess where to find include files, by looking for Xlib.h.
5079  # First, try using that file with no special directory specified.
5080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082#include <X11/Xlib.h>
5083_ACEOF
5084if ac_fn_c_try_cpp "$LINENO"; then :
5085  # We can compile using X headers with no special include directory.
5086ac_x_includes=
5087else
5088  for ac_dir in $ac_x_header_dirs; do
5089  if test -r "$ac_dir/X11/Xlib.h"; then
5090    ac_x_includes=$ac_dir
5091    break
5092  fi
5093done
5094fi
5095rm -f conftest.err conftest.i conftest.$ac_ext
5096fi # $ac_x_includes = no
5097
5098if test "$ac_x_libraries" = no; then
5099  # Check for the libraries.
5100  # See if we find them without any special options.
5101  # Don't add to $LIBS permanently.
5102  ac_save_LIBS=$LIBS
5103  LIBS="-lX11 $LIBS"
5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106#include <X11/Xlib.h>
5107int
5108main ()
5109{
5110XrmInitialize ()
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_link "$LINENO"; then :
5116  LIBS=$ac_save_LIBS
5117# We can link X programs with no special library path.
5118ac_x_libraries=
5119else
5120  LIBS=$ac_save_LIBS
5121for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5122do
5123  # Don't even attempt the hair of trying to link an X program!
5124  for ac_extension in a so sl dylib la dll; do
5125    if test -r "$ac_dir/libX11.$ac_extension"; then
5126      ac_x_libraries=$ac_dir
5127      break 2
5128    fi
5129  done
5130done
5131fi
5132rm -f core conftest.err conftest.$ac_objext \
5133    conftest$ac_exeext conftest.$ac_ext
5134fi # $ac_x_libraries = no
5135
5136case $ac_x_includes,$ac_x_libraries in #(
5137  no,* | *,no | *\'*)
5138    # Didn't find X, or a directory has "'" in its name.
5139    ac_cv_have_x="have_x=no";; #(
5140  *)
5141    # Record where we found X for the cache.
5142    ac_cv_have_x="have_x=yes\
5143	ac_x_includes='$ac_x_includes'\
5144	ac_x_libraries='$ac_x_libraries'"
5145esac
5146fi
5147;; #(
5148    *) have_x=yes;;
5149  esac
5150  eval "$ac_cv_have_x"
5151fi # $with_x != no
5152
5153if test "$have_x" != yes; then
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5155$as_echo "$have_x" >&6; }
5156  no_x=yes
5157else
5158  # If each of the values was on the command line, it overrides each guess.
5159  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5160  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5161  # Update the cache value to reflect the command line values.
5162  ac_cv_have_x="have_x=yes\
5163	ac_x_includes='$x_includes'\
5164	ac_x_libraries='$x_libraries'"
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5166$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5167fi
5168
5169if test "$no_x" = yes; then
5170  # Not all programs may use this symbol, but it does not hurt to define it.
5171
5172$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5173
5174  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5175else
5176  if test -n "$x_includes"; then
5177    X_CFLAGS="$X_CFLAGS -I$x_includes"
5178  fi
5179
5180  # It would also be nice to do this for all -L options, not just this one.
5181  if test -n "$x_libraries"; then
5182    X_LIBS="$X_LIBS -L$x_libraries"
5183    # For Solaris; some versions of Sun CC require a space after -R and
5184    # others require no space.  Words are not sufficient . . . .
5185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5186$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5187    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5188    ac_xsave_c_werror_flag=$ac_c_werror_flag
5189    ac_c_werror_flag=yes
5190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h.  */
5192
5193int
5194main ()
5195{
5196
5197  ;
5198  return 0;
5199}
5200_ACEOF
5201if ac_fn_c_try_link "$LINENO"; then :
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204       X_LIBS="$X_LIBS -R$x_libraries"
5205else
5206  LIBS="$ac_xsave_LIBS -R $x_libraries"
5207       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209
5210int
5211main ()
5212{
5213
5214  ;
5215  return 0;
5216}
5217_ACEOF
5218if ac_fn_c_try_link "$LINENO"; then :
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220$as_echo "yes" >&6; }
5221	  X_LIBS="$X_LIBS -R $x_libraries"
5222else
5223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5224$as_echo "neither works" >&6; }
5225fi
5226rm -f core conftest.err conftest.$ac_objext \
5227    conftest$ac_exeext conftest.$ac_ext
5228fi
5229rm -f core conftest.err conftest.$ac_objext \
5230    conftest$ac_exeext conftest.$ac_ext
5231    ac_c_werror_flag=$ac_xsave_c_werror_flag
5232    LIBS=$ac_xsave_LIBS
5233  fi
5234
5235  # Check for system-dependent libraries X programs must link with.
5236  # Do this before checking for the system-independent R6 libraries
5237  # (-lICE), since we may need -lsocket or whatever for X linking.
5238
5239  if test "$ISC" = yes; then
5240    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5241  else
5242    # Martyn Johnson says this is needed for Ultrix, if the X
5243    # libraries were built with DECnet support.  And Karl Berry says
5244    # the Alpha needs dnet_stub (dnet does not exist).
5245    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5246    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248
5249/* Override any GCC internal prototype to avoid an error.
5250   Use char because int might match the return type of a GCC
5251   builtin and then its argument prototype would still apply.  */
5252#ifdef __cplusplus
5253extern "C"
5254#endif
5255char XOpenDisplay ();
5256int
5257main ()
5258{
5259return XOpenDisplay ();
5260  ;
5261  return 0;
5262}
5263_ACEOF
5264if ac_fn_c_try_link "$LINENO"; then :
5265
5266else
5267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5268$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5269if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5270  $as_echo_n "(cached) " >&6
5271else
5272  ac_check_lib_save_LIBS=$LIBS
5273LIBS="-ldnet  $LIBS"
5274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275/* end confdefs.h.  */
5276
5277/* Override any GCC internal prototype to avoid an error.
5278   Use char because int might match the return type of a GCC
5279   builtin and then its argument prototype would still apply.  */
5280#ifdef __cplusplus
5281extern "C"
5282#endif
5283char dnet_ntoa ();
5284int
5285main ()
5286{
5287return dnet_ntoa ();
5288  ;
5289  return 0;
5290}
5291_ACEOF
5292if ac_fn_c_try_link "$LINENO"; then :
5293  ac_cv_lib_dnet_dnet_ntoa=yes
5294else
5295  ac_cv_lib_dnet_dnet_ntoa=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext \
5298    conftest$ac_exeext conftest.$ac_ext
5299LIBS=$ac_check_lib_save_LIBS
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5302$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5303if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5304  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5305fi
5306
5307    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5308      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5309$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5310if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5311  $as_echo_n "(cached) " >&6
5312else
5313  ac_check_lib_save_LIBS=$LIBS
5314LIBS="-ldnet_stub  $LIBS"
5315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h.  */
5317
5318/* Override any GCC internal prototype to avoid an error.
5319   Use char because int might match the return type of a GCC
5320   builtin and then its argument prototype would still apply.  */
5321#ifdef __cplusplus
5322extern "C"
5323#endif
5324char dnet_ntoa ();
5325int
5326main ()
5327{
5328return dnet_ntoa ();
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333if ac_fn_c_try_link "$LINENO"; then :
5334  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5335else
5336  ac_cv_lib_dnet_stub_dnet_ntoa=no
5337fi
5338rm -f core conftest.err conftest.$ac_objext \
5339    conftest$ac_exeext conftest.$ac_ext
5340LIBS=$ac_check_lib_save_LIBS
5341fi
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5343$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5344if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5345  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5346fi
5347
5348    fi
5349fi
5350rm -f core conftest.err conftest.$ac_objext \
5351    conftest$ac_exeext conftest.$ac_ext
5352    LIBS="$ac_xsave_LIBS"
5353
5354    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5355    # to get the SysV transport functions.
5356    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5357    # needs -lnsl.
5358    # The nsl library prevents programs from opening the X display
5359    # on Irix 5.2, according to T.E. Dickey.
5360    # The functions gethostbyname, getservbyname, and inet_addr are
5361    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5362    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5363if test "x$ac_cv_func_gethostbyname" = xyes; then :
5364
5365fi
5366
5367    if test $ac_cv_func_gethostbyname = no; then
5368      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5369$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5370if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  ac_check_lib_save_LIBS=$LIBS
5374LIBS="-lnsl  $LIBS"
5375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377
5378/* Override any GCC internal prototype to avoid an error.
5379   Use char because int might match the return type of a GCC
5380   builtin and then its argument prototype would still apply.  */
5381#ifdef __cplusplus
5382extern "C"
5383#endif
5384char gethostbyname ();
5385int
5386main ()
5387{
5388return gethostbyname ();
5389  ;
5390  return 0;
5391}
5392_ACEOF
5393if ac_fn_c_try_link "$LINENO"; then :
5394  ac_cv_lib_nsl_gethostbyname=yes
5395else
5396  ac_cv_lib_nsl_gethostbyname=no
5397fi
5398rm -f core conftest.err conftest.$ac_objext \
5399    conftest$ac_exeext conftest.$ac_ext
5400LIBS=$ac_check_lib_save_LIBS
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5403$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5404if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5405  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5406fi
5407
5408      if test $ac_cv_lib_nsl_gethostbyname = no; then
5409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5410$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5411if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  ac_check_lib_save_LIBS=$LIBS
5415LIBS="-lbsd  $LIBS"
5416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h.  */
5418
5419/* Override any GCC internal prototype to avoid an error.
5420   Use char because int might match the return type of a GCC
5421   builtin and then its argument prototype would still apply.  */
5422#ifdef __cplusplus
5423extern "C"
5424#endif
5425char gethostbyname ();
5426int
5427main ()
5428{
5429return gethostbyname ();
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434if ac_fn_c_try_link "$LINENO"; then :
5435  ac_cv_lib_bsd_gethostbyname=yes
5436else
5437  ac_cv_lib_bsd_gethostbyname=no
5438fi
5439rm -f core conftest.err conftest.$ac_objext \
5440    conftest$ac_exeext conftest.$ac_ext
5441LIBS=$ac_check_lib_save_LIBS
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5444$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5445if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5446  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5447fi
5448
5449      fi
5450    fi
5451
5452    # lieder@skyler.mavd.honeywell.com says without -lsocket,
5453    # socket/setsockopt and other routines are undefined under SCO ODT
5454    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5455    # on later versions), says Simon Leinen: it contains gethostby*
5456    # variants that don't use the name server (or something).  -lsocket
5457    # must be given before -lnsl if both are needed.  We assume that
5458    # if connect needs -lnsl, so does gethostbyname.
5459    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5460if test "x$ac_cv_func_connect" = xyes; then :
5461
5462fi
5463
5464    if test $ac_cv_func_connect = no; then
5465      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5466$as_echo_n "checking for connect in -lsocket... " >&6; }
5467if ${ac_cv_lib_socket_connect+:} false; then :
5468  $as_echo_n "(cached) " >&6
5469else
5470  ac_check_lib_save_LIBS=$LIBS
5471LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473/* end confdefs.h.  */
5474
5475/* Override any GCC internal prototype to avoid an error.
5476   Use char because int might match the return type of a GCC
5477   builtin and then its argument prototype would still apply.  */
5478#ifdef __cplusplus
5479extern "C"
5480#endif
5481char connect ();
5482int
5483main ()
5484{
5485return connect ();
5486  ;
5487  return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_link "$LINENO"; then :
5491  ac_cv_lib_socket_connect=yes
5492else
5493  ac_cv_lib_socket_connect=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext \
5496    conftest$ac_exeext conftest.$ac_ext
5497LIBS=$ac_check_lib_save_LIBS
5498fi
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5500$as_echo "$ac_cv_lib_socket_connect" >&6; }
5501if test "x$ac_cv_lib_socket_connect" = xyes; then :
5502  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5503fi
5504
5505    fi
5506
5507    # Guillermo Gomez says -lposix is necessary on A/UX.
5508    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5509if test "x$ac_cv_func_remove" = xyes; then :
5510
5511fi
5512
5513    if test $ac_cv_func_remove = no; then
5514      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5515$as_echo_n "checking for remove in -lposix... " >&6; }
5516if ${ac_cv_lib_posix_remove+:} false; then :
5517  $as_echo_n "(cached) " >&6
5518else
5519  ac_check_lib_save_LIBS=$LIBS
5520LIBS="-lposix  $LIBS"
5521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522/* end confdefs.h.  */
5523
5524/* Override any GCC internal prototype to avoid an error.
5525   Use char because int might match the return type of a GCC
5526   builtin and then its argument prototype would still apply.  */
5527#ifdef __cplusplus
5528extern "C"
5529#endif
5530char remove ();
5531int
5532main ()
5533{
5534return remove ();
5535  ;
5536  return 0;
5537}
5538_ACEOF
5539if ac_fn_c_try_link "$LINENO"; then :
5540  ac_cv_lib_posix_remove=yes
5541else
5542  ac_cv_lib_posix_remove=no
5543fi
5544rm -f core conftest.err conftest.$ac_objext \
5545    conftest$ac_exeext conftest.$ac_ext
5546LIBS=$ac_check_lib_save_LIBS
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5549$as_echo "$ac_cv_lib_posix_remove" >&6; }
5550if test "x$ac_cv_lib_posix_remove" = xyes; then :
5551  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5552fi
5553
5554    fi
5555
5556    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5557    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5558if test "x$ac_cv_func_shmat" = xyes; then :
5559
5560fi
5561
5562    if test $ac_cv_func_shmat = no; then
5563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5564$as_echo_n "checking for shmat in -lipc... " >&6; }
5565if ${ac_cv_lib_ipc_shmat+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  ac_check_lib_save_LIBS=$LIBS
5569LIBS="-lipc  $LIBS"
5570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571/* end confdefs.h.  */
5572
5573/* Override any GCC internal prototype to avoid an error.
5574   Use char because int might match the return type of a GCC
5575   builtin and then its argument prototype would still apply.  */
5576#ifdef __cplusplus
5577extern "C"
5578#endif
5579char shmat ();
5580int
5581main ()
5582{
5583return shmat ();
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"; then :
5589  ac_cv_lib_ipc_shmat=yes
5590else
5591  ac_cv_lib_ipc_shmat=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext \
5594    conftest$ac_exeext conftest.$ac_ext
5595LIBS=$ac_check_lib_save_LIBS
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5598$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5599if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5600  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5601fi
5602
5603    fi
5604  fi
5605
5606  # Check for libraries that X11R6 Xt/Xaw programs need.
5607  ac_save_LDFLAGS=$LDFLAGS
5608  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5609  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5610  # check for ICE first), but we must link in the order -lSM -lICE or
5611  # we get undefined symbols.  So assume we have SM if we have ICE.
5612  # These have to be linked with before -lX11, unlike the other
5613  # libraries we check for below, so use a different variable.
5614  # John Interrante, Karl Berry
5615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5616$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5617if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  ac_check_lib_save_LIBS=$LIBS
5621LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624
5625/* Override any GCC internal prototype to avoid an error.
5626   Use char because int might match the return type of a GCC
5627   builtin and then its argument prototype would still apply.  */
5628#ifdef __cplusplus
5629extern "C"
5630#endif
5631char IceConnectionNumber ();
5632int
5633main ()
5634{
5635return IceConnectionNumber ();
5636  ;
5637  return 0;
5638}
5639_ACEOF
5640if ac_fn_c_try_link "$LINENO"; then :
5641  ac_cv_lib_ICE_IceConnectionNumber=yes
5642else
5643  ac_cv_lib_ICE_IceConnectionNumber=no
5644fi
5645rm -f core conftest.err conftest.$ac_objext \
5646    conftest$ac_exeext conftest.$ac_ext
5647LIBS=$ac_check_lib_save_LIBS
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5650$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5651if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5652  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5653fi
5654
5655  LDFLAGS=$ac_save_LDFLAGS
5656
5657fi
5658
5659if test x"$no_x" = x"yes"; then
5660  echo
5661  echo "X11 libraries or header files could not be found.  Please make"
5662  echo "sure the X11 development package is installed on your system."
5663  echo "If it is definitely installed, try setting the include and library"
5664  echo "paths with the --x-include and --x-libraries options of configure."
5665  echo "Fvwm can not be compiled without the X11 development environment."
5666  echo
5667  echo "Aborting."
5668  echo
5669  exit 1
5670fi
5671
5672# FIXME: default value should be derived from computed path to X
5673# includes.  Actually, this should probably not appear in configure
5674# at all: it is settable at runtime, and only confuses the issue to
5675# have it settable here too.
5676#
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking imagepath" >&5
5678$as_echo_n "checking imagepath... " >&6; }
5679val="/usr/include/X11/bitmaps:/usr/include/X11/pixmaps"
5680
5681# Check whether --with-imagepath was given.
5682if test "${with_imagepath+set}" = set; then :
5683  withval=$with_imagepath;  case "$withval" in
5684  no)
5685    as_fn_error $? "Can not disable image path." "$LINENO" 5
5686    ;;
5687  yes)
5688    ;;
5689  *)
5690    val="$withval"
5691    ;;
5692  esac
5693fi
5694
5695
5696cat >>confdefs.h <<_ACEOF
5697#define FVWM_IMAGEPATH "$val"
5698_ACEOF
5699
5700
5701FVWM_IMAGEPATH="$val"
5702
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $val" >&5
5704$as_echo "$val" >&6; }
5705
5706# Minimal checks for programs: enough to enable checking for
5707# optional libraries.
5708ac_ext=c
5709ac_cpp='$CPP $CPPFLAGS'
5710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713if test -n "$ac_tool_prefix"; then
5714  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5715set dummy ${ac_tool_prefix}gcc; ac_word=$2
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717$as_echo_n "checking for $ac_word... " >&6; }
5718if ${ac_cv_prog_CC+:} false; then :
5719  $as_echo_n "(cached) " >&6
5720else
5721  if test -n "$CC"; then
5722  ac_cv_prog_CC="$CC" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727  IFS=$as_save_IFS
5728  test -z "$as_dir" && as_dir=.
5729    for ac_exec_ext in '' $ac_executable_extensions; do
5730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733    break 2
5734  fi
5735done
5736  done
5737IFS=$as_save_IFS
5738
5739fi
5740fi
5741CC=$ac_cv_prog_CC
5742if test -n "$CC"; then
5743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5744$as_echo "$CC" >&6; }
5745else
5746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }
5748fi
5749
5750
5751fi
5752if test -z "$ac_cv_prog_CC"; then
5753  ac_ct_CC=$CC
5754  # Extract the first word of "gcc", so it can be a program name with args.
5755set dummy gcc; ac_word=$2
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757$as_echo_n "checking for $ac_word... " >&6; }
5758if ${ac_cv_prog_ac_ct_CC+:} false; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  if test -n "$ac_ct_CC"; then
5762  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767  IFS=$as_save_IFS
5768  test -z "$as_dir" && as_dir=.
5769    for ac_exec_ext in '' $ac_executable_extensions; do
5770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771    ac_cv_prog_ac_ct_CC="gcc"
5772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773    break 2
5774  fi
5775done
5776  done
5777IFS=$as_save_IFS
5778
5779fi
5780fi
5781ac_ct_CC=$ac_cv_prog_ac_ct_CC
5782if test -n "$ac_ct_CC"; then
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5784$as_echo "$ac_ct_CC" >&6; }
5785else
5786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787$as_echo "no" >&6; }
5788fi
5789
5790  if test "x$ac_ct_CC" = x; then
5791    CC=""
5792  else
5793    case $cross_compiling:$ac_tool_warned in
5794yes:)
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797ac_tool_warned=yes ;;
5798esac
5799    CC=$ac_ct_CC
5800  fi
5801else
5802  CC="$ac_cv_prog_CC"
5803fi
5804
5805if test -z "$CC"; then
5806          if test -n "$ac_tool_prefix"; then
5807    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5808set dummy ${ac_tool_prefix}cc; ac_word=$2
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810$as_echo_n "checking for $ac_word... " >&6; }
5811if ${ac_cv_prog_CC+:} false; then :
5812  $as_echo_n "(cached) " >&6
5813else
5814  if test -n "$CC"; then
5815  ac_cv_prog_CC="$CC" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820  IFS=$as_save_IFS
5821  test -z "$as_dir" && as_dir=.
5822    for ac_exec_ext in '' $ac_executable_extensions; do
5823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824    ac_cv_prog_CC="${ac_tool_prefix}cc"
5825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826    break 2
5827  fi
5828done
5829  done
5830IFS=$as_save_IFS
5831
5832fi
5833fi
5834CC=$ac_cv_prog_CC
5835if test -n "$CC"; then
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5837$as_echo "$CC" >&6; }
5838else
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841fi
5842
5843
5844  fi
5845fi
5846if test -z "$CC"; then
5847  # Extract the first word of "cc", so it can be a program name with args.
5848set dummy cc; ac_word=$2
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; }
5851if ${ac_cv_prog_CC+:} false; then :
5852  $as_echo_n "(cached) " >&6
5853else
5854  if test -n "$CC"; then
5855  ac_cv_prog_CC="$CC" # Let the user override the test.
5856else
5857  ac_prog_rejected=no
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5866       ac_prog_rejected=yes
5867       continue
5868     fi
5869    ac_cv_prog_CC="cc"
5870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871    break 2
5872  fi
5873done
5874  done
5875IFS=$as_save_IFS
5876
5877if test $ac_prog_rejected = yes; then
5878  # We found a bogon in the path, so make sure we never use it.
5879  set dummy $ac_cv_prog_CC
5880  shift
5881  if test $# != 0; then
5882    # We chose a different compiler from the bogus one.
5883    # However, it has the same basename, so the bogon will be chosen
5884    # first if we set CC to just the basename; use the full file name.
5885    shift
5886    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5887  fi
5888fi
5889fi
5890fi
5891CC=$ac_cv_prog_CC
5892if test -n "$CC"; then
5893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5894$as_echo "$CC" >&6; }
5895else
5896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900
5901fi
5902if test -z "$CC"; then
5903  if test -n "$ac_tool_prefix"; then
5904  for ac_prog in cl.exe
5905  do
5906    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5907set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
5910if ${ac_cv_prog_CC+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  if test -n "$CC"; then
5914  ac_cv_prog_CC="$CC" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919  IFS=$as_save_IFS
5920  test -z "$as_dir" && as_dir=.
5921    for ac_exec_ext in '' $ac_executable_extensions; do
5922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925    break 2
5926  fi
5927done
5928  done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933CC=$ac_cv_prog_CC
5934if test -n "$CC"; then
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5936$as_echo "$CC" >&6; }
5937else
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940fi
5941
5942
5943    test -n "$CC" && break
5944  done
5945fi
5946if test -z "$CC"; then
5947  ac_ct_CC=$CC
5948  for ac_prog in cl.exe
5949do
5950  # Extract the first word of "$ac_prog", so it can be a program name with args.
5951set dummy $ac_prog; ac_word=$2
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953$as_echo_n "checking for $ac_word... " >&6; }
5954if ${ac_cv_prog_ac_ct_CC+:} false; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  if test -n "$ac_ct_CC"; then
5958  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963  IFS=$as_save_IFS
5964  test -z "$as_dir" && as_dir=.
5965    for ac_exec_ext in '' $ac_executable_extensions; do
5966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967    ac_cv_prog_ac_ct_CC="$ac_prog"
5968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969    break 2
5970  fi
5971done
5972  done
5973IFS=$as_save_IFS
5974
5975fi
5976fi
5977ac_ct_CC=$ac_cv_prog_ac_ct_CC
5978if test -n "$ac_ct_CC"; then
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5980$as_echo "$ac_ct_CC" >&6; }
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
5985
5986
5987  test -n "$ac_ct_CC" && break
5988done
5989
5990  if test "x$ac_ct_CC" = x; then
5991    CC=""
5992  else
5993    case $cross_compiling:$ac_tool_warned in
5994yes:)
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997ac_tool_warned=yes ;;
5998esac
5999    CC=$ac_ct_CC
6000  fi
6001fi
6002
6003fi
6004
6005
6006test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008as_fn_error $? "no acceptable C compiler found in \$PATH
6009See \`config.log' for more details" "$LINENO" 5; }
6010
6011# Provide some information about the compiler.
6012$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6013set X $ac_compile
6014ac_compiler=$2
6015for ac_option in --version -v -V -qversion; do
6016  { { ac_try="$ac_compiler $ac_option >&5"
6017case "(($ac_try" in
6018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019  *) ac_try_echo=$ac_try;;
6020esac
6021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6022$as_echo "$ac_try_echo"; } >&5
6023  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6024  ac_status=$?
6025  if test -s conftest.err; then
6026    sed '10a\
6027... rest of stderr output deleted ...
6028         10q' conftest.err >conftest.er1
6029    cat conftest.er1 >&5
6030  fi
6031  rm -f conftest.er1 conftest.err
6032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6033  test $ac_status = 0; }
6034done
6035
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6037$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6038if ${ac_cv_c_compiler_gnu+:} false; then :
6039  $as_echo_n "(cached) " >&6
6040else
6041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043
6044int
6045main ()
6046{
6047#ifndef __GNUC__
6048       choke me
6049#endif
6050
6051  ;
6052  return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_compile "$LINENO"; then :
6056  ac_compiler_gnu=yes
6057else
6058  ac_compiler_gnu=no
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061ac_cv_c_compiler_gnu=$ac_compiler_gnu
6062
6063fi
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6065$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6066if test $ac_compiler_gnu = yes; then
6067  GCC=yes
6068else
6069  GCC=
6070fi
6071ac_test_CFLAGS=${CFLAGS+set}
6072ac_save_CFLAGS=$CFLAGS
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6074$as_echo_n "checking whether $CC accepts -g... " >&6; }
6075if ${ac_cv_prog_cc_g+:} false; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  ac_save_c_werror_flag=$ac_c_werror_flag
6079   ac_c_werror_flag=yes
6080   ac_cv_prog_cc_g=no
6081   CFLAGS="-g"
6082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083/* end confdefs.h.  */
6084
6085int
6086main ()
6087{
6088
6089  ;
6090  return 0;
6091}
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094  ac_cv_prog_cc_g=yes
6095else
6096  CFLAGS=""
6097      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099
6100int
6101main ()
6102{
6103
6104  ;
6105  return 0;
6106}
6107_ACEOF
6108if ac_fn_c_try_compile "$LINENO"; then :
6109
6110else
6111  ac_c_werror_flag=$ac_save_c_werror_flag
6112	 CFLAGS="-g"
6113	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115
6116int
6117main ()
6118{
6119
6120  ;
6121  return 0;
6122}
6123_ACEOF
6124if ac_fn_c_try_compile "$LINENO"; then :
6125  ac_cv_prog_cc_g=yes
6126fi
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132   ac_c_werror_flag=$ac_save_c_werror_flag
6133fi
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6135$as_echo "$ac_cv_prog_cc_g" >&6; }
6136if test "$ac_test_CFLAGS" = set; then
6137  CFLAGS=$ac_save_CFLAGS
6138elif test $ac_cv_prog_cc_g = yes; then
6139  if test "$GCC" = yes; then
6140    CFLAGS="-g -O2"
6141  else
6142    CFLAGS="-g"
6143  fi
6144else
6145  if test "$GCC" = yes; then
6146    CFLAGS="-O2"
6147  else
6148    CFLAGS=
6149  fi
6150fi
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6152$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6153if ${ac_cv_prog_cc_c89+:} false; then :
6154  $as_echo_n "(cached) " >&6
6155else
6156  ac_cv_prog_cc_c89=no
6157ac_save_CC=$CC
6158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160#include <stdarg.h>
6161#include <stdio.h>
6162struct stat;
6163/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6164struct buf { int x; };
6165FILE * (*rcsopen) (struct buf *, struct stat *, int);
6166static char *e (p, i)
6167     char **p;
6168     int i;
6169{
6170  return p[i];
6171}
6172static char *f (char * (*g) (char **, int), char **p, ...)
6173{
6174  char *s;
6175  va_list v;
6176  va_start (v,p);
6177  s = g (p, va_arg (v,int));
6178  va_end (v);
6179  return s;
6180}
6181
6182/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6183   function prototypes and stuff, but not '\xHH' hex character constants.
6184   These don't provoke an error unfortunately, instead are silently treated
6185   as 'x'.  The following induces an error, until -std is added to get
6186   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6187   array size at least.  It's necessary to write '\x00'==0 to get something
6188   that's true only with -std.  */
6189int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6190
6191/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6192   inside strings and character constants.  */
6193#define FOO(x) 'x'
6194int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6195
6196int test (int i, double x);
6197struct s1 {int (*f) (int a);};
6198struct s2 {int (*f) (double a);};
6199int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6200int argc;
6201char **argv;
6202int
6203main ()
6204{
6205return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6211	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6212do
6213  CC="$ac_save_CC $ac_arg"
6214  if ac_fn_c_try_compile "$LINENO"; then :
6215  ac_cv_prog_cc_c89=$ac_arg
6216fi
6217rm -f core conftest.err conftest.$ac_objext
6218  test "x$ac_cv_prog_cc_c89" != "xno" && break
6219done
6220rm -f conftest.$ac_ext
6221CC=$ac_save_CC
6222
6223fi
6224# AC_CACHE_VAL
6225case "x$ac_cv_prog_cc_c89" in
6226  x)
6227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6228$as_echo "none needed" >&6; } ;;
6229  xno)
6230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6231$as_echo "unsupported" >&6; } ;;
6232  *)
6233    CC="$CC $ac_cv_prog_cc_c89"
6234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6235$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6236esac
6237if test "x$ac_cv_prog_cc_c89" != xno; then :
6238
6239fi
6240
6241ac_ext=c
6242ac_cpp='$CPP $CPPFLAGS'
6243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246
6247ac_ext=c
6248ac_cpp='$CPP $CPPFLAGS'
6249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251ac_compiler_gnu=$ac_cv_c_compiler_gnu
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6253$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6254if ${am_cv_prog_cc_c_o+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258/* end confdefs.h.  */
6259
6260int
6261main ()
6262{
6263
6264  ;
6265  return 0;
6266}
6267_ACEOF
6268  # Make sure it works both with $CC and with simple cc.
6269  # Following AC_PROG_CC_C_O, we do the test twice because some
6270  # compilers refuse to overwrite an existing .o file with -o,
6271  # though they will create one.
6272  am_cv_prog_cc_c_o=yes
6273  for am_i in 1 2; do
6274    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6275   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6276   ac_status=$?
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); } \
6279         && test -f conftest2.$ac_objext; then
6280      : OK
6281    else
6282      am_cv_prog_cc_c_o=no
6283      break
6284    fi
6285  done
6286  rm -f core conftest*
6287  unset am_i
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6290$as_echo "$am_cv_prog_cc_c_o" >&6; }
6291if test "$am_cv_prog_cc_c_o" != yes; then
6292   # Losing compiler, so override with the script.
6293   # FIXME: It is wrong to rewrite CC.
6294   # But if we don't then we get into trouble of one sort or another.
6295   # A longer-term fix would be to have automake use am__CC in this case,
6296   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6297   CC="$am_aux_dir/compile $CC"
6298fi
6299ac_ext=c
6300ac_cpp='$CPP $CPPFLAGS'
6301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6303ac_compiler_gnu=$ac_cv_c_compiler_gnu
6304
6305
6306depcc="$CC"   am_compiler_list=
6307
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6309$as_echo_n "checking dependency style of $depcc... " >&6; }
6310if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6314  # We make a subdir and do the tests there.  Otherwise we can end up
6315  # making bogus files that we don't know about and never remove.  For
6316  # instance it was reported that on HP-UX the gcc test will end up
6317  # making a dummy file named 'D' -- because '-MD' means "put the output
6318  # in D".
6319  rm -rf conftest.dir
6320  mkdir conftest.dir
6321  # Copy depcomp to subdir because otherwise we won't find it if we're
6322  # using a relative directory.
6323  cp "$am_depcomp" conftest.dir
6324  cd conftest.dir
6325  # We will build objects and dependencies in a subdirectory because
6326  # it helps to detect inapplicable dependency modes.  For instance
6327  # both Tru64's cc and ICC support -MD to output dependencies as a
6328  # side effect of compilation, but ICC will put the dependencies in
6329  # the current directory while Tru64 will put them in the object
6330  # directory.
6331  mkdir sub
6332
6333  am_cv_CC_dependencies_compiler_type=none
6334  if test "$am_compiler_list" = ""; then
6335     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6336  fi
6337  am__universal=false
6338  case " $depcc " in #(
6339     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6340     esac
6341
6342  for depmode in $am_compiler_list; do
6343    # Setup a source with many dependencies, because some compilers
6344    # like to wrap large dependency lists on column 80 (with \), and
6345    # we should not choose a depcomp mode which is confused by this.
6346    #
6347    # We need to recreate these files for each test, as the compiler may
6348    # overwrite some of them when testing with obscure command lines.
6349    # This happens at least with the AIX C compiler.
6350    : > sub/conftest.c
6351    for i in 1 2 3 4 5 6; do
6352      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6353      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6354      # Solaris 10 /bin/sh.
6355      echo '/* dummy */' > sub/conftst$i.h
6356    done
6357    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6358
6359    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6360    # mode.  It turns out that the SunPro C++ compiler does not properly
6361    # handle '-M -o', and we need to detect this.  Also, some Intel
6362    # versions had trouble with output in subdirs.
6363    am__obj=sub/conftest.${OBJEXT-o}
6364    am__minus_obj="-o $am__obj"
6365    case $depmode in
6366    gcc)
6367      # This depmode causes a compiler race in universal mode.
6368      test "$am__universal" = false || continue
6369      ;;
6370    nosideeffect)
6371      # After this tag, mechanisms are not by side-effect, so they'll
6372      # only be used when explicitly requested.
6373      if test "x$enable_dependency_tracking" = xyes; then
6374	continue
6375      else
6376	break
6377      fi
6378      ;;
6379    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6380      # This compiler won't grok '-c -o', but also, the minuso test has
6381      # not run yet.  These depmodes are late enough in the game, and
6382      # so weak that their functioning should not be impacted.
6383      am__obj=conftest.${OBJEXT-o}
6384      am__minus_obj=
6385      ;;
6386    none) break ;;
6387    esac
6388    if depmode=$depmode \
6389       source=sub/conftest.c object=$am__obj \
6390       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6391       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6392         >/dev/null 2>conftest.err &&
6393       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6394       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6395       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6396       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6397      # icc doesn't choke on unknown options, it will just issue warnings
6398      # or remarks (even with -Werror).  So we grep stderr for any message
6399      # that says an option was ignored or not supported.
6400      # When given -MP, icc 7.0 and 7.1 complain thusly:
6401      #   icc: Command line warning: ignoring option '-M'; no argument required
6402      # The diagnosis changed in icc 8.0:
6403      #   icc: Command line remark: option '-MP' not supported
6404      if (grep 'ignoring option' conftest.err ||
6405          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6406        am_cv_CC_dependencies_compiler_type=$depmode
6407        break
6408      fi
6409    fi
6410  done
6411
6412  cd ..
6413  rm -rf conftest.dir
6414else
6415  am_cv_CC_dependencies_compiler_type=none
6416fi
6417
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6420$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6421CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6422
6423 if
6424  test "x$enable_dependency_tracking" != xno \
6425  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6426  am__fastdepCC_TRUE=
6427  am__fastdepCC_FALSE='#'
6428else
6429  am__fastdepCC_TRUE='#'
6430  am__fastdepCC_FALSE=
6431fi
6432
6433
6434ac_ext=c
6435ac_cpp='$CPP $CPPFLAGS'
6436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6440$as_echo_n "checking how to run the C preprocessor... " >&6; }
6441# On Suns, sometimes $CPP names a directory.
6442if test -n "$CPP" && test -d "$CPP"; then
6443  CPP=
6444fi
6445if test -z "$CPP"; then
6446  if ${ac_cv_prog_CPP+:} false; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449      # Double quotes because CPP needs to be expanded
6450    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6451    do
6452      ac_preproc_ok=false
6453for ac_c_preproc_warn_flag in '' yes
6454do
6455  # Use a header file that comes with gcc, so configuring glibc
6456  # with a fresh cross-compiler works.
6457  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6458  # <limits.h> exists even on freestanding compilers.
6459  # On the NeXT, cc -E runs the code through the compiler's parser,
6460  # not just through cpp. "Syntax error" is here to catch this case.
6461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463#ifdef __STDC__
6464# include <limits.h>
6465#else
6466# include <assert.h>
6467#endif
6468		     Syntax error
6469_ACEOF
6470if ac_fn_c_try_cpp "$LINENO"; then :
6471
6472else
6473  # Broken: fails on valid input.
6474continue
6475fi
6476rm -f conftest.err conftest.i conftest.$ac_ext
6477
6478  # OK, works on sane cases.  Now check whether nonexistent headers
6479  # can be detected and how.
6480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482#include <ac_nonexistent.h>
6483_ACEOF
6484if ac_fn_c_try_cpp "$LINENO"; then :
6485  # Broken: success on invalid input.
6486continue
6487else
6488  # Passes both tests.
6489ac_preproc_ok=:
6490break
6491fi
6492rm -f conftest.err conftest.i conftest.$ac_ext
6493
6494done
6495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6496rm -f conftest.i conftest.err conftest.$ac_ext
6497if $ac_preproc_ok; then :
6498  break
6499fi
6500
6501    done
6502    ac_cv_prog_CPP=$CPP
6503
6504fi
6505  CPP=$ac_cv_prog_CPP
6506else
6507  ac_cv_prog_CPP=$CPP
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6510$as_echo "$CPP" >&6; }
6511ac_preproc_ok=false
6512for ac_c_preproc_warn_flag in '' yes
6513do
6514  # Use a header file that comes with gcc, so configuring glibc
6515  # with a fresh cross-compiler works.
6516  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6517  # <limits.h> exists even on freestanding compilers.
6518  # On the NeXT, cc -E runs the code through the compiler's parser,
6519  # not just through cpp. "Syntax error" is here to catch this case.
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522#ifdef __STDC__
6523# include <limits.h>
6524#else
6525# include <assert.h>
6526#endif
6527		     Syntax error
6528_ACEOF
6529if ac_fn_c_try_cpp "$LINENO"; then :
6530
6531else
6532  # Broken: fails on valid input.
6533continue
6534fi
6535rm -f conftest.err conftest.i conftest.$ac_ext
6536
6537  # OK, works on sane cases.  Now check whether nonexistent headers
6538  # can be detected and how.
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541#include <ac_nonexistent.h>
6542_ACEOF
6543if ac_fn_c_try_cpp "$LINENO"; then :
6544  # Broken: success on invalid input.
6545continue
6546else
6547  # Passes both tests.
6548ac_preproc_ok=:
6549break
6550fi
6551rm -f conftest.err conftest.i conftest.$ac_ext
6552
6553done
6554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6555rm -f conftest.i conftest.err conftest.$ac_ext
6556if $ac_preproc_ok; then :
6557
6558else
6559  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6561as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6562See \`config.log' for more details" "$LINENO" 5; }
6563fi
6564
6565ac_ext=c
6566ac_cpp='$CPP $CPPFLAGS'
6567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570
6571
6572# added -Wall for gcc, what about for others?
6573if test "x$GCC" = "xyes"; then
6574  CFLAGS="-Wall -Wno-implicit-int -fno-common -Wno-error=format-security $CFLAGS"
6575fi
6576
6577# Help finding POSIX functions on some systems
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6579$as_echo_n "checking for library containing strerror... " >&6; }
6580if ${ac_cv_search_strerror+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  ac_func_search_save_LIBS=$LIBS
6584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585/* end confdefs.h.  */
6586
6587/* Override any GCC internal prototype to avoid an error.
6588   Use char because int might match the return type of a GCC
6589   builtin and then its argument prototype would still apply.  */
6590#ifdef __cplusplus
6591extern "C"
6592#endif
6593char strerror ();
6594int
6595main ()
6596{
6597return strerror ();
6598  ;
6599  return 0;
6600}
6601_ACEOF
6602for ac_lib in '' cposix; do
6603  if test -z "$ac_lib"; then
6604    ac_res="none required"
6605  else
6606    ac_res=-l$ac_lib
6607    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6608  fi
6609  if ac_fn_c_try_link "$LINENO"; then :
6610  ac_cv_search_strerror=$ac_res
6611fi
6612rm -f core conftest.err conftest.$ac_objext \
6613    conftest$ac_exeext
6614  if ${ac_cv_search_strerror+:} false; then :
6615  break
6616fi
6617done
6618if ${ac_cv_search_strerror+:} false; then :
6619
6620else
6621  ac_cv_search_strerror=no
6622fi
6623rm conftest.$ac_ext
6624LIBS=$ac_func_search_save_LIBS
6625fi
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6627$as_echo "$ac_cv_search_strerror" >&6; }
6628ac_res=$ac_cv_search_strerror
6629if test "$ac_res" != no; then :
6630  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6631
6632fi
6633
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6635$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6636if ${ac_cv_path_GREP+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  if test -z "$GREP"; then
6640  ac_path_GREP_found=false
6641  # Loop through the user's path and test for each of PROGNAME-LIST
6642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6644do
6645  IFS=$as_save_IFS
6646  test -z "$as_dir" && as_dir=.
6647    for ac_prog in grep ggrep; do
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6650      as_fn_executable_p "$ac_path_GREP" || continue
6651# Check for GNU ac_path_GREP and select it if it is found.
6652  # Check for GNU $ac_path_GREP
6653case `"$ac_path_GREP" --version 2>&1` in
6654*GNU*)
6655  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6656*)
6657  ac_count=0
6658  $as_echo_n 0123456789 >"conftest.in"
6659  while :
6660  do
6661    cat "conftest.in" "conftest.in" >"conftest.tmp"
6662    mv "conftest.tmp" "conftest.in"
6663    cp "conftest.in" "conftest.nl"
6664    $as_echo 'GREP' >> "conftest.nl"
6665    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6666    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6667    as_fn_arith $ac_count + 1 && ac_count=$as_val
6668    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6669      # Best one so far, save it but keep looking for a better one
6670      ac_cv_path_GREP="$ac_path_GREP"
6671      ac_path_GREP_max=$ac_count
6672    fi
6673    # 10*(2^10) chars as input seems more than enough
6674    test $ac_count -gt 10 && break
6675  done
6676  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6677esac
6678
6679      $ac_path_GREP_found && break 3
6680    done
6681  done
6682  done
6683IFS=$as_save_IFS
6684  if test -z "$ac_cv_path_GREP"; then
6685    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6686  fi
6687else
6688  ac_cv_path_GREP=$GREP
6689fi
6690
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6693$as_echo "$ac_cv_path_GREP" >&6; }
6694 GREP="$ac_cv_path_GREP"
6695
6696
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6698$as_echo_n "checking for egrep... " >&6; }
6699if ${ac_cv_path_EGREP+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6703   then ac_cv_path_EGREP="$GREP -E"
6704   else
6705     if test -z "$EGREP"; then
6706  ac_path_EGREP_found=false
6707  # Loop through the user's path and test for each of PROGNAME-LIST
6708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6710do
6711  IFS=$as_save_IFS
6712  test -z "$as_dir" && as_dir=.
6713    for ac_prog in egrep; do
6714    for ac_exec_ext in '' $ac_executable_extensions; do
6715      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6716      as_fn_executable_p "$ac_path_EGREP" || continue
6717# Check for GNU ac_path_EGREP and select it if it is found.
6718  # Check for GNU $ac_path_EGREP
6719case `"$ac_path_EGREP" --version 2>&1` in
6720*GNU*)
6721  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6722*)
6723  ac_count=0
6724  $as_echo_n 0123456789 >"conftest.in"
6725  while :
6726  do
6727    cat "conftest.in" "conftest.in" >"conftest.tmp"
6728    mv "conftest.tmp" "conftest.in"
6729    cp "conftest.in" "conftest.nl"
6730    $as_echo 'EGREP' >> "conftest.nl"
6731    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6732    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6733    as_fn_arith $ac_count + 1 && ac_count=$as_val
6734    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6735      # Best one so far, save it but keep looking for a better one
6736      ac_cv_path_EGREP="$ac_path_EGREP"
6737      ac_path_EGREP_max=$ac_count
6738    fi
6739    # 10*(2^10) chars as input seems more than enough
6740    test $ac_count -gt 10 && break
6741  done
6742  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6743esac
6744
6745      $ac_path_EGREP_found && break 3
6746    done
6747  done
6748  done
6749IFS=$as_save_IFS
6750  if test -z "$ac_cv_path_EGREP"; then
6751    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6752  fi
6753else
6754  ac_cv_path_EGREP=$EGREP
6755fi
6756
6757   fi
6758fi
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6760$as_echo "$ac_cv_path_EGREP" >&6; }
6761 EGREP="$ac_cv_path_EGREP"
6762
6763
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6765$as_echo_n "checking for ANSI C header files... " >&6; }
6766if ${ac_cv_header_stdc+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771#include <stdlib.h>
6772#include <stdarg.h>
6773#include <string.h>
6774#include <float.h>
6775
6776int
6777main ()
6778{
6779
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_c_try_compile "$LINENO"; then :
6785  ac_cv_header_stdc=yes
6786else
6787  ac_cv_header_stdc=no
6788fi
6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790
6791if test $ac_cv_header_stdc = yes; then
6792  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794/* end confdefs.h.  */
6795#include <string.h>
6796
6797_ACEOF
6798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799  $EGREP "memchr" >/dev/null 2>&1; then :
6800
6801else
6802  ac_cv_header_stdc=no
6803fi
6804rm -f conftest*
6805
6806fi
6807
6808if test $ac_cv_header_stdc = yes; then
6809  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812#include <stdlib.h>
6813
6814_ACEOF
6815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6816  $EGREP "free" >/dev/null 2>&1; then :
6817
6818else
6819  ac_cv_header_stdc=no
6820fi
6821rm -f conftest*
6822
6823fi
6824
6825if test $ac_cv_header_stdc = yes; then
6826  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6827  if test "$cross_compiling" = yes; then :
6828  :
6829else
6830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h.  */
6832#include <ctype.h>
6833#include <stdlib.h>
6834#if ((' ' & 0x0FF) == 0x020)
6835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6837#else
6838# define ISLOWER(c) \
6839		   (('a' <= (c) && (c) <= 'i') \
6840		     || ('j' <= (c) && (c) <= 'r') \
6841		     || ('s' <= (c) && (c) <= 'z'))
6842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6843#endif
6844
6845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6846int
6847main ()
6848{
6849  int i;
6850  for (i = 0; i < 256; i++)
6851    if (XOR (islower (i), ISLOWER (i))
6852	|| toupper (i) != TOUPPER (i))
6853      return 2;
6854  return 0;
6855}
6856_ACEOF
6857if ac_fn_c_try_run "$LINENO"; then :
6858
6859else
6860  ac_cv_header_stdc=no
6861fi
6862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6863  conftest.$ac_objext conftest.beam conftest.$ac_ext
6864fi
6865
6866fi
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6869$as_echo "$ac_cv_header_stdc" >&6; }
6870if test $ac_cv_header_stdc = yes; then
6871
6872$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6873
6874fi
6875
6876# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6877for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6878		  inttypes.h stdint.h unistd.h
6879do :
6880  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6881ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6882"
6883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6884  cat >>confdefs.h <<_ACEOF
6885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6886_ACEOF
6887
6888fi
6889
6890done
6891
6892
6893
6894  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6895if test "x$ac_cv_header_minix_config_h" = xyes; then :
6896  MINIX=yes
6897else
6898  MINIX=
6899fi
6900
6901
6902  if test "$MINIX" = yes; then
6903
6904$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6905
6906
6907$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6908
6909
6910$as_echo "#define _MINIX 1" >>confdefs.h
6911
6912  fi
6913
6914
6915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6916$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6917if ${ac_cv_safe_to_define___extensions__+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922
6923#         define __EXTENSIONS__ 1
6924          $ac_includes_default
6925int
6926main ()
6927{
6928
6929  ;
6930  return 0;
6931}
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"; then :
6934  ac_cv_safe_to_define___extensions__=yes
6935else
6936  ac_cv_safe_to_define___extensions__=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6941$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6942  test $ac_cv_safe_to_define___extensions__ = yes &&
6943    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6944
6945  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6946
6947  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6948
6949  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6950
6951  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6952
6953
6954
6955
6956# catch -Werror and similar options when running configure
6957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958/* end confdefs.h.  */
6959#include <stdio.h>
6960int
6961main ()
6962{
6963int i; static j; int *p; char *c;
6964  switch (*p = p = *c) { case 0: printf("%Q", c, p); }
6965  *c = &i; c = p;
6966  while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1));
6967
6968  ;
6969  return 0;
6970}
6971_ACEOF
6972if ac_fn_c_try_compile "$LINENO"; then :
6973
6974else
6975  as_fn_error $? "\"
6976configure is not able to compile programs with warnings.  Please
6977remove all offending options like -Werror from the CFLAGS and
6978CPPFLAGS variables and run configure again.\"" "$LINENO" 5
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981
6982# check size of some types
6983ac_save_CFLAGS="$CFLAGS"
6984CFLAGS="$CFLAGS $X_CFLAGS"
6985# The cast to long int works around a bug in the HP C Compiler
6986# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6987# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6988# This bug is HP SR number 8606223364.
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6990$as_echo_n "checking size of int... " >&6; }
6991if ${ac_cv_sizeof_int+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6995
6996else
6997  if test "$ac_cv_type_int" = yes; then
6998     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7000as_fn_error 77 "cannot compute sizeof (int)
7001See \`config.log' for more details" "$LINENO" 5; }
7002   else
7003     ac_cv_sizeof_int=0
7004   fi
7005fi
7006
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7009$as_echo "$ac_cv_sizeof_int" >&6; }
7010
7011
7012
7013cat >>confdefs.h <<_ACEOF
7014#define SIZEOF_INT $ac_cv_sizeof_int
7015_ACEOF
7016
7017
7018# The cast to long int works around a bug in the HP C Compiler
7019# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7020# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7021# This bug is HP SR number 8606223364.
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7023$as_echo_n "checking size of long... " >&6; }
7024if ${ac_cv_sizeof_long+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7028
7029else
7030  if test "$ac_cv_type_long" = yes; then
7031     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7033as_fn_error 77 "cannot compute sizeof (long)
7034See \`config.log' for more details" "$LINENO" 5; }
7035   else
7036     ac_cv_sizeof_long=0
7037   fi
7038fi
7039
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7042$as_echo "$ac_cv_sizeof_long" >&6; }
7043
7044
7045
7046cat >>confdefs.h <<_ACEOF
7047#define SIZEOF_LONG $ac_cv_sizeof_long
7048_ACEOF
7049
7050
7051# The cast to long int works around a bug in the HP C Compiler
7052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7054# This bug is HP SR number 8606223364.
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Window" >&5
7056$as_echo_n "checking size of Window... " >&6; }
7057if ${ac_cv_sizeof_Window+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (Window))" "ac_cv_sizeof_Window"        "#include <stdio.h>
7061#include <X11/X.h>
7062"; then :
7063
7064else
7065  if test "$ac_cv_type_Window" = yes; then
7066     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7068as_fn_error 77 "cannot compute sizeof (Window)
7069See \`config.log' for more details" "$LINENO" 5; }
7070   else
7071     ac_cv_sizeof_Window=0
7072   fi
7073fi
7074
7075fi
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Window" >&5
7077$as_echo "$ac_cv_sizeof_Window" >&6; }
7078
7079
7080
7081cat >>confdefs.h <<_ACEOF
7082#define SIZEOF_WINDOW $ac_cv_sizeof_Window
7083_ACEOF
7084
7085
7086# The cast to long int works around a bug in the HP C Compiler
7087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7089# This bug is HP SR number 8606223364.
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Pixel" >&5
7091$as_echo_n "checking size of Pixel... " >&6; }
7092if ${ac_cv_sizeof_Pixel+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (Pixel))" "ac_cv_sizeof_Pixel"        "#include <stdio.h>
7096#include <X11/Intrinsic.h>
7097"; then :
7098
7099else
7100  if test "$ac_cv_type_Pixel" = yes; then
7101     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7103as_fn_error 77 "cannot compute sizeof (Pixel)
7104See \`config.log' for more details" "$LINENO" 5; }
7105   else
7106     ac_cv_sizeof_Pixel=0
7107   fi
7108fi
7109
7110fi
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Pixel" >&5
7112$as_echo "$ac_cv_sizeof_Pixel" >&6; }
7113
7114
7115
7116cat >>confdefs.h <<_ACEOF
7117#define SIZEOF_PIXEL $ac_cv_sizeof_Pixel
7118_ACEOF
7119
7120
7121# The cast to long int works around a bug in the HP C Compiler
7122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7124# This bug is HP SR number 8606223364.
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7126$as_echo_n "checking size of void *... " >&6; }
7127if ${ac_cv_sizeof_void_p+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
7131
7132else
7133  if test "$ac_cv_type_void_p" = yes; then
7134     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7136as_fn_error 77 "cannot compute sizeof (void *)
7137See \`config.log' for more details" "$LINENO" 5; }
7138   else
7139     ac_cv_sizeof_void_p=0
7140   fi
7141fi
7142
7143fi
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7145$as_echo "$ac_cv_sizeof_void_p" >&6; }
7146
7147
7148
7149cat >>confdefs.h <<_ACEOF
7150#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7151_ACEOF
7152
7153
7154CFLAGS="$ac_save_CFLAGS"
7155size_check_failed=""
7156if test "$ac_cv_sizeof_void_p" -gt "$ac_cv_sizeof_long"; then
7157  echo "The type void * is bigger than long."
7158  size_check_failed=1
7159fi
7160if test "$ac_cv_sizeof_Window" -gt "$ac_cv_sizeof_long"; then
7161  echo "The type Window is bigger than long."
7162  size_check_failed=1
7163fi
7164if test "$ac_cv_sizeof_Pixel" -gt "$ac_cv_sizeof_long"; then
7165  echo "The type Pixel is bigger than long."
7166  size_check_failed=1
7167fi
7168if test x"$size_check_failed" = x1; then
7169  echo "This is not supported by the module interface yet (make_new_vpacket)."
7170  echo "Detected type sizes are: int($ac_cv_sizeof_int), long($ac_cv_sizeof_long), void*($ac_cv_sizeof_void_p), Window($ac_cv_sizeof_Window), Pixel($ac_cv_sizeof_Pixel)"
7171  echo "Please report details of your system and this message to ${FVWMWORKERSLIST}."
7172  echo
7173  exit 1
7174fi
7175
7176# 'unset' is not portable, but setting to null is not enough to avoid using
7177# the cached value!  For ancient shells "rm config.cache" is a solution.
7178UNSET=true
7179if unset UNSET 2>/dev/null; then UNSET=unset; fi
7180
7181
7182# ********* multibyte
7183# FreeBSD has libxpg4, check this and use if found.
7184# Make sure we can run config.sub.
7185$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7186  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7187
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7189$as_echo_n "checking build system type... " >&6; }
7190if ${ac_cv_build+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  ac_build_alias=$build_alias
7194test "x$ac_build_alias" = x &&
7195  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7196test "x$ac_build_alias" = x &&
7197  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7198ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7199  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7200
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7203$as_echo "$ac_cv_build" >&6; }
7204case $ac_cv_build in
7205*-*-*) ;;
7206*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7207esac
7208build=$ac_cv_build
7209ac_save_IFS=$IFS; IFS='-'
7210set x $ac_cv_build
7211shift
7212build_cpu=$1
7213build_vendor=$2
7214shift; shift
7215# Remember, the first character of IFS is used to create $*,
7216# except with old shells:
7217build_os=$*
7218IFS=$ac_save_IFS
7219case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7220
7221
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7223$as_echo_n "checking host system type... " >&6; }
7224if ${ac_cv_host+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  if test "x$host_alias" = x; then
7228  ac_cv_host=$ac_cv_build
7229else
7230  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7231    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7232fi
7233
7234fi
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7236$as_echo "$ac_cv_host" >&6; }
7237case $ac_cv_host in
7238*-*-*) ;;
7239*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7240esac
7241host=$ac_cv_host
7242ac_save_IFS=$IFS; IFS='-'
7243set x $ac_cv_host
7244shift
7245host_cpu=$1
7246host_vendor=$2
7247shift; shift
7248# Remember, the first character of IFS is used to create $*,
7249# except with old shells:
7250host_os=$*
7251IFS=$ac_save_IFS
7252case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7253
7254
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
7256$as_echo_n "checking platform... " >&6; }
7257case "$host_os" in
7258freebsd*)
7259	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
7260$as_echo "FreeBSD" >&6; }
7261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
7262$as_echo_n "checking for setlocale in -lxpg4... " >&6; }
7263if ${ac_cv_lib_xpg4_setlocale+:} false; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266  ac_check_lib_save_LIBS=$LIBS
7267LIBS="-lxpg4  $LIBS"
7268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270
7271/* Override any GCC internal prototype to avoid an error.
7272   Use char because int might match the return type of a GCC
7273   builtin and then its argument prototype would still apply.  */
7274#ifdef __cplusplus
7275extern "C"
7276#endif
7277char setlocale ();
7278int
7279main ()
7280{
7281return setlocale ();
7282  ;
7283  return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287  ac_cv_lib_xpg4_setlocale=yes
7288else
7289  ac_cv_lib_xpg4_setlocale=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292    conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
7296$as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
7297if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
7298  LIBS="$LIBS -lxpg4"
7299fi
7300
7301	;;
7302*openbsd*)
7303	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
7304$as_echo "OpenBSD" >&6; }
7305	CFLAGS="$CFLAGS -I/usr/local/include"
7306	LDFLAGS="$LDFLAGS -L/usr/local/lib"
7307	;;
7308*)
7309	;;
7310esac
7311
7312# *** pkg-config
7313# unfortunately, we need pkg-config for the detection of certain libs:
7314# - version of fontconfig without fontconfig-config
7315# - version of fribidi without fribidi-config
7316
7317# Check whether --with-pkgconfig-prefix was given.
7318if test "${with_pkgconfig_prefix+set}" = set; then :
7319  withval=$with_pkgconfig_prefix; pkgconfig_config_prefix="$withval"
7320else
7321  pkgconfig_config_prefix=""
7322fi
7323
7324
7325# Check whether --with-pkgconfig-exec-prefix was given.
7326if test "${with_pkgconfig_exec_prefix+set}" = set; then :
7327  withval=$with_pkgconfig_exec_prefix; pkgconfig_config_exec_prefix="$withval"
7328else
7329  pkgconfig_config_exec_prefix=""
7330fi
7331
7332
7333if test x$pkgconfig_config_exec_prefix != x ; then
7334  pkgconfig_config_args="$pkgconfig_config_args --exec-prefix=$pkgconfig_config_exec_prefix"
7335  if test x${PKG_CONFIG+set} != xset ; then
7336    PKG_CONFIG=$pkgconfig_config_exec_prefix/bin/pkg-config
7337  fi
7338fi
7339if test x$pkgconfig_config_prefix != x ; then
7340  pkgconfig_config_args="$pkgconfig_config_args --prefix=$pkgconfig_config_prefix"
7341  if test x${PKG_CONFIG+set} != xset ; then
7342    PKG_CONFIG=$pkgconfig_config_prefix/bin/pkg-config
7343  fi
7344fi
7345# Extract the first word of "pkg-config", so it can be a program name with args.
7346set dummy pkg-config; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if ${ac_cv_path_PKG_CONFIG+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  case $PKG_CONFIG in
7353  [\\/]* | ?:[\\/]*)
7354  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7355  ;;
7356  *)
7357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369  done
7370IFS=$as_save_IFS
7371
7372  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7373  ;;
7374esac
7375fi
7376PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7377if test -n "$PKG_CONFIG"; then
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7379$as_echo "$PKG_CONFIG" >&6; }
7380else
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7396	if test -n "$ac_tool_prefix"; then
7397  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7398set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400$as_echo_n "checking for $ac_word... " >&6; }
7401if ${ac_cv_path_PKG_CONFIG+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  case $PKG_CONFIG in
7405  [\\/]* | ?:[\\/]*)
7406  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7407  ;;
7408  *)
7409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412  IFS=$as_save_IFS
7413  test -z "$as_dir" && as_dir=.
7414    for ac_exec_ext in '' $ac_executable_extensions; do
7415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418    break 2
7419  fi
7420done
7421  done
7422IFS=$as_save_IFS
7423
7424  ;;
7425esac
7426fi
7427PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7428if test -n "$PKG_CONFIG"; then
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7430$as_echo "$PKG_CONFIG" >&6; }
7431else
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433$as_echo "no" >&6; }
7434fi
7435
7436
7437fi
7438if test -z "$ac_cv_path_PKG_CONFIG"; then
7439  ac_pt_PKG_CONFIG=$PKG_CONFIG
7440  # Extract the first word of "pkg-config", so it can be a program name with args.
7441set dummy pkg-config; ac_word=$2
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443$as_echo_n "checking for $ac_word... " >&6; }
7444if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  case $ac_pt_PKG_CONFIG in
7448  [\\/]* | ?:[\\/]*)
7449  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7450  ;;
7451  *)
7452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455  IFS=$as_save_IFS
7456  test -z "$as_dir" && as_dir=.
7457    for ac_exec_ext in '' $ac_executable_extensions; do
7458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461    break 2
7462  fi
7463done
7464  done
7465IFS=$as_save_IFS
7466
7467  ;;
7468esac
7469fi
7470ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7471if test -n "$ac_pt_PKG_CONFIG"; then
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7473$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7474else
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
7477fi
7478
7479  if test "x$ac_pt_PKG_CONFIG" = x; then
7480    PKG_CONFIG=""
7481  else
7482    case $cross_compiling:$ac_tool_warned in
7483yes:)
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486ac_tool_warned=yes ;;
7487esac
7488    PKG_CONFIG=$ac_pt_PKG_CONFIG
7489  fi
7490else
7491  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7492fi
7493
7494fi
7495if test -n "$PKG_CONFIG"; then
7496	_pkg_min_version=0.9.0
7497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7498$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7499	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7501$as_echo "yes" >&6; }
7502	else
7503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504$as_echo "no" >&6; }
7505		PKG_CONFIG=""
7506	fi
7507fi
7508
7509pkg_failed=no
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xt" >&5
7511$as_echo_n "checking for xt... " >&6; }
7512
7513if test -n "$xt_CFLAGS"; then
7514    pkg_cv_xt_CFLAGS="$xt_CFLAGS"
7515 elif test -n "$PKG_CONFIG"; then
7516    if test -n "$PKG_CONFIG" && \
7517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
7518  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
7519  ac_status=$?
7520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521  test $ac_status = 0; }; then
7522  pkg_cv_xt_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
7523		      test "x$?" != "x0" && pkg_failed=yes
7524else
7525  pkg_failed=yes
7526fi
7527 else
7528    pkg_failed=untried
7529fi
7530if test -n "$xt_LIBS"; then
7531    pkg_cv_xt_LIBS="$xt_LIBS"
7532 elif test -n "$PKG_CONFIG"; then
7533    if test -n "$PKG_CONFIG" && \
7534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
7535  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
7536  ac_status=$?
7537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538  test $ac_status = 0; }; then
7539  pkg_cv_xt_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
7540		      test "x$?" != "x0" && pkg_failed=yes
7541else
7542  pkg_failed=yes
7543fi
7544 else
7545    pkg_failed=untried
7546fi
7547
7548
7549
7550if test $pkg_failed = yes; then
7551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552$as_echo "no" >&6; }
7553
7554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7555        _pkg_short_errors_supported=yes
7556else
7557        _pkg_short_errors_supported=no
7558fi
7559        if test $_pkg_short_errors_supported = yes; then
7560	        xt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
7561        else
7562	        xt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
7563        fi
7564	# Put the nasty error message in config.log where it belongs
7565	echo "$xt_PKG_ERRORS" >&5
7566
7567
7568 as_fn_error $? "*** libxt not found. ***" "$LINENO" 5
7569
7570elif test $pkg_failed = untried; then
7571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573
7574 as_fn_error $? "*** libxt not found. ***" "$LINENO" 5
7575
7576else
7577	xt_CFLAGS=$pkg_cv_xt_CFLAGS
7578	xt_LIBS=$pkg_cv_xt_LIBS
7579        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7580$as_echo "yes" >&6; }
7581
7582fi
7583
7584problem_mandoc=""
7585# Extract the first word of "asciidoctor", so it can be a program name with args.
7586set dummy asciidoctor; ac_word=$2
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if ${ac_cv_prog_ASCIIDOC+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  if test -n "$ASCIIDOC"; then
7593  ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598  IFS=$as_save_IFS
7599  test -z "$as_dir" && as_dir=.
7600    for ac_exec_ext in '' $ac_executable_extensions; do
7601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602    ac_cv_prog_ASCIIDOC="asciidoctor"
7603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604    break 2
7605  fi
7606done
7607  done
7608IFS=$as_save_IFS
7609
7610  test -z "$ac_cv_prog_ASCIIDOC" && ac_cv_prog_ASCIIDOC=""""
7611fi
7612fi
7613ASCIIDOC=$ac_cv_prog_ASCIIDOC
7614if test -n "$ASCIIDOC"; then
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
7616$as_echo "$ASCIIDOC" >&6; }
7617else
7618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
7620fi
7621
7622
7623
7624
7625# Check whether --enable-mandoc was given.
7626if test "${enable_mandoc+set}" = set; then :
7627  enableval=$enable_mandoc;  if test x"$enableval" = xyes; then
7628		with_mandoc="yes, check"
7629	else
7630		with_mandoc="no"
7631		problem_mandoc=": Explicitly disabled"
7632	fi
7633else
7634   with_mandoc="no"
7635
7636fi
7637
7638
7639if test ! x"$with_mandoc" = xno; then
7640	if test x"$ASCIIDOC" = x ; then
7641		with_mandoc="no"
7642		problem_mandoc=": No asciidoctor found in PATH"
7643	elif test x"$SED" = x ; then
7644		with_mandoc="no"
7645		problem_mandoc=": No sed found in PATH"
7646	elif test x"$HAVE_PERL_FOR_DOCS" = x0 ; then
7647		with_mandoc="no"
7648		problem_mandoc=": No perl found in PATH"
7649	else
7650		with_mandoc="yes"
7651	fi
7652fi
7653 if test x"$with_mandoc" = xyes; then
7654  FVWM_BUILD_MANDOC_TRUE=
7655  FVWM_BUILD_MANDOC_FALSE='#'
7656else
7657  FVWM_BUILD_MANDOC_TRUE='#'
7658  FVWM_BUILD_MANDOC_FALSE=
7659fi
7660
7661
7662# ********* session management
7663# Check the availability of SM; we don't have to add any extra libraries,
7664# since -lSM -lICE are in X_PRE_LIBS when they exist.
7665
7666problem_sm=""
7667
7668# Check whether --enable-sm was given.
7669if test "${enable_sm+set}" = set; then :
7670  enableval=$enable_sm;  if test x"$enableval" = xyes; then
7671    with_sm="yes, check"
7672  else
7673    with_sm="no"
7674    problem_sm=": Explicitly disabled"
7675  fi
7676else
7677   with_sm="not specified, check"
7678
7679fi
7680
7681
7682if test ! x"$with_sm" = xno; then
7683
7684  $UNSET ac_cv_lib_SM_SmcOpenConnection
7685
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
7687$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
7688if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  ac_check_lib_save_LIBS=$LIBS
7692LIBS="-lSM $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695
7696/* Override any GCC internal prototype to avoid an error.
7697   Use char because int might match the return type of a GCC
7698   builtin and then its argument prototype would still apply.  */
7699#ifdef __cplusplus
7700extern "C"
7701#endif
7702char SmcOpenConnection ();
7703int
7704main ()
7705{
7706return SmcOpenConnection ();
7707  ;
7708  return 0;
7709}
7710_ACEOF
7711if ac_fn_c_try_link "$LINENO"; then :
7712  ac_cv_lib_SM_SmcOpenConnection=yes
7713else
7714  ac_cv_lib_SM_SmcOpenConnection=no
7715fi
7716rm -f core conftest.err conftest.$ac_objext \
7717    conftest$ac_exeext conftest.$ac_ext
7718LIBS=$ac_check_lib_save_LIBS
7719fi
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7721$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
7722if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
7723  with_sm=yes; $as_echo "#define SESSION 1" >>confdefs.h
7724
7725else
7726  with_sm=no; problem_sm=": Failed to detect libSM"
7727fi
7728
7729fi
7730
7731
7732# Checking for optional libraries
7733# Default is to use them if found; can be disable using --without
7734# These are put up front so that if they are requested, but
7735# configure fails to find them, we fail early.
7736
7737
7738# ********* shape extension
7739# Check whether --enable-shape was given.
7740if test "${enable_shape+set}" = set; then :
7741  enableval=$enable_shape;  if test x"$enableval" = xyes; then
7742    with_shape="yes, check"
7743  else
7744    with_shape="no"
7745    problem_shape=": Explicitly disabled"
7746  fi
7747else
7748   with_shape="not specified, check"
7749
7750fi
7751
7752
7753
7754if test ! x"$with_shape" = xno; then
7755  $UNSET ac_cv_lib_Xext_XShapeQueryExtension
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
7757$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
7758if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  ac_check_lib_save_LIBS=$LIBS
7762LIBS="-lXext $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765
7766/* Override any GCC internal prototype to avoid an error.
7767   Use char because int might match the return type of a GCC
7768   builtin and then its argument prototype would still apply.  */
7769#ifdef __cplusplus
7770extern "C"
7771#endif
7772char XShapeQueryExtension ();
7773int
7774main ()
7775{
7776return XShapeQueryExtension ();
7777  ;
7778  return 0;
7779}
7780_ACEOF
7781if ac_fn_c_try_link "$LINENO"; then :
7782  ac_cv_lib_Xext_XShapeQueryExtension=yes
7783else
7784  ac_cv_lib_Xext_XShapeQueryExtension=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext \
7787    conftest$ac_exeext conftest.$ac_ext
7788LIBS=$ac_check_lib_save_LIBS
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7791$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
7792if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
7793  with_shape=yes; $as_echo "#define SHAPE 1" >>confdefs.h
7794
7795else
7796  with_shape=no;
7797               problem_shape=": Failed to detect Shape extension"
7798fi
7799
7800fi
7801
7802# ********* MIT Shared Memory Extension
7803# Check whether --enable-shm was given.
7804if test "${enable_shm+set}" = set; then :
7805  enableval=$enable_shm;  if test x"$enableval" = xyes; then
7806    with_shm="yes, check"
7807  else
7808    with_shm="no"
7809    problem_shm=": Explicitly disabled"
7810  fi
7811else
7812   with_shm="not specified, check"
7813
7814fi
7815
7816
7817
7818if test ! x"$with_shm" = xno; then
7819  $UNSET ac_cv_lib_Xext_XShmQueryExtension
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
7821$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
7822if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  ac_check_lib_save_LIBS=$LIBS
7826LIBS="-lXext $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829
7830/* Override any GCC internal prototype to avoid an error.
7831   Use char because int might match the return type of a GCC
7832   builtin and then its argument prototype would still apply.  */
7833#ifdef __cplusplus
7834extern "C"
7835#endif
7836char XShmQueryExtension ();
7837int
7838main ()
7839{
7840return XShmQueryExtension ();
7841  ;
7842  return 0;
7843}
7844_ACEOF
7845if ac_fn_c_try_link "$LINENO"; then :
7846  ac_cv_lib_Xext_XShmQueryExtension=yes
7847else
7848  ac_cv_lib_Xext_XShmQueryExtension=no
7849fi
7850rm -f core conftest.err conftest.$ac_objext \
7851    conftest$ac_exeext conftest.$ac_ext
7852LIBS=$ac_check_lib_save_LIBS
7853fi
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7855$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
7856if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
7857  with_shm=yes; $as_echo "#define HAVE_XSHM 1" >>confdefs.h
7858
7859else
7860  with_shm=no;
7861               problem_shm=": Can't detect MIT Shared Memory ext."
7862fi
7863
7864fi
7865
7866# Silently look for X11/XKBlib.h
7867
7868ac_fn_c_check_header_mongrel "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "$ac_includes_default"
7869if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
7870  $as_echo "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h
7871
7872fi
7873
7874
7875
7876# TAILQ and friends
7877
7878ac_fn_c_check_header_mongrel "$LINENO" "queue.h" "ac_cv_header_queue_h" "$ac_includes_default"
7879if test "x$ac_cv_header_queue_h" = xyes; then :
7880  $as_echo "#define HAVE_TAILQ 1" >>confdefs.h
7881
7882fi
7883
7884
7885
7886# libevent
7887
7888
7889pkg_failed=no
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent >= 2.0" >&5
7891$as_echo_n "checking for libevent >= 2.0... " >&6; }
7892
7893if test -n "$libevent_CFLAGS"; then
7894    pkg_cv_libevent_CFLAGS="$libevent_CFLAGS"
7895 elif test -n "$PKG_CONFIG"; then
7896    if test -n "$PKG_CONFIG" && \
7897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2.0\""; } >&5
7898  ($PKG_CONFIG --exists --print-errors "libevent >= 2.0") 2>&5
7899  ac_status=$?
7900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901  test $ac_status = 0; }; then
7902  pkg_cv_libevent_CFLAGS=`$PKG_CONFIG --cflags "libevent >= 2.0" 2>/dev/null`
7903		      test "x$?" != "x0" && pkg_failed=yes
7904else
7905  pkg_failed=yes
7906fi
7907 else
7908    pkg_failed=untried
7909fi
7910if test -n "$libevent_LIBS"; then
7911    pkg_cv_libevent_LIBS="$libevent_LIBS"
7912 elif test -n "$PKG_CONFIG"; then
7913    if test -n "$PKG_CONFIG" && \
7914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2.0\""; } >&5
7915  ($PKG_CONFIG --exists --print-errors "libevent >= 2.0") 2>&5
7916  ac_status=$?
7917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918  test $ac_status = 0; }; then
7919  pkg_cv_libevent_LIBS=`$PKG_CONFIG --libs "libevent >= 2.0" 2>/dev/null`
7920		      test "x$?" != "x0" && pkg_failed=yes
7921else
7922  pkg_failed=yes
7923fi
7924 else
7925    pkg_failed=untried
7926fi
7927
7928
7929
7930if test $pkg_failed = yes; then
7931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933
7934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7935        _pkg_short_errors_supported=yes
7936else
7937        _pkg_short_errors_supported=no
7938fi
7939        if test $_pkg_short_errors_supported = yes; then
7940	        libevent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent >= 2.0" 2>&1`
7941        else
7942	        libevent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent >= 2.0" 2>&1`
7943        fi
7944	# Put the nasty error message in config.log where it belongs
7945	echo "$libevent_PKG_ERRORS" >&5
7946
7947
7948	 as_fn_error $? "*** libevent >=2 not found.  Install its header files. ***" "$LINENO" 5
7949
7950elif test $pkg_failed = untried; then
7951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952$as_echo "no" >&6; }
7953
7954	 as_fn_error $? "*** libevent >=2 not found.  Install its header files. ***" "$LINENO" 5
7955
7956else
7957	libevent_CFLAGS=$pkg_cv_libevent_CFLAGS
7958	libevent_LIBS=$pkg_cv_libevent_LIBS
7959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7960$as_echo "yes" >&6; }
7961
7962	 $as_echo "#define HAVE_LIBEVENT 1" >>confdefs.h
7963
7964	libevent_LIBS=`pkg-config --libs libevent`
7965
7966fi
7967
7968
7969
7970# ********* XRandR
7971
7972
7973pkg_failed=no
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrandr >= 1.5" >&5
7975$as_echo_n "checking for xrandr >= 1.5... " >&6; }
7976
7977if test -n "$xrandr_CFLAGS"; then
7978    pkg_cv_xrandr_CFLAGS="$xrandr_CFLAGS"
7979 elif test -n "$PKG_CONFIG"; then
7980    if test -n "$PKG_CONFIG" && \
7981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5\""; } >&5
7982  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5") 2>&5
7983  ac_status=$?
7984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985  test $ac_status = 0; }; then
7986  pkg_cv_xrandr_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.5" 2>/dev/null`
7987		      test "x$?" != "x0" && pkg_failed=yes
7988else
7989  pkg_failed=yes
7990fi
7991 else
7992    pkg_failed=untried
7993fi
7994if test -n "$xrandr_LIBS"; then
7995    pkg_cv_xrandr_LIBS="$xrandr_LIBS"
7996 elif test -n "$PKG_CONFIG"; then
7997    if test -n "$PKG_CONFIG" && \
7998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5\""; } >&5
7999  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5") 2>&5
8000  ac_status=$?
8001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8002  test $ac_status = 0; }; then
8003  pkg_cv_xrandr_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.5" 2>/dev/null`
8004		      test "x$?" != "x0" && pkg_failed=yes
8005else
8006  pkg_failed=yes
8007fi
8008 else
8009    pkg_failed=untried
8010fi
8011
8012
8013
8014if test $pkg_failed = yes; then
8015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
8017
8018if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8019        _pkg_short_errors_supported=yes
8020else
8021        _pkg_short_errors_supported=no
8022fi
8023        if test $_pkg_short_errors_supported = yes; then
8024	        xrandr_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.5" 2>&1`
8025        else
8026	        xrandr_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.5" 2>&1`
8027        fi
8028	# Put the nasty error message in config.log where it belongs
8029	echo "$xrandr_PKG_ERRORS" >&5
8030
8031
8032	 as_fn_error $? "*** XRandR not found.  Install its header files. ***" "$LINENO" 5
8033
8034elif test $pkg_failed = untried; then
8035        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
8037
8038	 as_fn_error $? "*** XRandR not found.  Install its header files. ***" "$LINENO" 5
8039
8040else
8041	xrandr_CFLAGS=$pkg_cv_xrandr_CFLAGS
8042	xrandr_LIBS=$pkg_cv_xrandr_LIBS
8043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8044$as_echo "yes" >&6; }
8045
8046	 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
8047
8048         XRandR_LIBS=-lXrandr
8049
8050fi
8051
8052
8053
8054
8055# ********* xrender
8056problem_xrender=""
8057# Check whether --enable-xrender was given.
8058if test "${enable_xrender+set}" = set; then :
8059  enableval=$enable_xrender;  if test x"$enableval" = xyes; then
8060    with_xrender="yes, check"
8061  else
8062    with_xrender="no"
8063    problem_xrender=": Explicitly disabled"
8064  fi
8065else
8066   with_xrender="not specified, check"
8067
8068fi
8069
8070
8071
8072if test ! x"$with_xrender" = xno; then
8073  $UNSET ac_cv_lib_Xrender_XRenderComposite
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderComposite in -lXrender" >&5
8075$as_echo_n "checking for XRenderComposite in -lXrender... " >&6; }
8076if ${ac_cv_lib_Xrender_XRenderComposite+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  ac_check_lib_save_LIBS=$LIBS
8080LIBS="-lXrender $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h.  */
8083
8084/* Override any GCC internal prototype to avoid an error.
8085   Use char because int might match the return type of a GCC
8086   builtin and then its argument prototype would still apply.  */
8087#ifdef __cplusplus
8088extern "C"
8089#endif
8090char XRenderComposite ();
8091int
8092main ()
8093{
8094return XRenderComposite ();
8095  ;
8096  return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_link "$LINENO"; then :
8100  ac_cv_lib_Xrender_XRenderComposite=yes
8101else
8102  ac_cv_lib_Xrender_XRenderComposite=no
8103fi
8104rm -f core conftest.err conftest.$ac_objext \
8105    conftest$ac_exeext conftest.$ac_ext
8106LIBS=$ac_check_lib_save_LIBS
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderComposite" >&5
8109$as_echo "$ac_cv_lib_Xrender_XRenderComposite" >&6; }
8110if test "x$ac_cv_lib_Xrender_XRenderComposite" = xyes; then :
8111  with_xrender=yes; Xrender_LIBS=-lXrender;
8112    $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
8113
8114else
8115  with_xrender=no; Xrender_LIBS=
8116    problem_xrender=": Failed to detect libXrender"
8117fi
8118
8119fi
8120
8121
8122
8123# ********* xcursor
8124
8125xcursor_CFLAGS=""
8126xcursor_LIBS=""
8127# Check whether --enable-xcursor was given.
8128if test "${enable_xcursor+set}" = set; then :
8129  enableval=$enable_xcursor;  if test x"$enableval" = xno; then
8130       with_xcursor=no
8131       problem_xcursor=": Explicitly disabled"
8132    fi
8133fi
8134
8135if test ! x"$with_xcursor" = xno; then
8136   with_xcursor=no
8137   if test ! x"$with_xrender" = xno; then
8138      $UNSET ac_cv_lib_Xrender_XRenderCreateCursor
8139      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateCursor in -lXrender" >&5
8140$as_echo_n "checking for XRenderCreateCursor in -lXrender... " >&6; }
8141if ${ac_cv_lib_Xrender_XRenderCreateCursor+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  ac_check_lib_save_LIBS=$LIBS
8145LIBS="-lXrender $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148
8149/* Override any GCC internal prototype to avoid an error.
8150   Use char because int might match the return type of a GCC
8151   builtin and then its argument prototype would still apply.  */
8152#ifdef __cplusplus
8153extern "C"
8154#endif
8155char XRenderCreateCursor ();
8156int
8157main ()
8158{
8159return XRenderCreateCursor ();
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164if ac_fn_c_try_link "$LINENO"; then :
8165  ac_cv_lib_Xrender_XRenderCreateCursor=yes
8166else
8167  ac_cv_lib_Xrender_XRenderCreateCursor=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext \
8170    conftest$ac_exeext conftest.$ac_ext
8171LIBS=$ac_check_lib_save_LIBS
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateCursor" >&5
8174$as_echo "$ac_cv_lib_Xrender_XRenderCreateCursor" >&6; }
8175if test "x$ac_cv_lib_Xrender_XRenderCreateCursor" = xyes; then :
8176
8177         with_xcursor=yes
8178
8179else
8180
8181         problem_xcursor=": Your libXrender version is too old"
8182
8183fi
8184
8185   else
8186      problem_xcursor=": Need Xrender support"
8187   fi
8188fi
8189if test x"$with_xcursor" = xyes ; then
8190      $UNSET ac_cv_lib_Xcursor_XcursorImageLoadCursor
8191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageLoadCursor in -lXcursor" >&5
8192$as_echo_n "checking for XcursorImageLoadCursor in -lXcursor... " >&6; }
8193if ${ac_cv_lib_Xcursor_XcursorImageLoadCursor+:} false; then :
8194  $as_echo_n "(cached) " >&6
8195else
8196  ac_check_lib_save_LIBS=$LIBS
8197LIBS="-lXcursor $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199/* end confdefs.h.  */
8200
8201/* Override any GCC internal prototype to avoid an error.
8202   Use char because int might match the return type of a GCC
8203   builtin and then its argument prototype would still apply.  */
8204#ifdef __cplusplus
8205extern "C"
8206#endif
8207char XcursorImageLoadCursor ();
8208int
8209main ()
8210{
8211return XcursorImageLoadCursor ();
8212  ;
8213  return 0;
8214}
8215_ACEOF
8216if ac_fn_c_try_link "$LINENO"; then :
8217  ac_cv_lib_Xcursor_XcursorImageLoadCursor=yes
8218else
8219  ac_cv_lib_Xcursor_XcursorImageLoadCursor=no
8220fi
8221rm -f core conftest.err conftest.$ac_objext \
8222    conftest$ac_exeext conftest.$ac_ext
8223LIBS=$ac_check_lib_save_LIBS
8224fi
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&5
8226$as_echo "$ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&6; }
8227if test "x$ac_cv_lib_Xcursor_XcursorImageLoadCursor" = xyes; then :
8228
8229         $as_echo "#define HAVE_XCURSOR 1" >>confdefs.h
8230
8231         Xcursor_LIBS=-lXcursor
8232         problem_xcursor=""
8233
8234else
8235
8236         with_xcursor=no
8237         problem_xcursor=": Failed to detect libXcursor"
8238
8239fi
8240
8241fi
8242
8243
8244
8245# ********* xft
8246problem_xft=""
8247
8248# Check whether --enable-xft was given.
8249if test "${enable_xft+set}" = set; then :
8250  enableval=$enable_xft;  if test x"$enableval" = xyes; then
8251    with_xft="yes, check"
8252  else
8253    with_xft="no"
8254    problem_xft=": Explicitly disabled"
8255  fi
8256else
8257
8258    with_xft="not specified, check"
8259
8260
8261fi
8262
8263
8264freetype_CFLAGS=""
8265freetype_LIBS=""
8266
8267
8268
8269if test ! x"$with_xft" = xno; then
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pkg-config could find freetype2" >&5
8271$as_echo_n "checking whether pkg-config could find freetype2... " >&6; }
8272  if "${PKG_CONFIG}" --exists freetype2; then
8273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8274$as_echo "yes" >&6; }
8275    CFLAGS_FREETYPE=`"${PKG_CONFIG}" --cflags freetype2`
8276    FREETYPE_LIBS=`"${PKG_CONFIG}" --libs freetype2`
8277    freetype_CFLAGS="$CFLAGS_FREETYPE"
8278    freetype_LIBS="$FREETYPE_LIBS"
8279
8280    have_freetype=yes
8281  else
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284  have_freetype=no
8285  fi
8286
8287
8288
8289
8290  # check for fontconfig for Xft 2
8291  have_fontconfig=no
8292  if test ! x"$have_freetype" = xno ; then
8293
8294# Check whether --with-fontconfig-prefix was given.
8295if test "${with_fontconfig_prefix+set}" = set; then :
8296  withval=$with_fontconfig_prefix; fc_config_prefix="$withval"
8297else
8298  fc_config_prefix=""
8299fi
8300
8301
8302# Check whether --with-fontconfig-exec-prefix was given.
8303if test "${with_fontconfig_exec_prefix+set}" = set; then :
8304  withval=$with_fontconfig_exec_prefix; fc_config_exec_prefix="$withval"
8305else
8306  fc_config_exec_prefix=""
8307fi
8308
8309# Check whether --enable-fontconfigtest was given.
8310if test "${enable_fontconfigtest+set}" = set; then :
8311  enableval=$enable_fontconfigtest;
8312else
8313  enable_fctest=yes
8314fi
8315
8316
8317if test x$fc_config_exec_prefix != x ; then
8318  fc_config_args="$fc_config_args --exec-prefix=$fc_config_exec_prefix"
8319  if test x${FC_CONFIG+set} != xset ; then
8320    FC_CONFIG=$fc_config_exec_prefix/bin/fontconfig-config
8321  fi
8322fi
8323if test x$fc_config_prefix != x ; then
8324  fc_config_args="$fc_config_args --prefix=$fc_config_prefix"
8325  if test x${FC_CONFIG+set} != xset ; then
8326    FC_CONFIG=$fc_config_prefix/bin/fontconfig-config
8327  fi
8328fi
8329# Extract the first word of "fontconfig-config", so it can be a program name with args.
8330set dummy fontconfig-config; ac_word=$2
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332$as_echo_n "checking for $ac_word... " >&6; }
8333if ${ac_cv_path_FC_CONFIG+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  case $FC_CONFIG in
8337  [\\/]* | ?:[\\/]*)
8338  ac_cv_path_FC_CONFIG="$FC_CONFIG" # Let the user override the test with a path.
8339  ;;
8340  *)
8341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344  IFS=$as_save_IFS
8345  test -z "$as_dir" && as_dir=.
8346    for ac_exec_ext in '' $ac_executable_extensions; do
8347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348    ac_cv_path_FC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350    break 2
8351  fi
8352done
8353  done
8354IFS=$as_save_IFS
8355
8356  test -z "$ac_cv_path_FC_CONFIG" && ac_cv_path_FC_CONFIG="no"
8357  ;;
8358esac
8359fi
8360FC_CONFIG=$ac_cv_path_FC_CONFIG
8361if test -n "$FC_CONFIG"; then
8362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_CONFIG" >&5
8363$as_echo "$FC_CONFIG" >&6; }
8364else
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
8367fi
8368
8369
8370
8371min_fc_version=1.0.1
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fontconfig - version >= $min_fc_version" >&5
8373$as_echo_n "checking for Fontconfig - version >= $min_fc_version... " >&6; }
8374no_fc=""
8375pkg_config_fontconfig_exists=""
8376
8377if test "$FC_CONFIG" = "no" ; then
8378  if test "x$PKG_CONFIG" != "xno" ; then
8379    if $PKG_CONFIG --exists 'fontconfig' ; then
8380      if $PKG_CONFIG --exists 'fontconfig >= 1.0.1' ; then
8381        FC_CFLAGS=`$PKG_CONFIG --cflags fontconfig`
8382        FC_LIBS=`$PKG_CONFIG --libs fontconfig`
8383      else
8384        no_fc=yes
8385        fc_config_is_lt=yes
8386      fi
8387    else
8388      pkg_config_fontconfig_exists="maybe"
8389      no_fc=yes
8390    fi
8391  else
8392    no_fc=yes
8393  fi
8394else
8395  FC_CFLAGS=`$FC_CONFIG $fc_config_args --cflags`
8396  FC_LIBS=`$FC_CONFIG $fc_config_args --libs`
8397  fc_config_major_version=`$FC_CONFIG $fc_config_args --version | \
8398         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'`
8399  fc_config_minor_version=`$FC_CONFIG $fc_config_args --version | \
8400         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'`
8401  fc_config_micro_version=`$FC_CONFIG $fc_config_args --version | \
8402         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'`
8403  fc_min_major_version=`echo $min_fc_version | \
8404         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'`
8405  fc_min_minor_version=`echo $min_fc_version | \
8406         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'`
8407  fc_min_micro_version=`echo $min_fc_version | \
8408         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'`
8409  fc_config_is_lt=no
8410  if test $fc_config_major_version -lt $fc_min_major_version ; then
8411    fc_config_is_lt=yes
8412  else
8413    if test $fc_config_major_version -eq $fc_min_major_version ; then
8414      if test $fc_config_minor_version -lt $fc_min_minor_version ; then
8415        fc_config_is_lt=yes
8416      else
8417        if test $fc_config_minor_version -eq $fc_min_minor_version ; then
8418          if test $fc_config_micro_version -lt $fc_min_micro_version ; then
8419            fc_config_is_lt=yes
8420          fi
8421        fi
8422      fi
8423    fi
8424  fi
8425  if test "x$fc_config_is_lt" = "xyes" ; then
8426    no_fc=yes
8427  fi
8428fi
8429
8430if test "x$no_fc" = x ; then
8431  if test "x$enable_fctest" = "xyes" ; then
8432    ac_save_CFLAGS="$CFLAGS"
8433    ac_save_LIBS="$LIBS"
8434    CFLAGS="$CFLAGS $FC_CFLAGS $FT2_CFLAGS"
8435    LIBS="$FC_LIBS $LIBS $FT2_LIBS"
8436      if test "$cross_compiling" = yes; then :
8437  echo $ac_n "cross compiling; assumed OK... $ac_c"
8438else
8439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h.  */
8441
8442#include <fontconfig/fontconfig.h>
8443#include <stdio.h>
8444#include <stdlib.h>
8445
8446int
8447main()
8448{
8449  FcBool result;
8450
8451  result = FcInit();
8452
8453  if (result)
8454  {
8455    return 0;
8456  }
8457  else
8458  {
8459    return 1;
8460  }
8461}
8462
8463_ACEOF
8464if ac_fn_c_try_run "$LINENO"; then :
8465
8466else
8467  no_fc=yes
8468fi
8469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8470  conftest.$ac_objext conftest.beam conftest.$ac_ext
8471fi
8472
8473    CFLAGS="$ac_save_CFLAGS"
8474    LIBS="$ac_save_LIBS"
8475  fi
8476fi
8477
8478if test "x$no_fc" = x; then
8479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480$as_echo "yes" >&6; }
8481  :
8482else
8483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485  if test "x$fc_config_is_lt" = "xyes"; then
8486    echo "*** Your Fontconfig package version is < 1.0.1"
8487  elif test "x$pkg_config_fontconfig_exists" = "xmaybe"; then
8488    echo "*** fontconfig was not found in the pkg-config search path."
8489    echo "*** either fontconfig is not installed or perhaps you should"
8490    echo "*** add the directory containing fontconfig.pc to the "
8491    echo "*** PKG_CONFIG_PATH environment variable."
8492  elif test "$FC_CONFIG" != "no"; then
8493    echo "*** The Fontconfig test program failed to run.  If your system uses"
8494    echo "*** shared libraries and they are installed outside the normal"
8495    echo "*** system library path, make sure the variable LD_LIBRARY_PATH"
8496    echo "*** (or whatever is appropiate for your system) is correctly set."
8497  fi
8498  FC_CFLAGS=""
8499  FC_LIBS=""
8500  :
8501fi
8502
8503
8504
8505    if test x"$no_fc" = x ; then
8506      have_fontconfig=yes
8507      fontconfig_CFLAGS=`$PKG_CONFIG --cflags fontconfig`
8508      fontconfig_LIBS=`$PKG_CONFIG --libs fontconfig`
8509      CFLAGS="$CFLAGS $fontconfig_CFLAGS"
8510      LIBS="$LIBS $fontconfig_LIBS"
8511    else
8512      have_fontconfig=no
8513      problem_xft=": Can't detect fontconfig >= 1.0.1"
8514    fi
8515  fi
8516
8517  # now check for Xft 2
8518  with_xft=no
8519  if test ! x"$have_fontconfig" = xno ; then
8520    # Xft 2
8521
8522# Check whether --with-xft-prefix was given.
8523if test "${with_xft_prefix+set}" = set; then :
8524  withval=$with_xft_prefix; xft_config_prefix="$withval"
8525else
8526  xft_config_prefix=""
8527fi
8528
8529
8530# Check whether --with-xft-exec-prefix was given.
8531if test "${with_xft_exec_prefix+set}" = set; then :
8532  withval=$with_xft_exec_prefix; xft_config_exec_prefix="$withval"
8533else
8534  xft_config_exec_prefix=""
8535fi
8536
8537# Check whether --enable-xfttest was given.
8538if test "${enable_xfttest+set}" = set; then :
8539  enableval=$enable_xfttest;
8540else
8541  enable_xfttest=yes
8542fi
8543
8544
8545if test x$xft_config_exec_prefix != x ; then
8546  xft_config_args="$xft_config_args --exec-prefix=$xft_config_exec_prefix"
8547  if test x${XFT_CONFIG+set} != xset ; then
8548    XFT_CONFIG=$xft_config_exec_prefix/bin/xft-config
8549  fi
8550fi
8551if test x$xft_config_prefix != x ; then
8552  xft_config_args="$xft_config_args --prefix=$xft_config_prefix"
8553  if test x${XFT_CONFIG+set} != xset ; then
8554    XFT_CONFIG=$xft_config_prefix/bin/xft-config
8555  fi
8556fi
8557# Extract the first word of "xft-config", so it can be a program name with args.
8558set dummy xft-config; ac_word=$2
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560$as_echo_n "checking for $ac_word... " >&6; }
8561if ${ac_cv_path_XFT_CONFIG+:} false; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  case $XFT_CONFIG in
8565  [\\/]* | ?:[\\/]*)
8566  ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
8567  ;;
8568  *)
8569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572  IFS=$as_save_IFS
8573  test -z "$as_dir" && as_dir=.
8574    for ac_exec_ext in '' $ac_executable_extensions; do
8575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576    ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578    break 2
8579  fi
8580done
8581  done
8582IFS=$as_save_IFS
8583
8584  test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
8585  ;;
8586esac
8587fi
8588XFT_CONFIG=$ac_cv_path_XFT_CONFIG
8589if test -n "$XFT_CONFIG"; then
8590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
8591$as_echo "$XFT_CONFIG" >&6; }
8592else
8593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594$as_echo "no" >&6; }
8595fi
8596
8597
8598
8599min_xft_version=2.0.0
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft - version >= $min_xft_version" >&5
8601$as_echo_n "checking for Xft - version >= $min_xft_version... " >&6; }
8602no_xft=""
8603pkg_config_xft_exists=""
8604
8605if test "$XFT_CONFIG" = "no" ; then
8606  if test "x$PKG_CONFIG" != "xno" ; then
8607    if $PKG_CONFIG --exists 'xft' ; then
8608      if $PKG_CONFIG --exists 'xft >= 2.0.0' ; then
8609        XFT_CFLAGS=`$PKG_CONFIG --cflags xft`
8610        XFT_LIBS=`$PKG_CONFIG --libs xft`
8611      else
8612        no_xft=yes
8613        xft_config_is_lt=yes
8614      fi
8615    else
8616      pkg_config_xft_exists="maybe"
8617      no_xft=yes
8618    fi
8619  else
8620    no_xft=yes
8621  fi
8622else
8623  XFT_CFLAGS=`$XFT_CONFIG $xft_config_args --cflags`
8624  XFT_LIBS=`$XFT_CONFIG $xft_config_args --libs`
8625  xft_config_major_version=`$XFT_CONFIG $xft_config_args --version | \
8626         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'`
8627  xft_config_minor_version=`$XFT_CONFIG $xft_config_args --version | \
8628         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'`
8629  xft_config_micro_version=`$XFT_CONFIG $xft_config_args --version | \
8630         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'`
8631  xft_min_major_version=`echo $min_xft_version | \
8632         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'`
8633  xft_min_minor_version=`echo $min_xft_version | \
8634         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'`
8635  xft_min_micro_version=`echo $min_xft_version | \
8636         sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'`
8637  xft_config_is_lt=no
8638  if test $xft_config_major_version -lt $xft_min_major_version ; then
8639    xft_config_is_lt=yes
8640  else
8641    if test $xft_config_major_version -eq $xft_min_major_version ; then
8642      if test $xft_config_minor_version -lt $xft_min_minor_version ; then
8643        xft_config_is_lt=yes
8644      else
8645        if test $xft_config_minor_version -eq $xft_min_minor_version ; then
8646          if test $xft_config_micro_version -lt $xft_min_micro_version ; then
8647            xft_config_is_lt=yes
8648          fi
8649        fi
8650      fi
8651    fi
8652  fi
8653  if test "x$xft_config_is_lt" = "xyes" ; then
8654    :
8655  fi
8656fi
8657
8658if test "x$no_xft" = x ; then
8659  if test "x$enable_xfttest" = "xyes" ; then
8660    ac_save_CFLAGS="$CFLAGS"
8661    ac_save_LIBS="$LIBS"
8662    CFLAGS="$XFT_CFLAGS $CFLAGS"
8663    LIBS="$XFT_LIBS $LIBS"
8664      if test "$cross_compiling" = yes; then :
8665  echo $ac_n "cross compiling; assumed OK... $ac_c"
8666else
8667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h.  */
8669
8670#include <X11/Xft/Xft.h>
8671#include <stdio.h>
8672#include <stdlib.h>
8673
8674int
8675main()
8676{
8677  FcBool result = 1;
8678
8679  result = XftInit(NULL);
8680
8681  if (result)
8682  {
8683    return 0;
8684  }
8685  else
8686  {
8687    return 1;
8688  }
8689}
8690
8691_ACEOF
8692if ac_fn_c_try_run "$LINENO"; then :
8693
8694else
8695  no_xft=yes
8696fi
8697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8698  conftest.$ac_objext conftest.beam conftest.$ac_ext
8699fi
8700
8701    CFLAGS="$ac_save_CFLAGS"
8702    LIBS="$ac_save_LIBS"
8703  fi
8704fi
8705
8706if test "x$no_xft" = x; then
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8708$as_echo "yes" >&6; }
8709  :
8710else
8711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712$as_echo "no" >&6; }
8713  if test "x$xft_config_is_lt" = "xyes"; then
8714    echo "*** Your xft2 package version is < 2.0.0"
8715  elif test "x$pkg_config_fontconfig_exists" = "xmaybe" ; then
8716    echo "*** xft2 was not found in the pkg-config search path."
8717    echo "*** either xft is not installed or perhaps you should"
8718    echo "*** add the directory containing xft.pc to the "
8719    echo "*** PKG_CONFIG_PATH environment variable."
8720  elif test "$XFT_CONFIG" = "no"; then
8721    echo "*** The xft-config script installed by Xft 2 could not be found."
8722    echo "*** If Xft 2 was installed in PREFIX, make sure PREFIX/bin is in"
8723    echo "*** your path, or set the XFT_CONFIG environment variable to the"
8724    echo "*** full path to xft-config."
8725  else
8726    echo "*** The Xft test program failed to run.  If your system uses"
8727    echo "*** shared libraries and they are installed outside the normal"
8728    echo "*** system library path, make sure the variable LD_LIBRARY_PATH"
8729    echo "*** (or whatever is appropiate for your system) is correctly set."
8730  fi
8731  XFT_CFLAGS=""
8732  XFT_LIBS=""
8733  :
8734fi
8735
8736
8737
8738    if test x"$no_xft" = x; then
8739      with_xft=yes
8740      problem_xft=" (version 2)"
8741      $as_echo "#define HAVE_XFT2 1" >>confdefs.h
8742
8743      $as_echo "#define HAVE_XFT 1" >>confdefs.h
8744
8745      $as_echo "#define HAVE_XFT_UTF8 1" >>confdefs.h
8746
8747      Xft_LIBS=$XFT_LIBS
8748      Xft_CFLAGS=$XFT_CFLAGS
8749    else
8750      problem_xft=": Can't detect Xft2, detected fontconfig"
8751    fi
8752  fi
8753
8754  # if Xft2 not detected check for Xft1
8755  if test ! x"$have_freetype" = xno && test ! x"$with_xft" = xyes; then
8756    #Xft 1
8757    $UNSET ac_cv_lib_XftConfigSubstitute
8758    $UNSET ac_cv_lib_Xft_XftFontOpen
8759    $UNSET ac_cv_lib_Xft_XftDrawStringUtf8
8760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
8761$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
8762if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
8763  $as_echo_n "(cached) " >&6
8764else
8765  ac_check_lib_save_LIBS=$LIBS
8766LIBS="-lXft $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $FT2_LIBS $Xrender_LIBS $LIBS"
8767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769
8770/* Override any GCC internal prototype to avoid an error.
8771   Use char because int might match the return type of a GCC
8772   builtin and then its argument prototype would still apply.  */
8773#ifdef __cplusplus
8774extern "C"
8775#endif
8776char XftFontOpen ();
8777int
8778main ()
8779{
8780return XftFontOpen ();
8781  ;
8782  return 0;
8783}
8784_ACEOF
8785if ac_fn_c_try_link "$LINENO"; then :
8786  ac_cv_lib_Xft_XftFontOpen=yes
8787else
8788  ac_cv_lib_Xft_XftFontOpen=no
8789fi
8790rm -f core conftest.err conftest.$ac_objext \
8791    conftest$ac_exeext conftest.$ac_ext
8792LIBS=$ac_check_lib_save_LIBS
8793fi
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
8795$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
8796if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
8797  with_xft=yes
8798else
8799  with_xft=no
8800fi
8801
8802    if test x"$with_xft" = xyes ; then
8803      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftConfigSubstitute in -lXft" >&5
8804$as_echo_n "checking for XftConfigSubstitute in -lXft... " >&6; }
8805if ${ac_cv_lib_Xft_XftConfigSubstitute+:} false; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  ac_check_lib_save_LIBS=$LIBS
8809LIBS="-lXft $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $FT2_LIBS $Xrender_LIBS $LIBS"
8810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812
8813/* Override any GCC internal prototype to avoid an error.
8814   Use char because int might match the return type of a GCC
8815   builtin and then its argument prototype would still apply.  */
8816#ifdef __cplusplus
8817extern "C"
8818#endif
8819char XftConfigSubstitute ();
8820int
8821main ()
8822{
8823return XftConfigSubstitute ();
8824  ;
8825  return 0;
8826}
8827_ACEOF
8828if ac_fn_c_try_link "$LINENO"; then :
8829  ac_cv_lib_Xft_XftConfigSubstitute=yes
8830else
8831  ac_cv_lib_Xft_XftConfigSubstitute=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext \
8834    conftest$ac_exeext conftest.$ac_ext
8835LIBS=$ac_check_lib_save_LIBS
8836fi
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftConfigSubstitute" >&5
8838$as_echo "$ac_cv_lib_Xft_XftConfigSubstitute" >&6; }
8839if test "x$ac_cv_lib_Xft_XftConfigSubstitute" = xyes; then :
8840  is_xft1=yes
8841else
8842  is_xft1=no
8843fi
8844
8845      if test x"$is_xft1" = xyes; then
8846        Xft_LIBS="-lXft $FT2_LIBS"
8847	Xft_CFLAGS="$Xft_CFLAGS $FT2_CFLAGS"
8848        problem_xft=" (version 1)"
8849        $as_echo "#define HAVE_XFT 1" >>confdefs.h
8850
8851      else
8852        with_xft=no
8853        problem_xft=": Can't detect Xft 1 or fontconfig"
8854      fi
8855    else
8856      problem_xft=": Can't detect Xft 1 or 2 and fontconfig"
8857    fi
8858    if test x"$with_xft" = xyes; then
8859      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawStringUtf8 in -lXft" >&5
8860$as_echo_n "checking for XftDrawStringUtf8 in -lXft... " >&6; }
8861if ${ac_cv_lib_Xft_XftDrawStringUtf8+:} false; then :
8862  $as_echo_n "(cached) " >&6
8863else
8864  ac_check_lib_save_LIBS=$LIBS
8865LIBS="-lXft $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $FT2_LIBS $Xrender_LIBS $LIBS"
8866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h.  */
8868
8869/* Override any GCC internal prototype to avoid an error.
8870   Use char because int might match the return type of a GCC
8871   builtin and then its argument prototype would still apply.  */
8872#ifdef __cplusplus
8873extern "C"
8874#endif
8875char XftDrawStringUtf8 ();
8876int
8877main ()
8878{
8879return XftDrawStringUtf8 ();
8880  ;
8881  return 0;
8882}
8883_ACEOF
8884if ac_fn_c_try_link "$LINENO"; then :
8885  ac_cv_lib_Xft_XftDrawStringUtf8=yes
8886else
8887  ac_cv_lib_Xft_XftDrawStringUtf8=no
8888fi
8889rm -f core conftest.err conftest.$ac_objext \
8890    conftest$ac_exeext conftest.$ac_ext
8891LIBS=$ac_check_lib_save_LIBS
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawStringUtf8" >&5
8894$as_echo "$ac_cv_lib_Xft_XftDrawStringUtf8" >&6; }
8895if test "x$ac_cv_lib_Xft_XftDrawStringUtf8" = xyes; then :
8896  $as_echo "#define HAVE_XFT_UTF8 1" >>confdefs.h
8897
8898fi
8899
8900    fi
8901  fi
8902
8903fi
8904
8905
8906
8907# ********* xpm
8908problem_xpm=": Xpm library or header not found"
8909
8910$UNSET ac_cv_header_X11_xpm_h
8911$UNSET ac_cv_lib_Xpm_XpmReadFileToXpmImage
8912
8913smr_lib=Xpm
8914smr_header=X11/xpm.h
8915
8916
8917smr_lib=Xpm
8918
8919
8920# Check whether --with-xpm-library was given.
8921if test "${with_xpm_library+set}" = set; then :
8922  withval=$with_xpm_library;
8923    if test "$withval" = yes; then
8924        with_xpm=yes
8925        xpm_LIBS="-l${smr_lib}"
8926    elif test "$withval" = no; then
8927        with_xpm=no
8928        xpm_LIBS=
8929    else
8930        with_xpm=yes
8931        if test -f "$withval"; then
8932            xpm_LIBS=$withval
8933        elif test -d "$withval"; then
8934            xpm_LIBS="-L$withval -l${smr_lib}"
8935        else
8936            as_fn_error $? "--with-xpm-library argument must be yes/no, file or directory" "$LINENO" 5
8937        fi
8938    fi
8939
8940else
8941
8942    with_xpm=maybe
8943    xpm_LIBS="-l${smr_lib}"
8944
8945fi
8946
8947if test "$with_xpm" != no; then
8948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToXpmImage in -lXpm" >&5
8949$as_echo_n "checking for XpmReadFileToXpmImage in -lXpm... " >&6; }
8950if ${ac_cv_lib_Xpm_XpmReadFileToXpmImage+:} false; then :
8951  $as_echo_n "(cached) " >&6
8952else
8953  ac_check_lib_save_LIBS=$LIBS
8954LIBS="-lXpm ${xpm_LIBS} $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957
8958/* Override any GCC internal prototype to avoid an error.
8959   Use char because int might match the return type of a GCC
8960   builtin and then its argument prototype would still apply.  */
8961#ifdef __cplusplus
8962extern "C"
8963#endif
8964char XpmReadFileToXpmImage ();
8965int
8966main ()
8967{
8968return XpmReadFileToXpmImage ();
8969  ;
8970  return 0;
8971}
8972_ACEOF
8973if ac_fn_c_try_link "$LINENO"; then :
8974  ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes
8975else
8976  ac_cv_lib_Xpm_XpmReadFileToXpmImage=no
8977fi
8978rm -f core conftest.err conftest.$ac_objext \
8979    conftest$ac_exeext conftest.$ac_ext
8980LIBS=$ac_check_lib_save_LIBS
8981fi
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5
8983$as_echo "$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6; }
8984if test "x$ac_cv_lib_Xpm_XpmReadFileToXpmImage" = xyes; then :
8985  smr_havelib=yes
8986else
8987  smr_havelib=no; problem_xpm=": Can't find working lib$smr_lib"
8988fi
8989
8990    if test "$smr_havelib" = yes -a "$smr_header" != ""; then
8991
8992
8993
8994# Check whether --with-xpm-includes was given.
8995if test "${with_xpm_includes+set}" = set; then :
8996  withval=$with_xpm_includes;
8997    if test -d "$withval"; then
8998        xpm_CFLAGS="-I${withval}"
8999    else
9000        as_fn_error $? "argument must be a directory" "$LINENO" 5
9001    fi
9002fi
9003
9004
9005                smr_save_CPPFLAGS="$CPPFLAGS"
9006    CPPFLAGS="$CPPFLAGS ${xpm_CFLAGS}"
9007    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9008
9009    for ac_header in $smr_header
9010do :
9011  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9012ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9014  cat >>confdefs.h <<_ACEOF
9015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016_ACEOF
9017
9018fi
9019
9020done
9021
9022
9023    CPPFLAGS=$smr_save_CPPFLAGS
9024
9025        smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'`
9026        if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then
9027            smr_havelib=no
9028            problem_xpm=": Can't find working $smr_header"
9029        fi
9030    fi
9031    if test "$smr_havelib" = yes; then
9032        with_xpm=yes
9033        problem_xpm=
9034    else
9035        xpm_LIBS=
9036        xpm_CFLAGS=
9037        with_xpm=no
9038    fi
9039else
9040    problem_xpm=": Explicitly disabled"
9041fi
9042
9043if test ! x"$xpm_LIBS" = x; then
9044  # Check for proper version of Xpm -- from XEmacs 21.x configure.in
9045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xpm 3.4g or better" >&5
9046$as_echo_n "checking for Xpm 3.4g or better... " >&6; }
9047  my_CPPFLAGS="$CPPFLAGS"
9048  my_LIBS="$LIBS"
9049  CPPFLAGS="$CPPFLAGS $xpm_CFLAGS $X_CFLAGS"
9050  LIBS="$LIBS $xpm_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
9051  if test "$cross_compiling" = yes; then :
9052  echo $ac_n "cross compiling; assumed OK... $ac_c"
9053else
9054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h.  */
9056#include <X11/xpm.h>
9057   int main(int c, char **v) {
9058   return c == 1 ? 0 :
9059     XpmIncludeVersion != XpmLibraryVersion() ? 1 :
9060     XpmIncludeVersion < 30407 ? 2 : 0 ;}
9061_ACEOF
9062if ac_fn_c_try_run "$LINENO"; then :
9063  ./conftest dummy_arg; xpm_status=$?;
9064     if test x"$xpm_status" = x0; then
9065       with_xpm=yes
9066       problem_xpm=""
9067     else
9068       with_xpm=no;
9069       if test x"$xpm_status" = x1; then
9070	 problem_xpm=": Xpm library and header versions don't match"
9071       elif test x"$xpm_status" = x2x; then
9072	 problem_xpm=": Xpm library version is too old"
9073       else
9074	 problem_xpm=": Internal xpm detection logic error"
9075       fi
9076     fi
9077else
9078  with_xpm=no; problem_xpm=": Xpm test error, see config.log"
9079fi
9080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9081  conftest.$ac_objext conftest.beam conftest.$ac_ext
9082fi
9083
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xpm" >&5
9085$as_echo "$with_xpm" >&6; }
9086  CPPFLAGS="$my_CPPFLAGS"
9087  LIBS="$my_LIBS"
9088
9089
9090  if test x"$with_xpm" = xyes; then
9091    $as_echo "#define XPM 1" >>confdefs.h
9092
9093    # FVWMBANNER=FvwmBanner AC_SUBST(FVWMBANNER)
9094    # FVWMSCRIPT=FvwmScript AC_SUBST(FVWMSCRIPT)
9095  else
9096    xpm_LIBS=
9097    xpm_CFLAGS=
9098  fi
9099fi
9100
9101
9102
9103# ********* png
9104png_LIBS=""
9105png_CFLAGS=""
9106
9107
9108# Check whether --enable-png was given.
9109if test "${enable_png+set}" = set; then :
9110  enableval=$enable_png; with_png="$enableval"
9111else
9112  with_png="yes"
9113fi
9114
9115
9116if test "$with_png" = no; then
9117      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
9118		   disabling PNG support will mean the default
9119		   configuration shipped with FVWM will be without icon
9120		   support.  Be sure this is what you mean to do.
9121		   ***" >&5
9122$as_echo "$as_me: WARNING: ***
9123		   disabling PNG support will mean the default
9124		   configuration shipped with FVWM will be without icon
9125		   support.  Be sure this is what you mean to do.
9126		   ***" >&2;}
9127else
9128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng..." >&5
9129$as_echo_n "checking for libpng...... " >&6; }
9130
9131pkg_failed=no
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.2" >&5
9133$as_echo_n "checking for libpng >= 1.2... " >&6; }
9134
9135if test -n "$png_CFLAGS"; then
9136    pkg_cv_png_CFLAGS="$png_CFLAGS"
9137 elif test -n "$PKG_CONFIG"; then
9138    if test -n "$PKG_CONFIG" && \
9139    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5
9140  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5
9141  ac_status=$?
9142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9143  test $ac_status = 0; }; then
9144  pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2" 2>/dev/null`
9145		      test "x$?" != "x0" && pkg_failed=yes
9146else
9147  pkg_failed=yes
9148fi
9149 else
9150    pkg_failed=untried
9151fi
9152if test -n "$png_LIBS"; then
9153    pkg_cv_png_LIBS="$png_LIBS"
9154 elif test -n "$PKG_CONFIG"; then
9155    if test -n "$PKG_CONFIG" && \
9156    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5
9157  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5
9158  ac_status=$?
9159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9160  test $ac_status = 0; }; then
9161  pkg_cv_png_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2" 2>/dev/null`
9162		      test "x$?" != "x0" && pkg_failed=yes
9163else
9164  pkg_failed=yes
9165fi
9166 else
9167    pkg_failed=untried
9168fi
9169
9170
9171
9172if test $pkg_failed = yes; then
9173        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174$as_echo "no" >&6; }
9175
9176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9177        _pkg_short_errors_supported=yes
9178else
9179        _pkg_short_errors_supported=no
9180fi
9181        if test $_pkg_short_errors_supported = yes; then
9182	        png_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.2" 2>&1`
9183        else
9184	        png_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.2" 2>&1`
9185        fi
9186	# Put the nasty error message in config.log where it belongs
9187	echo "$png_PKG_ERRORS" >&5
9188
9189
9190	 as_fn_error $? "***
9191		       libpng not found, and --disable-png not given.
9192		       It is recommended to use libpng so that PNG icons can
9193		       be rendered by FVWM, which the default configuration
9194		       file needs, as well as other third-party programs
9195		       which generate menus, for example.
9196
9197		       If it is critical that FVWM does not link against
9198		       libpng (perhaps due to size limitations of the
9199		       binary), then use --disable-png
9200		       ***" "$LINENO" 5
9201
9202elif test $pkg_failed = untried; then
9203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204$as_echo "no" >&6; }
9205
9206	 as_fn_error $? "***
9207		       libpng not found, and --disable-png not given.
9208		       It is recommended to use libpng so that PNG icons can
9209		       be rendered by FVWM, which the default configuration
9210		       file needs, as well as other third-party programs
9211		       which generate menus, for example.
9212
9213		       If it is critical that FVWM does not link against
9214		       libpng (perhaps due to size limitations of the
9215		       binary), then use --disable-png
9216		       ***" "$LINENO" 5
9217
9218else
9219	png_CFLAGS=$pkg_cv_png_CFLAGS
9220	png_LIBS=$pkg_cv_png_LIBS
9221        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9222$as_echo "yes" >&6; }
9223
9224	 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9225
9226
9227fi
9228	# ** needed by the png support
9229	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9230$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9231if ${ac_cv_c_bigendian+:} false; then :
9232  $as_echo_n "(cached) " >&6
9233else
9234  ac_cv_c_bigendian=unknown
9235    # See if we're dealing with a universal compiler.
9236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238#ifndef __APPLE_CC__
9239	       not a universal capable compiler
9240	     #endif
9241	     typedef int dummy;
9242
9243_ACEOF
9244if ac_fn_c_try_compile "$LINENO"; then :
9245
9246	# Check for potential -arch flags.  It is not universal unless
9247	# there are at least two -arch flags with different values.
9248	ac_arch=
9249	ac_prev=
9250	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9251	 if test -n "$ac_prev"; then
9252	   case $ac_word in
9253	     i?86 | x86_64 | ppc | ppc64)
9254	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9255		 ac_arch=$ac_word
9256	       else
9257		 ac_cv_c_bigendian=universal
9258		 break
9259	       fi
9260	       ;;
9261	   esac
9262	   ac_prev=
9263	 elif test "x$ac_word" = "x-arch"; then
9264	   ac_prev=arch
9265	 fi
9266       done
9267fi
9268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269    if test $ac_cv_c_bigendian = unknown; then
9270      # See if sys/param.h defines the BYTE_ORDER macro.
9271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272/* end confdefs.h.  */
9273#include <sys/types.h>
9274	     #include <sys/param.h>
9275
9276int
9277main ()
9278{
9279#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9280		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9281		     && LITTLE_ENDIAN)
9282	      bogus endian macros
9283	     #endif
9284
9285  ;
9286  return 0;
9287}
9288_ACEOF
9289if ac_fn_c_try_compile "$LINENO"; then :
9290  # It does; now see whether it defined to BIG_ENDIAN or not.
9291	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293#include <sys/types.h>
9294		#include <sys/param.h>
9295
9296int
9297main ()
9298{
9299#if BYTE_ORDER != BIG_ENDIAN
9300		 not big endian
9301		#endif
9302
9303  ;
9304  return 0;
9305}
9306_ACEOF
9307if ac_fn_c_try_compile "$LINENO"; then :
9308  ac_cv_c_bigendian=yes
9309else
9310  ac_cv_c_bigendian=no
9311fi
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313fi
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315    fi
9316    if test $ac_cv_c_bigendian = unknown; then
9317      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9318      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h.  */
9320#include <limits.h>
9321
9322int
9323main ()
9324{
9325#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9326	      bogus endian macros
9327	     #endif
9328
9329  ;
9330  return 0;
9331}
9332_ACEOF
9333if ac_fn_c_try_compile "$LINENO"; then :
9334  # It does; now see whether it defined to _BIG_ENDIAN or not.
9335	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337#include <limits.h>
9338
9339int
9340main ()
9341{
9342#ifndef _BIG_ENDIAN
9343		 not big endian
9344		#endif
9345
9346  ;
9347  return 0;
9348}
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"; then :
9351  ac_cv_c_bigendian=yes
9352else
9353  ac_cv_c_bigendian=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358    fi
9359    if test $ac_cv_c_bigendian = unknown; then
9360      # Compile a test program.
9361      if test "$cross_compiling" = yes; then :
9362  # Try to guess by grepping values from an object file.
9363	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h.  */
9365short int ascii_mm[] =
9366		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9367		short int ascii_ii[] =
9368		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9369		int use_ascii (int i) {
9370		  return ascii_mm[i] + ascii_ii[i];
9371		}
9372		short int ebcdic_ii[] =
9373		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9374		short int ebcdic_mm[] =
9375		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9376		int use_ebcdic (int i) {
9377		  return ebcdic_mm[i] + ebcdic_ii[i];
9378		}
9379		extern int foo;
9380
9381int
9382main ()
9383{
9384return use_ascii (foo) == use_ebcdic (foo);
9385  ;
9386  return 0;
9387}
9388_ACEOF
9389if ac_fn_c_try_compile "$LINENO"; then :
9390  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9391	      ac_cv_c_bigendian=yes
9392	    fi
9393	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9394	      if test "$ac_cv_c_bigendian" = unknown; then
9395		ac_cv_c_bigendian=no
9396	      else
9397		# finding both strings is unlikely to happen, but who knows?
9398		ac_cv_c_bigendian=unknown
9399	      fi
9400	    fi
9401fi
9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403else
9404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406$ac_includes_default
9407int
9408main ()
9409{
9410
9411	     /* Are we little or big endian?  From Harbison&Steele.  */
9412	     union
9413	     {
9414	       long int l;
9415	       char c[sizeof (long int)];
9416	     } u;
9417	     u.l = 1;
9418	     return u.c[sizeof (long int) - 1] == 1;
9419
9420  ;
9421  return 0;
9422}
9423_ACEOF
9424if ac_fn_c_try_run "$LINENO"; then :
9425  ac_cv_c_bigendian=no
9426else
9427  ac_cv_c_bigendian=yes
9428fi
9429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9430  conftest.$ac_objext conftest.beam conftest.$ac_ext
9431fi
9432
9433    fi
9434fi
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9436$as_echo "$ac_cv_c_bigendian" >&6; }
9437 case $ac_cv_c_bigendian in #(
9438   yes)
9439     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9440;; #(
9441   no)
9442      ;; #(
9443   universal)
9444
9445$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9446
9447     ;; #(
9448   *)
9449     as_fn_error $? "unknown endianness
9450 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9451 esac
9452
9453fi
9454
9455
9456
9457
9458# ********* rsvg
9459rsvg_min_version=2.13.92
9460
9461
9462# Check whether --enable-rsvg was given.
9463if test "${enable_rsvg+set}" = set; then :
9464  enableval=$enable_rsvg;  if test x"$enableval" = xno; then
9465       with_rsvg=no
9466       problem_rsvg=": Explicitly disabled"
9467    fi
9468fi
9469
9470if test ! x"$with_rsvg" = xno; then
9471   with_rsvg=no
9472   if test ! x"$PKG_CONFIG" = xno ; then
9473      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librsvg - version >= $rsvg_min_version" >&5
9474$as_echo_n "checking for librsvg - version >= $rsvg_min_version... " >&6; }
9475      if $PKG_CONFIG --exists librsvg-2.0 ; then
9476         if $PKG_CONFIG --exists "librsvg-2.0 >= $rsvg_min_version" ; then
9477            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9478$as_echo "yes" >&6; }
9479
9480   	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo svg backend" >&5
9481$as_echo_n "checking for cairo svg backend... " >&6; }
9482            if $PKG_CONFIG --exists cairo-svg ; then
9483               svg_packages="librsvg-2.0 cairo-svg"
9484            elif $PKG_CONFIG --exists libsvg-cairo ; then
9485               svg_packages="librsvg-2.0 libsvg-cairo"
9486            elif $PKG_CONFIG --exists cairo ; then
9487               svg_packages="librsvg-2.0 cairo"
9488            else
9489               svg_packages=""
9490            fi
9491            if test ! x"$svg_packages" = x ; then
9492               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9493$as_echo "yes" >&6; }
9494               rsvg_CFLAGS=`$PKG_CONFIG --cflags $svg_packages`
9495               rsvg_LIBS=`$PKG_CONFIG --libs $svg_packages`
9496               with_rsvg=yes
9497            else
9498               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499$as_echo "no" >&6; }
9500               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** cairo was not found in the pkg-config search" >&5
9501$as_echo "$as_me: WARNING: *** cairo was not found in the pkg-config search" >&2;}
9502               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** path. Add the directory containing cairo.pc" >&5
9503$as_echo "$as_me: WARNING: *** path. Add the directory containing cairo.pc" >&2;}
9504               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** to the PKG_CONFIG_PATH environment variable." >&5
9505$as_echo "$as_me: WARNING: *** to the PKG_CONFIG_PATH environment variable." >&2;}
9506               problem_rsvg=": Cannot detect cairo backend"
9507            fi
9508         else
9509            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510$as_echo "no" >&6; }
9511            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Your librsvg version is < $rsvg_min_version" >&5
9512$as_echo "$as_me: WARNING: *** Your librsvg version is < $rsvg_min_version" >&2;}
9513            problem_rsvg=": Your librsvg version is too old"
9514         fi
9515      else
9516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
9518         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** librsvg-2.0 was not found in the pkg-config search" >&5
9519$as_echo "$as_me: WARNING: *** librsvg-2.0 was not found in the pkg-config search" >&2;}
9520         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** path. Either librsvg is not installed or you need" >&5
9521$as_echo "$as_me: WARNING: *** path. Either librsvg is not installed or you need" >&2;}
9522         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** to add the directory containing librsvg-2.0.pc to" >&5
9523$as_echo "$as_me: WARNING: *** to add the directory containing librsvg-2.0.pc to" >&2;}
9524         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** the PKG_CONFIG_PATH environment variable." >&5
9525$as_echo "$as_me: WARNING: *** the PKG_CONFIG_PATH environment variable." >&2;}
9526         problem_rsvg=": librsvg library or header not found"
9527      fi
9528   else
9529      problem_rsvg=": pkg-config not found"
9530   fi
9531fi
9532if test x"$with_rsvg" = xyes ; then
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a librsvg program compiles and runs" >&5
9534$as_echo_n "checking whether a librsvg program compiles and runs... " >&6; }
9535   original_CFLAGS="$CFLAGS"
9536   original_LIBS="$LIBS"
9537   CFLAGS="$CFLAGS $rsvg_CFLAGS"
9538   LIBS="$LIBS $rsvg_LIBS"
9539   if test "$cross_compiling" = yes; then :
9540  echo $ac_n "cross compiling; assumed OK... $ac_c"
9541else
9542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543/* end confdefs.h.  */
9544
9545      #include <librsvg/rsvg.h>
9546      #include <librsvg/rsvg-cairo.h>
9547      int main() {
9548         RsvgHandle *rsvg;
9549         g_type_init();
9550         if(!(rsvg = rsvg_handle_new())) return 1;
9551         g_object_unref(G_OBJECT(rsvg));
9552         return 0;
9553      }
9554
9555_ACEOF
9556if ac_fn_c_try_run "$LINENO"; then :
9557
9558      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9559$as_echo "yes" >&6; }
9560
9561else
9562
9563      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564$as_echo "no" >&6; }
9565      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The librsvg test program failed to run. If your system" >&5
9566$as_echo "$as_me: WARNING: *** The librsvg test program failed to run. If your system" >&2;}
9567      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** has shared libraries outside the normal system library" >&5
9568$as_echo "$as_me: WARNING: *** has shared libraries outside the normal system library" >&2;}
9569      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** path, you need to make sure that the LD_LIBRARY_PATH" >&5
9570$as_echo "$as_me: WARNING: *** path, you need to make sure that the LD_LIBRARY_PATH" >&2;}
9571      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** (or the like) environment variable is correctly set." >&5
9572$as_echo "$as_me: WARNING: *** (or the like) environment variable is correctly set." >&2;}
9573      with_rsvg=no
9574      problem_rsvg=": Failed to run test program"
9575
9576fi
9577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9578  conftest.$ac_objext conftest.beam conftest.$ac_ext
9579fi
9580
9581   CFLAGS="$original_CFLAGS"
9582   LIBS="$original_LIBS"
9583fi
9584if test x"$with_rsvg" = xyes ; then
9585   $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9586
9587   problem_rsvg=""
9588else
9589   rsvg_CFLAGS=""
9590   rsvg_LIBS=""
9591fi
9592
9593
9594
9595# ********* readline
9596with_readline=no
9597problem_readline=": Both termcap and ncurses disabled"
9598
9599
9600
9601smr_lib=termcap
9602
9603
9604# Check whether --with-termcap-library was given.
9605if test "${with_termcap_library+set}" = set; then :
9606  withval=$with_termcap_library;
9607    if test "$withval" = yes; then
9608        with_termcap=yes
9609        termcap_LIBS="-l${smr_lib}"
9610    elif test "$withval" = no; then
9611        with_termcap=no
9612        termcap_LIBS=
9613    else
9614        with_termcap=yes
9615        if test -f "$withval"; then
9616            termcap_LIBS=$withval
9617        elif test -d "$withval"; then
9618            termcap_LIBS="-L$withval -l${smr_lib}"
9619        else
9620            as_fn_error $? "--with-termcap-library argument must be yes/no, file or directory" "$LINENO" 5
9621        fi
9622    fi
9623
9624else
9625
9626    with_termcap=maybe
9627    termcap_LIBS="-l${smr_lib}"
9628
9629fi
9630
9631
9632if test ! x"$with_termcap" = xno; then
9633  # Forget cached values, so user can re-run configure
9634  $UNSET ac_cv_header_readline_history_h
9635  $UNSET ac_cv_lib_readline_readline
9636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking with termcap" >&5
9637$as_echo_n "checking with termcap... " >&6; }
9638
9639smr_lib=readline
9640smr_header=readline/history.h
9641
9642
9643smr_lib=readline
9644
9645
9646# Check whether --with-readline-library was given.
9647if test "${with_readline_library+set}" = set; then :
9648  withval=$with_readline_library;
9649    if test "$withval" = yes; then
9650        with_readline=yes
9651        readline_LIBS="-l${smr_lib}"
9652    elif test "$withval" = no; then
9653        with_readline=no
9654        readline_LIBS=
9655    else
9656        with_readline=yes
9657        if test -f "$withval"; then
9658            readline_LIBS=$withval
9659        elif test -d "$withval"; then
9660            readline_LIBS="-L$withval -l${smr_lib}"
9661        else
9662            as_fn_error $? "--with-readline-library argument must be yes/no, file or directory" "$LINENO" 5
9663        fi
9664    fi
9665
9666else
9667
9668    with_readline=maybe
9669    readline_LIBS="-l${smr_lib}"
9670
9671fi
9672
9673if test "$with_readline" != no; then
9674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9675$as_echo_n "checking for readline in -lreadline... " >&6; }
9676if ${ac_cv_lib_readline_readline+:} false; then :
9677  $as_echo_n "(cached) " >&6
9678else
9679  ac_check_lib_save_LIBS=$LIBS
9680LIBS="-lreadline ${readline_LIBS} $termcap_LIBS $LIBS"
9681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683
9684/* Override any GCC internal prototype to avoid an error.
9685   Use char because int might match the return type of a GCC
9686   builtin and then its argument prototype would still apply.  */
9687#ifdef __cplusplus
9688extern "C"
9689#endif
9690char readline ();
9691int
9692main ()
9693{
9694return readline ();
9695  ;
9696  return 0;
9697}
9698_ACEOF
9699if ac_fn_c_try_link "$LINENO"; then :
9700  ac_cv_lib_readline_readline=yes
9701else
9702  ac_cv_lib_readline_readline=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext \
9705    conftest$ac_exeext conftest.$ac_ext
9706LIBS=$ac_check_lib_save_LIBS
9707fi
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9709$as_echo "$ac_cv_lib_readline_readline" >&6; }
9710if test "x$ac_cv_lib_readline_readline" = xyes; then :
9711  smr_havelib=yes
9712else
9713  smr_havelib=no; problem_readline=": Can't find working lib$smr_lib"
9714fi
9715
9716    if test "$smr_havelib" = yes -a "$smr_header" != ""; then
9717
9718
9719
9720# Check whether --with-readline-includes was given.
9721if test "${with_readline_includes+set}" = set; then :
9722  withval=$with_readline_includes;
9723    if test -d "$withval"; then
9724        readline_CFLAGS="-I${withval}"
9725    else
9726        as_fn_error $? "argument must be a directory" "$LINENO" 5
9727    fi
9728fi
9729
9730
9731                smr_save_CPPFLAGS="$CPPFLAGS"
9732    CPPFLAGS="$CPPFLAGS ${readline_CFLAGS}"
9733
9734
9735    for ac_header in $smr_header
9736do :
9737  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9739if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9740  cat >>confdefs.h <<_ACEOF
9741#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9742_ACEOF
9743
9744fi
9745
9746done
9747
9748
9749    CPPFLAGS=$smr_save_CPPFLAGS
9750
9751        smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'`
9752        if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then
9753            smr_havelib=no
9754            problem_readline=": Can't find working $smr_header"
9755        fi
9756    fi
9757    if test "$smr_havelib" = yes; then
9758        with_readline=yes
9759        problem_readline=
9760    else
9761        readline_LIBS=
9762        readline_CFLAGS=
9763        with_readline=no
9764    fi
9765else
9766    problem_readline=": Explicitly disabled"
9767fi
9768  if test ! x"$readline_LIBS" = x; then
9769    with_readline=yes
9770    readline_LIBS="$readline_LIBS $termcap_LIBS"
9771    $as_echo "#define HAVE_READLINE 1" >>confdefs.h
9772
9773  fi
9774fi
9775
9776
9777smr_lib=ncurses
9778
9779
9780# Check whether --with-ncurses-library was given.
9781if test "${with_ncurses_library+set}" = set; then :
9782  withval=$with_ncurses_library;
9783    if test "$withval" = yes; then
9784        with_ncurses=yes
9785        ncurses_LIBS="-l${smr_lib}"
9786    elif test "$withval" = no; then
9787        with_ncurses=no
9788        ncurses_LIBS=
9789    else
9790        with_ncurses=yes
9791        if test -f "$withval"; then
9792            ncurses_LIBS=$withval
9793        elif test -d "$withval"; then
9794            ncurses_LIBS="-L$withval -l${smr_lib}"
9795        else
9796            as_fn_error $? "--with-ncurses-library argument must be yes/no, file or directory" "$LINENO" 5
9797        fi
9798    fi
9799
9800else
9801
9802    with_ncurses=maybe
9803    ncurses_LIBS="-l${smr_lib}"
9804
9805fi
9806
9807if test ! x"$with_ncurses" = xno && test x"$readline_LIBS" = x; then
9808  # We couldn't use readline with termcap; try with ncurses?
9809  # Doesn't this seem a hacky way to do this??
9810  # unset cached values from last check...
9811  $UNSET ac_cv_header_readline_history_h
9812  $UNSET ac_cv_lib_readline_readline
9813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking with ncurses" >&5
9814$as_echo_n "checking with ncurses... " >&6; }
9815
9816smr_lib=readline
9817smr_header=readline/history.h
9818
9819
9820smr_lib=readline
9821
9822
9823# Check whether --with-readline-library was given.
9824if test "${with_readline_library+set}" = set; then :
9825  withval=$with_readline_library;
9826    if test "$withval" = yes; then
9827        with_readline=yes
9828        readline_LIBS="-l${smr_lib}"
9829    elif test "$withval" = no; then
9830        with_readline=no
9831        readline_LIBS=
9832    else
9833        with_readline=yes
9834        if test -f "$withval"; then
9835            readline_LIBS=$withval
9836        elif test -d "$withval"; then
9837            readline_LIBS="-L$withval -l${smr_lib}"
9838        else
9839            as_fn_error $? "--with-readline-library argument must be yes/no, file or directory" "$LINENO" 5
9840        fi
9841    fi
9842
9843else
9844
9845    with_readline=maybe
9846    readline_LIBS="-l${smr_lib}"
9847
9848fi
9849
9850if test "$with_readline" != no; then
9851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9852$as_echo_n "checking for readline in -lreadline... " >&6; }
9853if ${ac_cv_lib_readline_readline+:} false; then :
9854  $as_echo_n "(cached) " >&6
9855else
9856  ac_check_lib_save_LIBS=$LIBS
9857LIBS="-lreadline ${readline_LIBS} $ncurses_LIBS $LIBS"
9858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h.  */
9860
9861/* Override any GCC internal prototype to avoid an error.
9862   Use char because int might match the return type of a GCC
9863   builtin and then its argument prototype would still apply.  */
9864#ifdef __cplusplus
9865extern "C"
9866#endif
9867char readline ();
9868int
9869main ()
9870{
9871return readline ();
9872  ;
9873  return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then :
9877  ac_cv_lib_readline_readline=yes
9878else
9879  ac_cv_lib_readline_readline=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882    conftest$ac_exeext conftest.$ac_ext
9883LIBS=$ac_check_lib_save_LIBS
9884fi
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9886$as_echo "$ac_cv_lib_readline_readline" >&6; }
9887if test "x$ac_cv_lib_readline_readline" = xyes; then :
9888  smr_havelib=yes
9889else
9890  smr_havelib=no; problem_readline=": Can't find working lib$smr_lib"
9891fi
9892
9893    if test "$smr_havelib" = yes -a "$smr_header" != ""; then
9894
9895
9896
9897# Check whether --with-readline-includes was given.
9898if test "${with_readline_includes+set}" = set; then :
9899  withval=$with_readline_includes;
9900    if test -d "$withval"; then
9901        readline_CFLAGS="-I${withval}"
9902    else
9903        as_fn_error $? "argument must be a directory" "$LINENO" 5
9904    fi
9905fi
9906
9907
9908                smr_save_CPPFLAGS="$CPPFLAGS"
9909    CPPFLAGS="$CPPFLAGS ${readline_CFLAGS}"
9910
9911
9912    for ac_header in $smr_header
9913do :
9914  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9915ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9916if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9917  cat >>confdefs.h <<_ACEOF
9918#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919_ACEOF
9920
9921fi
9922
9923done
9924
9925
9926    CPPFLAGS=$smr_save_CPPFLAGS
9927
9928        smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'`
9929        if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then
9930            smr_havelib=no
9931            problem_readline=": Can't find working $smr_header"
9932        fi
9933    fi
9934    if test "$smr_havelib" = yes; then
9935        with_readline=yes
9936        problem_readline=
9937    else
9938        readline_LIBS=
9939        readline_CFLAGS=
9940        with_readline=no
9941    fi
9942else
9943    problem_readline=": Explicitly disabled"
9944fi
9945  if test ! x"$readline_LIBS" = x; then
9946    with_readline=yes
9947    readline_LIBS="$readline_LIBS $ncurses_LIBS"
9948    $as_echo "#define HAVE_READLINE 1" >>confdefs.h
9949
9950  fi
9951fi
9952
9953if test x"$with_readline" = xyes; then
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
9955$as_echo_n "checking for append_history in -lreadline... " >&6; }
9956if ${ac_cv_lib_readline_append_history+:} false; then :
9957  $as_echo_n "(cached) " >&6
9958else
9959  ac_check_lib_save_LIBS=$LIBS
9960LIBS="-lreadline $readline_LIBS $LIBS"
9961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h.  */
9963
9964/* Override any GCC internal prototype to avoid an error.
9965   Use char because int might match the return type of a GCC
9966   builtin and then its argument prototype would still apply.  */
9967#ifdef __cplusplus
9968extern "C"
9969#endif
9970char append_history ();
9971int
9972main ()
9973{
9974return append_history ();
9975  ;
9976  return 0;
9977}
9978_ACEOF
9979if ac_fn_c_try_link "$LINENO"; then :
9980  ac_cv_lib_readline_append_history=yes
9981else
9982  ac_cv_lib_readline_append_history=no
9983fi
9984rm -f core conftest.err conftest.$ac_objext \
9985    conftest$ac_exeext conftest.$ac_ext
9986LIBS=$ac_check_lib_save_LIBS
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
9989$as_echo "$ac_cv_lib_readline_append_history" >&6; }
9990if test "x$ac_cv_lib_readline_append_history" = xyes; then :
9991  $as_echo "#define HAVE_GNU_READLINE 1" >>confdefs.h
9992
9993fi
9994
9995fi
9996
9997
9998
9999
10000# Check if Xsetlocale() is available or not.
10001
10002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Xsetlocale in -lX11" >&5
10003$as_echo_n "checking for _Xsetlocale in -lX11... " >&6; }
10004if ${ac_cv_lib_X11__Xsetlocale+:} false; then :
10005  $as_echo_n "(cached) " >&6
10006else
10007  ac_check_lib_save_LIBS=$LIBS
10008LIBS="-lX11 $X_LIBS -lX11 $LIBS"
10009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h.  */
10011
10012/* Override any GCC internal prototype to avoid an error.
10013   Use char because int might match the return type of a GCC
10014   builtin and then its argument prototype would still apply.  */
10015#ifdef __cplusplus
10016extern "C"
10017#endif
10018char _Xsetlocale ();
10019int
10020main ()
10021{
10022return _Xsetlocale ();
10023  ;
10024  return 0;
10025}
10026_ACEOF
10027if ac_fn_c_try_link "$LINENO"; then :
10028  ac_cv_lib_X11__Xsetlocale=yes
10029else
10030  ac_cv_lib_X11__Xsetlocale=no
10031fi
10032rm -f core conftest.err conftest.$ac_objext \
10033    conftest$ac_exeext conftest.$ac_ext
10034LIBS=$ac_check_lib_save_LIBS
10035fi
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11__Xsetlocale" >&5
10037$as_echo "$ac_cv_lib_X11__Xsetlocale" >&6; }
10038if test "x$ac_cv_lib_X11__Xsetlocale" = xyes; then :
10039  $as_echo "#define X_LOCALE 1" >>confdefs.h
10040
10041fi
10042
10043
10044# Check if Xsetlocale() is available or not.
10045
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenOM in -lX11" >&5
10047$as_echo_n "checking for XOpenOM in -lX11... " >&6; }
10048if ${ac_cv_lib_X11_XOpenOM+:} false; then :
10049  $as_echo_n "(cached) " >&6
10050else
10051  ac_check_lib_save_LIBS=$LIBS
10052LIBS="-lX11 $X_LIBS -lX11 $LIBS"
10053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054/* end confdefs.h.  */
10055
10056/* Override any GCC internal prototype to avoid an error.
10057   Use char because int might match the return type of a GCC
10058   builtin and then its argument prototype would still apply.  */
10059#ifdef __cplusplus
10060extern "C"
10061#endif
10062char XOpenOM ();
10063int
10064main ()
10065{
10066return XOpenOM ();
10067  ;
10068  return 0;
10069}
10070_ACEOF
10071if ac_fn_c_try_link "$LINENO"; then :
10072  ac_cv_lib_X11_XOpenOM=yes
10073else
10074  ac_cv_lib_X11_XOpenOM=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext \
10077    conftest$ac_exeext conftest.$ac_ext
10078LIBS=$ac_check_lib_save_LIBS
10079fi
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenOM" >&5
10081$as_echo "$ac_cv_lib_X11_XOpenOM" >&6; }
10082if test "x$ac_cv_lib_X11_XOpenOM" = xyes; then :
10083  $as_echo "#define HAVE_XOUTPUT_METHOD 1" >>confdefs.h
10084
10085fi
10086
10087
10088# ******** iconv
10089with_iconv=no
10090with_iconv_type=no
10091with_lib_iconv=no
10092with_sys_iconv=no
10093problem_iconv=": Explicitly disabled"
10094
10095# Check whether --enable-iconv was given.
10096if test "${enable_iconv+set}" = set; then :
10097  enableval=$enable_iconv; ac_cv_iconv="$enableval"
10098else
10099  ac_cv_iconv="yes"
10100fi
10101
10102
10103
10104
10105if test ! x"$ac_cv_iconv" = xno; then
10106  # * first check for gnu libiconv
10107  $UNSET ac_cv_header_libiconv_h
10108  $UNSET ac_cv_lib_libiconv_libiconv_open
10109
10110smr_lib=iconv
10111smr_header=iconv.h
10112
10113
10114smr_lib=iconv
10115
10116
10117# Check whether --with-iconv-library was given.
10118if test "${with_iconv_library+set}" = set; then :
10119  withval=$with_iconv_library;
10120    if test "$withval" = yes; then
10121        with_iconv=yes
10122        iconv_LIBS="-l${smr_lib}"
10123    elif test "$withval" = no; then
10124        with_iconv=no
10125        iconv_LIBS=
10126    else
10127        with_iconv=yes
10128        if test -f "$withval"; then
10129            iconv_LIBS=$withval
10130        elif test -d "$withval"; then
10131            iconv_LIBS="-L$withval -l${smr_lib}"
10132        else
10133            as_fn_error $? "--with-iconv-library argument must be yes/no, file or directory" "$LINENO" 5
10134        fi
10135    fi
10136
10137else
10138
10139    with_iconv=maybe
10140    iconv_LIBS="-l${smr_lib}"
10141
10142fi
10143
10144if test "$with_iconv" != no; then
10145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
10146$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
10147if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  ac_check_lib_save_LIBS=$LIBS
10151LIBS="-liconv ${iconv_LIBS} $LIBS"
10152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154
10155/* Override any GCC internal prototype to avoid an error.
10156   Use char because int might match the return type of a GCC
10157   builtin and then its argument prototype would still apply.  */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161char libiconv_open ();
10162int
10163main ()
10164{
10165return libiconv_open ();
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170if ac_fn_c_try_link "$LINENO"; then :
10171  ac_cv_lib_iconv_libiconv_open=yes
10172else
10173  ac_cv_lib_iconv_libiconv_open=no
10174fi
10175rm -f core conftest.err conftest.$ac_objext \
10176    conftest$ac_exeext conftest.$ac_ext
10177LIBS=$ac_check_lib_save_LIBS
10178fi
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
10180$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
10181if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
10182  smr_havelib=yes
10183else
10184  smr_havelib=no; problem_iconv=": Can't find working lib$smr_lib"
10185fi
10186
10187    if test "$smr_havelib" = yes -a "$smr_header" != ""; then
10188
10189
10190
10191# Check whether --with-iconv-includes was given.
10192if test "${with_iconv_includes+set}" = set; then :
10193  withval=$with_iconv_includes;
10194    if test -d "$withval"; then
10195        iconv_CFLAGS="-I${withval}"
10196    else
10197        as_fn_error $? "argument must be a directory" "$LINENO" 5
10198    fi
10199fi
10200
10201
10202                smr_save_CPPFLAGS="$CPPFLAGS"
10203    CPPFLAGS="$CPPFLAGS ${iconv_CFLAGS}"
10204
10205
10206    for ac_header in $smr_header
10207do :
10208  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10209ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10210if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10211  cat >>confdefs.h <<_ACEOF
10212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10213_ACEOF
10214
10215fi
10216
10217done
10218
10219
10220    CPPFLAGS=$smr_save_CPPFLAGS
10221
10222        smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'`
10223        if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then
10224            smr_havelib=no
10225            problem_iconv=": Can't find working $smr_header"
10226        fi
10227    fi
10228    if test "$smr_havelib" = yes; then
10229        with_iconv=yes
10230        problem_iconv=
10231    else
10232        iconv_LIBS=
10233        iconv_CFLAGS=
10234        with_iconv=no
10235    fi
10236else
10237    problem_iconv=": Explicitly disabled"
10238fi
10239  if test ! x"$iconv_LIBS" = x; then
10240     $as_echo "#define USE_LIBICONV 1" >>confdefs.h
10241
10242     with_lib_iconv=yes
10243  fi
10244
10245
10246
10247  # * check for system iconv
10248
10249  ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
10250if test "x$ac_cv_func_iconv_open" = xyes; then :
10251  with_sys_iconv=yes
10252fi
10253
10254
10255  if test x"$with_lib_iconv" = xyes && test x"$with_sys_iconv" = xyes; then
10256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  Both system iconv and libiconv found: use libiconv" >&5
10257$as_echo "$as_me: WARNING: ***  Both system iconv and libiconv found: use libiconv" >&2;}
10258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  Use --with-iconv-library=no to use the system iconv" >&5
10259$as_echo "$as_me: WARNING: ***  Use --with-iconv-library=no to use the system iconv" >&2;}
10260  fi
10261
10262  # * libiconv found check for libcharset to get the good iconv charset
10263  if test x"$with_lib_iconv" = xyes; then
10264
10265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking check for libcharset" >&5
10266$as_echo_n "checking check for libcharset... " >&6; }
10267	ac_save_CFLAGS="$CFLAGS"
10268      	ac_save_LIBS="$LIBS"
10269      	CFLAGS="$CFLAGS $iconv_CFLAGS"
10270      	LIBS="$LIBS $iconv_LIBS"
10271	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273
10274#include <libcharset.h>
10275int
10276main ()
10277{
10278const char *c;
10279c = locale_charset ();
10280
10281  ;
10282  return 0;
10283}
10284_ACEOF
10285if ac_fn_c_try_link "$LINENO"; then :
10286  r=yes
10287else
10288  r=no
10289fi
10290rm -f core conftest.err conftest.$ac_objext \
10291    conftest$ac_exeext conftest.$ac_ext
10292	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r" >&5
10293$as_echo "$r" >&6; }
10294	if test "x$r" = "xyes"; then
10295       		$as_echo "#define HAVE_LIBCHARSET 1" >>confdefs.h
10296
10297	fi
10298	CFLAGS="$ac_save_CFLAGS"
10299        LIBS="$ac_save_LIBS"
10300
10301  fi
10302
10303  test x"$with_lib_iconv" = xyes -o x"$with_sys_iconv" = xyes &&
10304	 with_iconv=yes && problem_iconv=""
10305  test x"$with_lib_iconv" = xyes && with_iconv_type="yes (libiconv)"
10306  test x"$with_sys_iconv" = xyes && with_iconv_type="yes (from C library)"
10307
10308  if test x"$with_iconv" = xno; then
10309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** " >&5
10310$as_echo "$as_me: WARNING: *** " >&2;}
10311    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** No iconv() implementation found in C library or libiconv" >&5
10312$as_echo "$as_me: WARNING: *** No iconv() implementation found in C library or libiconv" >&2;}
10313    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please install libiconv ftp://ftp.gnu.org/pub/gnu/libiconv/" >&5
10314$as_echo "$as_me: WARNING: *** Please install libiconv ftp://ftp.gnu.org/pub/gnu/libiconv/" >&2;}
10315    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** " >&5
10316$as_echo "$as_me: WARNING: *** " >&2;}
10317  fi
10318
10319  if test x"$with_iconv" = xyes; then
10320     $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10321
10322
10323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking check if second arg of iconv is const" >&5
10324$as_echo_n "checking check if second arg of iconv is const... " >&6; }
10325	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h.  */
10327
10328#include <stdlib.h>
10329#include <iconv.h>
10330extern
10331#if defined(__STDC__)
10332size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10333#else
10334size_t iconv();
10335#endif
10336
10337int
10338main ()
10339{
10340
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345if ac_fn_c_try_compile "$LINENO"; then :
10346  use_const=no
10347else
10348  use_const=yes
10349fi
10350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_const" >&5
10352$as_echo "$use_const" >&6; }
10353
10354	if test "x$use_const" = "xyes"; then
10355		$as_echo "#define ICONV_ARG_CONST const" >>confdefs.h
10356
10357	else
10358		$as_echo "#define ICONV_ARG_CONST /**/" >>confdefs.h
10359
10360	fi
10361
10362  fi
10363fi
10364
10365
10366
10367# ******** nl_langinfo and CODESET
10368
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
10370$as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
10371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372/* end confdefs.h.  */
10373#include <langinfo.h>
10374#include <locale.h>
10375int
10376main ()
10377{
10378char *codeset = nl_langinfo(CODESET); setlocale(LC_CTYPE, "");
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383if ac_fn_c_try_compile "$LINENO"; then :
10384  $as_echo "#define HAVE_CODESET 1" >>confdefs.h
10385
10386   have_codeset=yes
10387else
10388  have_codeset=no
10389fi
10390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_codeset" >&5
10392$as_echo "$have_codeset" >&6; }
10393
10394
10395# ********* fribidi
10396# Check whether --enable-bidi was given.
10397if test "${enable_bidi+set}" = set; then :
10398  enableval=$enable_bidi;  if test x"$enableval" = xyes; then
10399    with_bidi="yes, check"
10400  else
10401    with_bidi="no"
10402  problem_bidi=": Explicitly disabled"
10403  fi
10404else
10405   with_bidi="not specified, check"
10406
10407fi
10408
10409
10410fribidi_min_version=0.19.2
10411if test ! x"$with_bidi" = xno; then
10412
10413# Check whether --with-fribidi-bindir was given.
10414if test "${with_fribidi_bindir+set}" = set; then :
10415  withval=$with_fribidi_bindir; FRIBIDI_BINDIR="$withval"
10416else
10417  FRIBIDI_BINDIR="."
10418fi
10419
10420  if test ! x"$PKG_CONFIG" = xno && $PKG_CONFIG --exists "fribidi >= $fribidi_min_version"; then
10421    FRIBIDI_CONFIG="$PKG_CONFIG fribidi"
10422  else
10423    # Extract the first word of "fribidi-config", so it can be a program name with args.
10424set dummy fribidi-config; ac_word=$2
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426$as_echo_n "checking for $ac_word... " >&6; }
10427if ${ac_cv_path_FRIBIDI_CONFIG+:} false; then :
10428  $as_echo_n "(cached) " >&6
10429else
10430  case $FRIBIDI_CONFIG in
10431  [\\/]* | ?:[\\/]*)
10432  ac_cv_path_FRIBIDI_CONFIG="$FRIBIDI_CONFIG" # Let the user override the test with a path.
10433  ;;
10434  *)
10435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436as_dummy="$FRIBIDI_BINDIR:$PATH"
10437for as_dir in $as_dummy
10438do
10439  IFS=$as_save_IFS
10440  test -z "$as_dir" && as_dir=.
10441    for ac_exec_ext in '' $ac_executable_extensions; do
10442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443    ac_cv_path_FRIBIDI_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445    break 2
10446  fi
10447done
10448  done
10449IFS=$as_save_IFS
10450
10451  ;;
10452esac
10453fi
10454FRIBIDI_CONFIG=$ac_cv_path_FRIBIDI_CONFIG
10455if test -n "$FRIBIDI_CONFIG"; then
10456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FRIBIDI_CONFIG" >&5
10457$as_echo "$FRIBIDI_CONFIG" >&6; }
10458else
10459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
10461fi
10462
10463
10464  fi
10465
10466  if test x"$FRIBIDI_CONFIG" = x; then
10467    with_bidi=no
10468    problem_bidi=": pkgconfig fribidi:  fribidi version >= $fribidi_min_version needed."
10469  else
10470    Bidi_CFLAGS=`$FRIBIDI_CONFIG --cflags`
10471    Bidi_LIBS=`$FRIBIDI_CONFIG --libs`
10472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi_log2vis in -lfribidi" >&5
10473$as_echo_n "checking for fribidi_log2vis in -lfribidi... " >&6; }
10474if ${ac_cv_lib_fribidi_fribidi_log2vis+:} false; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  ac_check_lib_save_LIBS=$LIBS
10478LIBS="-lfribidi $Bidi_LIBS $Bidi_CFLAGS $LIBS"
10479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481
10482/* Override any GCC internal prototype to avoid an error.
10483   Use char because int might match the return type of a GCC
10484   builtin and then its argument prototype would still apply.  */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488char fribidi_log2vis ();
10489int
10490main ()
10491{
10492return fribidi_log2vis ();
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497if ac_fn_c_try_link "$LINENO"; then :
10498  ac_cv_lib_fribidi_fribidi_log2vis=yes
10499else
10500  ac_cv_lib_fribidi_fribidi_log2vis=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext \
10503    conftest$ac_exeext conftest.$ac_ext
10504LIBS=$ac_check_lib_save_LIBS
10505fi
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5
10507$as_echo "$ac_cv_lib_fribidi_fribidi_log2vis" >&6; }
10508if test "x$ac_cv_lib_fribidi_fribidi_log2vis" = xyes; then :
10509  with_bidi=yes; problem_bidi=
10510else
10511  with_bidi=no; problem_bidi=": No good libs via $FRIBIDI_CONFIG"
10512fi
10513
10514  fi
10515fi
10516
10517if test ! x"$with_bidi" = xno; then
10518  fribidi_in_path=yes
10519  ac_save_LIBS="$LIBS"
10520  LIBS="$LIBS $Bidi_LIBS"
10521  if test "$cross_compiling" = yes; then :
10522  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10524as_fn_error $? "cannot run test program while cross compiling
10525See \`config.log' for more details" "$LINENO" 5; }
10526else
10527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528/* end confdefs.h.  */
10529#include <stdlib.h>
10530#include <fribidi/fribidi.h>
10531int main()
10532{
10533	FriBidiChar *logical_unicode_str =
10534		(FriBidiChar *)malloc((4 + 1) * sizeof(FriBidiChar));
10535	fribidi_charset_to_unicode(
10536		fribidi_parse_charset("iso8859-8"), "test", 4,
10537		logical_unicode_str);
10538	return 0;
10539}
10540
10541_ACEOF
10542if ac_fn_c_try_run "$LINENO"; then :
10543  :
10544else
10545  fribidi_in_path=no
10546fi
10547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10548  conftest.$ac_objext conftest.beam conftest.$ac_ext
10549fi
10550
10551  LIBS="$ac_save_LIBS"
10552  if test ! x"$fribidi_in_path" = xyes; then
10553    ac_save_CFLAGS="$CFLAGS"
10554    ac_save_LIBS="$LIBS"
10555    CFLAGS="$CFLAGS $Bidi_CFLAGS"
10556    LIBS="$LIBS $Bidi_LIBS"
10557  if test "$cross_compiling" = yes; then :
10558  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10560as_fn_error $? "cannot run test program while cross compiling
10561See \`config.log' for more details" "$LINENO" 5; }
10562else
10563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565#include <stdlib.h>
10566#include <fribidi/fribidi.h>
10567int main()
10568{
10569	FriBidiChar *logical_unicode_str =
10570		(FriBidiChar *)malloc((4 + 1) * sizeof(FriBidiChar));
10571	fribidi_charset_to_unicode(
10572		fribidi_parse_charset("iso8859-8"), "test", 4,
10573		logical_unicode_str);
10574	return 0;
10575}
10576
10577_ACEOF
10578if ac_fn_c_try_run "$LINENO"; then :
10579  :
10580else
10581  with_bidi=no; problem_bidi=": Bad fribidi version, see config.log"
10582fi
10583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10584  conftest.$ac_objext conftest.beam conftest.$ac_ext
10585fi
10586
10587    CFLAGS="$ac_save_CFLAGS"
10588    LIBS="$ac_save_LIBS"
10589  fi
10590  if test ! x"$fribidi_in_path" = xno; then
10591    Bidi_CFLAGS=
10592    Bidi_LIBS=-lfribidi
10593  fi
10594fi
10595
10596
10597
10598if test x"$with_bidi" = xno; then
10599  Bidi_CFLAGS=
10600  Bidi_LIBS=
10601else
10602  $as_echo "#define HAVE_BIDI 1" >>confdefs.h
10603
10604  if test "$cross_compiling" = yes; then :
10605  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10607as_fn_error $? "cannot run test program while cross compiling
10608See \`config.log' for more details" "$LINENO" 5; }
10609else
10610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611/* end confdefs.h.  */
10612#include <fribidi/fribidi.h>
10613    int main(int c, char **v) {
10614      return FRIBIDI_CHARSET_NOT_FOUND * 0;
10615    }
10616
10617_ACEOF
10618if ac_fn_c_try_run "$LINENO"; then :
10619  $as_echo "#define FRIBIDI_CHARSET_SPELLING 1" >>confdefs.h
10620
10621fi
10622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10623  conftest.$ac_objext conftest.beam conftest.$ac_ext
10624fi
10625
10626fi
10627
10628
10629
10630
10631
10632
10633# ********* perllib
10634with_perllib="yes"
10635problem_perllib=""
10636FVWM_PERLLIB=perllib
10637# Check whether --enable-perllib was given.
10638if test "${enable_perllib+set}" = set; then :
10639  enableval=$enable_perllib;  if test x"$enableval" = xno; then
10640    with_perllib="no"
10641    problem_perllib=": Explicitly disabled"
10642    FVWM_PERLLIB=""
10643  fi
10644fi
10645
10646
10647
10648# ******* gettext
10649ALL_LINGUAS="ar da de fr sv_SE zh_CN ru es"
10650FVWM_DOMAIN="fvwm"
10651FVWMSCRIPT_DOMAIN="FvwmScript"
10652ALL_DOMAINS="$FVWM_DOMAIN $FVWMTASKBAR_DOMAIN $FVWMSCRIPT_DOMAIN"
10653
10654
10655
10656
10657
10658
10659
10660LOCALEDIR="$FVWM_DATADIR/locale"
10661with_gettext="yes"
10662problem_gettext=""
10663
10664# Check whether --enable-nls was given.
10665if test "${enable_nls+set}" = set; then :
10666  enableval=$enable_nls;  if test x"$enableval" = xno; then
10667    with_gettext="no"
10668    problem_gettext=": Explicitly disabled"
10669  fi
10670fi
10671
10672
10673
10674if test ! x"$with_gettext" = xno; then
10675
10676        MKINSTALLDIRS=
10677  if test -n "$ac_aux_dir"; then
10678    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10679  fi
10680  if test -z "$MKINSTALLDIRS"; then
10681    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10682  fi
10683
10684
10685
10686
10687        # Extract the first word of "msgfmt", so it can be a program name with args.
10688set dummy msgfmt; ac_word=$2
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690$as_echo_n "checking for $ac_word... " >&6; }
10691if ${ac_cv_path_MSGFMT+:} false; then :
10692  $as_echo_n "(cached) " >&6
10693else
10694  case "$MSGFMT" in
10695  /*)
10696  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10697  ;;
10698  *)
10699  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10700  for ac_dir in $PATH; do
10701    test -z "$ac_dir" && ac_dir=.
10702    if test -f $ac_dir/$ac_word; then
10703      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10704     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10705        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10706        break
10707      fi
10708    fi
10709  done
10710  IFS="$ac_save_ifs"
10711  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10712  ;;
10713esac
10714fi
10715MSGFMT="$ac_cv_path_MSGFMT"
10716if test "$MSGFMT" != ":"; then
10717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10718$as_echo "$MSGFMT" >&6; }
10719else
10720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721$as_echo "no" >&6; }
10722fi
10723
10724  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10725set dummy gmsgfmt; ac_word=$2
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727$as_echo_n "checking for $ac_word... " >&6; }
10728if ${ac_cv_path_GMSGFMT+:} false; then :
10729  $as_echo_n "(cached) " >&6
10730else
10731  case $GMSGFMT in
10732  [\\/]* | ?:[\\/]*)
10733  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10734  ;;
10735  *)
10736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739  IFS=$as_save_IFS
10740  test -z "$as_dir" && as_dir=.
10741    for ac_exec_ext in '' $ac_executable_extensions; do
10742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10743    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745    break 2
10746  fi
10747done
10748  done
10749IFS=$as_save_IFS
10750
10751  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10752  ;;
10753esac
10754fi
10755GMSGFMT=$ac_cv_path_GMSGFMT
10756if test -n "$GMSGFMT"; then
10757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10758$as_echo "$GMSGFMT" >&6; }
10759else
10760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761$as_echo "no" >&6; }
10762fi
10763
10764
10765
10766        # Extract the first word of "xgettext", so it can be a program name with args.
10767set dummy xgettext; ac_word=$2
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769$as_echo_n "checking for $ac_word... " >&6; }
10770if ${ac_cv_path_XGETTEXT+:} false; then :
10771  $as_echo_n "(cached) " >&6
10772else
10773  case "$XGETTEXT" in
10774  /*)
10775  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10776  ;;
10777  *)
10778  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10779  for ac_dir in $PATH; do
10780    test -z "$ac_dir" && ac_dir=.
10781    if test -f $ac_dir/$ac_word; then
10782      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
10783     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10784        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10785        break
10786      fi
10787    fi
10788  done
10789  IFS="$ac_save_ifs"
10790  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10791  ;;
10792esac
10793fi
10794XGETTEXT="$ac_cv_path_XGETTEXT"
10795if test "$XGETTEXT" != ":"; then
10796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10797$as_echo "$XGETTEXT" >&6; }
10798else
10799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
10801fi
10802
10803    rm -f messages.po
10804
10805    # Extract the first word of "msgmerge", so it can be a program name with args.
10806set dummy msgmerge; ac_word=$2
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808$as_echo_n "checking for $ac_word... " >&6; }
10809if ${ac_cv_path_MSGMERGE+:} false; then :
10810  $as_echo_n "(cached) " >&6
10811else
10812  case "$MSGMERGE" in
10813  /*)
10814  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10815  ;;
10816  *)
10817  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10818  for ac_dir in $PATH; do
10819    test -z "$ac_dir" && ac_dir=.
10820    if test -f $ac_dir/$ac_word; then
10821      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10822        ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
10823        break
10824      fi
10825    fi
10826  done
10827  IFS="$ac_save_ifs"
10828  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10829  ;;
10830esac
10831fi
10832MSGMERGE="$ac_cv_path_MSGMERGE"
10833if test "$MSGMERGE" != ":"; then
10834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10835$as_echo "$MSGMERGE" >&6; }
10836else
10837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838$as_echo "no" >&6; }
10839fi
10840
10841
10842      if test "$GMSGFMT" != ":"; then
10843            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10844       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10845      : ;
10846    else
10847      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10849$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
10850      GMSGFMT=":"
10851    fi
10852  fi
10853
10854      if test "$XGETTEXT" != ":"; then
10855            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
10856       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10857      : ;
10858    else
10859      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
10860$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
10861      XGETTEXT=":"
10862    fi
10863        rm -f messages.po
10864  fi
10865
10866  # Extract the first word of "msguniq", so it can be a program name with args.
10867set dummy msguniq; ac_word=$2
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
10870if ${ac_cv_path_MSGUNIQ+:} false; then :
10871  $as_echo_n "(cached) " >&6
10872else
10873  case $MSGUNIQ in
10874  [\\/]* | ?:[\\/]*)
10875  ac_cv_path_MSGUNIQ="$MSGUNIQ" # Let the user override the test with a path.
10876  ;;
10877  *)
10878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881  IFS=$as_save_IFS
10882  test -z "$as_dir" && as_dir=.
10883    for ac_exec_ext in '' $ac_executable_extensions; do
10884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885    ac_cv_path_MSGUNIQ="$as_dir/$ac_word$ac_exec_ext"
10886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887    break 2
10888  fi
10889done
10890  done
10891IFS=$as_save_IFS
10892
10893  test -z "$ac_cv_path_MSGUNIQ" && ac_cv_path_MSGUNIQ="$MSGUNIQ"
10894  ;;
10895esac
10896fi
10897MSGUNIQ=$ac_cv_path_MSGUNIQ
10898if test -n "$MSGUNIQ"; then
10899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGUNIQ" >&5
10900$as_echo "$MSGUNIQ" >&6; }
10901else
10902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903$as_echo "no" >&6; }
10904fi
10905
10906
10907
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS fvwm messages catalogs" >&5
10909$as_echo_n "checking for NLS fvwm messages catalogs... " >&6; }
10910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5
10911$as_echo "$ALL_LINGUAS" >&6; }
10912  POFILES=
10913  GMOFILES=
10914  UPDATEPOFILES=
10915  DUMMYPOFILES=
10916  for lang in $ALL_LINGUAS; do
10917    for dom in $ALL_DOMAINS; do
10918      POFILES="$POFILES $dom.$lang.po"
10919      GMOFILES="$GMOFILES $dom.$lang.gmo"
10920      UPDATEPOFILES="$UPDATEPOFILES $dom.$lang.po-update"
10921      DUMMYPOFILES="$DUMMYPOFILES $dom.$lang.nop"
10922    done
10923  done
10924  # CATALOGS depends on both $ac_dir and the user's LINGUAS environment variable.
10925  INST_LINGUAS=
10926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS desired catalogs to be installed" >&5
10927$as_echo_n "checking for NLS desired catalogs to be installed... " >&6; }
10928  #if test "%UNSET%" != "$LINGUAS"; then
10929  # FIXME: How to check if LINGUAS has been *set* to ""
10930  if test -n "$LINGUAS"; then
10931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10932$as_echo "$LINGUAS" >&6; }
10933  else
10934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: all" >&5
10935$as_echo "all" >&6; }
10936  fi
10937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS messages catalogs to be installed" >&5
10938$as_echo_n "checking for NLS messages catalogs to be installed... " >&6; }
10939  if test -n "$ALL_LINGUAS"; then
10940    for presentlang in $ALL_LINGUAS; do
10941      useit=no
10942      #if test "%UNSET%" != "$LINGUAS"; then
10943      if test -n "$LINGUAS"; then
10944        desiredlanguages="$LINGUAS"
10945      else
10946        desiredlanguages="$ALL_LINGUAS"
10947      fi
10948      for desiredlang in $desiredlanguages; do
10949        # Use the presentlang catalog if desiredlang is
10950        #   a. equal to presentlang, or
10951        #   b. a variant of presentlang (because in this case,
10952        #      presentlang can be used as a fallback for messages
10953        #      which are not translated in the desiredlang catalog).
10954        case "$desiredlang" in
10955          "$presentlang"*) useit=yes;;
10956        esac
10957      done
10958      if test $useit = yes; then
10959        INST_LINGUAS="$INST_LINGUAS $presentlang"
10960      fi
10961    done
10962  fi
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INST_LINGUAS" >&5
10964$as_echo "$INST_LINGUAS" >&6; }
10965  CATALOGS=
10966  if test -n "$INST_LINGUAS"; then
10967    for lang in $INST_LINGUAS; do
10968      CATALOGS="$CATALOGS $lang.gmo"
10969    done
10970  fi
10971
10972
10973
10974
10975  intl_LIBS=
10976  intl_CFLAGS=
10977  POSUB=
10978
10979  found_gettext=yes
10980
10981            $UNSET ac_cv_header_intl_h
10982  $UNSET ac_cv_func_gettext
10983  $UNSET ac_cv_func_bindtextdomain
10984  $UNSET ac_cv_func_textdomain
10985    $UNSET ac_cv_func_dgettext
10986  #bind_textdomain_codeset
10987  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10988if test "x$ac_cv_header_libintl_h" = xyes; then :
10989  for ac_func in gettext bindtextdomain textdomain dgettext
10990do :
10991  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10993if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10994  cat >>confdefs.h <<_ACEOF
10995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10996_ACEOF
10997
10998else
10999  found_gettext=no
11000fi
11001done
11002
11003else
11004  found_gettext=no
11005fi
11006
11007
11008
11009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnu gettext in libc" >&5
11010$as_echo_n "checking for gnu gettext in libc... " >&6; }
11011  if test x"$found_gettext" = "xyes"; then
11012    problem_gettext=" (libc)"
11013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11014$as_echo "yes" >&6; }
11015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a simple gettext program link" >&5
11016$as_echo_n "checking if a simple gettext program link... " >&6; }
11017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018/* end confdefs.h.  */
11019
11020      #include <libintl.h>
11021
11022int
11023main ()
11024{
11025const char *c; c = gettext("foo");
11026  ;
11027  return 0;
11028}
11029_ACEOF
11030if ac_fn_c_try_link "$LINENO"; then :
11031  found_gettext=yes;problem_gettext=" (libc)"
11032else
11033  found_gettext=no
11034fi
11035rm -f core conftest.err conftest.$ac_objext \
11036    conftest$ac_exeext conftest.$ac_ext
11037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_gettext" >&5
11038$as_echo "$found_gettext" >&6; }
11039  else
11040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
11042  fi
11043
11044  if test x"$found_gettext" = xno; then
11045        $UNSET ac_cv_header_intl_h
11046    $UNSET ac_cv_lib_intl_bindtextdomain
11047    $UNSET ac_cv_lib_intl_textdomain
11048    $UNSET ac_cv_lib_intl_dgettext
11049
11050smr_lib=intl
11051smr_header=libintl.h
11052
11053
11054smr_lib=intl
11055
11056
11057# Check whether --with-intl-library was given.
11058if test "${with_intl_library+set}" = set; then :
11059  withval=$with_intl_library;
11060    if test "$withval" = yes; then
11061        with_intl=yes
11062        intl_LIBS="-l${smr_lib}"
11063    elif test "$withval" = no; then
11064        with_intl=no
11065        intl_LIBS=
11066    else
11067        with_intl=yes
11068        if test -f "$withval"; then
11069            intl_LIBS=$withval
11070        elif test -d "$withval"; then
11071            intl_LIBS="-L$withval -l${smr_lib}"
11072        else
11073            as_fn_error $? "--with-intl-library argument must be yes/no, file or directory" "$LINENO" 5
11074        fi
11075    fi
11076
11077else
11078
11079    with_intl=maybe
11080    intl_LIBS="-l${smr_lib}"
11081
11082fi
11083
11084if test "$with_intl" != no; then
11085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
11086$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11087if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
11088  $as_echo_n "(cached) " >&6
11089else
11090  ac_check_lib_save_LIBS=$LIBS
11091LIBS="-lintl ${intl_LIBS} $LIBS"
11092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093/* end confdefs.h.  */
11094
11095/* Override any GCC internal prototype to avoid an error.
11096   Use char because int might match the return type of a GCC
11097   builtin and then its argument prototype would still apply.  */
11098#ifdef __cplusplus
11099extern "C"
11100#endif
11101char bindtextdomain ();
11102int
11103main ()
11104{
11105return bindtextdomain ();
11106  ;
11107  return 0;
11108}
11109_ACEOF
11110if ac_fn_c_try_link "$LINENO"; then :
11111  ac_cv_lib_intl_bindtextdomain=yes
11112else
11113  ac_cv_lib_intl_bindtextdomain=no
11114fi
11115rm -f core conftest.err conftest.$ac_objext \
11116    conftest$ac_exeext conftest.$ac_ext
11117LIBS=$ac_check_lib_save_LIBS
11118fi
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
11120$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11121if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
11122  smr_havelib=yes
11123else
11124  smr_havelib=no; problem_intl=": Can't find working lib$smr_lib"
11125fi
11126
11127    if test "$smr_havelib" = yes -a "$smr_header" != ""; then
11128
11129
11130
11131# Check whether --with-intl-includes was given.
11132if test "${with_intl_includes+set}" = set; then :
11133  withval=$with_intl_includes;
11134    if test -d "$withval"; then
11135        intl_CFLAGS="-I${withval}"
11136    else
11137        as_fn_error $? "argument must be a directory" "$LINENO" 5
11138    fi
11139fi
11140
11141
11142                smr_save_CPPFLAGS="$CPPFLAGS"
11143    CPPFLAGS="$CPPFLAGS ${intl_CFLAGS}"
11144
11145
11146    for ac_header in $smr_header
11147do :
11148  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11151  cat >>confdefs.h <<_ACEOF
11152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11153_ACEOF
11154
11155fi
11156
11157done
11158
11159
11160    CPPFLAGS=$smr_save_CPPFLAGS
11161
11162        smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'`
11163        if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then
11164            smr_havelib=no
11165            problem_intl=": Can't find working $smr_header"
11166        fi
11167    fi
11168    if test "$smr_havelib" = yes; then
11169        with_intl=yes
11170        problem_intl=
11171    else
11172        intl_LIBS=
11173        intl_CFLAGS=
11174        with_intl=no
11175    fi
11176else
11177    problem_intl=": Explicitly disabled"
11178fi
11179    if test x"$intl_LIBS" != x; then
11180      no_textdomain=no
11181      no_dgettext=no
11182      ac_save_CFLAGS="$CFLAGS"
11183      ac_save_LIBS="$LIBS"
11184      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
11185$as_echo_n "checking for textdomain in -lintl... " >&6; }
11186if ${ac_cv_lib_intl_textdomain+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  ac_check_lib_save_LIBS=$LIBS
11190LIBS="-lintl $intl_LIBS $iconv_LIBS $LIBS"
11191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h.  */
11193
11194/* Override any GCC internal prototype to avoid an error.
11195   Use char because int might match the return type of a GCC
11196   builtin and then its argument prototype would still apply.  */
11197#ifdef __cplusplus
11198extern "C"
11199#endif
11200char textdomain ();
11201int
11202main ()
11203{
11204return textdomain ();
11205  ;
11206  return 0;
11207}
11208_ACEOF
11209if ac_fn_c_try_link "$LINENO"; then :
11210  ac_cv_lib_intl_textdomain=yes
11211else
11212  ac_cv_lib_intl_textdomain=no
11213fi
11214rm -f core conftest.err conftest.$ac_objext \
11215    conftest$ac_exeext conftest.$ac_ext
11216LIBS=$ac_check_lib_save_LIBS
11217fi
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
11219$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
11220if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
11221  cat >>confdefs.h <<_ACEOF
11222#define HAVE_LIBINTL 1
11223_ACEOF
11224
11225  LIBS="-lintl $LIBS"
11226
11227else
11228  no_textdomain=yes
11229fi
11230
11231      if test "$no_textdomain" != "yes"; then
11232        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
11233$as_echo_n "checking for dgettext in -lintl... " >&6; }
11234if ${ac_cv_lib_intl_dgettext+:} false; then :
11235  $as_echo_n "(cached) " >&6
11236else
11237  ac_check_lib_save_LIBS=$LIBS
11238LIBS="-lintl $intl_LIBS $iconv_LIBS $LIBS"
11239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240/* end confdefs.h.  */
11241
11242/* Override any GCC internal prototype to avoid an error.
11243   Use char because int might match the return type of a GCC
11244   builtin and then its argument prototype would still apply.  */
11245#ifdef __cplusplus
11246extern "C"
11247#endif
11248char dgettext ();
11249int
11250main ()
11251{
11252return dgettext ();
11253  ;
11254  return 0;
11255}
11256_ACEOF
11257if ac_fn_c_try_link "$LINENO"; then :
11258  ac_cv_lib_intl_dgettext=yes
11259else
11260  ac_cv_lib_intl_dgettext=no
11261fi
11262rm -f core conftest.err conftest.$ac_objext \
11263    conftest$ac_exeext conftest.$ac_ext
11264LIBS=$ac_check_lib_save_LIBS
11265fi
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
11267$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11268if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
11269  cat >>confdefs.h <<_ACEOF
11270#define HAVE_LIBINTL 1
11271_ACEOF
11272
11273  LIBS="-lintl $LIBS"
11274
11275else
11276  no_dgettext=yes
11277fi
11278
11279        if test "$no_dgettext" != "yes"; then
11280          CFLAGS="$CFLAGS $intl_LIBS $iconv_LIBS"
11281          LIBS="$LIBS $intl_LIBS $iconv_LIBS"
11282          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a simple gettext program link" >&5
11283$as_echo_n "checking if a simple gettext program link... " >&6; }
11284          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h.  */
11286
11287          #include <libintl.h>
11288
11289int
11290main ()
11291{
11292const char *c; c = gettext("foo");
11293  ;
11294  return 0;
11295}
11296_ACEOF
11297if ac_fn_c_try_link "$LINENO"; then :
11298  found_gettext=yes;problem_gettext=" (intl library)"
11299else
11300  found_gettext=no
11301fi
11302rm -f core conftest.err conftest.$ac_objext \
11303    conftest$ac_exeext conftest.$ac_ext
11304          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_gettext" >&5
11305$as_echo "$found_gettext" >&6; }
11306        fi
11307      fi
11308      CFLAGS="$ac_save_CFLAGS"
11309      LIBS="$ac_save_LIBS"
11310    fi
11311  fi
11312
11313  if test "$found_gettext" = "yes"; then
11314        CATOBJEXT=.gmo
11315    USE_NLS=yes
11316        POSUB=po
11317  else
11318    USE_NLS=no
11319  fi
11320
11321
11322  if test x"$USE_NLS" = "xyes"; then
11323    $as_echo "#define HAVE_NLS 1" >>confdefs.h
11324
11325  else
11326    with_gettext="no"
11327    problem_gettext=": Failed to detected GNU gettext"
11328  fi
11329else
11330  USE_NLS=no
11331fi
11332
11333# libs and buil
11334
11335
11336
11337
11338
11339
11340# programs for devel
11341
11342
11343
11344
11345
11346#catalogs
11347
11348
11349
11350
11351
11352
11353
11354
11355# Check for REQUIRED headers and functions before going any
11356# further.
11357
11358# The module interface uses variadic functions for message passing.
11359for ac_header in stdarg.h
11360do :
11361  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11362if test "x$ac_cv_header_stdarg_h" = xyes; then :
11363  cat >>confdefs.h <<_ACEOF
11364#define HAVE_STDARG_H 1
11365_ACEOF
11366
11367fi
11368
11369done
11370
11371for ac_func in vfprintf
11372do :
11373  ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
11374if test "x$ac_cv_func_vfprintf" = xyes; then :
11375  cat >>confdefs.h <<_ACEOF
11376#define HAVE_VFPRINTF 1
11377_ACEOF
11378
11379fi
11380done
11381
11382if test x$ac_cv_header_stdarg_h = xno -o \
11383        $ac_cv_func_vfprintf = no; then
11384     as_fn_error $? "stdarg.h and vfprintf required" "$LINENO" 5
11385fi
11386
11387# For reaping children, fvwm needs either waitpid() or wait3()
11388# Some extra modules may need wait4() too
11389for ac_func in waitpid
11390do :
11391  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
11392if test "x$ac_cv_func_waitpid" = xyes; then :
11393  cat >>confdefs.h <<_ACEOF
11394#define HAVE_WAITPID 1
11395_ACEOF
11396
11397fi
11398done
11399
11400if test x$ac_cv_func_waitpid = xno; then
11401    for ac_func in wait3 wait4
11402do :
11403  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11404ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11405if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11406  cat >>confdefs.h <<_ACEOF
11407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408_ACEOF
11409
11410fi
11411done
11412
11413    if test x$ac_cv_func_wait3 = xno; then
11414        as_fn_error $? "Either waitpid or wait3 function is required" "$LINENO" 5
11415    fi
11416fi
11417
11418# C89/C99 signal handling
11419for ac_func in sigsetjmp siglongjmp
11420do :
11421  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11423if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11424  cat >>confdefs.h <<_ACEOF
11425#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11426_ACEOF
11427
11428fi
11429done
11430
11431
11432# Finish checking for programs.
11433
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11435$as_echo_n "checking whether ln -s works... " >&6; }
11436LN_S=$as_ln_s
11437if test "$LN_S" = "ln -s"; then
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439$as_echo "yes" >&6; }
11440else
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11442$as_echo "no, using $LN_S" >&6; }
11443fi
11444
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11446$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11447set x ${MAKE-make}
11448ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11449if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11450  $as_echo_n "(cached) " >&6
11451else
11452  cat >conftest.make <<\_ACEOF
11453SHELL = /bin/sh
11454all:
11455	@echo '@@@%%%=$(MAKE)=@@@%%%'
11456_ACEOF
11457# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11458case `${MAKE-make} -f conftest.make 2>/dev/null` in
11459  *@@@%%%=?*=@@@%%%*)
11460    eval ac_cv_prog_make_${ac_make}_set=yes;;
11461  *)
11462    eval ac_cv_prog_make_${ac_make}_set=no;;
11463esac
11464rm -f conftest.make
11465fi
11466if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11468$as_echo "yes" >&6; }
11469  SET_MAKE=
11470else
11471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472$as_echo "no" >&6; }
11473  SET_MAKE="MAKE=${MAKE-make}"
11474fi
11475
11476if test -n "$ac_tool_prefix"; then
11477  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11478set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480$as_echo_n "checking for $ac_word... " >&6; }
11481if ${ac_cv_prog_RANLIB+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  if test -n "$RANLIB"; then
11485  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11486else
11487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488for as_dir in $PATH
11489do
11490  IFS=$as_save_IFS
11491  test -z "$as_dir" && as_dir=.
11492    for ac_exec_ext in '' $ac_executable_extensions; do
11493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11494    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496    break 2
11497  fi
11498done
11499  done
11500IFS=$as_save_IFS
11501
11502fi
11503fi
11504RANLIB=$ac_cv_prog_RANLIB
11505if test -n "$RANLIB"; then
11506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11507$as_echo "$RANLIB" >&6; }
11508else
11509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510$as_echo "no" >&6; }
11511fi
11512
11513
11514fi
11515if test -z "$ac_cv_prog_RANLIB"; then
11516  ac_ct_RANLIB=$RANLIB
11517  # Extract the first word of "ranlib", so it can be a program name with args.
11518set dummy ranlib; ac_word=$2
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520$as_echo_n "checking for $ac_word... " >&6; }
11521if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11522  $as_echo_n "(cached) " >&6
11523else
11524  if test -n "$ac_ct_RANLIB"; then
11525  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11526else
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530  IFS=$as_save_IFS
11531  test -z "$as_dir" && as_dir=.
11532    for ac_exec_ext in '' $ac_executable_extensions; do
11533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11534    ac_cv_prog_ac_ct_RANLIB="ranlib"
11535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536    break 2
11537  fi
11538done
11539  done
11540IFS=$as_save_IFS
11541
11542fi
11543fi
11544ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11545if test -n "$ac_ct_RANLIB"; then
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11547$as_echo "$ac_ct_RANLIB" >&6; }
11548else
11549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
11551fi
11552
11553  if test "x$ac_ct_RANLIB" = x; then
11554    RANLIB=":"
11555  else
11556    case $cross_compiling:$ac_tool_warned in
11557yes:)
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11560ac_tool_warned=yes ;;
11561esac
11562    RANLIB=$ac_ct_RANLIB
11563  fi
11564else
11565  RANLIB="$ac_cv_prog_RANLIB"
11566fi
11567
11568
11569# Checks for header files.
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11571$as_echo_n "checking for ANSI C header files... " >&6; }
11572if ${ac_cv_header_stdc+:} false; then :
11573  $as_echo_n "(cached) " >&6
11574else
11575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h.  */
11577#include <stdlib.h>
11578#include <stdarg.h>
11579#include <string.h>
11580#include <float.h>
11581
11582int
11583main ()
11584{
11585
11586  ;
11587  return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_compile "$LINENO"; then :
11591  ac_cv_header_stdc=yes
11592else
11593  ac_cv_header_stdc=no
11594fi
11595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596
11597if test $ac_cv_header_stdc = yes; then
11598  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600/* end confdefs.h.  */
11601#include <string.h>
11602
11603_ACEOF
11604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11605  $EGREP "memchr" >/dev/null 2>&1; then :
11606
11607else
11608  ac_cv_header_stdc=no
11609fi
11610rm -f conftest*
11611
11612fi
11613
11614if test $ac_cv_header_stdc = yes; then
11615  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617/* end confdefs.h.  */
11618#include <stdlib.h>
11619
11620_ACEOF
11621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11622  $EGREP "free" >/dev/null 2>&1; then :
11623
11624else
11625  ac_cv_header_stdc=no
11626fi
11627rm -f conftest*
11628
11629fi
11630
11631if test $ac_cv_header_stdc = yes; then
11632  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11633  if test "$cross_compiling" = yes; then :
11634  :
11635else
11636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637/* end confdefs.h.  */
11638#include <ctype.h>
11639#include <stdlib.h>
11640#if ((' ' & 0x0FF) == 0x020)
11641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11643#else
11644# define ISLOWER(c) \
11645		   (('a' <= (c) && (c) <= 'i') \
11646		     || ('j' <= (c) && (c) <= 'r') \
11647		     || ('s' <= (c) && (c) <= 'z'))
11648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11649#endif
11650
11651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11652int
11653main ()
11654{
11655  int i;
11656  for (i = 0; i < 256; i++)
11657    if (XOR (islower (i), ISLOWER (i))
11658	|| toupper (i) != TOUPPER (i))
11659      return 2;
11660  return 0;
11661}
11662_ACEOF
11663if ac_fn_c_try_run "$LINENO"; then :
11664
11665else
11666  ac_cv_header_stdc=no
11667fi
11668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11669  conftest.$ac_objext conftest.beam conftest.$ac_ext
11670fi
11671
11672fi
11673fi
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11675$as_echo "$ac_cv_header_stdc" >&6; }
11676if test $ac_cv_header_stdc = yes; then
11677
11678$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11679
11680fi
11681
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11683$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11684if ${ac_cv_header_sys_wait_h+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h.  */
11689#include <sys/types.h>
11690#include <sys/wait.h>
11691#ifndef WEXITSTATUS
11692# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11693#endif
11694#ifndef WIFEXITED
11695# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11696#endif
11697
11698int
11699main ()
11700{
11701  int s;
11702  wait (&s);
11703  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11704  ;
11705  return 0;
11706}
11707_ACEOF
11708if ac_fn_c_try_compile "$LINENO"; then :
11709  ac_cv_header_sys_wait_h=yes
11710else
11711  ac_cv_header_sys_wait_h=no
11712fi
11713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714fi
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11716$as_echo "$ac_cv_header_sys_wait_h" >&6; }
11717if test $ac_cv_header_sys_wait_h = yes; then
11718
11719$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11720
11721fi
11722
11723for ac_header in stdlib.h fcntl.h limits.h malloc.h string.h memory.h unistd.h
11724do :
11725  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11726ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11728  cat >>confdefs.h <<_ACEOF
11729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11730_ACEOF
11731
11732fi
11733
11734done
11735
11736for ac_header in stdint.h inttypes.h
11737do :
11738  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11739ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11740if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11741  cat >>confdefs.h <<_ACEOF
11742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11743_ACEOF
11744
11745fi
11746
11747done
11748
11749for ac_header in getopt.h sys/select.h sys/systeminfo.h sys/time.h
11750do :
11751  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11752ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11753if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11754  cat >>confdefs.h <<_ACEOF
11755#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11756_ACEOF
11757
11758fi
11759
11760done
11761
11762
11763# Checks for typedefs, structures, and compiler characteristics.
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11765$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11766if ${ac_cv_c_const+:} false; then :
11767  $as_echo_n "(cached) " >&6
11768else
11769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770/* end confdefs.h.  */
11771
11772int
11773main ()
11774{
11775
11776#ifndef __cplusplus
11777  /* Ultrix mips cc rejects this sort of thing.  */
11778  typedef int charset[2];
11779  const charset cs = { 0, 0 };
11780  /* SunOS 4.1.1 cc rejects this.  */
11781  char const *const *pcpcc;
11782  char **ppc;
11783  /* NEC SVR4.0.2 mips cc rejects this.  */
11784  struct point {int x, y;};
11785  static struct point const zero = {0,0};
11786  /* AIX XL C 1.02.0.0 rejects this.
11787     It does not let you subtract one const X* pointer from another in
11788     an arm of an if-expression whose if-part is not a constant
11789     expression */
11790  const char *g = "string";
11791  pcpcc = &g + (g ? g-g : 0);
11792  /* HPUX 7.0 cc rejects these. */
11793  ++pcpcc;
11794  ppc = (char**) pcpcc;
11795  pcpcc = (char const *const *) ppc;
11796  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11797    char tx;
11798    char *t = &tx;
11799    char const *s = 0 ? (char *) 0 : (char const *) 0;
11800
11801    *t++ = 0;
11802    if (s) return 0;
11803  }
11804  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11805    int x[] = {25, 17};
11806    const int *foo = &x[0];
11807    ++foo;
11808  }
11809  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11810    typedef const int *iptr;
11811    iptr p = 0;
11812    ++p;
11813  }
11814  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11815       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11816    struct s { int j; const int *ap[3]; } bx;
11817    struct s *b = &bx; b->j = 5;
11818  }
11819  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11820    const int foo = 10;
11821    if (!foo) return 0;
11822  }
11823  return !cs[0] && !zero.x;
11824#endif
11825
11826  ;
11827  return 0;
11828}
11829_ACEOF
11830if ac_fn_c_try_compile "$LINENO"; then :
11831  ac_cv_c_const=yes
11832else
11833  ac_cv_c_const=no
11834fi
11835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836fi
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11838$as_echo "$ac_cv_c_const" >&6; }
11839if test $ac_cv_c_const = no; then
11840
11841$as_echo "#define const /**/" >>confdefs.h
11842
11843fi
11844
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11846$as_echo_n "checking for inline... " >&6; }
11847if ${ac_cv_c_inline+:} false; then :
11848  $as_echo_n "(cached) " >&6
11849else
11850  ac_cv_c_inline=no
11851for ac_kw in inline __inline__ __inline; do
11852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853/* end confdefs.h.  */
11854#ifndef __cplusplus
11855typedef int foo_t;
11856static $ac_kw foo_t static_foo () {return 0; }
11857$ac_kw foo_t foo () {return 0; }
11858#endif
11859
11860_ACEOF
11861if ac_fn_c_try_compile "$LINENO"; then :
11862  ac_cv_c_inline=$ac_kw
11863fi
11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865  test "$ac_cv_c_inline" != no && break
11866done
11867
11868fi
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11870$as_echo "$ac_cv_c_inline" >&6; }
11871
11872case $ac_cv_c_inline in
11873  inline | yes) ;;
11874  *)
11875    case $ac_cv_c_inline in
11876      no) ac_val=;;
11877      *) ac_val=$ac_cv_c_inline;;
11878    esac
11879    cat >>confdefs.h <<_ACEOF
11880#ifndef __cplusplus
11881#define inline $ac_val
11882#endif
11883_ACEOF
11884    ;;
11885esac
11886
11887ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11888if test "x$ac_cv_type_off_t" = xyes; then :
11889
11890else
11891
11892cat >>confdefs.h <<_ACEOF
11893#define off_t long int
11894_ACEOF
11895
11896fi
11897
11898ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11899if test "x$ac_cv_type_pid_t" = xyes; then :
11900
11901else
11902
11903cat >>confdefs.h <<_ACEOF
11904#define pid_t int
11905_ACEOF
11906
11907fi
11908
11909ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11910if test "x$ac_cv_type_size_t" = xyes; then :
11911
11912else
11913
11914cat >>confdefs.h <<_ACEOF
11915#define size_t unsigned int
11916_ACEOF
11917
11918fi
11919
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11921$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11922if ${ac_cv_header_time+:} false; then :
11923  $as_echo_n "(cached) " >&6
11924else
11925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h.  */
11927#include <sys/types.h>
11928#include <sys/time.h>
11929#include <time.h>
11930
11931int
11932main ()
11933{
11934if ((struct tm *) 0)
11935return 0;
11936  ;
11937  return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_compile "$LINENO"; then :
11941  ac_cv_header_time=yes
11942else
11943  ac_cv_header_time=no
11944fi
11945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11946fi
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11948$as_echo "$ac_cv_header_time" >&6; }
11949if test $ac_cv_header_time = yes; then
11950
11951$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11952
11953fi
11954
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11956$as_echo_n "checking return type of signal handlers... " >&6; }
11957if ${ac_cv_type_signal+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h.  */
11962#include <sys/types.h>
11963#include <signal.h>
11964
11965int
11966main ()
11967{
11968return *(signal (0, 0)) (0) == 1;
11969  ;
11970  return 0;
11971}
11972_ACEOF
11973if ac_fn_c_try_compile "$LINENO"; then :
11974  ac_cv_type_signal=int
11975else
11976  ac_cv_type_signal=void
11977fi
11978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979fi
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11981$as_echo "$ac_cv_type_signal" >&6; }
11982
11983cat >>confdefs.h <<_ACEOF
11984#define RETSIGTYPE $ac_cv_type_signal
11985_ACEOF
11986
11987
11988ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
11989case $ac_cv_c_int16_t in #(
11990  no|yes) ;; #(
11991  *)
11992
11993cat >>confdefs.h <<_ACEOF
11994#define int16_t $ac_cv_c_int16_t
11995_ACEOF
11996;;
11997esac
11998
11999ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
12000case $ac_cv_c_uint16_t in #(
12001  no|yes) ;; #(
12002  *)
12003
12004
12005cat >>confdefs.h <<_ACEOF
12006#define uint16_t $ac_cv_c_uint16_t
12007_ACEOF
12008;;
12009  esac
12010
12011
12012# Checks for library functions.
12013for ac_func in strftime
12014do :
12015  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12016if test "x$ac_cv_func_strftime" = xyes; then :
12017  cat >>confdefs.h <<_ACEOF
12018#define HAVE_STRFTIME 1
12019_ACEOF
12020
12021else
12022  # strftime is in -lintl on SCO UNIX.
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12024$as_echo_n "checking for strftime in -lintl... " >&6; }
12025if ${ac_cv_lib_intl_strftime+:} false; then :
12026  $as_echo_n "(cached) " >&6
12027else
12028  ac_check_lib_save_LIBS=$LIBS
12029LIBS="-lintl  $LIBS"
12030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031/* end confdefs.h.  */
12032
12033/* Override any GCC internal prototype to avoid an error.
12034   Use char because int might match the return type of a GCC
12035   builtin and then its argument prototype would still apply.  */
12036#ifdef __cplusplus
12037extern "C"
12038#endif
12039char strftime ();
12040int
12041main ()
12042{
12043return strftime ();
12044  ;
12045  return 0;
12046}
12047_ACEOF
12048if ac_fn_c_try_link "$LINENO"; then :
12049  ac_cv_lib_intl_strftime=yes
12050else
12051  ac_cv_lib_intl_strftime=no
12052fi
12053rm -f core conftest.err conftest.$ac_objext \
12054    conftest$ac_exeext conftest.$ac_ext
12055LIBS=$ac_check_lib_save_LIBS
12056fi
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12058$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12059if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12060  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12061
12062LIBS="-lintl $LIBS"
12063fi
12064
12065fi
12066done
12067
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12069$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12070if ${ac_cv_func_setpgrp_void+:} false; then :
12071  $as_echo_n "(cached) " >&6
12072else
12073  if test "$cross_compiling" = yes; then :
12074  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
12075else
12076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077/* end confdefs.h.  */
12078$ac_includes_default
12079int
12080main ()
12081{
12082/* If this system has a BSD-style setpgrp which takes arguments,
12083  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12084  exit successfully. */
12085  return setpgrp (1,1) != -1;
12086  ;
12087  return 0;
12088}
12089_ACEOF
12090if ac_fn_c_try_run "$LINENO"; then :
12091  ac_cv_func_setpgrp_void=no
12092else
12093  ac_cv_func_setpgrp_void=yes
12094fi
12095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12096  conftest.$ac_objext conftest.beam conftest.$ac_ext
12097fi
12098
12099fi
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12101$as_echo "$ac_cv_func_setpgrp_void" >&6; }
12102if test $ac_cv_func_setpgrp_void = yes; then
12103
12104$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12105
12106fi
12107
12108for ac_func in gettimeofday mkfifo putenv setvbuf socket waitpid
12109do :
12110  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12112if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12113  cat >>confdefs.h <<_ACEOF
12114#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12115_ACEOF
12116
12117fi
12118done
12119
12120for ac_func in strdup strstr strtol memmove memcpy strchr sysconf uname div
12121do :
12122  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12123ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12124if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12125  cat >>confdefs.h <<_ACEOF
12126#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127_ACEOF
12128
12129fi
12130done
12131
12132for ac_func in sigaction siginterrupt getpwuid
12133do :
12134  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12135ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12136if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12137  cat >>confdefs.h <<_ACEOF
12138#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12139_ACEOF
12140
12141fi
12142done
12143
12144for ac_func in setpgrp setpgid
12145do :
12146  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12147ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12148if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12149  cat >>confdefs.h <<_ACEOF
12150#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12151_ACEOF
12152
12153fi
12154done
12155
12156for ac_func in lstat
12157do :
12158  ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
12159if test "x$ac_cv_func_lstat" = xyes; then :
12160  cat >>confdefs.h <<_ACEOF
12161#define HAVE_LSTAT 1
12162_ACEOF
12163
12164fi
12165done
12166
12167
12168
12169
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
12171$as_echo_n "checking for sig_atomic_t... " >&6; }
12172if ${ac_cv_type_sig_atomic_t+:} false; then :
12173  $as_echo_n "(cached) " >&6
12174else
12175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176/* end confdefs.h.  */
12177#include <sys/types.h>
12178#if STDC_HEADERS
12179#include <stdlib.h>
12180#include <stddef.h>
12181#endif
12182#include <signal.h>
12183_ACEOF
12184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12185  $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12186  ac_cv_type_sig_atomic_t=yes
12187else
12188  ac_cv_type_$1=no
12189fi
12190rm -f conftest*
12191
12192fi
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
12194$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
12195if test $ac_cv_type_sig_atomic_t = no; then
12196
12197  cat >>confdefs.h <<_ACEOF
12198#define sig_atomic_t int
12199_ACEOF
12200
12201fi
12202
12203
12204if test x$ac_cv_func_setvbuf = xyes; then
12205  if ${ac_cv_func_setvbuf_reversed+:} false; then :
12206  $as_echo_n "(cached) " >&6
12207else
12208  ac_cv_func_setvbuf_reversed=no
12209fi
12210
12211
12212fi
12213
12214for ac_func in select
12215do :
12216  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
12217if test "x$ac_cv_func_select" = xyes; then :
12218  cat >>confdefs.h <<_ACEOF
12219#define HAVE_SELECT 1
12220_ACEOF
12221
12222fi
12223done
12224
12225if test "$ac_cv_func_select" = yes; then
12226  for ac_header in unistd.h sys/types.h sys/time.h sys/select.h sys/socket.h
12227do :
12228  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12229ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12230if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12231  cat >>confdefs.h <<_ACEOF
12232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12233_ACEOF
12234
12235fi
12236
12237done
12238
12239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument types of select()" >&5
12240$as_echo_n "checking argument types of select()... " >&6; }
12241  if ${ac_cv_type_fd_set_size_t+:} false; then :
12242  $as_echo_n "(cached) " >&6
12243else
12244      if ${ac_cv_type_fd_set+:} false; then :
12245  $as_echo_n "(cached) " >&6
12246else
12247        for ac_cv_type_fd_set in 'fd_set' 'int' 'void'; do
12248        for ac_cv_type_fd_set_size_t in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12249	  for ac_type_timeval in 'struct timeval' 'const struct timeval'; do
12250            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251/* end confdefs.h.  */
12252#ifdef HAVE_SYS_TIME_H
12253#include <sys/time.h>
12254#endif
12255#ifdef HAVE_SYS_TYPES_H
12256#include <sys/types.h>
12257#endif
12258#ifdef HAVE_UNISTD_H
12259#include <unistd.h>
12260#endif
12261#ifdef HAVE_SYS_SELECT_H
12262#include <sys/select.h>
12263#endif
12264#ifdef HAVE_SYS_SOCKET_H
12265#include <sys/socket.h>
12266#endif
12267int
12268main ()
12269{
12270extern select ($ac_cv_type_fd_set_size_t,
12271 $ac_cv_type_fd_set *,	$ac_cv_type_fd_set *, $ac_cv_type_fd_set *,
12272 $ac_type_timeval *);
12273  ;
12274  return 0;
12275}
12276_ACEOF
12277if ac_fn_c_try_compile "$LINENO"; then :
12278  ac_found=yes ; break 3
12279else
12280  ac_found=no
12281fi
12282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283          done
12284        done
12285      done
12286
12287fi
12288
12289fi
12290  if test "$ac_found" = no; then
12291    as_fn_error $? "can not determine argument types" "$LINENO" 5
12292  fi
12293
12294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)" >&5
12295$as_echo "select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)" >&6; }
12296
12297  cat >>confdefs.h <<_ACEOF
12298#define fd_set_size_t $ac_cv_type_fd_set_size_t
12299_ACEOF
12300
12301  ac_cast=
12302  if test "$ac_cv_type_fd_set" != fd_set; then
12303    # Arguments 2-4 are not fd_set.  Some weirdo systems use fd_set type for
12304    # FD_SET macros, but insist that you cast the argument to select.  I don't
12305    # understand why that might be, but it means we cannot define fd_set.
12306    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h.  */
12308#ifdef HAVE_SYS_TIME_H
12309#include <sys/time.h>
12310#endif
12311#ifdef HAVE_SYS_TYPES_H
12312#include <sys/types.h>
12313#endif
12314#ifdef HAVE_UNISTD_H
12315#include <unistd.h>
12316#endif
12317#ifdef HAVE_SYS_SELECT_H
12318#include <sys/select.h>
12319#endif
12320#ifdef HAVE_SYS_SOCKET_H
12321#include <sys/socket.h>
12322#endif
12323_ACEOF
12324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12325  $EGREP "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12326      # We found fd_set type in a header, need special cast
12327    ac_cast="($ac_cv_type_fd_set *)"
12328else
12329      # No fd_set type; it is safe to define it
12330
12331    cat >>confdefs.h <<_ACEOF
12332#define fd_set $ac_cv_type_fd_set
12333_ACEOF
12334
12335fi
12336rm -f conftest*
12337
12338  fi
12339
12340  cat >>confdefs.h <<_ACEOF
12341#define SELECT_FD_SET_CAST $ac_cast
12342_ACEOF
12343
12344fi
12345
12346if test ! x"$ac_cv_func_select" = xyes; then
12347  as_fn_error $? "select required" "$LINENO" 5
12348fi
12349
12350# check for mkstemp, see the discution on this subject on the fvwm workers
12351# list (2001-02-16 and 2001-02-24)
12352
12353  for ac_func in mkstemp
12354do :
12355  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12356if test "x$ac_cv_func_mkstemp" = xyes; then :
12357  cat >>confdefs.h <<_ACEOF
12358#define HAVE_MKSTEMP 1
12359_ACEOF
12360
12361fi
12362done
12363
12364  has_safety_mkstemp=no
12365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp is safe" >&5
12366$as_echo_n "checking if mkstemp is safe... " >&6; }
12367  if test x$ac_cv_func_mkstemp != xno; then
12368    if test "$cross_compiling" = yes; then :
12369  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12371as_fn_error $? "cannot run test program while cross compiling
12372See \`config.log' for more details" "$LINENO" 5; }
12373else
12374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h.  */
12376
12377#include <stdio.h>
12378#include <stdlib.h>
12379#include <string.h>
12380int main(void)
12381{
12382  char template[128];
12383  char template_orig[128];
12384  int fd;
12385
12386  sprintf(template, "configure-mkstemp-test.XXXXXX");
12387  strcpy(template_orig, template);
12388  fd = mkstemp(template);
12389  if (fd == -1)
12390  {
12391    /* could not create temp file */
12392    return 1;
12393  }
12394  if (strcmp(template, template_orig) == 0)
12395  {
12396    /* mkstemp broken */
12397    return 2;
12398  }
12399  if (close(fd) != 0)
12400  {
12401    /* doh! */
12402    return 3;
12403  }
12404  if (unlink(template))
12405  {
12406     return 4;
12407  }
12408  /* mkstemp works properly */
12409  return 0;
12410}
12411
12412_ACEOF
12413if ac_fn_c_try_run "$LINENO"; then :
12414  has_safety_mkstemp=yes
12415else
12416  has_safety_mkstemp=no
12417fi
12418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12419  conftest.$ac_objext conftest.beam conftest.$ac_ext
12420fi
12421
12422  fi
12423
12424  if test x$has_safety_mkstemp = xno; then
12425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426$as_echo "no" >&6; }
12427  else
12428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12429$as_echo "yes" >&6; }
12430    $as_echo "#define HAVE_SAFETY_MKSTEMP 1" >>confdefs.h
12431
12432  fi
12433
12434
12435# ********* IMLIB, GNOME
12436# Check the availability of gdk-imlib
12437
12438
12439# Check whether --with-imlib-prefix was given.
12440if test "${with_imlib_prefix+set}" = set; then :
12441  withval=$with_imlib_prefix; imlib_prefix="$withval"
12442else
12443  imlib_prefix=""
12444fi
12445
12446
12447# Check whether --with-imlib-exec-prefix was given.
12448if test "${with_imlib_exec_prefix+set}" = set; then :
12449  withval=$with_imlib_exec_prefix; imlib_exec_prefix="$withval"
12450else
12451  imlib_exec_prefix=""
12452fi
12453
12454# Check whether --enable-imlibtest was given.
12455if test "${enable_imlibtest+set}" = set; then :
12456  enableval=$enable_imlibtest;
12457else
12458  enable_imlibtest=yes
12459fi
12460
12461
12462  if test x$imlib_exec_prefix != x ; then
12463     imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix"
12464     if test x${IMLIBCONF+set} != xset ; then
12465        IMLIBCONF=$imlib_exec_prefix/bin/imlib-config
12466     fi
12467  fi
12468  if test x$imlib_prefix != x ; then
12469     imlib_args="$imlib_args --prefix=$imlib_prefix"
12470     if test x${IMLIBCONF+set} != xset ; then
12471        IMLIBCONF=$imlib_prefix/bin/imlib-config
12472     fi
12473  fi
12474
12475  # Extract the first word of "imlib-config", so it can be a program name with args.
12476set dummy imlib-config; ac_word=$2
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478$as_echo_n "checking for $ac_word... " >&6; }
12479if ${ac_cv_path_IMLIBCONF+:} false; then :
12480  $as_echo_n "(cached) " >&6
12481else
12482  case $IMLIBCONF in
12483  [\\/]* | ?:[\\/]*)
12484  ac_cv_path_IMLIBCONF="$IMLIBCONF" # Let the user override the test with a path.
12485  ;;
12486  *)
12487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488for as_dir in $PATH
12489do
12490  IFS=$as_save_IFS
12491  test -z "$as_dir" && as_dir=.
12492    for ac_exec_ext in '' $ac_executable_extensions; do
12493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12494    ac_cv_path_IMLIBCONF="$as_dir/$ac_word$ac_exec_ext"
12495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496    break 2
12497  fi
12498done
12499  done
12500IFS=$as_save_IFS
12501
12502  test -z "$ac_cv_path_IMLIBCONF" && ac_cv_path_IMLIBCONF="no"
12503  ;;
12504esac
12505fi
12506IMLIBCONF=$ac_cv_path_IMLIBCONF
12507if test -n "$IMLIBCONF"; then
12508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMLIBCONF" >&5
12509$as_echo "$IMLIBCONF" >&6; }
12510else
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515
12516  min_imlib_version=1.8.0
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK IMLIB - version >= $min_imlib_version" >&5
12518$as_echo_n "checking for GDK IMLIB - version >= $min_imlib_version... " >&6; }
12519  no_imlib=""
12520  if test "$IMLIBCONF" = "no" ; then
12521    no_imlib=yes
12522  else
12523    GDK_IMLIB_CFLAGS=`$IMLIBCONF $imlibconf_args --cflags-gdk`
12524    GDK_IMLIB_LIBS=`$IMLIBCONF $imlibconf_args --libs-gdk`
12525
12526    imlib_major_version=`$IMLIBCONF $imlib_args --version | \
12527           sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'`
12528    imlib_minor_version=`$IMLIBCONF $imlib_args --version | \
12529           sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'`
12530    if test "x$enable_imlibtest" = "xyes" ; then
12531      ac_save_CFLAGS="$CFLAGS"
12532      ac_save_LIBS="$LIBS"
12533      CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
12534      LIBS="$LIBS $GDK_IMLIB_LIBS"
12535      rm -f conf.imlibtest
12536      if test "$cross_compiling" = yes; then :
12537  echo $ac_n "cross compiling; assumed OK... $ac_c"
12538else
12539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540/* end confdefs.h.  */
12541
12542#include <stdio.h>
12543#include <stdlib.h>
12544#include <gdk_imlib.h>
12545
12546/* migo: originally it was GdkImLibColor with incorrect spelling */
12547GdkImlibImage testimage;
12548
12549int main ()
12550{
12551  int major, minor;
12552  char *tmp_version;
12553
12554  system ("touch conf.gdkimlibtest");
12555
12556  /* HP/UX 9 (%@#!) writes to sscanf strings */
12557  tmp_version = g_strdup("$min_imlib_version");
12558  if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
12559     printf("%s, bad version string\n", "$min_imlib_version");
12560     exit(1);
12561   }
12562
12563    if (($imlib_major_version > major) ||
12564        (($imlib_major_version == major) && ($imlib_minor_version > minor)))
12565    {
12566      return 0;
12567    }
12568  else
12569    {
12570      printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version);
12571      printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor);
12572      printf("*** best to upgrade to the required version.\n");
12573      printf("*** If imlib-config was wrong, set the environment variable IMLIBCONF\n");
12574      printf("*** to point to the correct copy of imlib-config, and remove the file\n");
12575      printf("*** config.cache before re-running configure\n");
12576      return 1;
12577    }
12578}
12579
12580
12581_ACEOF
12582if ac_fn_c_try_run "$LINENO"; then :
12583
12584else
12585  no_imlib=yes
12586fi
12587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12588  conftest.$ac_objext conftest.beam conftest.$ac_ext
12589fi
12590
12591       CFLAGS="$ac_save_CFLAGS"
12592       LIBS="$ac_save_LIBS"
12593     fi
12594  fi
12595  if test "x$no_imlib" = x ; then
12596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12597$as_echo "yes" >&6; }
12598     $as_echo "#define GDK_IMLIB 1" >>confdefs.h
12599
12600  else
12601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602$as_echo "no" >&6; }
12603     if test "$IMLIBCONF" = "no" ; then
12604                       (echo "*** The imlib-config script installed by IMLIB could not be found" >&5) 2>/dev/null || \
12605       echo "*** The imlib-config script installed by IMLIB could not be found"
12606                       (echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in" >&5) 2>/dev/null || \
12607       echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in"
12608                       (echo "*** your path, or set the IMLIBCONF environment variable to the" >&5) 2>/dev/null || \
12609       echo "*** your path, or set the IMLIBCONF environment variable to the"
12610                       (echo "*** full path to imlib-config." >&5) 2>/dev/null || \
12611       echo "*** full path to imlib-config."
12612     else
12613       if test -f conf.gdkimlibtest ; then
12614        :
12615       else
12616                          (echo "*** Could not run IMLIB test program, checking why..." >&5) 2>/dev/null || \
12617          echo "*** Could not run IMLIB test program, checking why..."
12618          CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
12619          LIBS="$LIBS $GDK_IMLIB_LIBS"
12620          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621/* end confdefs.h.  */
12622
12623#include <stdio.h>
12624#include <gdk_imlib.h>
12625
12626int
12627main ()
12628{
12629 return 0;
12630  ;
12631  return 0;
12632}
12633_ACEOF
12634if ac_fn_c_try_link "$LINENO"; then :
12635                   (echo "*** The test program compiled, but did not run. This usually means" >&5) 2>/dev/null || \
12636          echo "*** The test program compiled, but did not run. This usually means"
12637                          (echo "*** that the run-time linker is not finding IMLIB or finding the wrong" >&5) 2>/dev/null || \
12638          echo "*** that the run-time linker is not finding IMLIB or finding the wrong"
12639                          (echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your" >&5) 2>/dev/null || \
12640          echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your"
12641                          (echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" >&5) 2>/dev/null || \
12642          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12643                          (echo "*** to the installed location  Also, make sure you have run ldconfig if that" >&5) 2>/dev/null || \
12644          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12645                          (echo "*** is required on your system" >&5) 2>/dev/null || \
12646          echo "*** is required on your system"
12647                          (echo "***" >&5) 2>/dev/null || \
12648          echo "***"
12649                          (echo "*** If you have an old version installed, it is best to remove it, although" >&5) 2>/dev/null || \
12650          echo "*** If you have an old version installed, it is best to remove it, although"
12651                          (echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" >&5) 2>/dev/null || \
12652          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12653else
12654                   (echo "*** The test program failed to compile or link. See the file config.log for the" >&5) 2>/dev/null || \
12655          echo "*** The test program failed to compile or link. See the file config.log for the"
12656                          (echo "*** exact error that occured. This usually means IMLIB was incorrectly installed" >&5) 2>/dev/null || \
12657          echo "*** exact error that occured. This usually means IMLIB was incorrectly installed"
12658                          (echo "*** or that you have moved IMLIB since it was installed. In the latter case, you" >&5) 2>/dev/null || \
12659          echo "*** or that you have moved IMLIB since it was installed. In the latter case, you"
12660                          (echo "*** may want to edit the imlib-config script: $IMLIBCONF" >&5) 2>/dev/null || \
12661          echo "*** may want to edit the imlib-config script: $IMLIBCONF"
12662fi
12663rm -f core conftest.err conftest.$ac_objext \
12664    conftest$ac_exeext conftest.$ac_ext
12665          CFLAGS="$ac_save_CFLAGS"
12666          LIBS="$ac_save_LIBS"
12667       fi
12668     fi
12669     GDK_IMLIB_CFLAGS=""
12670     GDK_IMLIB_LIBS=""
12671     :
12672  fi
12673
12674
12675  rm -f conf.gdkimlibtest
12676
12677if test x"$no_imlib" = x; then
12678  with_gdkimlib=yes
12679  problem_gdkimlib=""
12680else
12681  with_gdkimlib=no
12682  problem_gdkimlib=": Failed on gdk-imlib, see config.log"
12683fi
12684
12685# Define some compatibility macros needed for config.h.
12686
12687mg_save_CPPFLAGS="$CPPFLAGS"
12688CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12689
12690
12691if test "$cross_compiling" = yes; then :
12692  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12694as_fn_error $? "cannot run test program while cross compiling
12695See \`config.log' for more details" "$LINENO" 5; }
12696else
12697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698/* end confdefs.h.  */
12699
12700#include <stdio.h>
12701int main(int c, char **v) {
12702#include <X11/keysym.h>
12703#if defined XK_Page_Up && defined XK_Page_Down
12704  return 0;
12705#else
12706  return 1;
12707#endif
12708}
12709
12710_ACEOF
12711if ac_fn_c_try_run "$LINENO"; then :
12712  :
12713else
12714  $as_echo "#define COMPAT_OLD_KEYSYMDEF 1" >>confdefs.h
12715
12716fi
12717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12718  conftest.$ac_objext conftest.beam conftest.$ac_ext
12719fi
12720
12721
12722CPPFLAGS="$mg_save_CPPFLAGS"
12723
12724
12725
12726# Allow building with dmalloc.  Do this last to avoid screwing up any
12727# other checks above.
12728case "$ac_cv_dmalloc" in
12729  yes) for ac_header in dmalloc.h
12730do :
12731  ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
12732if test "x$ac_cv_header_dmalloc_h" = xyes; then :
12733  cat >>confdefs.h <<_ACEOF
12734#define HAVE_DMALLOC_H 1
12735_ACEOF
12736
12737fi
12738
12739done
12740
12741       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -ldmalloc" >&5
12742$as_echo_n "checking for dmalloc_shutdown in -ldmalloc... " >&6; }
12743if ${ac_cv_lib_dmalloc_dmalloc_shutdown+:} false; then :
12744  $as_echo_n "(cached) " >&6
12745else
12746  ac_check_lib_save_LIBS=$LIBS
12747LIBS="-ldmalloc  $LIBS"
12748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749/* end confdefs.h.  */
12750
12751/* Override any GCC internal prototype to avoid an error.
12752   Use char because int might match the return type of a GCC
12753   builtin and then its argument prototype would still apply.  */
12754#ifdef __cplusplus
12755extern "C"
12756#endif
12757char dmalloc_shutdown ();
12758int
12759main ()
12760{
12761return dmalloc_shutdown ();
12762  ;
12763  return 0;
12764}
12765_ACEOF
12766if ac_fn_c_try_link "$LINENO"; then :
12767  ac_cv_lib_dmalloc_dmalloc_shutdown=yes
12768else
12769  ac_cv_lib_dmalloc_dmalloc_shutdown=no
12770fi
12771rm -f core conftest.err conftest.$ac_objext \
12772    conftest$ac_exeext conftest.$ac_ext
12773LIBS=$ac_check_lib_save_LIBS
12774fi
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_shutdown" >&5
12776$as_echo "$ac_cv_lib_dmalloc_dmalloc_shutdown" >&6; }
12777if test "x$ac_cv_lib_dmalloc_dmalloc_shutdown" = xyes; then :
12778  cat >>confdefs.h <<_ACEOF
12779#define HAVE_LIBDMALLOC 1
12780_ACEOF
12781
12782  LIBS="-ldmalloc $LIBS"
12783
12784fi
12785
12786       CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" ;;
12787esac
12788
12789
12790# Allow building with efence.
12791case "$ac_cv_efence" in
12792  yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
12793$as_echo_n "checking for malloc in -lefence... " >&6; }
12794if ${ac_cv_lib_efence_malloc+:} false; then :
12795  $as_echo_n "(cached) " >&6
12796else
12797  ac_check_lib_save_LIBS=$LIBS
12798LIBS="-lefence  $LIBS"
12799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800/* end confdefs.h.  */
12801
12802/* Override any GCC internal prototype to avoid an error.
12803   Use char because int might match the return type of a GCC
12804   builtin and then its argument prototype would still apply.  */
12805#ifdef __cplusplus
12806extern "C"
12807#endif
12808char malloc ();
12809int
12810main ()
12811{
12812return malloc ();
12813  ;
12814  return 0;
12815}
12816_ACEOF
12817if ac_fn_c_try_link "$LINENO"; then :
12818  ac_cv_lib_efence_malloc=yes
12819else
12820  ac_cv_lib_efence_malloc=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext \
12823    conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
12827$as_echo "$ac_cv_lib_efence_malloc" >&6; }
12828if test "x$ac_cv_lib_efence_malloc" = xyes; then :
12829  cat >>confdefs.h <<_ACEOF
12830#define HAVE_LIBEFENCE 1
12831_ACEOF
12832
12833  LIBS="-lefence $LIBS"
12834
12835fi
12836 ;;
12837esac
12838
12839# some explicit definitions for config.h file
12840
12841
12842# mainly for fvwm-config
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863ac_config_files="$ac_config_files Makefile libs/Makefile fvwm/Makefile modules/Makefile bin/Makefile bin/FvwmCommand bin/FvwmPrompt/Makefile bin/fvwm-config bin/fvwm-perllib bin/fvwm-menu-xlock bin/fvwm-menu-directory bin/fvwm-menu-desktop bin/fvwm-convert-2.6 utils/Makefile perllib/Makefile perllib/General/Makefile perllib/FVWM/Makefile perllib/FVWM/Module/Makefile perllib/FVWM/Tracker/Makefile perllib/FVWM/Module.pm default-config/Makefile doc/Makefile po/Makefile modules/FvwmAnimate/Makefile modules/FvwmAuto/Makefile modules/FvwmBacker/Makefile modules/FvwmButtons/Makefile modules/FvwmConsole/Makefile modules/FvwmEvent/Makefile modules/FvwmForm/Makefile modules/FvwmIconMan/Makefile modules/FvwmIdent/Makefile modules/FvwmMFL/Makefile modules/FvwmPager/Makefile modules/FvwmPerl/Makefile modules/FvwmPerl/FvwmPerl modules/FvwmRearrange/Makefile modules/FvwmScript/Makefile modules/FvwmScript/Scripts/Makefile modules/FvwmScript/Widgets/Makefile"
12864
12865cat >confcache <<\_ACEOF
12866# This file is a shell script that caches the results of configure
12867# tests run on this system so they can be shared between configure
12868# scripts and configure runs, see configure's option --config-cache.
12869# It is not useful on other systems.  If it contains results you don't
12870# want to keep, you may remove or edit it.
12871#
12872# config.status only pays attention to the cache file if you give it
12873# the --recheck option to rerun configure.
12874#
12875# `ac_cv_env_foo' variables (set or unset) will be overridden when
12876# loading this file, other *unset* `ac_cv_foo' will be assigned the
12877# following values.
12878
12879_ACEOF
12880
12881# The following way of writing the cache mishandles newlines in values,
12882# but we know of no workaround that is simple, portable, and efficient.
12883# So, we kill variables containing newlines.
12884# Ultrix sh set writes to stderr and can't be redirected directly,
12885# and sets the high bit in the cache file unless we assign to the vars.
12886(
12887  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12888    eval ac_val=\$$ac_var
12889    case $ac_val in #(
12890    *${as_nl}*)
12891      case $ac_var in #(
12892      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12893$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12894      esac
12895      case $ac_var in #(
12896      _ | IFS | as_nl) ;; #(
12897      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12898      *) { eval $ac_var=; unset $ac_var;} ;;
12899      esac ;;
12900    esac
12901  done
12902
12903  (set) 2>&1 |
12904    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12905    *${as_nl}ac_space=\ *)
12906      # `set' does not quote correctly, so add quotes: double-quote
12907      # substitution turns \\\\ into \\, and sed turns \\ into \.
12908      sed -n \
12909	"s/'/'\\\\''/g;
12910	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12911      ;; #(
12912    *)
12913      # `set' quotes correctly as required by POSIX, so do not add quotes.
12914      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12915      ;;
12916    esac |
12917    sort
12918) |
12919  sed '
12920     /^ac_cv_env_/b end
12921     t clear
12922     :clear
12923     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12924     t end
12925     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12926     :end' >>confcache
12927if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12928  if test -w "$cache_file"; then
12929    if test "x$cache_file" != "x/dev/null"; then
12930      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12931$as_echo "$as_me: updating cache $cache_file" >&6;}
12932      if test ! -f "$cache_file" || test -h "$cache_file"; then
12933	cat confcache >"$cache_file"
12934      else
12935        case $cache_file in #(
12936        */* | ?:*)
12937	  mv -f confcache "$cache_file"$$ &&
12938	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12939        *)
12940	  mv -f confcache "$cache_file" ;;
12941	esac
12942      fi
12943    fi
12944  else
12945    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12946$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12947  fi
12948fi
12949rm -f confcache
12950
12951test "x$prefix" = xNONE && prefix=$ac_default_prefix
12952# Let make expand exec_prefix.
12953test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12954
12955DEFS=-DHAVE_CONFIG_H
12956
12957ac_libobjs=
12958ac_ltlibobjs=
12959for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12960  # 1. Remove the extension, and $U if already installed.
12961  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12962  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12963  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12964  #    will be set to the directory where LIBOBJS objects are built.
12965  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12966  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12967done
12968LIBOBJS=$ac_libobjs
12969
12970LTLIBOBJS=$ac_ltlibobjs
12971
12972
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12974$as_echo_n "checking that generated files are newer than configure... " >&6; }
12975   if test -n "$am_sleep_pid"; then
12976     # Hide warnings about reused PIDs.
12977     wait $am_sleep_pid 2>/dev/null
12978   fi
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12980$as_echo "done" >&6; }
12981 if test -n "$EXEEXT"; then
12982  am__EXEEXT_TRUE=
12983  am__EXEEXT_FALSE='#'
12984else
12985  am__EXEEXT_TRUE='#'
12986  am__EXEEXT_FALSE=
12987fi
12988
12989if test -z "${FVWM_BUILD_GOLANG_TRUE}" && test -z "${FVWM_BUILD_GOLANG_FALSE}"; then
12990  as_fn_error $? "conditional \"FVWM_BUILD_GOLANG\" was never defined.
12991Usually this means the macro was only invoked conditionally." "$LINENO" 5
12992fi
12993if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12994  as_fn_error $? "conditional \"AMDEP\" was never defined.
12995Usually this means the macro was only invoked conditionally." "$LINENO" 5
12996fi
12997if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12998  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12999Usually this means the macro was only invoked conditionally." "$LINENO" 5
13000fi
13001if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13002  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13003Usually this means the macro was only invoked conditionally." "$LINENO" 5
13004fi
13005if test -z "${FVWM_BUILD_MANDOC_TRUE}" && test -z "${FVWM_BUILD_MANDOC_FALSE}"; then
13006  as_fn_error $? "conditional \"FVWM_BUILD_MANDOC\" was never defined.
13007Usually this means the macro was only invoked conditionally." "$LINENO" 5
13008fi
13009
13010
13011: "${CONFIG_STATUS=./config.status}"
13012ac_write_fail=0
13013ac_clean_files_save=$ac_clean_files
13014ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13016$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13017as_write_fail=0
13018cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13019#! $SHELL
13020# Generated by $as_me.
13021# Run this file to recreate the current configuration.
13022# Compiler output produced by configure, useful for debugging
13023# configure, is in config.log if it exists.
13024
13025debug=false
13026ac_cs_recheck=false
13027ac_cs_silent=false
13028
13029SHELL=\${CONFIG_SHELL-$SHELL}
13030export SHELL
13031_ASEOF
13032cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13033## -------------------- ##
13034## M4sh Initialization. ##
13035## -------------------- ##
13036
13037# Be more Bourne compatible
13038DUALCASE=1; export DUALCASE # for MKS sh
13039if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13040  emulate sh
13041  NULLCMD=:
13042  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13043  # is contrary to our usage.  Disable this feature.
13044  alias -g '${1+"$@"}'='"$@"'
13045  setopt NO_GLOB_SUBST
13046else
13047  case `(set -o) 2>/dev/null` in #(
13048  *posix*) :
13049    set -o posix ;; #(
13050  *) :
13051     ;;
13052esac
13053fi
13054
13055
13056as_nl='
13057'
13058export as_nl
13059# Printing a long string crashes Solaris 7 /usr/bin/printf.
13060as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13061as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13062as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13063# Prefer a ksh shell builtin over an external printf program on Solaris,
13064# but without wasting forks for bash or zsh.
13065if test -z "$BASH_VERSION$ZSH_VERSION" \
13066    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13067  as_echo='print -r --'
13068  as_echo_n='print -rn --'
13069elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13070  as_echo='printf %s\n'
13071  as_echo_n='printf %s'
13072else
13073  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13074    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13075    as_echo_n='/usr/ucb/echo -n'
13076  else
13077    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13078    as_echo_n_body='eval
13079      arg=$1;
13080      case $arg in #(
13081      *"$as_nl"*)
13082	expr "X$arg" : "X\\(.*\\)$as_nl";
13083	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13084      esac;
13085      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13086    '
13087    export as_echo_n_body
13088    as_echo_n='sh -c $as_echo_n_body as_echo'
13089  fi
13090  export as_echo_body
13091  as_echo='sh -c $as_echo_body as_echo'
13092fi
13093
13094# The user is always right.
13095if test "${PATH_SEPARATOR+set}" != set; then
13096  PATH_SEPARATOR=:
13097  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13098    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13099      PATH_SEPARATOR=';'
13100  }
13101fi
13102
13103
13104# IFS
13105# We need space, tab and new line, in precisely that order.  Quoting is
13106# there to prevent editors from complaining about space-tab.
13107# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13108# splitting by setting IFS to empty value.)
13109IFS=" ""	$as_nl"
13110
13111# Find who we are.  Look in the path if we contain no directory separator.
13112as_myself=
13113case $0 in #((
13114  *[\\/]* ) as_myself=$0 ;;
13115  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116for as_dir in $PATH
13117do
13118  IFS=$as_save_IFS
13119  test -z "$as_dir" && as_dir=.
13120    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13121  done
13122IFS=$as_save_IFS
13123
13124     ;;
13125esac
13126# We did not find ourselves, most probably we were run as `sh COMMAND'
13127# in which case we are not to be found in the path.
13128if test "x$as_myself" = x; then
13129  as_myself=$0
13130fi
13131if test ! -f "$as_myself"; then
13132  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13133  exit 1
13134fi
13135
13136# Unset variables that we do not need and which cause bugs (e.g. in
13137# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13138# suppresses any "Segmentation fault" message there.  '((' could
13139# trigger a bug in pdksh 5.2.14.
13140for as_var in BASH_ENV ENV MAIL MAILPATH
13141do eval test x\${$as_var+set} = xset \
13142  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13143done
13144PS1='$ '
13145PS2='> '
13146PS4='+ '
13147
13148# NLS nuisances.
13149LC_ALL=C
13150export LC_ALL
13151LANGUAGE=C
13152export LANGUAGE
13153
13154# CDPATH.
13155(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13156
13157
13158# as_fn_error STATUS ERROR [LINENO LOG_FD]
13159# ----------------------------------------
13160# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13161# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13162# script with STATUS, using 1 if that was 0.
13163as_fn_error ()
13164{
13165  as_status=$1; test $as_status -eq 0 && as_status=1
13166  if test "$4"; then
13167    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13168    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13169  fi
13170  $as_echo "$as_me: error: $2" >&2
13171  as_fn_exit $as_status
13172} # as_fn_error
13173
13174
13175# as_fn_set_status STATUS
13176# -----------------------
13177# Set $? to STATUS, without forking.
13178as_fn_set_status ()
13179{
13180  return $1
13181} # as_fn_set_status
13182
13183# as_fn_exit STATUS
13184# -----------------
13185# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13186as_fn_exit ()
13187{
13188  set +e
13189  as_fn_set_status $1
13190  exit $1
13191} # as_fn_exit
13192
13193# as_fn_unset VAR
13194# ---------------
13195# Portably unset VAR.
13196as_fn_unset ()
13197{
13198  { eval $1=; unset $1;}
13199}
13200as_unset=as_fn_unset
13201# as_fn_append VAR VALUE
13202# ----------------------
13203# Append the text in VALUE to the end of the definition contained in VAR. Take
13204# advantage of any shell optimizations that allow amortized linear growth over
13205# repeated appends, instead of the typical quadratic growth present in naive
13206# implementations.
13207if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13208  eval 'as_fn_append ()
13209  {
13210    eval $1+=\$2
13211  }'
13212else
13213  as_fn_append ()
13214  {
13215    eval $1=\$$1\$2
13216  }
13217fi # as_fn_append
13218
13219# as_fn_arith ARG...
13220# ------------------
13221# Perform arithmetic evaluation on the ARGs, and store the result in the
13222# global $as_val. Take advantage of shells that can avoid forks. The arguments
13223# must be portable across $(()) and expr.
13224if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13225  eval 'as_fn_arith ()
13226  {
13227    as_val=$(( $* ))
13228  }'
13229else
13230  as_fn_arith ()
13231  {
13232    as_val=`expr "$@" || test $? -eq 1`
13233  }
13234fi # as_fn_arith
13235
13236
13237if expr a : '\(a\)' >/dev/null 2>&1 &&
13238   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13239  as_expr=expr
13240else
13241  as_expr=false
13242fi
13243
13244if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13245  as_basename=basename
13246else
13247  as_basename=false
13248fi
13249
13250if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13251  as_dirname=dirname
13252else
13253  as_dirname=false
13254fi
13255
13256as_me=`$as_basename -- "$0" ||
13257$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13258	 X"$0" : 'X\(//\)$' \| \
13259	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13260$as_echo X/"$0" |
13261    sed '/^.*\/\([^/][^/]*\)\/*$/{
13262	    s//\1/
13263	    q
13264	  }
13265	  /^X\/\(\/\/\)$/{
13266	    s//\1/
13267	    q
13268	  }
13269	  /^X\/\(\/\).*/{
13270	    s//\1/
13271	    q
13272	  }
13273	  s/.*/./; q'`
13274
13275# Avoid depending upon Character Ranges.
13276as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13277as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13278as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13279as_cr_digits='0123456789'
13280as_cr_alnum=$as_cr_Letters$as_cr_digits
13281
13282ECHO_C= ECHO_N= ECHO_T=
13283case `echo -n x` in #(((((
13284-n*)
13285  case `echo 'xy\c'` in
13286  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13287  xy)  ECHO_C='\c';;
13288  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13289       ECHO_T='	';;
13290  esac;;
13291*)
13292  ECHO_N='-n';;
13293esac
13294
13295rm -f conf$$ conf$$.exe conf$$.file
13296if test -d conf$$.dir; then
13297  rm -f conf$$.dir/conf$$.file
13298else
13299  rm -f conf$$.dir
13300  mkdir conf$$.dir 2>/dev/null
13301fi
13302if (echo >conf$$.file) 2>/dev/null; then
13303  if ln -s conf$$.file conf$$ 2>/dev/null; then
13304    as_ln_s='ln -s'
13305    # ... but there are two gotchas:
13306    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13307    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13308    # In both cases, we have to default to `cp -pR'.
13309    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13310      as_ln_s='cp -pR'
13311  elif ln conf$$.file conf$$ 2>/dev/null; then
13312    as_ln_s=ln
13313  else
13314    as_ln_s='cp -pR'
13315  fi
13316else
13317  as_ln_s='cp -pR'
13318fi
13319rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13320rmdir conf$$.dir 2>/dev/null
13321
13322
13323# as_fn_mkdir_p
13324# -------------
13325# Create "$as_dir" as a directory, including parents if necessary.
13326as_fn_mkdir_p ()
13327{
13328
13329  case $as_dir in #(
13330  -*) as_dir=./$as_dir;;
13331  esac
13332  test -d "$as_dir" || eval $as_mkdir_p || {
13333    as_dirs=
13334    while :; do
13335      case $as_dir in #(
13336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13337      *) as_qdir=$as_dir;;
13338      esac
13339      as_dirs="'$as_qdir' $as_dirs"
13340      as_dir=`$as_dirname -- "$as_dir" ||
13341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13342	 X"$as_dir" : 'X\(//\)[^/]' \| \
13343	 X"$as_dir" : 'X\(//\)$' \| \
13344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13345$as_echo X"$as_dir" |
13346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13347	    s//\1/
13348	    q
13349	  }
13350	  /^X\(\/\/\)[^/].*/{
13351	    s//\1/
13352	    q
13353	  }
13354	  /^X\(\/\/\)$/{
13355	    s//\1/
13356	    q
13357	  }
13358	  /^X\(\/\).*/{
13359	    s//\1/
13360	    q
13361	  }
13362	  s/.*/./; q'`
13363      test -d "$as_dir" && break
13364    done
13365    test -z "$as_dirs" || eval "mkdir $as_dirs"
13366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13367
13368
13369} # as_fn_mkdir_p
13370if mkdir -p . 2>/dev/null; then
13371  as_mkdir_p='mkdir -p "$as_dir"'
13372else
13373  test -d ./-p && rmdir ./-p
13374  as_mkdir_p=false
13375fi
13376
13377
13378# as_fn_executable_p FILE
13379# -----------------------
13380# Test if FILE is an executable regular file.
13381as_fn_executable_p ()
13382{
13383  test -f "$1" && test -x "$1"
13384} # as_fn_executable_p
13385as_test_x='test -x'
13386as_executable_p=as_fn_executable_p
13387
13388# Sed expression to map a string onto a valid CPP name.
13389as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13390
13391# Sed expression to map a string onto a valid variable name.
13392as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13393
13394
13395exec 6>&1
13396## ----------------------------------- ##
13397## Main body of $CONFIG_STATUS script. ##
13398## ----------------------------------- ##
13399_ASEOF
13400test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13401
13402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13403# Save the log message, to keep $0 and so on meaningful, and to
13404# report actual input values of CONFIG_FILES etc. instead of their
13405# values after options handling.
13406ac_log="
13407This file was extended by fvwm3 $as_me 1.0.4, which was
13408generated by GNU Autoconf 2.69.  Invocation command line was
13409
13410  CONFIG_FILES    = $CONFIG_FILES
13411  CONFIG_HEADERS  = $CONFIG_HEADERS
13412  CONFIG_LINKS    = $CONFIG_LINKS
13413  CONFIG_COMMANDS = $CONFIG_COMMANDS
13414  $ $0 $@
13415
13416on `(hostname || uname -n) 2>/dev/null | sed 1q`
13417"
13418
13419_ACEOF
13420
13421case $ac_config_files in *"
13422"*) set x $ac_config_files; shift; ac_config_files=$*;;
13423esac
13424
13425case $ac_config_headers in *"
13426"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13427esac
13428
13429
13430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13431# Files that config.status was made for.
13432config_files="$ac_config_files"
13433config_headers="$ac_config_headers"
13434config_commands="$ac_config_commands"
13435
13436_ACEOF
13437
13438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13439ac_cs_usage="\
13440\`$as_me' instantiates files and other configuration actions
13441from templates according to the current configuration.  Unless the files
13442and actions are specified as TAGs, all are instantiated by default.
13443
13444Usage: $0 [OPTION]... [TAG]...
13445
13446  -h, --help       print this help, then exit
13447  -V, --version    print version number and configuration settings, then exit
13448      --config     print configuration, then exit
13449  -q, --quiet, --silent
13450                   do not print progress messages
13451  -d, --debug      don't remove temporary files
13452      --recheck    update $as_me by reconfiguring in the same conditions
13453      --file=FILE[:TEMPLATE]
13454                   instantiate the configuration file FILE
13455      --header=FILE[:TEMPLATE]
13456                   instantiate the configuration header FILE
13457
13458Configuration files:
13459$config_files
13460
13461Configuration headers:
13462$config_headers
13463
13464Configuration commands:
13465$config_commands
13466
13467Report bugs to <fvwm-workers@fvwm.org>."
13468
13469_ACEOF
13470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13471ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13472ac_cs_version="\\
13473fvwm3 config.status 1.0.4
13474configured by $0, generated by GNU Autoconf 2.69,
13475  with options \\"\$ac_cs_config\\"
13476
13477Copyright (C) 2012 Free Software Foundation, Inc.
13478This config.status script is free software; the Free Software Foundation
13479gives unlimited permission to copy, distribute and modify it."
13480
13481ac_pwd='$ac_pwd'
13482srcdir='$srcdir'
13483INSTALL='$INSTALL'
13484MKDIR_P='$MKDIR_P'
13485AWK='$AWK'
13486test -n "\$AWK" || AWK=awk
13487_ACEOF
13488
13489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13490# The default lists apply if the user does not specify any file.
13491ac_need_defaults=:
13492while test $# != 0
13493do
13494  case $1 in
13495  --*=?*)
13496    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13497    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13498    ac_shift=:
13499    ;;
13500  --*=)
13501    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13502    ac_optarg=
13503    ac_shift=:
13504    ;;
13505  *)
13506    ac_option=$1
13507    ac_optarg=$2
13508    ac_shift=shift
13509    ;;
13510  esac
13511
13512  case $ac_option in
13513  # Handling of the options.
13514  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13515    ac_cs_recheck=: ;;
13516  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13517    $as_echo "$ac_cs_version"; exit ;;
13518  --config | --confi | --conf | --con | --co | --c )
13519    $as_echo "$ac_cs_config"; exit ;;
13520  --debug | --debu | --deb | --de | --d | -d )
13521    debug=: ;;
13522  --file | --fil | --fi | --f )
13523    $ac_shift
13524    case $ac_optarg in
13525    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13526    '') as_fn_error $? "missing file argument" ;;
13527    esac
13528    as_fn_append CONFIG_FILES " '$ac_optarg'"
13529    ac_need_defaults=false;;
13530  --header | --heade | --head | --hea )
13531    $ac_shift
13532    case $ac_optarg in
13533    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13534    esac
13535    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13536    ac_need_defaults=false;;
13537  --he | --h)
13538    # Conflict between --help and --header
13539    as_fn_error $? "ambiguous option: \`$1'
13540Try \`$0 --help' for more information.";;
13541  --help | --hel | -h )
13542    $as_echo "$ac_cs_usage"; exit ;;
13543  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13544  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13545    ac_cs_silent=: ;;
13546
13547  # This is an error.
13548  -*) as_fn_error $? "unrecognized option: \`$1'
13549Try \`$0 --help' for more information." ;;
13550
13551  *) as_fn_append ac_config_targets " $1"
13552     ac_need_defaults=false ;;
13553
13554  esac
13555  shift
13556done
13557
13558ac_configure_extra_args=
13559
13560if $ac_cs_silent; then
13561  exec 6>/dev/null
13562  ac_configure_extra_args="$ac_configure_extra_args --silent"
13563fi
13564
13565_ACEOF
13566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13567if \$ac_cs_recheck; then
13568  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13569  shift
13570  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13571  CONFIG_SHELL='$SHELL'
13572  export CONFIG_SHELL
13573  exec "\$@"
13574fi
13575
13576_ACEOF
13577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13578exec 5>>config.log
13579{
13580  echo
13581  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13582## Running $as_me. ##
13583_ASBOX
13584  $as_echo "$ac_log"
13585} >&5
13586
13587_ACEOF
13588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13589#
13590# INIT-COMMANDS
13591#
13592AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13593
13594_ACEOF
13595
13596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597
13598# Handling of arguments.
13599for ac_config_target in $ac_config_targets
13600do
13601  case $ac_config_target in
13602    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13603    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13604    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13605    "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
13606    "fvwm/Makefile") CONFIG_FILES="$CONFIG_FILES fvwm/Makefile" ;;
13607    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13608    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13609    "bin/FvwmCommand") CONFIG_FILES="$CONFIG_FILES bin/FvwmCommand" ;;
13610    "bin/FvwmPrompt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/FvwmPrompt/Makefile" ;;
13611    "bin/fvwm-config") CONFIG_FILES="$CONFIG_FILES bin/fvwm-config" ;;
13612    "bin/fvwm-perllib") CONFIG_FILES="$CONFIG_FILES bin/fvwm-perllib" ;;
13613    "bin/fvwm-menu-xlock") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-xlock" ;;
13614    "bin/fvwm-menu-directory") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-directory" ;;
13615    "bin/fvwm-menu-desktop") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-desktop" ;;
13616    "bin/fvwm-convert-2.6") CONFIG_FILES="$CONFIG_FILES bin/fvwm-convert-2.6" ;;
13617    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
13618    "perllib/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/Makefile" ;;
13619    "perllib/General/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/General/Makefile" ;;
13620    "perllib/FVWM/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Makefile" ;;
13621    "perllib/FVWM/Module/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Module/Makefile" ;;
13622    "perllib/FVWM/Tracker/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Tracker/Makefile" ;;
13623    "perllib/FVWM/Module.pm") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Module.pm" ;;
13624    "default-config/Makefile") CONFIG_FILES="$CONFIG_FILES default-config/Makefile" ;;
13625    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13626    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
13627    "modules/FvwmAnimate/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmAnimate/Makefile" ;;
13628    "modules/FvwmAuto/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmAuto/Makefile" ;;
13629    "modules/FvwmBacker/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmBacker/Makefile" ;;
13630    "modules/FvwmButtons/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmButtons/Makefile" ;;
13631    "modules/FvwmConsole/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmConsole/Makefile" ;;
13632    "modules/FvwmEvent/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmEvent/Makefile" ;;
13633    "modules/FvwmForm/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmForm/Makefile" ;;
13634    "modules/FvwmIconMan/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmIconMan/Makefile" ;;
13635    "modules/FvwmIdent/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmIdent/Makefile" ;;
13636    "modules/FvwmMFL/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmMFL/Makefile" ;;
13637    "modules/FvwmPager/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmPager/Makefile" ;;
13638    "modules/FvwmPerl/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmPerl/Makefile" ;;
13639    "modules/FvwmPerl/FvwmPerl") CONFIG_FILES="$CONFIG_FILES modules/FvwmPerl/FvwmPerl" ;;
13640    "modules/FvwmRearrange/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmRearrange/Makefile" ;;
13641    "modules/FvwmScript/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmScript/Makefile" ;;
13642    "modules/FvwmScript/Scripts/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmScript/Scripts/Makefile" ;;
13643    "modules/FvwmScript/Widgets/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmScript/Widgets/Makefile" ;;
13644
13645  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13646  esac
13647done
13648
13649
13650# If the user did not use the arguments to specify the items to instantiate,
13651# then the envvar interface is used.  Set only those that are not.
13652# We use the long form for the default assignment because of an extremely
13653# bizarre bug on SunOS 4.1.3.
13654if $ac_need_defaults; then
13655  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13656  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13657  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13658fi
13659
13660# Have a temporary directory for convenience.  Make it in the build tree
13661# simply because there is no reason against having it here, and in addition,
13662# creating and moving files from /tmp can sometimes cause problems.
13663# Hook for its removal unless debugging.
13664# Note that there is a small window in which the directory will not be cleaned:
13665# after its creation but before its name has been assigned to `$tmp'.
13666$debug ||
13667{
13668  tmp= ac_tmp=
13669  trap 'exit_status=$?
13670  : "${ac_tmp:=$tmp}"
13671  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13672' 0
13673  trap 'as_fn_exit 1' 1 2 13 15
13674}
13675# Create a (secure) tmp directory for tmp files.
13676
13677{
13678  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13679  test -d "$tmp"
13680}  ||
13681{
13682  tmp=./conf$$-$RANDOM
13683  (umask 077 && mkdir "$tmp")
13684} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13685ac_tmp=$tmp
13686
13687# Set up the scripts for CONFIG_FILES section.
13688# No need to generate them if there are no CONFIG_FILES.
13689# This happens for instance with `./config.status config.h'.
13690if test -n "$CONFIG_FILES"; then
13691
13692
13693ac_cr=`echo X | tr X '\015'`
13694# On cygwin, bash can eat \r inside `` if the user requested igncr.
13695# But we know of no other shell where ac_cr would be empty at this
13696# point, so we can use a bashism as a fallback.
13697if test "x$ac_cr" = x; then
13698  eval ac_cr=\$\'\\r\'
13699fi
13700ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13701if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13702  ac_cs_awk_cr='\\r'
13703else
13704  ac_cs_awk_cr=$ac_cr
13705fi
13706
13707echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13708_ACEOF
13709
13710
13711{
13712  echo "cat >conf$$subs.awk <<_ACEOF" &&
13713  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13714  echo "_ACEOF"
13715} >conf$$subs.sh ||
13716  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13717ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13718ac_delim='%!_!# '
13719for ac_last_try in false false false false false :; do
13720  . ./conf$$subs.sh ||
13721    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13722
13723  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13724  if test $ac_delim_n = $ac_delim_num; then
13725    break
13726  elif $ac_last_try; then
13727    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13728  else
13729    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13730  fi
13731done
13732rm -f conf$$subs.sh
13733
13734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13735cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13736_ACEOF
13737sed -n '
13738h
13739s/^/S["/; s/!.*/"]=/
13740p
13741g
13742s/^[^!]*!//
13743:repl
13744t repl
13745s/'"$ac_delim"'$//
13746t delim
13747:nl
13748h
13749s/\(.\{148\}\)..*/\1/
13750t more1
13751s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13752p
13753n
13754b repl
13755:more1
13756s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13757p
13758g
13759s/.\{148\}//
13760t nl
13761:delim
13762h
13763s/\(.\{148\}\)..*/\1/
13764t more2
13765s/["\\]/\\&/g; s/^/"/; s/$/"/
13766p
13767b
13768:more2
13769s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13770p
13771g
13772s/.\{148\}//
13773t delim
13774' <conf$$subs.awk | sed '
13775/^[^""]/{
13776  N
13777  s/\n//
13778}
13779' >>$CONFIG_STATUS || ac_write_fail=1
13780rm -f conf$$subs.awk
13781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13782_ACAWK
13783cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13784  for (key in S) S_is_set[key] = 1
13785  FS = ""
13786
13787}
13788{
13789  line = $ 0
13790  nfields = split(line, field, "@")
13791  substed = 0
13792  len = length(field[1])
13793  for (i = 2; i < nfields; i++) {
13794    key = field[i]
13795    keylen = length(key)
13796    if (S_is_set[key]) {
13797      value = S[key]
13798      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13799      len += length(value) + length(field[++i])
13800      substed = 1
13801    } else
13802      len += 1 + keylen
13803  }
13804
13805  print line
13806}
13807
13808_ACAWK
13809_ACEOF
13810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13811if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13812  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13813else
13814  cat
13815fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13816  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13817_ACEOF
13818
13819# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13820# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13821# trailing colons and then remove the whole line if VPATH becomes empty
13822# (actually we leave an empty line to preserve line numbers).
13823if test "x$srcdir" = x.; then
13824  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13825h
13826s///
13827s/^/:/
13828s/[	 ]*$/:/
13829s/:\$(srcdir):/:/g
13830s/:\${srcdir}:/:/g
13831s/:@srcdir@:/:/g
13832s/^:*//
13833s/:*$//
13834x
13835s/\(=[	 ]*\).*/\1/
13836G
13837s/\n//
13838s/^[^=]*=[	 ]*$//
13839}'
13840fi
13841
13842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843fi # test -n "$CONFIG_FILES"
13844
13845# Set up the scripts for CONFIG_HEADERS section.
13846# No need to generate them if there are no CONFIG_HEADERS.
13847# This happens for instance with `./config.status Makefile'.
13848if test -n "$CONFIG_HEADERS"; then
13849cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13850BEGIN {
13851_ACEOF
13852
13853# Transform confdefs.h into an awk script `defines.awk', embedded as
13854# here-document in config.status, that substitutes the proper values into
13855# config.h.in to produce config.h.
13856
13857# Create a delimiter string that does not exist in confdefs.h, to ease
13858# handling of long lines.
13859ac_delim='%!_!# '
13860for ac_last_try in false false :; do
13861  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13862  if test -z "$ac_tt"; then
13863    break
13864  elif $ac_last_try; then
13865    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13866  else
13867    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13868  fi
13869done
13870
13871# For the awk script, D is an array of macro values keyed by name,
13872# likewise P contains macro parameters if any.  Preserve backslash
13873# newline sequences.
13874
13875ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13876sed -n '
13877s/.\{148\}/&'"$ac_delim"'/g
13878t rset
13879:rset
13880s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13881t def
13882d
13883:def
13884s/\\$//
13885t bsnl
13886s/["\\]/\\&/g
13887s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13888D["\1"]=" \3"/p
13889s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13890d
13891:bsnl
13892s/["\\]/\\&/g
13893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13894D["\1"]=" \3\\\\\\n"\\/p
13895t cont
13896s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13897t cont
13898d
13899:cont
13900n
13901s/.\{148\}/&'"$ac_delim"'/g
13902t clear
13903:clear
13904s/\\$//
13905t bsnlc
13906s/["\\]/\\&/g; s/^/"/; s/$/"/p
13907d
13908:bsnlc
13909s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13910b cont
13911' <confdefs.h | sed '
13912s/'"$ac_delim"'/"\\\
13913"/g' >>$CONFIG_STATUS || ac_write_fail=1
13914
13915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13916  for (key in D) D_is_set[key] = 1
13917  FS = ""
13918}
13919/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13920  line = \$ 0
13921  split(line, arg, " ")
13922  if (arg[1] == "#") {
13923    defundef = arg[2]
13924    mac1 = arg[3]
13925  } else {
13926    defundef = substr(arg[1], 2)
13927    mac1 = arg[2]
13928  }
13929  split(mac1, mac2, "(") #)
13930  macro = mac2[1]
13931  prefix = substr(line, 1, index(line, defundef) - 1)
13932  if (D_is_set[macro]) {
13933    # Preserve the white space surrounding the "#".
13934    print prefix "define", macro P[macro] D[macro]
13935    next
13936  } else {
13937    # Replace #undef with comments.  This is necessary, for example,
13938    # in the case of _POSIX_SOURCE, which is predefined and required
13939    # on some systems where configure will not decide to define it.
13940    if (defundef == "undef") {
13941      print "/*", prefix defundef, macro, "*/"
13942      next
13943    }
13944  }
13945}
13946{ print }
13947_ACAWK
13948_ACEOF
13949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13950  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13951fi # test -n "$CONFIG_HEADERS"
13952
13953
13954eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13955shift
13956for ac_tag
13957do
13958  case $ac_tag in
13959  :[FHLC]) ac_mode=$ac_tag; continue;;
13960  esac
13961  case $ac_mode$ac_tag in
13962  :[FHL]*:*);;
13963  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13964  :[FH]-) ac_tag=-:-;;
13965  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13966  esac
13967  ac_save_IFS=$IFS
13968  IFS=:
13969  set x $ac_tag
13970  IFS=$ac_save_IFS
13971  shift
13972  ac_file=$1
13973  shift
13974
13975  case $ac_mode in
13976  :L) ac_source=$1;;
13977  :[FH])
13978    ac_file_inputs=
13979    for ac_f
13980    do
13981      case $ac_f in
13982      -) ac_f="$ac_tmp/stdin";;
13983      *) # Look for the file first in the build tree, then in the source tree
13984	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13985	 # because $ac_f cannot contain `:'.
13986	 test -f "$ac_f" ||
13987	   case $ac_f in
13988	   [\\/$]*) false;;
13989	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13990	   esac ||
13991	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13992      esac
13993      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13994      as_fn_append ac_file_inputs " '$ac_f'"
13995    done
13996
13997    # Let's still pretend it is `configure' which instantiates (i.e., don't
13998    # use $as_me), people would be surprised to read:
13999    #    /* config.h.  Generated by config.status.  */
14000    configure_input='Generated from '`
14001	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14002	`' by configure.'
14003    if test x"$ac_file" != x-; then
14004      configure_input="$ac_file.  $configure_input"
14005      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14006$as_echo "$as_me: creating $ac_file" >&6;}
14007    fi
14008    # Neutralize special characters interpreted by sed in replacement strings.
14009    case $configure_input in #(
14010    *\&* | *\|* | *\\* )
14011       ac_sed_conf_input=`$as_echo "$configure_input" |
14012       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14013    *) ac_sed_conf_input=$configure_input;;
14014    esac
14015
14016    case $ac_tag in
14017    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14018      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14019    esac
14020    ;;
14021  esac
14022
14023  ac_dir=`$as_dirname -- "$ac_file" ||
14024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14025	 X"$ac_file" : 'X\(//\)[^/]' \| \
14026	 X"$ac_file" : 'X\(//\)$' \| \
14027	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14028$as_echo X"$ac_file" |
14029    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14030	    s//\1/
14031	    q
14032	  }
14033	  /^X\(\/\/\)[^/].*/{
14034	    s//\1/
14035	    q
14036	  }
14037	  /^X\(\/\/\)$/{
14038	    s//\1/
14039	    q
14040	  }
14041	  /^X\(\/\).*/{
14042	    s//\1/
14043	    q
14044	  }
14045	  s/.*/./; q'`
14046  as_dir="$ac_dir"; as_fn_mkdir_p
14047  ac_builddir=.
14048
14049case "$ac_dir" in
14050.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14051*)
14052  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14053  # A ".." for each directory in $ac_dir_suffix.
14054  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14055  case $ac_top_builddir_sub in
14056  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14057  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14058  esac ;;
14059esac
14060ac_abs_top_builddir=$ac_pwd
14061ac_abs_builddir=$ac_pwd$ac_dir_suffix
14062# for backward compatibility:
14063ac_top_builddir=$ac_top_build_prefix
14064
14065case $srcdir in
14066  .)  # We are building in place.
14067    ac_srcdir=.
14068    ac_top_srcdir=$ac_top_builddir_sub
14069    ac_abs_top_srcdir=$ac_pwd ;;
14070  [\\/]* | ?:[\\/]* )  # Absolute name.
14071    ac_srcdir=$srcdir$ac_dir_suffix;
14072    ac_top_srcdir=$srcdir
14073    ac_abs_top_srcdir=$srcdir ;;
14074  *) # Relative name.
14075    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14076    ac_top_srcdir=$ac_top_build_prefix$srcdir
14077    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14078esac
14079ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14080
14081
14082  case $ac_mode in
14083  :F)
14084  #
14085  # CONFIG_FILE
14086  #
14087
14088  case $INSTALL in
14089  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14090  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14091  esac
14092  ac_MKDIR_P=$MKDIR_P
14093  case $MKDIR_P in
14094  [\\/$]* | ?:[\\/]* ) ;;
14095  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14096  esac
14097_ACEOF
14098
14099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100# If the template does not know about datarootdir, expand it.
14101# FIXME: This hack should be removed a few years after 2.60.
14102ac_datarootdir_hack=; ac_datarootdir_seen=
14103ac_sed_dataroot='
14104/datarootdir/ {
14105  p
14106  q
14107}
14108/@datadir@/p
14109/@docdir@/p
14110/@infodir@/p
14111/@localedir@/p
14112/@mandir@/p'
14113case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14114*datarootdir*) ac_datarootdir_seen=yes;;
14115*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14116  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14117$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14118_ACEOF
14119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120  ac_datarootdir_hack='
14121  s&@datadir@&$datadir&g
14122  s&@docdir@&$docdir&g
14123  s&@infodir@&$infodir&g
14124  s&@localedir@&$localedir&g
14125  s&@mandir@&$mandir&g
14126  s&\\\${datarootdir}&$datarootdir&g' ;;
14127esac
14128_ACEOF
14129
14130# Neutralize VPATH when `$srcdir' = `.'.
14131# Shell code in configure.ac might set extrasub.
14132# FIXME: do we really want to maintain this feature?
14133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14134ac_sed_extra="$ac_vpsub
14135$extrasub
14136_ACEOF
14137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138:t
14139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14140s|@configure_input@|$ac_sed_conf_input|;t t
14141s&@top_builddir@&$ac_top_builddir_sub&;t t
14142s&@top_build_prefix@&$ac_top_build_prefix&;t t
14143s&@srcdir@&$ac_srcdir&;t t
14144s&@abs_srcdir@&$ac_abs_srcdir&;t t
14145s&@top_srcdir@&$ac_top_srcdir&;t t
14146s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14147s&@builddir@&$ac_builddir&;t t
14148s&@abs_builddir@&$ac_abs_builddir&;t t
14149s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14150s&@INSTALL@&$ac_INSTALL&;t t
14151s&@MKDIR_P@&$ac_MKDIR_P&;t t
14152$ac_datarootdir_hack
14153"
14154eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14155  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14156
14157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14158  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14159  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14160      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14161  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14162which seems to be undefined.  Please make sure it is defined" >&5
14163$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14164which seems to be undefined.  Please make sure it is defined" >&2;}
14165
14166  rm -f "$ac_tmp/stdin"
14167  case $ac_file in
14168  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14169  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14170  esac \
14171  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14172 ;;
14173  :H)
14174  #
14175  # CONFIG_HEADER
14176  #
14177  if test x"$ac_file" != x-; then
14178    {
14179      $as_echo "/* $configure_input  */" \
14180      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14181    } >"$ac_tmp/config.h" \
14182      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14183    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14184      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14185$as_echo "$as_me: $ac_file is unchanged" >&6;}
14186    else
14187      rm -f "$ac_file"
14188      mv "$ac_tmp/config.h" "$ac_file" \
14189	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14190    fi
14191  else
14192    $as_echo "/* $configure_input  */" \
14193      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14194      || as_fn_error $? "could not create -" "$LINENO" 5
14195  fi
14196# Compute "$ac_file"'s index in $config_headers.
14197_am_arg="$ac_file"
14198_am_stamp_count=1
14199for _am_header in $config_headers :; do
14200  case $_am_header in
14201    $_am_arg | $_am_arg:* )
14202      break ;;
14203    * )
14204      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14205  esac
14206done
14207echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14208$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14209	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14210	 X"$_am_arg" : 'X\(//\)$' \| \
14211	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14212$as_echo X"$_am_arg" |
14213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14214	    s//\1/
14215	    q
14216	  }
14217	  /^X\(\/\/\)[^/].*/{
14218	    s//\1/
14219	    q
14220	  }
14221	  /^X\(\/\/\)$/{
14222	    s//\1/
14223	    q
14224	  }
14225	  /^X\(\/\).*/{
14226	    s//\1/
14227	    q
14228	  }
14229	  s/.*/./; q'`/stamp-h$_am_stamp_count
14230 ;;
14231
14232  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14233$as_echo "$as_me: executing $ac_file commands" >&6;}
14234 ;;
14235  esac
14236
14237
14238  case $ac_file$ac_mode in
14239    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14240  # Older Autoconf quotes --file arguments for eval, but not when files
14241  # are listed without --file.  Let's play safe and only enable the eval
14242  # if we detect the quoting.
14243  # TODO: see whether this extra hack can be removed once we start
14244  # requiring Autoconf 2.70 or later.
14245  case $CONFIG_FILES in #(
14246  *\'*) :
14247    eval set x "$CONFIG_FILES" ;; #(
14248  *) :
14249    set x $CONFIG_FILES ;; #(
14250  *) :
14251     ;;
14252esac
14253  shift
14254  # Used to flag and report bootstrapping failures.
14255  am_rc=0
14256  for am_mf
14257  do
14258    # Strip MF so we end up with the name of the file.
14259    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14260    # Check whether this is an Automake generated Makefile which includes
14261    # dependency-tracking related rules and includes.
14262    # Grep'ing the whole file directly is not great: AIX grep has a line
14263    # limit of 2048, but all sed's we know have understand at least 4000.
14264    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14265      || continue
14266    am_dirpart=`$as_dirname -- "$am_mf" ||
14267$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14268	 X"$am_mf" : 'X\(//\)[^/]' \| \
14269	 X"$am_mf" : 'X\(//\)$' \| \
14270	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14271$as_echo X"$am_mf" |
14272    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14273	    s//\1/
14274	    q
14275	  }
14276	  /^X\(\/\/\)[^/].*/{
14277	    s//\1/
14278	    q
14279	  }
14280	  /^X\(\/\/\)$/{
14281	    s//\1/
14282	    q
14283	  }
14284	  /^X\(\/\).*/{
14285	    s//\1/
14286	    q
14287	  }
14288	  s/.*/./; q'`
14289    am_filepart=`$as_basename -- "$am_mf" ||
14290$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14291	 X"$am_mf" : 'X\(//\)$' \| \
14292	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14293$as_echo X/"$am_mf" |
14294    sed '/^.*\/\([^/][^/]*\)\/*$/{
14295	    s//\1/
14296	    q
14297	  }
14298	  /^X\/\(\/\/\)$/{
14299	    s//\1/
14300	    q
14301	  }
14302	  /^X\/\(\/\).*/{
14303	    s//\1/
14304	    q
14305	  }
14306	  s/.*/./; q'`
14307    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14308      && sed -e '/# am--include-marker/d' "$am_filepart" \
14309        | $MAKE -f - am--depfiles" >&5
14310   (cd "$am_dirpart" \
14311      && sed -e '/# am--include-marker/d' "$am_filepart" \
14312        | $MAKE -f - am--depfiles) >&5 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } || am_rc=$?
14316  done
14317  if test $am_rc -ne 0; then
14318    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14320as_fn_error $? "Something went wrong bootstrapping makefile fragments
14321    for automatic dependency tracking.  If GNU make was not used, consider
14322    re-running the configure script with MAKE=\"gmake\" (or whatever is
14323    necessary).  You can also try re-running configure with the
14324    '--disable-dependency-tracking' option to at least be able to build
14325    the package (albeit without support for automatic dependency tracking).
14326See \`config.log' for more details" "$LINENO" 5; }
14327  fi
14328  { am_dirpart=; unset am_dirpart;}
14329  { am_filepart=; unset am_filepart;}
14330  { am_mf=; unset am_mf;}
14331  { am_rc=; unset am_rc;}
14332  rm -f conftest-deps.mk
14333}
14334 ;;
14335
14336  esac
14337done # for ac_tag
14338
14339
14340as_fn_exit 0
14341_ACEOF
14342ac_clean_files=$ac_clean_files_save
14343
14344test $ac_write_fail = 0 ||
14345  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14346
14347
14348# configure is writing to config.log, and then calls config.status.
14349# config.status does its own redirection, appending to config.log.
14350# Unfortunately, on DOS this fails, as config.log is still kept open
14351# by configure, so config.status won't be able to write to it; its
14352# output is simply discarded.  So we exec the FD to /dev/null,
14353# effectively closing config.log, so it can be properly (re)opened and
14354# appended to by config.status.  When coming back to configure, we
14355# need to make the FD available again.
14356if test "$no_create" != yes; then
14357  ac_cs_success=:
14358  ac_config_status_args=
14359  test "$silent" = yes &&
14360    ac_config_status_args="$ac_config_status_args --quiet"
14361  exec 5>/dev/null
14362  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14363  exec 5>>config.log
14364  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14365  # would make configure fail if this is the last instruction.
14366  $ac_cs_success || as_fn_exit 1
14367fi
14368if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14369  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14370$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14371fi
14372
14373
14374# ---------------------------------------------------------------------------
14375# Original config.status is patched to make generated scripts executable.
14376sed 's/> $ac_file/> $ac_file; test x"`head -1 $ac_file | cut -c1-2`" = x"#!" \&\& chmod a+rx $ac_file/' <config.status >config.status-t && \
14377mv config.status-t config.status
14378chmod +x config.status
14379# ---------------------------------------------------------------------------
14380
14381# ---------------------------------------------------------------------------
14382cat >config.status-t <<EOF
14383#! /bin/sh
14384
14385# Original config.status is patched to satisfy processing *.in with 'make -j'.
14386# This bug seems to be partially fixed in autoconf-2.50 (not in all places).
14387UNIQUE_POSTFIX=\$\$
14388
14389EOF
14390sed 's/conftest/conftest\${UNIQUE_POSTFIX}/g' <config.status >>config.status-t && \
14391mv config.status-t config.status
14392chmod +x config.status
14393# ---------------------------------------------------------------------------
14394
14395eval my_bindir="`eval echo ${bindir}`"
14396eval my_mandir="`eval echo ${mandir}`"
14397eval my_moddir="`eval echo ${FVWM_MODULEDIR}`"; eval my_moddir="$my_moddir"
14398eval my_datdir="`eval echo ${FVWM_DATADIR}`"
14399eval my_docdir="`eval echo ${FVWM_DOCDIR}`"
14400eval my_plldir="`eval echo ${FVWM_PERLLIBDIR}`"
14401test x"$FVWM_PERLLIB" = x && my_plldir="(Not installed) $my_plldir"
14402eval my_localedir="`eval echo ${LOCALEDIR}`"
14403test x"$USE_NLS" = xno && my_localedir="(Not installed) $my_localdir"
14404
14405echo "
14406Fvwm3 Configuration:
14407
14408  Version:     $VERSION ($VERSIONINFO)
14409
14410  Executables: $my_bindir
14411  Man pages:   $my_mandir
14412  Modules:     $my_moddir
14413  Data files:  $my_datdir
14414  Doc files:   $my_docdir
14415  Perl lib:    $my_plldir
14416  Locale msg:  $my_localedir $INST_LINGUAS
14417
14418  With Asian bi-direct. text support? $with_bidi$problem_bidi
14419  With Gettext Native Lang support?   $with_gettext$problem_gettext
14420  With Iconv support?                 $with_iconv_type$problem_iconv
14421  With ReadLine sup. in FvwmConsole?  $with_readline$problem_readline
14422  With Shaped window support?         $with_shape$problem_shape
14423  With Shared memory for XImage?      $with_shm$problem_shm
14424  With Session Management support?    $with_sm$problem_sm
14425  With SVG image support?             $with_rsvg$problem_rsvg
14426  With Xcursor support?               $with_xcursor$problem_xcursor
14427  With Xft anti-alias font support?   $with_xft$problem_xft
14428  With XPM image support?             $with_xpm$problem_xpm
14429  With Xrender image support?         $with_xrender$problem_xrender
14430  With Golang support?                $with_golang$problem_golang
14431  Build man pages?                    $with_mandoc$problem_mandoc
14432
14433"
14434case "$ac_cv_dmalloc" in
14435  yes) echo "  DMALLOC heap debugging library enabled." ;;
14436esac
14437case "$ac_cv_efence" in
14438  yes) echo "  EFENCE debugging library enabled." ;;
14439esac
14440