1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="Source/NSArray.m"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624GCC_VERSION
625SUBMINOR_VERSION
626MINOR_VERSION
627MAJOR_VERSION
628VERSION
629GNUSTEP_INSTALL_GDOMAP_AS_SETUID
630GNUSTEP_GDOMAP_PORT_OVERRIDE
631WARN_FLAGS
632LDIR_FLAGS
633INCLUDE_FLAGS
634USE_GMP
635HAVE_LIBDISPATCH_RUNLOOP
636HAVE_LIBDISPATCH
637HAVE_ICU
638ICU_LIBS
639ICU_CFLAGS
640HAVE_AVAHI
641HAVE_MDNS
642HAVE_GNUTLS
643TLS_LIBS
644TLS_CFLAGS
645TLS_CONFIG
646HAVE_LIBXML
647HAVE_LIBXSLT
648XML_CONFIG
649XML2_CONFIG
650XML_LIBS
651XML_CFLAGS
652WITH_FFI
653GS_FAKE_MAIN
654GS_PASS_ARGUMENTS
655HAVE_INET_NTOP
656HAVE_INET_PTON
657USE_ZLIB
658DEFINE_UINTPTR_T
659DEFINE_INTPTR_T
660DEFINE_UINT64_T
661DEFINE_INT64_T
662DEFINE_UINT32_T
663DEFINE_INT32_T
664DEFINE_UINT16_T
665DEFINE_INT16_T
666DEFINE_UINT8_T
667DEFINE_INT8_T
668INCLUDE_INTTYPES
669HAVE_PTS_STREAM_MODULES
670OBJCFLAGS
671HAVE_OBJC_SYNC_ENTER
672BASE_NATIVE_OBJC_EXCEPTIONS
673GS_MIXEDABI
674GS_NONFRAGILE
675HAVE_BLOCKS
676OBJC2RUNTIME
677OBJCSYNC
678NX_CONST_STRING_CLASS
679NX_CONST_STRING_OBJCFLAGS
680GS_HAVE_OBJC_ROOT_CLASS_ATTR
681GS_ALIGNOF_COND_T
682GS_ALIGNOF_MUTEX_T
683GS_SIZEOF_COND_T
684GS_SIZEOF_MUTEX_T
685DYNAMIC_LINKER
686BUGGY_PTR_LIMITS
687GS_UINTPTR_MAX
688GS_INTPTR_MIN
689GS_INTPTR_MAX
690_GSC_S_LNG_LNG
691_GSC_S_LNG
692_GSC_S_INT
693_GSC_S_SHT
694GS_FLT64
695GS_FLT32
696GS_HAVE_I128
697GS_UINT128
698GS_SINT128
699GS_HAVE_I64
700GS_UINT64
701GS_SINT64
702GS_UINT32
703GS_SINT32
704GS_UINT16
705GS_SINT16
706GS_UADDR
707GS_SADDR
708ac_cv_sizeof_voidp
709ac_cv_sizeof_double
710ac_cv_sizeof_float
711ac_cv_sizeof_long_long
712ac_cv_sizeof_long
713ac_cv_sizeof_int
714ac_cv_sizeof_short
715GS_UINT8
716GS_SINT8
717GS_WORDS_BIGENDIAN
718PKG_CONFIG_LIBDIR
719PKG_CONFIG_PATH
720PKG_CONFIG
721WHOAMI
722CLANG_CC
723EGREP
724GREP
725CPP
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733GNUSTEP_BASE_RELATIVE_PATHS
734GNUSTEP_BASE_DOMAIN
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743build_os
744build_vendor
745build_cpu
746build
747BASE_NONFRAGILE_ABI
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
778PACKAGE_URL
779PACKAGE_BUGREPORT
780PACKAGE_STRING
781PACKAGE_VERSION
782PACKAGE_TARNAME
783PACKAGE_NAME
784PATH_SEPARATOR
785SHELL'
786ac_subst_files=''
787ac_user_opts='
788enable_option_checking
789with_cross_compilation_info
790with_config_file
791enable_environment_config_file
792enable_importing_config_file
793with_default_config
794with_installation_domain
795enable_largefile
796enable_nxconstantstring
797enable_mixedabi
798enable_bfd
799enable_procfs
800enable_procfs_psinfo
801enable_pass_arguments
802enable_fake_main
803with_include_flags
804with_library_flags
805enable_libffi
806enable_ffcall
807enable_invocations
808with_ffi_include
809with_ffi_library
810enable_iconv
811with_libiconv_library
812enable_stricticonv
813enable_xml
814with_xml_prefix
815enable_xmltest
816enable_xslt
817enable_tls
818with_tls_prefix
819enable_tlstest
820enable_zeroconf
821with_zeroconf_api
822enable_icu
823enable_libdispatch
824with_gmp_include
825with_gmp_library
826with_gdomap_port
827enable_setuid_gdomap
828'
829      ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837CPP
838PKG_CONFIG
839PKG_CONFIG_PATH
840PKG_CONFIG_LIBDIR
841XML_CFLAGS
842XML_LIBS
843ICU_CFLAGS
844ICU_LIBS'
845
846
847# Initialize some variables set by options.
848ac_init_help=
849ac_init_version=false
850ac_unrecognized_opts=
851ac_unrecognized_sep=
852# The variables have the same names as the options, with
853# dashes changed to underlines.
854cache_file=/dev/null
855exec_prefix=NONE
856no_create=
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
865verbose=
866x_includes=NONE
867x_libraries=NONE
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
874# (The list follows the same order as the GNU Coding Standards.)
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
894
895ac_prev=
896ac_dashdash=
897for ac_option
898do
899  # If the previous option needs an argument, assign it.
900  if test -n "$ac_prev"; then
901    eval $ac_prev=\$ac_option
902    ac_prev=
903    continue
904  fi
905
906  case $ac_option in
907  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908  *=)   ac_optarg= ;;
909  *)    ac_optarg=yes ;;
910  esac
911
912  # Accept the important Cygnus configure options, so we can diagnose typos.
913
914  case $ac_dashdash$ac_option in
915  --)
916    ac_dashdash=yes ;;
917
918  -bindir | --bindir | --bindi | --bind | --bin | --bi)
919    ac_prev=bindir ;;
920  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921    bindir=$ac_optarg ;;
922
923  -build | --build | --buil | --bui | --bu)
924    ac_prev=build_alias ;;
925  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926    build_alias=$ac_optarg ;;
927
928  -cache-file | --cache-file | --cache-fil | --cache-fi \
929  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930    ac_prev=cache_file ;;
931  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933    cache_file=$ac_optarg ;;
934
935  --config-cache | -C)
936    cache_file=config.cache ;;
937
938  -datadir | --datadir | --datadi | --datad)
939    ac_prev=datadir ;;
940  -datadir=* | --datadir=* | --datadi=* | --datad=*)
941    datadir=$ac_optarg ;;
942
943  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944  | --dataroo | --dataro | --datar)
945    ac_prev=datarootdir ;;
946  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948    datarootdir=$ac_optarg ;;
949
950  -disable-* | --disable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=no ;;
965
966  -docdir | --docdir | --docdi | --doc | --do)
967    ac_prev=docdir ;;
968  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969    docdir=$ac_optarg ;;
970
971  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972    ac_prev=dvidir ;;
973  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974    dvidir=$ac_optarg ;;
975
976  -enable-* | --enable-*)
977    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978    # Reject names that are not valid shell variable names.
979    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980      as_fn_error $? "invalid feature name: $ac_useropt"
981    ac_useropt_orig=$ac_useropt
982    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983    case $ac_user_opts in
984      *"
985"enable_$ac_useropt"
986"*) ;;
987      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988	 ac_unrecognized_sep=', ';;
989    esac
990    eval enable_$ac_useropt=\$ac_optarg ;;
991
992  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994  | --exec | --exe | --ex)
995    ac_prev=exec_prefix ;;
996  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998  | --exec=* | --exe=* | --ex=*)
999    exec_prefix=$ac_optarg ;;
1000
1001  -gas | --gas | --ga | --g)
1002    # Obsolete; use --with-gas.
1003    with_gas=yes ;;
1004
1005  -help | --help | --hel | --he | -h)
1006    ac_init_help=long ;;
1007  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008    ac_init_help=recursive ;;
1009  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010    ac_init_help=short ;;
1011
1012  -host | --host | --hos | --ho)
1013    ac_prev=host_alias ;;
1014  -host=* | --host=* | --hos=* | --ho=*)
1015    host_alias=$ac_optarg ;;
1016
1017  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018    ac_prev=htmldir ;;
1019  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020  | --ht=*)
1021    htmldir=$ac_optarg ;;
1022
1023  -includedir | --includedir | --includedi | --included | --include \
1024  | --includ | --inclu | --incl | --inc)
1025    ac_prev=includedir ;;
1026  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027  | --includ=* | --inclu=* | --incl=* | --inc=*)
1028    includedir=$ac_optarg ;;
1029
1030  -infodir | --infodir | --infodi | --infod | --info | --inf)
1031    ac_prev=infodir ;;
1032  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033    infodir=$ac_optarg ;;
1034
1035  -libdir | --libdir | --libdi | --libd)
1036    ac_prev=libdir ;;
1037  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038    libdir=$ac_optarg ;;
1039
1040  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041  | --libexe | --libex | --libe)
1042    ac_prev=libexecdir ;;
1043  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044  | --libexe=* | --libex=* | --libe=*)
1045    libexecdir=$ac_optarg ;;
1046
1047  -localedir | --localedir | --localedi | --localed | --locale)
1048    ac_prev=localedir ;;
1049  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050    localedir=$ac_optarg ;;
1051
1052  -localstatedir | --localstatedir | --localstatedi | --localstated \
1053  | --localstate | --localstat | --localsta | --localst | --locals)
1054    ac_prev=localstatedir ;;
1055  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057    localstatedir=$ac_optarg ;;
1058
1059  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060    ac_prev=mandir ;;
1061  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062    mandir=$ac_optarg ;;
1063
1064  -nfp | --nfp | --nf)
1065    # Obsolete; use --without-fp.
1066    with_fp=no ;;
1067
1068  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069  | --no-cr | --no-c | -n)
1070    no_create=yes ;;
1071
1072  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074    no_recursion=yes ;;
1075
1076  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078  | --oldin | --oldi | --old | --ol | --o)
1079    ac_prev=oldincludedir ;;
1080  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083    oldincludedir=$ac_optarg ;;
1084
1085  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086    ac_prev=prefix ;;
1087  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088    prefix=$ac_optarg ;;
1089
1090  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091  | --program-pre | --program-pr | --program-p)
1092    ac_prev=program_prefix ;;
1093  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095    program_prefix=$ac_optarg ;;
1096
1097  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098  | --program-suf | --program-su | --program-s)
1099    ac_prev=program_suffix ;;
1100  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102    program_suffix=$ac_optarg ;;
1103
1104  -program-transform-name | --program-transform-name \
1105  | --program-transform-nam | --program-transform-na \
1106  | --program-transform-n | --program-transform- \
1107  | --program-transform | --program-transfor \
1108  | --program-transfo | --program-transf \
1109  | --program-trans | --program-tran \
1110  | --progr-tra | --program-tr | --program-t)
1111    ac_prev=program_transform_name ;;
1112  -program-transform-name=* | --program-transform-name=* \
1113  | --program-transform-nam=* | --program-transform-na=* \
1114  | --program-transform-n=* | --program-transform-=* \
1115  | --program-transform=* | --program-transfor=* \
1116  | --program-transfo=* | --program-transf=* \
1117  | --program-trans=* | --program-tran=* \
1118  | --progr-tra=* | --program-tr=* | --program-t=*)
1119    program_transform_name=$ac_optarg ;;
1120
1121  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122    ac_prev=pdfdir ;;
1123  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124    pdfdir=$ac_optarg ;;
1125
1126  -psdir | --psdir | --psdi | --psd | --ps)
1127    ac_prev=psdir ;;
1128  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129    psdir=$ac_optarg ;;
1130
1131  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132  | -silent | --silent | --silen | --sile | --sil)
1133    silent=yes ;;
1134
1135  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136    ac_prev=sbindir ;;
1137  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138  | --sbi=* | --sb=*)
1139    sbindir=$ac_optarg ;;
1140
1141  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143  | --sharedst | --shareds | --shared | --share | --shar \
1144  | --sha | --sh)
1145    ac_prev=sharedstatedir ;;
1146  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149  | --sha=* | --sh=*)
1150    sharedstatedir=$ac_optarg ;;
1151
1152  -site | --site | --sit)
1153    ac_prev=site ;;
1154  -site=* | --site=* | --sit=*)
1155    site=$ac_optarg ;;
1156
1157  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158    ac_prev=srcdir ;;
1159  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160    srcdir=$ac_optarg ;;
1161
1162  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163  | --syscon | --sysco | --sysc | --sys | --sy)
1164    ac_prev=sysconfdir ;;
1165  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167    sysconfdir=$ac_optarg ;;
1168
1169  -target | --target | --targe | --targ | --tar | --ta | --t)
1170    ac_prev=target_alias ;;
1171  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172    target_alias=$ac_optarg ;;
1173
1174  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175    verbose=yes ;;
1176
1177  -version | --version | --versio | --versi | --vers | -V)
1178    ac_init_version=: ;;
1179
1180  -with-* | --with-*)
1181    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184      as_fn_error $? "invalid package name: $ac_useropt"
1185    ac_useropt_orig=$ac_useropt
1186    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187    case $ac_user_opts in
1188      *"
1189"with_$ac_useropt"
1190"*) ;;
1191      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192	 ac_unrecognized_sep=', ';;
1193    esac
1194    eval with_$ac_useropt=\$ac_optarg ;;
1195
1196  -without-* | --without-*)
1197    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198    # Reject names that are not valid shell variable names.
1199    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200      as_fn_error $? "invalid package name: $ac_useropt"
1201    ac_useropt_orig=$ac_useropt
1202    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203    case $ac_user_opts in
1204      *"
1205"with_$ac_useropt"
1206"*) ;;
1207      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208	 ac_unrecognized_sep=', ';;
1209    esac
1210    eval with_$ac_useropt=no ;;
1211
1212  --x)
1213    # Obsolete; use --with-x.
1214    with_x=yes ;;
1215
1216  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217  | --x-incl | --x-inc | --x-in | --x-i)
1218    ac_prev=x_includes ;;
1219  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221    x_includes=$ac_optarg ;;
1222
1223  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225    ac_prev=x_libraries ;;
1226  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228    x_libraries=$ac_optarg ;;
1229
1230  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information"
1232    ;;
1233
1234  *=*)
1235    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236    # Reject names that are not valid shell variable names.
1237    case $ac_envvar in #(
1238      '' | [0-9]* | *[!_$as_cr_alnum]* )
1239      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240    esac
1241    eval $ac_envvar=\$ac_optarg
1242    export $ac_envvar ;;
1243
1244  *)
1245    # FIXME: should be removed in autoconf 3.0.
1246    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250    ;;
1251
1252  esac
1253done
1254
1255if test -n "$ac_prev"; then
1256  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257  as_fn_error $? "missing argument to $ac_option"
1258fi
1259
1260if test -n "$ac_unrecognized_opts"; then
1261  case $enable_option_checking in
1262    no) ;;
1263    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265  esac
1266fi
1267
1268# Check all directory arguments for consistency.
1269for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270		datadir sysconfdir sharedstatedir localstatedir includedir \
1271		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272		libdir localedir mandir
1273do
1274  eval ac_val=\$$ac_var
1275  # Remove trailing slashes.
1276  case $ac_val in
1277    */ )
1278      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279      eval $ac_var=\$ac_val;;
1280  esac
1281  # Be sure to have absolute directory names.
1282  case $ac_val in
1283    [\\/$]* | ?:[\\/]* )  continue;;
1284    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285  esac
1286  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287done
1288
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
1295
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298  if test "x$build_alias" = x; then
1299    cross_compiling=maybe
1300  elif test "x$build_alias" != "x$host_alias"; then
1301    cross_compiling=yes
1302  fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
1309
1310
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314  as_fn_error $? "working directory cannot be determined"
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316  as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321  ac_srcdir_defaulted=yes
1322  # Try the directory containing this script, then the parent directory.
1323  ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325	 X"$as_myself" : 'X\(//\)[^/]' \| \
1326	 X"$as_myself" : 'X\(//\)$' \| \
1327	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
1329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\/\)[^/].*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\).*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  s/.*/./; q'`
1346  srcdir=$ac_confdir
1347  if test ! -r "$srcdir/$ac_unique_file"; then
1348    srcdir=..
1349  fi
1350else
1351  ac_srcdir_defaulted=no
1352fi
1353if test ! -r "$srcdir/$ac_unique_file"; then
1354  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360	pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363  srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371for ac_var in $ac_precious_vars; do
1372  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373  eval ac_env_${ac_var}_value=\$${ac_var}
1374  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376done
1377
1378#
1379# Report the --help message.
1380#
1381if test "$ac_init_help" = "long"; then
1382  # Omit some internal or obsolete options to make the list less imposing.
1383  # This message is too long to be a string in the A/UX 3.1 sh.
1384  cat <<_ACEOF
1385\`configure' configures this package to adapt to many kinds of systems.
1386
1387Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390VAR=VALUE.  See below for descriptions of some of the useful variables.
1391
1392Defaults for the options are specified in brackets.
1393
1394Configuration:
1395  -h, --help              display this help and exit
1396      --help=short        display options specific to this package
1397      --help=recursive    display the short help of all the included packages
1398  -V, --version           display version information and exit
1399  -q, --quiet, --silent   do not print \`checking ...' messages
1400      --cache-file=FILE   cache test results in FILE [disabled]
1401  -C, --config-cache      alias for \`--cache-file=config.cache'
1402  -n, --no-create         do not create output files
1403      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1404
1405Installation directories:
1406  --prefix=PREFIX         install architecture-independent files in PREFIX
1407                          [$ac_default_prefix]
1408  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1409                          [PREFIX]
1410
1411By default, \`make install' will install all the files in
1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1413an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414for instance \`--prefix=\$HOME'.
1415
1416For better control, use the options below.
1417
1418Fine tuning of the installation directories:
1419  --bindir=DIR            user executables [EPREFIX/bin]
1420  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1421  --libexecdir=DIR        program executables [EPREFIX/libexec]
1422  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1423  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1424  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1425  --libdir=DIR            object code libraries [EPREFIX/lib]
1426  --includedir=DIR        C header files [PREFIX/include]
1427  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1428  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1429  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1430  --infodir=DIR           info documentation [DATAROOTDIR/info]
1431  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1432  --mandir=DIR            man documentation [DATAROOTDIR/man]
1433  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1434  --htmldir=DIR           html documentation [DOCDIR]
1435  --dvidir=DIR            dvi documentation [DOCDIR]
1436  --pdfdir=DIR            pdf documentation [DOCDIR]
1437  --psdir=DIR             ps documentation [DOCDIR]
1438_ACEOF
1439
1440  cat <<\_ACEOF
1441
1442System types:
1443  --build=BUILD     configure for building on BUILD [guessed]
1444  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445  --target=TARGET   configure for building compilers for TARGET [HOST]
1446_ACEOF
1447fi
1448
1449if test -n "$ac_init_help"; then
1450
1451  cat <<\_ACEOF
1452
1453Optional Features:
1454  --disable-option-checking  ignore unrecognized --enable/--with options
1455  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457  --disable-environment-config-file
1458                                Disables the use of the GNUSTEP_CONFIG_FILE
1459				environment variable to specify/override
1460				the location of the GNUstep config file
1461				at runtime.  This option is occasionally
1462				useful to disable the environment variable
1463				for sites which wish to 'lock down' users
1464				to always work with a specific system-wide
1465				configuration.  On unix-like systems the
1466				default is for this option to be enabled.
1467				It is disabled by default on windows systems
1468				so that the base library will not use a
1469				config file intended for the gnustep-make
1470				system (and containing unix-style paths
1471				which cannot be used by windows apps).
1472				Normally this should be left at its default
1473				setting.
1474  --disable-importing-config-file
1475                                Disable importing of an existing GNUstep config
1476				file and use inbuilt defaults instead.
1477  --disable-largefile     omit support for large files
1478  --enable-nxconstantstring
1479	    Enables the use of the NXConstantString class for old compilers.
1480  --disable-mixedabi
1481	    Disables the combined use of fragile and nonfragile ABI so that base
1482	    can be built taking full advantage of the nonfragile ABI.
1483  --enable-bfd
1484	Enables the use of libbfd to provide symbolic stack traces.
1485	Enabling this option provides support for symbolic stack traces
1486	on platforms where the backtrace_symbols() function is not
1487	available or does not work properly.
1488	Enabling this option also has the effect of changing the license
1489	of gnustep-base from LGPL to GPL since libbfd uses the GPL license
1490  --enable-procfs               Use /proc filesystem (default)
1491  --enable-procfs-psinfo         Use /proc/%pid% to get info
1492  --enable-pass-arguments	Force user main call to NSProcessInfo initialize
1493  --enable-fake-main  		Force redefine of user main function
1494  --disable-libffi  		Disable use of libffi library
1495  --enable-ffcall  		Enable use of the deprecated ffcall library
1496  --disable-invocations		Build even if invocation-dependencies are not met
1497  --disable-iconv		Build even if iconv is not available
1498  --enable-stricticonv		Build even if iconv is strict
1499  --disable-xml			Build even if XML-dependencies are not met
1500  --disable-xmltest		Do not try to compile and run a test XML program
1501  --disable-xslt		Build even if XSLT-dependency is not met
1502  --disable-tls			Disable use of GNUTLS
1503  --disable-tlstest		Do not try to compile and run a test TLS program
1504  --disable-zeroconf		Disable NSNetServices support
1505  --disable-icu			Disable International Components for Unicode
1506  --disable-libdispatch		Disable dispatching blocks via libdispatch
1507
1508  --enable-setuid-gdomap        Enable installing gdomap as a setuid
1509                                executable.  By default, it is installed
1510                                as a normal program intended to be started
1511				by root at system boot time, but it can
1512                                also be started up automatically
1513                                by any user at any time.  Use this
1514                                option if you are happy having the program
1515                                started automatically on demand.
1516
1517
1518Optional Packages:
1519  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521  --with-cross-compilation-info=PATH
1522				Specify path to the configuration file that
1523				contains information for the configure script in
1524				case of cross compilation. This information
1525				replaces those obtained from running programmes
1526				during the configuration phase.
1527  --with-config-file=PATH       Specify path to the GNUstep config file.
1528				This is the location to be used by the base
1529				library to locate path information at
1530				application or tool runtime.
1531				This file might not even exist now; it is
1532				not read at configure time.  The base library
1533				will only read it at runtime.
1534				If unspecified, this uses the same value as
1535				the GNUstep make package on unix-like systems,
1536				but uses ./GNUstep.conf on mingw so that
1537				it is relative to the location of the
1538				base library DLL.
1539				If a leading './' is specified, the path
1540				is taken to be relative to the base library
1541				linked runtime, not all operating systems
1542				can support this, so on some platforms you
1543				may need to specify the location of the
1544				config file using the GNUSTEP_CONFIG_FILE
1545				environment variable at runtime.
1546				If a trailing '/' is specified, the path is
1547				used for locating domains but no GNUstep
1548				config file is read at runtime.
1549  --with-default-config=PATH   Specify path to a GNUstep config file to be
1550				imported at configure time (now) and used to
1551				provide default values for the base library
1552				to use at runtime if no GNUstep config file
1553				is found at runtime.  If this is not specified
1554				then the path from the gnustep-make package
1555				is used.
1556  --with-installation-domain=DOMAIN
1557				Specify the domain (SYSTEM, LOCAL,
1558				NETWORK or USER) into which
1559				gnustep-base will be installed.
1560				Whenever relative paths are hardcoded
1561				into gnustep-base (at the moment, this
1562				happens only on MinGW) this option
1563				must be used and must match the domain
1564				where you will be installing
1565				gnustep-base.
1566				If this is not specified, the output of
1567				gnustep-config --installation-domain-for=gnustep-base
1568				(which should normally be LOCAL) is used.
1569  --with-include-flags=FLAGS    Specify all include flags at once
1570  --with-library-flags=FLAGS    Specify all library flags at once
1571  --with-ffi-include=PATH       Include path for ffi headers
1572  --with-ffi-library=PATH       Library path for ffi libs
1573  --with-libiconv-library=PATH  Library path for libiconv libraries
1574  --with-xml-prefix=PFX    Prefix where libxml is installed (optional)
1575  --with-tls-prefix=PFX    Prefix where libgnutls is installed (optional)
1576  --with-zeroconf-api=API  force use of a specific zeroconf API (mdns or avahi)
1577  --with-gmp-include=PATH  include path for gmp headers
1578  --with-gmp-library=PATH  library path for gmp libraries
1579  --with-gdomap-port=PORT  alternative port for gdomap
1580
1581Some influential environment variables:
1582  CC          C compiler command
1583  CFLAGS      C compiler flags
1584  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1585              nonstandard directory <lib dir>
1586  LIBS        libraries to pass to the linker, e.g. -l<library>
1587  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588              you have headers in a nonstandard directory <include dir>
1589  CPP         C preprocessor
1590  PKG_CONFIG  path to pkg-config utility
1591  PKG_CONFIG_PATH
1592              directories to add to pkg-config's search path
1593  PKG_CONFIG_LIBDIR
1594              path overriding pkg-config's built-in search path
1595  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1596  XML_LIBS    linker flags for XML, overriding pkg-config
1597  ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1598  ICU_LIBS    linker flags for ICU, overriding pkg-config
1599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603Report bugs to the package provider.
1604_ACEOF
1605ac_status=$?
1606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609  # If there are subdirs, report their specific --help.
1610  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611    test -d "$ac_dir" ||
1612      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613      continue
1614    ac_builddir=.
1615
1616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
1619  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620  # A ".." for each directory in $ac_dir_suffix.
1621  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622  case $ac_top_builddir_sub in
1623  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625  esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
1631
1632case $srcdir in
1633  .)  # We are building in place.
1634    ac_srcdir=.
1635    ac_top_srcdir=$ac_top_builddir_sub
1636    ac_abs_top_srcdir=$ac_pwd ;;
1637  [\\/]* | ?:[\\/]* )  # Absolute name.
1638    ac_srcdir=$srcdir$ac_dir_suffix;
1639    ac_top_srcdir=$srcdir
1640    ac_abs_top_srcdir=$srcdir ;;
1641  *) # Relative name.
1642    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643    ac_top_srcdir=$ac_top_build_prefix$srcdir
1644    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645esac
1646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648    cd "$ac_dir" || { ac_status=$?; continue; }
1649    # Check for guested configure.
1650    if test -f "$ac_srcdir/configure.gnu"; then
1651      echo &&
1652      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653    elif test -f "$ac_srcdir/configure"; then
1654      echo &&
1655      $SHELL "$ac_srcdir/configure" --help=recursive
1656    else
1657      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658    fi || ac_status=$?
1659    cd "$ac_pwd" || { ac_status=$?; break; }
1660  done
1661fi
1662
1663test -n "$ac_init_help" && exit $ac_status
1664if $ac_init_version; then
1665  cat <<\_ACEOF
1666configure
1667generated by GNU Autoconf 2.69
1668
1669Copyright (C) 2012 Free Software Foundation, Inc.
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
1673  exit
1674fi
1675
1676## ------------------------ ##
1677## Autoconf initialization. ##
1678## ------------------------ ##
1679
1680# ac_fn_c_try_compile LINENO
1681# --------------------------
1682# Try to compile conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_compile ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  rm -f conftest.$ac_objext
1687  if { { ac_try="$ac_compile"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_compile") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && {
1703	 test -z "$ac_c_werror_flag" ||
1704	 test ! -s conftest.err
1705       } && test -s conftest.$ac_objext; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_compile
1717
1718# ac_fn_c_try_cpp LINENO
1719# ----------------------
1720# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_cpp ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  if { { ac_try="$ac_cpp conftest.$ac_ext"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732  ac_status=$?
1733  if test -s conftest.err; then
1734    grep -v '^ *+' conftest.err >conftest.er1
1735    cat conftest.er1 >&5
1736    mv -f conftest.er1 conftest.err
1737  fi
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; } > conftest.i && {
1740	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741	 test ! -s conftest.err
1742       }; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748    ac_retval=1
1749fi
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_cpp
1754
1755# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1758# the include files in INCLUDES and setting the cache variable VAR
1759# accordingly.
1760ac_fn_c_check_header_mongrel ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  if eval \${$3+:} false; then :
1764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767  $as_echo_n "(cached) " >&6
1768fi
1769eval ac_res=\$$3
1770	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772else
1773  # Is the header compilable?
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1775$as_echo_n "checking $2 usability... " >&6; }
1776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778$4
1779#include <$2>
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"; then :
1782  ac_header_compiler=yes
1783else
1784  ac_header_compiler=no
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1788$as_echo "$ac_header_compiler" >&6; }
1789
1790# Is the header present?
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1792$as_echo_n "checking $2 presence... " >&6; }
1793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h.  */
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_cpp "$LINENO"; then :
1798  ac_header_preproc=yes
1799else
1800  ac_header_preproc=no
1801fi
1802rm -f conftest.err conftest.i conftest.$ac_ext
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1804$as_echo "$ac_header_preproc" >&6; }
1805
1806# So?  What about this header?
1807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808  yes:no: )
1809    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1810$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813    ;;
1814  no:yes:* )
1815    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1816$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1818$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1819    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1820$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1821    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1822$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825    ;;
1826esac
1827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if eval \${$3+:} false; then :
1830  $as_echo_n "(cached) " >&6
1831else
1832  eval "$3=\$ac_header_compiler"
1833fi
1834eval ac_res=\$$3
1835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837fi
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840} # ac_fn_c_check_header_mongrel
1841
1842# ac_fn_c_try_run LINENO
1843# ----------------------
1844# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1845# that executables *can* be run.
1846ac_fn_c_try_run ()
1847{
1848  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849  if { { ac_try="$ac_link"
1850case "(($ac_try" in
1851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852  *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856  (eval "$ac_link") 2>&5
1857  ac_status=$?
1858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1860  { { case "(($ac_try" in
1861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862  *) ac_try_echo=$ac_try;;
1863esac
1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865$as_echo "$ac_try_echo"; } >&5
1866  (eval "$ac_try") 2>&5
1867  ac_status=$?
1868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869  test $ac_status = 0; }; }; then :
1870  ac_retval=0
1871else
1872  $as_echo "$as_me: program exited with status $ac_status" >&5
1873       $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876       ac_retval=$ac_status
1877fi
1878  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880  as_fn_set_status $ac_retval
1881
1882} # ac_fn_c_try_run
1883
1884# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1885# -------------------------------------------------------
1886# Tests whether HEADER exists and can be compiled using the include files in
1887# INCLUDES, setting the cache variable VAR accordingly.
1888ac_fn_c_check_header_compile ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if eval \${$3+:} false; then :
1894  $as_echo_n "(cached) " >&6
1895else
1896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h.  */
1898$4
1899#include <$2>
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"; then :
1902  eval "$3=yes"
1903else
1904  eval "$3=no"
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907fi
1908eval ac_res=\$$3
1909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913} # ac_fn_c_check_header_compile
1914
1915# ac_fn_c_try_link LINENO
1916# -----------------------
1917# Try to link conftest.$ac_ext, and return whether this succeeded.
1918ac_fn_c_try_link ()
1919{
1920  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921  rm -f conftest.$ac_objext conftest$ac_exeext
1922  if { { ac_try="$ac_link"
1923case "(($ac_try" in
1924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925  *) ac_try_echo=$ac_try;;
1926esac
1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928$as_echo "$ac_try_echo"; } >&5
1929  (eval "$ac_link") 2>conftest.err
1930  ac_status=$?
1931  if test -s conftest.err; then
1932    grep -v '^ *+' conftest.err >conftest.er1
1933    cat conftest.er1 >&5
1934    mv -f conftest.er1 conftest.err
1935  fi
1936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937  test $ac_status = 0; } && {
1938	 test -z "$ac_c_werror_flag" ||
1939	 test ! -s conftest.err
1940       } && test -s conftest$ac_exeext && {
1941	 test "$cross_compiling" = yes ||
1942	 test -x conftest$ac_exeext
1943       }; then :
1944  ac_retval=0
1945else
1946  $as_echo "$as_me: failed program was:" >&5
1947sed 's/^/| /' conftest.$ac_ext >&5
1948
1949	ac_retval=1
1950fi
1951  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1952  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1953  # interfere with the next link command; also delete a directory that is
1954  # left behind by Apple's compiler.  We do this before executing the actions.
1955  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957  as_fn_set_status $ac_retval
1958
1959} # ac_fn_c_try_link
1960
1961# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962# -------------------------------------------
1963# Tests whether TYPE exists after having included INCLUDES, setting cache
1964# variable VAR accordingly.
1965ac_fn_c_check_type ()
1966{
1967  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if eval \${$3+:} false; then :
1971  $as_echo_n "(cached) " >&6
1972else
1973  eval "$3=no"
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977int
1978main ()
1979{
1980if (sizeof ($2))
1981	 return 0;
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990int
1991main ()
1992{
1993if (sizeof (($2)))
1994	    return 0;
1995  ;
1996  return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000
2001else
2002  eval "$3=yes"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013} # ac_fn_c_check_type
2014
2015# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2016# --------------------------------------------
2017# Tries to find the compile-time value of EXPR in a program that includes
2018# INCLUDES, setting VAR accordingly. Returns whether the value could be
2019# computed
2020ac_fn_c_compute_int ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  if test "$cross_compiling" = yes; then
2024    # Depending upon the size, compute the lo and hi bounds.
2025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h.  */
2027$4
2028int
2029main ()
2030{
2031static int test_array [1 - 2 * !(($2) >= 0)];
2032test_array [0] = 0;
2033return test_array [0];
2034
2035  ;
2036  return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040  ac_lo=0 ac_mid=0
2041  while :; do
2042    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h.  */
2044$4
2045int
2046main ()
2047{
2048static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2049test_array [0] = 0;
2050return test_array [0];
2051
2052  ;
2053  return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
2057  ac_hi=$ac_mid; break
2058else
2059  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060			if test $ac_lo -le $ac_mid; then
2061			  ac_lo= ac_hi=
2062			  break
2063			fi
2064			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067  done
2068else
2069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h.  */
2071$4
2072int
2073main ()
2074{
2075static int test_array [1 - 2 * !(($2) < 0)];
2076test_array [0] = 0;
2077return test_array [0];
2078
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084  ac_hi=-1 ac_mid=-1
2085  while :; do
2086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089int
2090main ()
2091{
2092static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2093test_array [0] = 0;
2094return test_array [0];
2095
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101  ac_lo=$ac_mid; break
2102else
2103  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2104			if test $ac_mid -le $ac_hi; then
2105			  ac_lo= ac_hi=
2106			  break
2107			fi
2108			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111  done
2112else
2113  ac_lo= ac_hi=
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118# Binary search between lo and hi bounds.
2119while test "x$ac_lo" != "x$ac_hi"; do
2120  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h.  */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128test_array [0] = 0;
2129return test_array [0];
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136  ac_hi=$ac_mid
2137else
2138  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2139fi
2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141done
2142case $ac_lo in #((
2143?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2144'') ac_retval=1 ;;
2145esac
2146  else
2147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149$4
2150static long int longval () { return $2; }
2151static unsigned long int ulongval () { return $2; }
2152#include <stdio.h>
2153#include <stdlib.h>
2154int
2155main ()
2156{
2157
2158  FILE *f = fopen ("conftest.val", "w");
2159  if (! f)
2160    return 1;
2161  if (($2) < 0)
2162    {
2163      long int i = longval ();
2164      if (i != ($2))
2165	return 1;
2166      fprintf (f, "%ld", i);
2167    }
2168  else
2169    {
2170      unsigned long int i = ulongval ();
2171      if (i != ($2))
2172	return 1;
2173      fprintf (f, "%lu", i);
2174    }
2175  /* Do not output a trailing newline, as this causes \r\n confusion
2176     on some platforms.  */
2177  return ferror (f) || fclose (f) != 0;
2178
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_run "$LINENO"; then :
2184  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2185else
2186  ac_retval=1
2187fi
2188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2189  conftest.$ac_objext conftest.beam conftest.$ac_ext
2190rm -f conftest.val
2191
2192  fi
2193  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194  as_fn_set_status $ac_retval
2195
2196} # ac_fn_c_compute_int
2197
2198# ac_fn_c_check_func LINENO FUNC VAR
2199# ----------------------------------
2200# Tests whether FUNC exists, setting the cache variable VAR accordingly
2201ac_fn_c_check_func ()
2202{
2203  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205$as_echo_n "checking for $2... " >&6; }
2206if eval \${$3+:} false; then :
2207  $as_echo_n "(cached) " >&6
2208else
2209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h.  */
2211/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2212   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2213#define $2 innocuous_$2
2214
2215/* System header to define __stub macros and hopefully few prototypes,
2216    which can conflict with char $2 (); below.
2217    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2218    <limits.h> exists even on freestanding compilers.  */
2219
2220#ifdef __STDC__
2221# include <limits.h>
2222#else
2223# include <assert.h>
2224#endif
2225
2226#undef $2
2227
2228/* Override any GCC internal prototype to avoid an error.
2229   Use char because int might match the return type of a GCC
2230   builtin and then its argument prototype would still apply.  */
2231#ifdef __cplusplus
2232extern "C"
2233#endif
2234char $2 ();
2235/* The GNU C library defines this for functions which it implements
2236    to always fail with ENOSYS.  Some functions are actually named
2237    something starting with __ and the normal name is an alias.  */
2238#if defined __stub_$2 || defined __stub___$2
2239choke me
2240#endif
2241
2242int
2243main ()
2244{
2245return $2 ();
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250if ac_fn_c_try_link "$LINENO"; then :
2251  eval "$3=yes"
2252else
2253  eval "$3=no"
2254fi
2255rm -f core conftest.err conftest.$ac_objext \
2256    conftest$ac_exeext conftest.$ac_ext
2257fi
2258eval ac_res=\$$3
2259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260$as_echo "$ac_res" >&6; }
2261  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262
2263} # ac_fn_c_check_func
2264
2265# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2266# ----------------------------------------------------
2267# Tries to find if the field MEMBER exists in type AGGR, after including
2268# INCLUDES, setting cache variable VAR accordingly.
2269ac_fn_c_check_member ()
2270{
2271  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2273$as_echo_n "checking for $2.$3... " >&6; }
2274if eval \${$4+:} false; then :
2275  $as_echo_n "(cached) " >&6
2276else
2277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h.  */
2279$5
2280int
2281main ()
2282{
2283static $2 ac_aggr;
2284if (ac_aggr.$3)
2285return 0;
2286  ;
2287  return 0;
2288}
2289_ACEOF
2290if ac_fn_c_try_compile "$LINENO"; then :
2291  eval "$4=yes"
2292else
2293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$5
2296int
2297main ()
2298{
2299static $2 ac_aggr;
2300if (sizeof ac_aggr.$3)
2301return 0;
2302  ;
2303  return 0;
2304}
2305_ACEOF
2306if ac_fn_c_try_compile "$LINENO"; then :
2307  eval "$4=yes"
2308else
2309  eval "$4=no"
2310fi
2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315eval ac_res=\$$4
2316	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317$as_echo "$ac_res" >&6; }
2318  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319
2320} # ac_fn_c_check_member
2321
2322# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2323# ---------------------------------------------
2324# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2325# accordingly.
2326ac_fn_c_check_decl ()
2327{
2328  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329  as_decl_name=`echo $2|sed 's/ *(.*//'`
2330  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2332$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2333if eval \${$3+:} false; then :
2334  $as_echo_n "(cached) " >&6
2335else
2336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h.  */
2338$4
2339int
2340main ()
2341{
2342#ifndef $as_decl_name
2343#ifdef __cplusplus
2344  (void) $as_decl_use;
2345#else
2346  (void) $as_decl_name;
2347#endif
2348#endif
2349
2350  ;
2351  return 0;
2352}
2353_ACEOF
2354if ac_fn_c_try_compile "$LINENO"; then :
2355  eval "$3=yes"
2356else
2357  eval "$3=no"
2358fi
2359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360fi
2361eval ac_res=\$$3
2362	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363$as_echo "$ac_res" >&6; }
2364  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366} # ac_fn_c_check_decl
2367cat >config.log <<_ACEOF
2368This file contains any messages produced by compilers while
2369running configure, to aid debugging if configure makes a mistake.
2370
2371It was created by $as_me, which was
2372generated by GNU Autoconf 2.69.  Invocation command line was
2373
2374  $ $0 $@
2375
2376_ACEOF
2377exec 5>>config.log
2378{
2379cat <<_ASUNAME
2380## --------- ##
2381## Platform. ##
2382## --------- ##
2383
2384hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389
2390/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2392
2393/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2394/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2395/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2397/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2398/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2399/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2400
2401_ASUNAME
2402
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406  IFS=$as_save_IFS
2407  test -z "$as_dir" && as_dir=.
2408    $as_echo "PATH: $as_dir"
2409  done
2410IFS=$as_save_IFS
2411
2412} >&5
2413
2414cat >&5 <<_ACEOF
2415
2416
2417## ----------- ##
2418## Core tests. ##
2419## ----------- ##
2420
2421_ACEOF
2422
2423
2424# Keep a trace of the command line.
2425# Strip out --no-create and --no-recursion so they do not pile up.
2426# Strip out --silent because we don't want to record it for future runs.
2427# Also quote any args containing shell meta-characters.
2428# Make two passes to allow for proper duplicate-argument suppression.
2429ac_configure_args=
2430ac_configure_args0=
2431ac_configure_args1=
2432ac_must_keep_next=false
2433for ac_pass in 1 2
2434do
2435  for ac_arg
2436  do
2437    case $ac_arg in
2438    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440    | -silent | --silent | --silen | --sile | --sil)
2441      continue ;;
2442    *\'*)
2443      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444    esac
2445    case $ac_pass in
2446    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447    2)
2448      as_fn_append ac_configure_args1 " '$ac_arg'"
2449      if test $ac_must_keep_next = true; then
2450	ac_must_keep_next=false # Got value, back to normal.
2451      else
2452	case $ac_arg in
2453	  *=* | --config-cache | -C | -disable-* | --disable-* \
2454	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456	  | -with-* | --with-* | -without-* | --without-* | --x)
2457	    case "$ac_configure_args0 " in
2458	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459	    esac
2460	    ;;
2461	  -* ) ac_must_keep_next=true ;;
2462	esac
2463      fi
2464      as_fn_append ac_configure_args " '$ac_arg'"
2465      ;;
2466    esac
2467  done
2468done
2469{ ac_configure_args0=; unset ac_configure_args0;}
2470{ ac_configure_args1=; unset ac_configure_args1;}
2471
2472# When interrupted or exit'd, cleanup temporary files, and complete
2473# config.log.  We remove comments because anyway the quotes in there
2474# would cause problems or look ugly.
2475# WARNING: Use '\'' to represent an apostrophe within the trap.
2476# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477trap 'exit_status=$?
2478  # Save into config.log some information that might help in debugging.
2479  {
2480    echo
2481
2482    $as_echo "## ---------------- ##
2483## Cache variables. ##
2484## ---------------- ##"
2485    echo
2486    # The following way of writing the cache mishandles newlines in values,
2487(
2488  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489    eval ac_val=\$$ac_var
2490    case $ac_val in #(
2491    *${as_nl}*)
2492      case $ac_var in #(
2493      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495      esac
2496      case $ac_var in #(
2497      _ | IFS | as_nl) ;; #(
2498      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499      *) { eval $ac_var=; unset $ac_var;} ;;
2500      esac ;;
2501    esac
2502  done
2503  (set) 2>&1 |
2504    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505    *${as_nl}ac_space=\ *)
2506      sed -n \
2507	"s/'\''/'\''\\\\'\'''\''/g;
2508	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509      ;; #(
2510    *)
2511      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512      ;;
2513    esac |
2514    sort
2515)
2516    echo
2517
2518    $as_echo "## ----------------- ##
2519## Output variables. ##
2520## ----------------- ##"
2521    echo
2522    for ac_var in $ac_subst_vars
2523    do
2524      eval ac_val=\$$ac_var
2525      case $ac_val in
2526      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527      esac
2528      $as_echo "$ac_var='\''$ac_val'\''"
2529    done | sort
2530    echo
2531
2532    if test -n "$ac_subst_files"; then
2533      $as_echo "## ------------------- ##
2534## File substitutions. ##
2535## ------------------- ##"
2536      echo
2537      for ac_var in $ac_subst_files
2538      do
2539	eval ac_val=\$$ac_var
2540	case $ac_val in
2541	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542	esac
2543	$as_echo "$ac_var='\''$ac_val'\''"
2544      done | sort
2545      echo
2546    fi
2547
2548    if test -s confdefs.h; then
2549      $as_echo "## ----------- ##
2550## confdefs.h. ##
2551## ----------- ##"
2552      echo
2553      cat confdefs.h
2554      echo
2555    fi
2556    test "$ac_signal" != 0 &&
2557      $as_echo "$as_me: caught signal $ac_signal"
2558    $as_echo "$as_me: exit $exit_status"
2559  } >&5
2560  rm -f core *.core core.conftest.* &&
2561    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562    exit $exit_status
2563' 0
2564for ac_signal in 1 2 13 15; do
2565  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2566done
2567ac_signal=0
2568
2569# confdefs.h avoids OS command line length limits that DEFS can exceed.
2570rm -f -r conftest* confdefs.h
2571
2572$as_echo "/* confdefs.h */" > confdefs.h
2573
2574# Predefined preprocessor variables.
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_NAME "$PACKAGE_NAME"
2578_ACEOF
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_VERSION "$PACKAGE_VERSION"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_STRING "$PACKAGE_STRING"
2590_ACEOF
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594_ACEOF
2595
2596cat >>confdefs.h <<_ACEOF
2597#define PACKAGE_URL "$PACKAGE_URL"
2598_ACEOF
2599
2600
2601# Let the site file select an alternate cache file if it wants to.
2602# Prefer an explicitly selected file to automatically selected ones.
2603ac_site_file1=NONE
2604ac_site_file2=NONE
2605if test -n "$CONFIG_SITE"; then
2606  # We do not want a PATH search for config.site.
2607  case $CONFIG_SITE in #((
2608    -*)  ac_site_file1=./$CONFIG_SITE;;
2609    */*) ac_site_file1=$CONFIG_SITE;;
2610    *)   ac_site_file1=./$CONFIG_SITE;;
2611  esac
2612elif test "x$prefix" != xNONE; then
2613  ac_site_file1=$prefix/share/config.site
2614  ac_site_file2=$prefix/etc/config.site
2615else
2616  ac_site_file1=$ac_default_prefix/share/config.site
2617  ac_site_file2=$ac_default_prefix/etc/config.site
2618fi
2619for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620do
2621  test "x$ac_site_file" = xNONE && continue
2622  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625    sed 's/^/| /' "$ac_site_file" >&5
2626    . "$ac_site_file" \
2627      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629as_fn_error $? "failed to load site script $ac_site_file
2630See \`config.log' for more details" "$LINENO" 5; }
2631  fi
2632done
2633
2634if test -r "$cache_file"; then
2635  # Some versions of bash will fail to source /dev/null (special files
2636  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2637  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639$as_echo "$as_me: loading cache $cache_file" >&6;}
2640    case $cache_file in
2641      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642      *)                      . "./$cache_file";;
2643    esac
2644  fi
2645else
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647$as_echo "$as_me: creating cache $cache_file" >&6;}
2648  >$cache_file
2649fi
2650
2651# Check that the precious variables saved in the cache have kept the same
2652# value.
2653ac_cache_corrupted=false
2654for ac_var in $ac_precious_vars; do
2655  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656  eval ac_new_set=\$ac_env_${ac_var}_set
2657  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658  eval ac_new_val=\$ac_env_${ac_var}_value
2659  case $ac_old_set,$ac_new_set in
2660    set,)
2661      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663      ac_cache_corrupted=: ;;
2664    ,set)
2665      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2666$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667      ac_cache_corrupted=: ;;
2668    ,);;
2669    *)
2670      if test "x$ac_old_val" != "x$ac_new_val"; then
2671	# differences in whitespace do not lead to failure.
2672	ac_old_val_w=`echo x $ac_old_val`
2673	ac_new_val_w=`echo x $ac_new_val`
2674	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677	  ac_cache_corrupted=:
2678	else
2679	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681	  eval $ac_var=\$ac_old_val
2682	fi
2683	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2684$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2685	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2686$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2687      fi;;
2688  esac
2689  # Pass precious variables to config.status.
2690  if test "$ac_new_set" = set; then
2691    case $ac_new_val in
2692    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693    *) ac_arg=$ac_var=$ac_new_val ;;
2694    esac
2695    case " $ac_configure_args " in
2696      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2697      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698    esac
2699  fi
2700done
2701if $ac_cache_corrupted; then
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2707fi
2708## -------------------- ##
2709## Main body of script. ##
2710## -------------------- ##
2711
2712ac_ext=c
2713ac_cpp='$CPP $CPPFLAGS'
2714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717
2718
2719
2720
2721
2722# If GNUSTEP_MAKEFILES is undefined, try to use gnustep-config to determine it.
2723if test -z "$GNUSTEP_MAKEFILES"; then
2724  GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES 2>&5`
2725fi
2726
2727if test -z "$GNUSTEP_MAKEFILES"; then
2728  as_fn_error $? "You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" "$LINENO" 5
2729fi
2730
2731# If LIBRARY_COMBO is undefined, try to use gnustep-config to determine it.
2732if test -z "$LIBRARY_COMBO"; then
2733  LIBRARY_COMBO=`gnustep-config --variable=LIBRARY_COMBO 2>&5`
2734fi
2735
2736if test "$OBJC_RUNTIME_LIB" = "ng"; then
2737  nonfragile=yes
2738  BASE_NONFRAGILE_ABI=1
2739else
2740  nonfragile=`gnustep-config --objc-flags | grep _NONFRAGILE_ABI 2>&5`
2741  if test -z "$nonfragile"; then
2742    nonfragile=no
2743    BASE_NONFRAGILE_ABI=0
2744  else
2745    nonfragile=yes
2746    BASE_NONFRAGILE_ABI=1
2747  fi
2748fi
2749
2750
2751MAKECPPFLAGS=`gnustep-config --variable=CPPFLAGS`
2752if test "$CPPFLAGS" = ""; then
2753  CPPFLAGS=$MAKECPPFLAGS
2754  export CPPFLAGS
2755else
2756  if test "$CPPFLAGS" != "$MAKECPPFLAGS"; then
2757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the preprocessor options ($CPPFLAGS) set to a different value from that used by gnustep-make ($MAKECPPFLAGS).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPPFLAGS=$CPPFLAGS or run the gnustep-base configure again with your CPPFLAGS environment variable set to $MAKECPPFLAGS" >&5
2758$as_echo "$as_me: WARNING: You are running configure with the preprocessor options ($CPPFLAGS) set to a different value from that used by gnustep-make ($MAKECPPFLAGS).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPPFLAGS=$CPPFLAGS or run the gnustep-base configure again with your CPPFLAGS environment variable set to $MAKECPPFLAGS" >&2;}
2759  fi
2760fi
2761
2762MAKELDFLAGS=`gnustep-config --variable=LDFLAGS`
2763if test "$LDFLAGS" = ""; then
2764  LDFLAGS=$MAKELDFLAGS
2765  export LDFLAGS
2766else
2767  if test "$LDFLAGS" != "$MAKELDFLAGS"; then
2768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the link options ($LDFLAGS) set to a different value from that used by gnustep-make ($MAKELDFLAGS).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use LDFLAGS=$LDFLAGS or run the gnustep-base configure again with your LDFLAGS environment variable set to $MAKELDFLAGS" >&5
2769$as_echo "$as_me: WARNING: You are running configure with the link options ($LDFLAGS) set to a different value from that used by gnustep-make ($MAKELDFLAGS).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use LDFLAGS=$LDFLAGS or run the gnustep-base configure again with your LDFLAGS environment variable set to $MAKELDFLAGS" >&2;}
2770  fi
2771fi
2772
2773# We shouldn't be loading GNUstep.sh here.  It would load in a lot of
2774# variables which might get confused with the ones that will be used
2775# at runtime.  We will load it later once we have determined (and
2776# saved) the runtime configuration.
2777
2778# This variable might get temporarily overwritten with the
2779# GNUSTEP_MAKEFILES of the runtime configuration, make sure we keep
2780# track of the original one.  CURRENT_GNUSTEP_MAKEFILES is the one
2781# that we use to locate the actual gnustep-make installation that
2782# will build the software.
2783CURRENT_GNUSTEP_MAKEFILES="$GNUSTEP_MAKEFILES"
2784
2785#--------------------------------------------------------------------
2786# Use config.guess, config.sub and install-sh provided by gnustep-make
2787#--------------------------------------------------------------------
2788ac_aux_dir=
2789for ac_dir in $CURRENT_GNUSTEP_MAKEFILES "$srcdir"/$CURRENT_GNUSTEP_MAKEFILES; do
2790  if test -f "$ac_dir/install-sh"; then
2791    ac_aux_dir=$ac_dir
2792    ac_install_sh="$ac_aux_dir/install-sh -c"
2793    break
2794  elif test -f "$ac_dir/install.sh"; then
2795    ac_aux_dir=$ac_dir
2796    ac_install_sh="$ac_aux_dir/install.sh -c"
2797    break
2798  elif test -f "$ac_dir/shtool"; then
2799    ac_aux_dir=$ac_dir
2800    ac_install_sh="$ac_aux_dir/shtool install -c"
2801    break
2802  fi
2803done
2804if test -z "$ac_aux_dir"; then
2805  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $CURRENT_GNUSTEP_MAKEFILES \"$srcdir\"/$CURRENT_GNUSTEP_MAKEFILES" "$LINENO" 5
2806fi
2807
2808# These three variables are undocumented and unsupported,
2809# and are intended to be withdrawn in a future Autoconf release.
2810# They can cause serious problems if a builder's source tree is in a directory
2811# whose full name contains unusual characters.
2812ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2813ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2814ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2815
2816
2817
2818#--------------------------------------------------------------------
2819# Use a .h file with #define's, instead of -D command-line switches
2820#--------------------------------------------------------------------
2821ac_config_headers="$ac_config_headers Headers/GNUstepBase/config.h"
2822
2823
2824#--------------------------------------------------------------------
2825# Determine the host, build, and target systems
2826#--------------------------------------------------------------------
2827# Make sure we can run config.sub.
2828$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2829  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2830
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2832$as_echo_n "checking build system type... " >&6; }
2833if ${ac_cv_build+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  ac_build_alias=$build_alias
2837test "x$ac_build_alias" = x &&
2838  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2839test "x$ac_build_alias" = x &&
2840  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2841ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2842  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2843
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2846$as_echo "$ac_cv_build" >&6; }
2847case $ac_cv_build in
2848*-*-*) ;;
2849*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2850esac
2851build=$ac_cv_build
2852ac_save_IFS=$IFS; IFS='-'
2853set x $ac_cv_build
2854shift
2855build_cpu=$1
2856build_vendor=$2
2857shift; shift
2858# Remember, the first character of IFS is used to create $*,
2859# except with old shells:
2860build_os=$*
2861IFS=$ac_save_IFS
2862case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2863
2864
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2866$as_echo_n "checking host system type... " >&6; }
2867if ${ac_cv_host+:} false; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  if test "x$host_alias" = x; then
2871  ac_cv_host=$ac_cv_build
2872else
2873  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2874    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2875fi
2876
2877fi
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2879$as_echo "$ac_cv_host" >&6; }
2880case $ac_cv_host in
2881*-*-*) ;;
2882*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2883esac
2884host=$ac_cv_host
2885ac_save_IFS=$IFS; IFS='-'
2886set x $ac_cv_host
2887shift
2888host_cpu=$1
2889host_vendor=$2
2890shift; shift
2891# Remember, the first character of IFS is used to create $*,
2892# except with old shells:
2893host_os=$*
2894IFS=$ac_save_IFS
2895case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2896
2897
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2899$as_echo_n "checking target system type... " >&6; }
2900if ${ac_cv_target+:} false; then :
2901  $as_echo_n "(cached) " >&6
2902else
2903  if test "x$target_alias" = x; then
2904  ac_cv_target=$ac_cv_host
2905else
2906  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2907    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2908fi
2909
2910fi
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2912$as_echo "$ac_cv_target" >&6; }
2913case $ac_cv_target in
2914*-*-*) ;;
2915*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2916esac
2917target=$ac_cv_target
2918ac_save_IFS=$IFS; IFS='-'
2919set x $ac_cv_target
2920shift
2921target_cpu=$1
2922target_vendor=$2
2923shift; shift
2924# Remember, the first character of IFS is used to create $*,
2925# except with old shells:
2926target_os=$*
2927IFS=$ac_save_IFS
2928case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2929
2930
2931# The aliases save the names the user supplied, while $host etc.
2932# will get canonicalized.
2933test -n "$target_alias" &&
2934  test "$program_prefix$program_suffix$program_transform_name" = \
2935    NONENONEs,x,x, &&
2936  program_prefix=${target_alias}-
2937
2938#--------------------------------------------------------------------
2939# Setup cross-compilation-information
2940#--------------------------------------------------------------------
2941
2942
2943# Check whether --with-cross-compilation-info was given.
2944if test "${with_cross_compilation_info+set}" = set; then :
2945  withval=$with_cross_compilation_info; cross_result="$withval"
2946else
2947  cross_result="no"
2948
2949fi
2950
2951CROSS_CONFIG="./cross.config"
2952if test "$cross_result" != "no"
2953then
2954 if test -f "$cross_result" && test -r "$cross_result"
2955  then
2956    CROSS_CONFIG="$cross_result"
2957  else
2958    as_fn_error $? "\"Could not load cross-compilation variables from $cross_result\"" "$LINENO" 5
2959  fi
2960fi
2961
2962# import information from the cross-config.
2963. "$CROSS_CONFIG"
2964
2965
2966
2967#---------------------------------------------------------------------
2968# Location of the GNUstep.conf config file (--with-config-file)
2969#---------------------------------------------------------------------
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUstep configuration file to use at runtime" >&5
2971$as_echo_n "checking for GNUstep configuration file to use at runtime... " >&6; }
2972
2973# This requires gnustep-make > 1.13.0 to work.  For gnustep-make =
2974# 1.13.0 we would have to parse
2975# $CURRENT_GNUSTEP_MAKEFILES/$obj_dir/config.make, but $obj_dir is not defined
2976# yet at this stage in config, not sure if it's worth trying to make
2977# it work.  For gnustep-make < 1.13.0 we would have to parse
2978# $CURRENT_GNUSTEP_MAKEFILES/config.make.
2979GNUSTEP_MAKE_CONFIG=`(grep '^GNUSTEP_CONFIG_FILE *=' $CURRENT_GNUSTEP_MAKEFILES/config-noarch.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/') 2>&5`
2980
2981# So, for backwards compatiblity, we try the plain config.make too.
2982# This should work with gnustep-make < 1.13.0, and with 1.13.0 too if
2983# they haven't deleted the file.
2984if test "$GNUSTEP_MAKE_CONFIG"  = ""; then
2985  GNUSTEP_MAKE_CONFIG=`(grep '^GNUSTEP_CONFIG_FILE *=' $CURRENT_GNUSTEP_MAKEFILES/config.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/') 2>&5`
2986fi
2987
2988
2989# Check whether --with-config-file was given.
2990if test "${with_config_file+set}" = set; then :
2991  withval=$with_config_file; result="$withval"
2992else
2993  result="no"
2994
2995fi
2996
2997if test "$result" != "no"
2998then
2999  GNUSTEP_TARGET_CONFIG_FILE="$result"
3000fi
3001if test x"$GNUSTEP_TARGET_CONFIG_FILE" = x""; then
3002  case "$target_os" in
3003    mingw*)
3004      GNUSTEP_TARGET_CONFIG_FILE=./GNUstep.conf ;;
3005    *)
3006      GNUSTEP_TARGET_CONFIG_FILE="$GNUSTEP_MAKE_CONFIG" ;;
3007  esac
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_TARGET_CONFIG_FILE" >&5
3010$as_echo "$GNUSTEP_TARGET_CONFIG_FILE" >&6; }
3011
3012#-----------------------------------------------------------------
3013# Whether the GNUstep.conf file path can be set in the environment
3014# By default this is enabled on unix, but disabled on mswindows
3015# since the normal setup on mswindows is to have the config file
3016# located with the base library dll for runtime configuration and
3017# use the environment variable to control the developer config file
3018# location (used by gnustep-make when building).
3019#-----------------------------------------------------------------
3020case "$target_os" in
3021    mingw*)	enable_env_config=no;;
3022    *)		enable_env_config=yes;;
3023esac
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNUstep.conf file path can be set in the environment" >&5
3025$as_echo_n "checking whether the GNUstep.conf file path can be set in the environment... " >&6; }
3026# Check whether --enable-environment-config-file was given.
3027if test "${enable_environment_config_file+set}" = set; then :
3028  enableval=$enable_environment_config_file; ac_cv_environment_config_file=$enableval
3029else
3030  ac_cv_environment_config_file=$enable_env_config
3031fi
3032
3033if test "$ac_cv_environment_config_file" = "yes"; then
3034
3035$as_echo "#define OPTION_NO_ENVIRONMENT 0" >>confdefs.h
3036
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038$as_echo "yes" >&6; }
3039else
3040
3041$as_echo "#define OPTION_NO_ENVIRONMENT 1" >>confdefs.h
3042
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: disabled from the command-line" >&5
3044$as_echo "no: disabled from the command-line" >&6; }
3045fi
3046
3047#--------------------------------------------------------------------
3048# We are now trying to determine the default GNUstep paths to be
3049# used at runtime.  So all GNUSTEP_xxx variables from now on are to be
3050# considered as 'runtime' ones.  They refer to paths that might not
3051# make any sense now, but might make sense once gnustep-base is
3052# installed in its final location.
3053#---------------------------------------------------------------------
3054
3055#
3056# Set 'standard' defaults for values from configuration file.
3057#
3058case "$target_os" in
3059  *)
3060    GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
3061    GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
3062    GNUSTEP_NETWORK_ROOT=/usr/GNUstep/Local
3063    GNUSTEP_USER_DEFAULTS_DIR=GNUstep/Defaults
3064    GNUSTEP_USER_CONFIG_FILE=.GNUstep.conf
3065    ;;
3066esac
3067
3068#---------------------------------------------------------------------
3069# Now read/import the existing configuration file, if any
3070#---------------------------------------------------------------------
3071
3072# Reading/importing an existing configuration file is good as it means
3073# the built-in default paths in the code will match those of your
3074# installation (or of the config file you specify).
3075# It can be annoying in certain cases though; this option lets you
3076# turn it off.
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should import an existing configuration file now" >&5
3078$as_echo_n "checking if we should import an existing configuration file now... " >&6; }
3079# Check whether --enable-importing-config-file was given.
3080if test "${enable_importing_config_file+set}" = set; then :
3081  enableval=$enable_importing_config_file; ac_cv_importing_config_file=$enableval
3082else
3083  ac_cv_importing_config_file="yes"
3084fi
3085
3086if test "$ac_cv_importing_config_file" = "no"; then
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: disabled from the command-line" >&5
3088$as_echo "no: disabled from the command-line" >&6; }
3089else
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091$as_echo "yes" >&6; }
3092fi
3093
3094
3095if test "$ac_cv_importing_config_file" = "yes" ;
3096then
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default GNUstep configuration file to use" >&5
3098$as_echo_n "checking for default GNUstep configuration file to use... " >&6; }
3099
3100# Check whether --with-default-config was given.
3101if test "${with_default_config+set}" = set; then :
3102  withval=$with_default_config; result="$withval"
3103else
3104  result="no"
3105
3106fi
3107
3108  if test "$result" != "no"
3109  then
3110    GNUSTEP_DEFAULT_CONFIG="$result"
3111  fi
3112  if test "$GNUSTEP_DEFAULT_CONFIG" = ""; then
3113    # No file to import has been specified.  We need to read the paths
3114    # from somewhere though!  GNUstep.sh might not have been sourced,
3115    # so at this stage we have no knowledge of what the paths must be.
3116    # The only place that we can read them from is the gnustep-make
3117    # GNUstep.conf file.
3118    # So we fall back to useing the make settings for the built-in ones.
3119    # However, on mingw these will be msys style paths, and we don't
3120    # want that ... so later on we convert these to portable relative
3121    # paths based on the directory in which the base library will be
3122    # installed.
3123    GNUSTEP_DEFAULT_CONFIG="$GNUSTEP_MAKE_CONFIG"
3124  fi
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_DEFAULT_CONFIG" >&5
3126$as_echo "$GNUSTEP_DEFAULT_CONFIG" >&6; }
3127
3128  #
3129  # Only try importing if the default config file has been specified.
3130  #
3131  if test "$GNUSTEP_DEFAULT_CONFIG" != ""; then
3132    # Make sure we have a slash in the path so that '.' will source it
3133    case $GNUSTEP_DEFAULT_CONFIG in
3134      /*) ;;
3135      *) GNUSTEP_DEFAULT_CONFIG="./$GNUSTEP_DEFAULT_CONFIG" ;;
3136    esac
3137    #
3138    # Use the default config file to override standard values.
3139    #
3140    if test ! -f "$GNUSTEP_DEFAULT_CONFIG"; then
3141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail: file \"$GNUSTEP_DEFAULT_CONFIG\" does not exist" >&5
3142$as_echo "fail: file \"$GNUSTEP_DEFAULT_CONFIG\" does not exist" >&6; }
3143      # Ohoh ... things are not going well.  We are asked to import
3144      # a config file that doesn't exist.  So all paths might be unset
3145      # and who knows what we'll end up hardcoding into gnustep-base.
3146      # It looks like we need to make sure the user knows what they
3147      # are doing, as there is a high chance they don't and might end
3148      # up with a confused/non-working system.  As far as we know, the
3149      # system might be already screwed.  If they don't want to import
3150      # a config file (eg, they don't have one and they don't care about
3151      # the hardcoded paths) they should just say so. ;-)
3152      as_fn_error $? "Please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" "$LINENO" 5
3153      exit 1
3154    else
3155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying to import \"$GNUSTEP_DEFAULT_CONFIG\"" >&5
3156$as_echo "trying to import \"$GNUSTEP_DEFAULT_CONFIG\"" >&6; }
3157      if test -r "$GNUSTEP_DEFAULT_CONFIG"
3158      then
3159        { $as_echo "$as_me:${as_lineno-$LINENO}: If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&5
3160$as_echo "$as_me: If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&6;}
3161        . "$GNUSTEP_DEFAULT_CONFIG"
3162      else
3163        { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail: file \"$GNUSTEP_DEFAULT_CONFIG\" is not readable" >&5
3164$as_echo "fail: file \"$GNUSTEP_DEFAULT_CONFIG\" is not readable" >&6; }
3165	as_fn_error $? "Unable to import configuration file at $GNUSTEP_DEFAULT_CONFIG.  Please run configure again with a revised/corrected --with-default-config= option or with --disable-importing-config-file." "$LINENO" 5
3166	exit 1
3167      fi
3168    fi
3169  fi
3170fi
3171
3172# Now we have the problem of what to do if some of the paths were not
3173# set by GNUstep.conf (eg, old gnustep-make), or if no config file was
3174# read, or if the config file was corrupt.  We decide that the most
3175# likely case is an old gnustep-make, so by default we configure the
3176# other paths basing on GNUSTEP_*_ROOT.
3177
3178# TODO/FIXME: We should really have better checks once the situation
3179# has stabilized.  This is a reasonable hack for now.
3180
3181if test x"$GNUSTEP_MAKEFILES" = x""; then GNUSTEP_MAKEFILES=$GNUSTEP_SYSTEM_ROOT/Library/Makefiles; fi
3182
3183if test x"$GNUSTEP_SYSTEM_USERS_DIR" = x""; then GNUSTEP_SYSTEM_USERS_DIR=/home; fi
3184if test x"$GNUSTEP_NETWORK_USERS_DIR" = x""; then GNUSTEP_NETWORK_USERS_DIR=/home; fi
3185if test x"$GNUSTEP_LOCAL_USERS_DIR" = x""; then GNUSTEP_LOCAL_USERS_DIR=/home; fi
3186
3187if test x"$GNUSTEP_SYSTEM_APPS" = x""; then GNUSTEP_SYSTEM_APPS=$GNUSTEP_SYSTEM_ROOT/Applications; fi
3188if test x"$GNUSTEP_SYSTEM_ADMIN_APPS" = x""; then GNUSTEP_SYSTEM_ADMIN_APPS=$GNUSTEP_SYSTEM_ROOT/Applications/Admin; fi
3189if test x"$GNUSTEP_SYSTEM_WEB_APPS" = x""; then GNUSTEP_SYSTEM_WEB_APPS=$GNUSTEP_SYSTEM_ROOT/WebApplications; fi
3190if test x"$GNUSTEP_SYSTEM_TOOLS" = x""; then GNUSTEP_SYSTEM_TOOLS=$GNUSTEP_SYSTEM_ROOT/Tools; fi
3191if test x"$GNUSTEP_SYSTEM_ADMIN_TOOLS" = x""; then GNUSTEP_SYSTEM_ADMIN_TOOLS=$GNUSTEP_SYSTEM_ROOT/Tools/Admin; fi
3192if test x"$GNUSTEP_SYSTEM_LIBRARY" = x""; then GNUSTEP_SYSTEM_LIBRARY=$GNUSTEP_SYSTEM_ROOT/Library; fi
3193if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then GNUSTEP_SYSTEM_LIBRARIES=$GNUSTEP_SYSTEM_LIBRARY/Libraries; fi
3194if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then GNUSTEP_SYSTEM_HEADERS=$GNUSTEP_SYSTEM_LIBRARY/Headers; fi
3195if test x"$GNUSTEP_SYSTEM_DOC" = x""; then GNUSTEP_SYSTEM_DOC=$GNUSTEP_SYSTEM_LIBRARY/Documentation; fi
3196if test x"$GNUSTEP_SYSTEM_DOC_MAN" = x""; then GNUSTEP_SYSTEM_DOC_MAN=$GNUSTEP_SYSTEM_LIBRARY/Documentation/man; fi
3197if test x"$GNUSTEP_SYSTEM_DOC_INFO" = x""; then GNUSTEP_SYSTEM_DOC_INFO=$GNUSTEP_SYSTEM_LIBRARY/Documentation/info; fi
3198
3199if test x"$GNUSTEP_NETWORK_APPS" = x""; then GNUSTEP_NETWORK_APPS=$GNUSTEP_NETWORK_ROOT/Applications; fi
3200if test x"$GNUSTEP_NETWORK_ADMIN_APPS" = x""; then GNUSTEP_NETWORK_ADMIN_APPS=$GNUSTEP_NETWORK_ROOT/Applications/Admin; fi
3201if test x"$GNUSTEP_NETWORK_WEB_APPS" = x""; then GNUSTEP_NETWORK_APPS=$GNUSTEP_NETWORK_ROOT/WebApplications; fi
3202if test x"$GNUSTEP_NETWORK_TOOLS" = x""; then GNUSTEP_NETWORK_TOOLS=$GNUSTEP_NETWORK_ROOT/Tools; fi
3203if test x"$GNUSTEP_NETWORK_ADMIN_TOOLS" = x""; then GNUSTEP_NETWORK_ADMIN_TOOLS=$GNUSTEP_NETWORK_ROOT/Tools/Admin; fi
3204if test x"$GNUSTEP_NETWORK_LIBRARY" = x""; then GNUSTEP_NETWORK_LIBRARY=$GNUSTEP_NETWORK_ROOT/Library; fi
3205if test x"$GNUSTEP_NETWORK_LIBRARIES" = x""; then GNUSTEP_NETWORK_LIBRARIES=$GNUSTEP_NETWORK_LIBRARY/Libraries; fi
3206if test x"$GNUSTEP_NETWORK_HEADERS" = x""; then GNUSTEP_NETWORK_HEADERS=$GNUSTEP_NETWORK_LIBRARY/Headers; fi
3207if test x"$GNUSTEP_NETWORK_DOC" = x""; then GNUSTEP_NETWORK_DOC=$GNUSTEP_NETWORK_LIBRARY/Documentation; fi
3208if test x"$GNUSTEP_NETWORK_DOC_MAN" = x""; then GNUSTEP_NETWORK_DOC_MAN=$GNUSTEP_NETWORK_LIBRARY/Documentation/man; fi
3209if test x"$GNUSTEP_NETWORK_DOC_INFO" = x""; then GNUSTEP_NETWORK_DOC_INFO=$GNUSTEP_NETWORK_LIBRARY/Documentation/info; fi
3210
3211if test x"$GNUSTEP_LOCAL_APPS" = x""; then GNUSTEP_LOCAL_APPS=$GNUSTEP_LOCAL_ROOT/Applications; fi
3212if test x"$GNUSTEP_LOCAL_ADMIN_APPS" = x""; then GNUSTEP_LOCAL_ADMIN_APPS=$GNUSTEP_LOCAL_ROOT/Applications/Admin; fi
3213if test x"$GNUSTEP_LOCAL_WEB_APPS" = x""; then GNUSTEP_LOCAL_APPS=$GNUSTEP_LOCAL_ROOT/WebApplications; fi
3214if test x"$GNUSTEP_LOCAL_TOOLS" = x""; then GNUSTEP_LOCAL_TOOLS=$GNUSTEP_LOCAL_ROOT/Tools; fi
3215if test x"$GNUSTEP_LOCAL_ADMIN_TOOLS" = x""; then GNUSTEP_LOCAL_ADMIN_TOOLS=$GNUSTEP_LOCAL_ROOT/Tools/Admin; fi
3216if test x"$GNUSTEP_LOCAL_LIBRARY" = x""; then GNUSTEP_LOCAL_LIBRARY=$GNUSTEP_LOCAL_ROOT/Library; fi
3217if test x"$GNUSTEP_LOCAL_LIBRARIES" = x""; then GNUSTEP_LOCAL_LIBRARIES=$GNUSTEP_LOCAL_LIBRARY/Libraries; fi
3218if test x"$GNUSTEP_LOCAL_HEADERS" = x""; then GNUSTEP_LOCAL_HEADERS=$GNUSTEP_LOCAL_LIBRARY/Headers; fi
3219if test x"$GNUSTEP_LOCAL_DOC" = x""; then GNUSTEP_LOCAL_DOC=$GNUSTEP_LOCAL_LIBRARY/Documentation; fi
3220if test x"$GNUSTEP_LOCAL_DOC_MAN" = x""; then GNUSTEP_LOCAL_DOC_MAN=$GNUSTEP_LOCAL_LIBRARY/Documentation/man; fi
3221if test x"$GNUSTEP_LOCAL_DOC_INFO" = x""; then GNUSTEP_LOCAL_DOC_INFO=$GNUSTEP_LOCAL_LIBRARY/Documentation/info; fi
3222
3223if test x"$GNUSTEP_USER_DIR_APPS" = x""; then GNUSTEP_USER_DIR_APPS=$GNUSTEP_USER_DIR/Applications; fi
3224if test x"$GNUSTEP_USER_DIR_ADMIN_APPS" = x""; then GNUSTEP_USER_DIR_ADMIN_APPS=$GNUSTEP_USER_DIR/Applications/Admin; fi
3225if test x"$GNUSTEP_USER_DIR_WEB_APPS" = x""; then GNUSTEP_USER_DIR_APPS=$GNUSTEP_USER_DIR/WebApplications; fi
3226if test x"$GNUSTEP_USER_DIR_TOOLS" = x""; then GNUSTEP_USER_DIR_TOOLS=$GNUSTEP_USER_DIR/Tools; fi
3227if test x"$GNUSTEP_USER_DIR_ADMIN_TOOLS" = x""; then GNUSTEP_USER_DIR_ADMIN_TOOLS=$GNUSTEP_USER_DIR/Tools/Admin; fi
3228if test x"$GNUSTEP_USER_DIR_LIBRARY" = x""; then GNUSTEP_USER_DIR_LIBRARY=$GNUSTEP_USER_DIR/Library; fi
3229if test x"$GNUSTEP_USER_DIR_LIBRARIES" = x""; then GNUSTEP_USER_DIR_LIBRARIES=$GNUSTEP_USER_DIR/Libraries; fi
3230if test x"$GNUSTEP_USER_DIR_HEADERS" = x""; then GNUSTEP_USER_DIR_HEADERS=$GNUSTEP_USER_DIR/Headers; fi
3231if test x"$GNUSTEP_USER_DIR_DOC" = x""; then GNUSTEP_USER_DIR_DOC=$GNUSTEP_USER_DIR/Documentation; fi
3232if test x"$GNUSTEP_USER_DIR_DOC_MAN" = x""; then GNUSTEP_USER_DIR_DOC_MAN=$GNUSTEP_USER_DIR/Documentation/man; fi
3233if test x"$GNUSTEP_USER_DIR_DOC_INFO" = x""; then GNUSTEP_USER_DIR_DOC_INFO=$GNUSTEP_USER_DIR/Documentation/info; fi
3234
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUstep-base installation domain" >&5
3236$as_echo_n "checking for GNUstep-base installation domain... " >&6; }
3237
3238# Check whether --with-installation-domain was given.
3239if test "${with_installation_domain+set}" = set; then :
3240  withval=$with_installation_domain; result="$withval"
3241else
3242  result="no"
3243
3244fi
3245
3246if test "$result" = "no"
3247then
3248  # Check if gnustep-config supports the option
3249  # --installation-domain-for, and use it if available.  That option
3250  # will automatically use the shell variable GNUSTEP_INSTALLATION_DOMAIN or
3251  # the installation-domains.conf files (or the LOCAL default) as appropriate.
3252  # Otherwise, if that option is not available just fall back to
3253  # using GNUSTEP_INSTALLATION_DOMAIN or (if that was not defiend) LOCAL.
3254  if (gnustep-config --help | grep installation-domain) >&5 2>&5
3255  then
3256    result=`gnustep-config --installation-domain-for=gnustep-base 2>&5`
3257  else
3258    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The 'gnustep-config' script was not found or out of date." >&5
3259$as_echo "$as_me: WARNING: The 'gnustep-config' script was not found or out of date." >&2;}
3260    result=$GNUSTEP_INSTALLATION_DOMAIN
3261    if test "$result" = ""
3262    then
3263      # This case was added on December 2008 and is only for backwards
3264      # compatibility with older versions of gnustep-make.
3265      result=LOCAL
3266    fi
3267  fi
3268fi
3269case "$result" in
3270  SYSTEM)
3271    { $as_echo "$as_me:${as_lineno-$LINENO}: result: SYSTEM" >&5
3272$as_echo "SYSTEM" >&6; }
3273    GNUSTEP_BASE_PATH="$GNUSTEP_SYSTEM_TOOLS";;
3274  LOCAL)
3275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: LOCAL" >&5
3276$as_echo "LOCAL" >&6; }
3277    GNUSTEP_BASE_PATH="$GNUSTEP_LOCAL_TOOLS";;
3278  NETWORK)
3279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: NETWORK" >&5
3280$as_echo "NETWORK" >&6; }
3281    GNUSTEP_BASE_PATH="$GNUSTEP_NETWORK_TOOLS";;
3282  USER)
3283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: USER" >&5
3284$as_echo "USER" >&6; }
3285    GNUSTEP_BASE_PATH="$GNUSTEP_USER_TOOLS";;
3286  *)
3287    as_fn_error $? "Unknown installation domain '$result' (it should be SYSTEM, LOCAL, NETWORK or USER).  Please run configure again with the option --with-installation-domain=LOCAL (or whatever domain you want to install into)." "$LINENO" 5
3288    exit 1;;
3289esac
3290# We store GNUSTEP_BASE_DOMAIN in config.mak so that we can check
3291# at runtime and make sure it is consistent with the
3292# GNUSTEP_INSTALLATION_DOMAIN that is used at runtime.
3293GNUSTEP_BASE_DOMAIN=$result
3294
3295
3296#
3297# If we are on mingw, we now want to convert the paths to relative
3298# paths (relative to libgnustep-base.dll).
3299#
3300case "$target_os" in
3301  mingw*)
3302    # TODO: Improve this hack.
3303    # According to Wikipedia, this is the default for Windows 2000,
3304    # Windows XP and Windows Server 2003.  For Windows Vista this will
3305    # change to C:\Users.  The directory name needs to be localized though
3306    # (and the disk may need changing as well ?).
3307    GNUSTEP_SYSTEM_USERS_DIR="C:\Documents and Settings"
3308    GNUSTEP_NETWORK_USERS_DIR="C:\Documents and Settings"
3309    GNUSTEP_LOCAL_USERS_DIR="C:\Documents and Settings"
3310
3311    # TODO: It would be nice to use the 'short' output of
3312    # relative_path.sh, but older versions of relative_path.sh
3313    # did not support specifying the type of output and
3314    # would abort if they were given more than 2 parameters,
3315    # so we can not use the 'short' option if we want gnustep-base
3316    # to work with older versions of gnustep-make.
3317    # Once everyone has upgraded to gnustep-make >= 2.0.5 (I'd say
3318    # two years after it has been released ?), we could switch to the
3319    # 'short' output though.
3320    GNUSTEP_SYSTEM_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_APPS`
3321    GNUSTEP_SYSTEM_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_ADMIN_APPS`
3322    GNUSTEP_SYSTEM_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_WEB_APPS`
3323    GNUSTEP_SYSTEM_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_TOOLS`
3324    GNUSTEP_SYSTEM_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_ADMIN_TOOLS`
3325    GNUSTEP_SYSTEM_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_LIBRARY`
3326    GNUSTEP_SYSTEM_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_LIBRARIES`
3327    GNUSTEP_SYSTEM_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_HEADERS`
3328    GNUSTEP_SYSTEM_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC`
3329    GNUSTEP_SYSTEM_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC_MAN`
3330    GNUSTEP_SYSTEM_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC_INFO`
3331
3332    GNUSTEP_NETWORK_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_APPS`
3333    GNUSTEP_NETWORK_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_ADMIN_APPS`
3334    GNUSTEP_NETWORK_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_WEB_APPS`
3335    GNUSTEP_NETWORK_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_TOOLS`
3336    GNUSTEP_NETWORK_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_ADMIN_TOOLS`
3337    GNUSTEP_NETWORK_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_LIBRARY`
3338    GNUSTEP_NETWORK_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_LIBRARIES`
3339    GNUSTEP_NETWORK_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_HEADERS`
3340    GNUSTEP_NETWORK_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC`
3341    GNUSTEP_NETWORK_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC_MAN`
3342    GNUSTEP_NETWORK_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC_INFO`
3343
3344    GNUSTEP_LOCAL_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_APPS`
3345    GNUSTEP_LOCAL_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_ADMIN_APPS`
3346    GNUSTEP_LOCAL_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_WEB_APPS`
3347    GNUSTEP_LOCAL_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_TOOLS`
3348    GNUSTEP_LOCAL_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_ADMIN_TOOLS`
3349    GNUSTEP_LOCAL_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_LIBRARY`
3350    GNUSTEP_LOCAL_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_LIBRARIES`
3351    GNUSTEP_LOCAL_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_HEADERS`
3352    GNUSTEP_LOCAL_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC`
3353    GNUSTEP_LOCAL_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC_MAN`
3354    GNUSTEP_LOCAL_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC_INFO`
3355# It would be nice to now store this stuff into a ./GNUstep.conf file
3356# installed with gnustep-base.dll.  This would clarify.
3357    ;;
3358esac
3359
3360GNUSTEP_BASE_RELATIVE_PATHS=no
3361
3362# Now, check if any of the paths is a relative path.
3363for path in \
3364 "$GNUSTEP_SYSTEM_APPS" "$GNUSTEP_SYSTEM_ADMIN_APPS" "$GNUSTEP_SYSTEM_WEB_APPS" \
3365 "$GNUSTEP_SYSTEM_TOOLS" "$GNUSTEP_SYSTEM_ADMIN_TOOLS" \
3366 "$GNUSTEP_SYSTEM_LIBRARY" "$GNUSTEP_SYSTEM_LIBRARIES" "$GNUSTEP_SYSTEM_HEADERS" \
3367 "$GNUSTEP_SYSTEM_DOC" "$GNUSTEP_SYSTEM_DOC_MAN" "$GNUSTEP_SYSTEM_DOC_INFO" \
3368 "$GNUSTEP_NETWORK_APPS" "$GNUSTEP_NETWORK_ADMIN_APPS" "$GNUSTEP_NETWORK_WEB_APPS" \
3369 "$GNUSTEP_NETWORK_TOOLS" "$GNUSTEP_NETWORK_ADMIN_TOOLS" \
3370 "$GNUSTEP_NETWORK_LIBRARY" "$GNUSTEP_NETWORK_LIBRARIES" "$GNUSTEP_NETWORK_HEADERS" \
3371 "$GNUSTEP_NETWORK_DOC" "$GNUSTEP_NETWORK_DOC_MAN" "$GNUSTEP_NETWORK_DOC_INFO" \
3372 "$GNUSTEP_LOCAL_APPS" "$GNUSTEP_LOCAL_ADMIN_APPS" "$GNUSTEP_LOCAL_WEB_APPS" \
3373 "$GNUSTEP_LOCAL_TOOLS" "$GNUSTEP_LOCAL_ADMIN_TOOLS" \
3374 "$GNUSTEP_LOCAL_LIBRARY" "$GNUSTEP_LOCAL_LIBRARIES" "$GNUSTEP_LOCAL_HEADERS" \
3375 "$GNUSTEP_LOCAL_DOC" "$GNUSTEP_LOCAL_DOC_MAN" "$GNUSTEP_LOCAL_DOC_INFO"; do
3376case "$path" in
3377  ./*)  GNUSTEP_BASE_RELATIVE_PATHS=yes ;;
3378  ../*) GNUSTEP_BASE_RELATIVE_PATHS=yes ;;
3379esac
3380done
3381
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are hardcoding any relative paths in gnustep-base" >&5
3383$as_echo_n "checking if we are hardcoding any relative paths in gnustep-base... " >&6; }
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_BASE_RELATIVE_PATHS" >&5
3385$as_echo "$GNUSTEP_BASE_RELATIVE_PATHS" >&6; }
3386
3387
3388#
3389# Now, we want to print out the paths that we're going to hardcode
3390# into gnustep-base.  This is to help users in finding
3391# misconfigurations.
3392#
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: We store the following filesystem layout into gnustep-base, to be used when no config file is found" >&5
3394$as_echo "$as_me: We store the following filesystem layout into gnustep-base, to be used when no config file is found" >&6;}
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Makefiles directory" >&5
3396$as_echo_n "checking for Makefiles directory... " >&6; }
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_MAKEFILES" >&5
3398$as_echo "$GNUSTEP_MAKEFILES" >&6; }
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for user defaults directory" >&5
3400$as_echo_n "checking for user defaults directory... " >&6; }
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DEFAULTS_DIR" >&5
3402$as_echo "$GNUSTEP_USER_DEFAULTS_DIR" >&6; }
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for user config file" >&5
3404$as_echo_n "checking for user config file... " >&6; }
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_CONFIG_FILE" >&5
3406$as_echo "$GNUSTEP_USER_CONFIG_FILE" >&6; }
3407
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Applications directory" >&5
3409$as_echo_n "checking for System Applications directory... " >&6; }
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_APPS" >&5
3411$as_echo "$GNUSTEP_SYSTEM_APPS" >&6; }
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Admin Applications directory" >&5
3413$as_echo_n "checking for System Admin Applications directory... " >&6; }
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_ADMIN_APPS" >&5
3415$as_echo "$GNUSTEP_SYSTEM_ADMIN_APPS" >&6; }
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Web Applications directory" >&5
3417$as_echo_n "checking for System Web Applications directory... " >&6; }
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_WEB_APPS" >&5
3419$as_echo "$GNUSTEP_SYSTEM_WEB_APPS" >&6; }
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Tools directory" >&5
3421$as_echo_n "checking for System Tools directory... " >&6; }
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_TOOLS" >&5
3423$as_echo "$GNUSTEP_SYSTEM_TOOLS" >&6; }
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Admin Tools directory" >&5
3425$as_echo_n "checking for System Admin Tools directory... " >&6; }
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_ADMIN_TOOLS" >&5
3427$as_echo "$GNUSTEP_SYSTEM_ADMIN_TOOLS" >&6; }
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Library directory" >&5
3429$as_echo_n "checking for System Library directory... " >&6; }
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_LIBRARY" >&5
3431$as_echo "$GNUSTEP_SYSTEM_LIBRARY" >&6; }
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Libraries directory" >&5
3433$as_echo_n "checking for System Libraries directory... " >&6; }
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_LIBRARIES" >&5
3435$as_echo "$GNUSTEP_SYSTEM_LIBRARIES" >&6; }
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Headers directory" >&5
3437$as_echo_n "checking for System Headers directory... " >&6; }
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_HEADERS" >&5
3439$as_echo "$GNUSTEP_SYSTEM_HEADERS" >&6; }
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Documentation directory" >&5
3441$as_echo_n "checking for System Documentation directory... " >&6; }
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_DOC" >&5
3443$as_echo "$GNUSTEP_SYSTEM_DOC" >&6; }
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Info Documentation directory" >&5
3445$as_echo_n "checking for System Info Documentation directory... " >&6; }
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_DOC_INFO" >&5
3447$as_echo "$GNUSTEP_SYSTEM_DOC_INFO" >&6; }
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System Man Documentation directory" >&5
3449$as_echo_n "checking for System Man Documentation directory... " >&6; }
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_DOC_MAN" >&5
3451$as_echo "$GNUSTEP_SYSTEM_DOC_MAN" >&6; }
3452
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Applications directory" >&5
3454$as_echo_n "checking for Network Applications directory... " >&6; }
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_APPS" >&5
3456$as_echo "$GNUSTEP_NETWORK_APPS" >&6; }
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Admin Applications directory" >&5
3458$as_echo_n "checking for Network Admin Applications directory... " >&6; }
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_ADMIN_APPS" >&5
3460$as_echo "$GNUSTEP_NETWORK_ADMIN_APPS" >&6; }
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Web Applications directory" >&5
3462$as_echo_n "checking for Network Web Applications directory... " >&6; }
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_WEB_APPS" >&5
3464$as_echo "$GNUSTEP_NETWORK_WEB_APPS" >&6; }
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Tools directory" >&5
3466$as_echo_n "checking for Network Tools directory... " >&6; }
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_TOOLS" >&5
3468$as_echo "$GNUSTEP_NETWORK_TOOLS" >&6; }
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Admin Tools directory" >&5
3470$as_echo_n "checking for Network Admin Tools directory... " >&6; }
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_ADMIN_TOOLS" >&5
3472$as_echo "$GNUSTEP_NETWORK_ADMIN_TOOLS" >&6; }
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Library directory" >&5
3474$as_echo_n "checking for Network Library directory... " >&6; }
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_LIBRARY" >&5
3476$as_echo "$GNUSTEP_NETWORK_LIBRARY" >&6; }
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Libraries directory" >&5
3478$as_echo_n "checking for Network Libraries directory... " >&6; }
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_LIBRARIES" >&5
3480$as_echo "$GNUSTEP_NETWORK_LIBRARIES" >&6; }
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Headers directory" >&5
3482$as_echo_n "checking for Network Headers directory... " >&6; }
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_HEADERS" >&5
3484$as_echo "$GNUSTEP_NETWORK_HEADERS" >&6; }
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Documentation directory" >&5
3486$as_echo_n "checking for Network Documentation directory... " >&6; }
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_DOC" >&5
3488$as_echo "$GNUSTEP_NETWORK_DOC" >&6; }
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Info Documentation directory" >&5
3490$as_echo_n "checking for Network Info Documentation directory... " >&6; }
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_DOC_INFO" >&5
3492$as_echo "$GNUSTEP_NETWORK_DOC_INFO" >&6; }
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network Man Documentation directory" >&5
3494$as_echo_n "checking for Network Man Documentation directory... " >&6; }
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_DOC_MAN" >&5
3496$as_echo "$GNUSTEP_NETWORK_DOC_MAN" >&6; }
3497
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Applications directory" >&5
3499$as_echo_n "checking for Local Applications directory... " >&6; }
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_APPS" >&5
3501$as_echo "$GNUSTEP_LOCAL_APPS" >&6; }
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Admin Applications directory" >&5
3503$as_echo_n "checking for Local Admin Applications directory... " >&6; }
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_ADMIN_APPS" >&5
3505$as_echo "$GNUSTEP_LOCAL_ADMIN_APPS" >&6; }
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Web Applications directory" >&5
3507$as_echo_n "checking for Local Web Applications directory... " >&6; }
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_WEB_APPS" >&5
3509$as_echo "$GNUSTEP_LOCAL_WEB_APPS" >&6; }
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Tools directory" >&5
3511$as_echo_n "checking for Local Tools directory... " >&6; }
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_TOOLS" >&5
3513$as_echo "$GNUSTEP_LOCAL_TOOLS" >&6; }
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Admin Tools directory" >&5
3515$as_echo_n "checking for Local Admin Tools directory... " >&6; }
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_ADMIN_TOOLS" >&5
3517$as_echo "$GNUSTEP_LOCAL_ADMIN_TOOLS" >&6; }
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Library directory" >&5
3519$as_echo_n "checking for Local Library directory... " >&6; }
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_LIBRARY" >&5
3521$as_echo "$GNUSTEP_LOCAL_LIBRARY" >&6; }
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Libraries directory" >&5
3523$as_echo_n "checking for Local Libraries directory... " >&6; }
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_LIBRARIES" >&5
3525$as_echo "$GNUSTEP_LOCAL_LIBRARIES" >&6; }
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Headers directory" >&5
3527$as_echo_n "checking for Local Headers directory... " >&6; }
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_HEADERS" >&5
3529$as_echo "$GNUSTEP_LOCAL_HEADERS" >&6; }
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Documentation directory" >&5
3531$as_echo_n "checking for Local Documentation directory... " >&6; }
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_DOC" >&5
3533$as_echo "$GNUSTEP_LOCAL_DOC" >&6; }
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Info Documentation directory" >&5
3535$as_echo_n "checking for Local Info Documentation directory... " >&6; }
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_DOC_INFO" >&5
3537$as_echo "$GNUSTEP_LOCAL_DOC_INFO" >&6; }
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local Man Documentation directory" >&5
3539$as_echo_n "checking for Local Man Documentation directory... " >&6; }
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_DOC_MAN" >&5
3541$as_echo "$GNUSTEP_LOCAL_DOC_MAN" >&6; }
3542
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Applications directory" >&5
3544$as_echo_n "checking for User Applications directory... " >&6; }
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_APPS" >&5
3546$as_echo "$GNUSTEP_USER_DIR_APPS" >&6; }
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Admin Applications directory" >&5
3548$as_echo_n "checking for User Admin Applications directory... " >&6; }
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_ADMIN_APPS" >&5
3550$as_echo "$GNUSTEP_USER_DIR_ADMIN_APPS" >&6; }
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Web Applications directory" >&5
3552$as_echo_n "checking for User Web Applications directory... " >&6; }
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_WEB_APPS" >&5
3554$as_echo "$GNUSTEP_USER_DIR_WEB_APPS" >&6; }
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Tools directory" >&5
3556$as_echo_n "checking for User Tools directory... " >&6; }
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_TOOLS" >&5
3558$as_echo "$GNUSTEP_USER_DIR_TOOLS" >&6; }
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Admin Tools directory" >&5
3560$as_echo_n "checking for User Admin Tools directory... " >&6; }
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_ADMIN_TOOLS" >&5
3562$as_echo "$GNUSTEP_USER_DIR_ADMIN_TOOLS" >&6; }
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Library directory" >&5
3564$as_echo_n "checking for User Library directory... " >&6; }
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_LIBRARY" >&5
3566$as_echo "$GNUSTEP_USER_DIR_LIBRARY" >&6; }
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Libraries directory" >&5
3568$as_echo_n "checking for User Libraries directory... " >&6; }
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_LIBRARIES" >&5
3570$as_echo "$GNUSTEP_USER_DIR_LIBRARIES" >&6; }
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Headers directory" >&5
3572$as_echo_n "checking for User Headers directory... " >&6; }
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_HEADERS" >&5
3574$as_echo "$GNUSTEP_USER_DIR_HEADERS" >&6; }
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Documentation directory" >&5
3576$as_echo_n "checking for User Documentation directory... " >&6; }
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_DOC" >&5
3578$as_echo "$GNUSTEP_USER_DIR_DOC" >&6; }
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Info Documentation directory" >&5
3580$as_echo_n "checking for User Info Documentation directory... " >&6; }
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_DOC_INFO" >&5
3582$as_echo "$GNUSTEP_USER_DIR_DOC_INFO" >&6; }
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for User Man Documentation directory" >&5
3584$as_echo_n "checking for User Man Documentation directory... " >&6; }
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_DOC_MAN" >&5
3586$as_echo "$GNUSTEP_USER_DIR_DOC_MAN" >&6; }
3587
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System User directory" >&5
3589$as_echo_n "checking for System User directory... " >&6; }
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_USERS_DIR" >&5
3591$as_echo "$GNUSTEP_SYSTEM_USERS_DIR" >&6; }
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Network User directory" >&5
3593$as_echo_n "checking for Network User directory... " >&6; }
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_USERS_DIR" >&5
3595$as_echo "$GNUSTEP_NETWORK_USERS_DIR" >&6; }
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Local User directory" >&5
3597$as_echo_n "checking for Local User directory... " >&6; }
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_USERS_DIR" >&5
3599$as_echo "$GNUSTEP_LOCAL_USERS_DIR" >&6; }
3600
3601#
3602# Set the default configuration file values in config.h to be hard-coded
3603# into NSPathUtilities.m
3604#
3605GNUSTEP_MAKEFILES=`echo $GNUSTEP_MAKEFILES|sed -e 's/\\\\/\\\\\\\\/g'`
3606
3607cat >>confdefs.h <<_ACEOF
3608#define GNUSTEP_TARGET_MAKEFILES "$GNUSTEP_MAKEFILES"
3609_ACEOF
3610
3611GNUSTEP_USER_DEFAULTS_DIR=`echo $GNUSTEP_USER_DEFAULTS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
3612
3613cat >>confdefs.h <<_ACEOF
3614#define GNUSTEP_TARGET_USER_DEFAULTS_DIR "$GNUSTEP_USER_DEFAULTS_DIR"
3615_ACEOF
3616
3617GNUSTEP_USER_CONFIG_FILE=`echo $GNUSTEP_USER_CONFIG_FILE|sed -e 's/\\\\/\\\\\\\\/g'`
3618
3619cat >>confdefs.h <<_ACEOF
3620#define GNUSTEP_TARGET_USER_CONFIG_FILE "$GNUSTEP_USER_CONFIG_FILE"
3621_ACEOF
3622
3623GNUSTEP_TARGET_CONFIG_FILE=`echo $GNUSTEP_TARGET_CONFIG_FILE|sed -e 's/\\\\/\\\\\\\\/g'`
3624
3625cat >>confdefs.h <<_ACEOF
3626#define GNUSTEP_TARGET_CONFIG_FILE "$GNUSTEP_TARGET_CONFIG_FILE"
3627_ACEOF
3628
3629
3630#
3631# SYSTEM domain paths
3632#
3633GNUSTEP_SYSTEM_APPS=`echo $GNUSTEP_SYSTEM_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3634
3635cat >>confdefs.h <<_ACEOF
3636#define GNUSTEP_TARGET_SYSTEM_APPS "$GNUSTEP_SYSTEM_APPS"
3637_ACEOF
3638
3639
3640GNUSTEP_SYSTEM_ADMIN_APPS=`echo $GNUSTEP_SYSTEM_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3641
3642cat >>confdefs.h <<_ACEOF
3643#define GNUSTEP_TARGET_SYSTEM_ADMIN_APPS "$GNUSTEP_SYSTEM_ADMIN_APPS"
3644_ACEOF
3645
3646
3647GNUSTEP_SYSTEM_WEB_APPS=`echo $GNUSTEP_SYSTEM_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3648
3649cat >>confdefs.h <<_ACEOF
3650#define GNUSTEP_TARGET_SYSTEM_WEB_APPS "$GNUSTEP_SYSTEM_WEB_APPS"
3651_ACEOF
3652
3653
3654GNUSTEP_SYSTEM_TOOLS=`echo $GNUSTEP_SYSTEM_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3655
3656cat >>confdefs.h <<_ACEOF
3657#define GNUSTEP_TARGET_SYSTEM_TOOLS "$GNUSTEP_SYSTEM_TOOLS"
3658_ACEOF
3659
3660
3661GNUSTEP_SYSTEM_ADMIN_TOOLS=`echo $GNUSTEP_SYSTEM_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3662
3663cat >>confdefs.h <<_ACEOF
3664#define GNUSTEP_TARGET_SYSTEM_ADMIN_TOOLS "$GNUSTEP_SYSTEM_ADMIN_TOOLS"
3665_ACEOF
3666
3667
3668GNUSTEP_SYSTEM_LIBRARY=`echo $GNUSTEP_SYSTEM_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
3669
3670cat >>confdefs.h <<_ACEOF
3671#define GNUSTEP_TARGET_SYSTEM_LIBRARY "$GNUSTEP_SYSTEM_LIBRARY"
3672_ACEOF
3673
3674
3675GNUSTEP_SYSTEM_LIBRARIES=`echo $GNUSTEP_SYSTEM_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
3676
3677cat >>confdefs.h <<_ACEOF
3678#define GNUSTEP_TARGET_SYSTEM_LIBRARIES "$GNUSTEP_SYSTEM_LIBRARIES"
3679_ACEOF
3680
3681
3682GNUSTEP_SYSTEM_HEADERS=`echo $GNUSTEP_SYSTEM_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
3683
3684cat >>confdefs.h <<_ACEOF
3685#define GNUSTEP_TARGET_SYSTEM_HEADERS "$GNUSTEP_SYSTEM_HEADERS"
3686_ACEOF
3687
3688
3689GNUSTEP_SYSTEM_DOC=`echo $GNUSTEP_SYSTEM_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
3690
3691cat >>confdefs.h <<_ACEOF
3692#define GNUSTEP_TARGET_SYSTEM_DOC "$GNUSTEP_SYSTEM_DOC"
3693_ACEOF
3694
3695
3696GNUSTEP_SYSTEM_DOC_MAN=`echo $GNUSTEP_SYSTEM_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
3697
3698cat >>confdefs.h <<_ACEOF
3699#define GNUSTEP_TARGET_SYSTEM_DOC_MAN "$GNUSTEP_SYSTEM_DOC_MAN"
3700_ACEOF
3701
3702
3703GNUSTEP_SYSTEM_DOC_INFO=`echo $GNUSTEP_SYSTEM_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
3704
3705cat >>confdefs.h <<_ACEOF
3706#define GNUSTEP_TARGET_SYSTEM_DOC_INFO "$GNUSTEP_SYSTEM_DOC_INFO"
3707_ACEOF
3708
3709
3710#
3711# NETWORK domain paths
3712#
3713GNUSTEP_NETWORK_APPS=`echo $GNUSTEP_NETWORK_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3714
3715cat >>confdefs.h <<_ACEOF
3716#define GNUSTEP_TARGET_NETWORK_APPS "$GNUSTEP_NETWORK_APPS"
3717_ACEOF
3718
3719
3720GNUSTEP_NETWORK_ADMIN_APPS=`echo $GNUSTEP_NETWORK_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3721
3722cat >>confdefs.h <<_ACEOF
3723#define GNUSTEP_TARGET_NETWORK_ADMIN_APPS "$GNUSTEP_NETWORK_ADMIN_APPS"
3724_ACEOF
3725
3726
3727GNUSTEP_NETWORK_WEB_APPS=`echo $GNUSTEP_NETWORK_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3728
3729cat >>confdefs.h <<_ACEOF
3730#define GNUSTEP_TARGET_NETWORK_WEB_APPS "$GNUSTEP_NETWORK_WEB_APPS"
3731_ACEOF
3732
3733
3734GNUSTEP_NETWORK_TOOLS=`echo $GNUSTEP_NETWORK_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3735
3736cat >>confdefs.h <<_ACEOF
3737#define GNUSTEP_TARGET_NETWORK_TOOLS "$GNUSTEP_NETWORK_TOOLS"
3738_ACEOF
3739
3740
3741GNUSTEP_NETWORK_ADMIN_TOOLS=`echo $GNUSTEP_NETWORK_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3742
3743cat >>confdefs.h <<_ACEOF
3744#define GNUSTEP_TARGET_NETWORK_ADMIN_TOOLS "$GNUSTEP_NETWORK_ADMIN_TOOLS"
3745_ACEOF
3746
3747
3748GNUSTEP_NETWORK_LIBRARY=`echo $GNUSTEP_NETWORK_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
3749
3750cat >>confdefs.h <<_ACEOF
3751#define GNUSTEP_TARGET_NETWORK_LIBRARY "$GNUSTEP_NETWORK_LIBRARY"
3752_ACEOF
3753
3754
3755GNUSTEP_NETWORK_LIBRARIES=`echo $GNUSTEP_NETWORK_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
3756
3757cat >>confdefs.h <<_ACEOF
3758#define GNUSTEP_TARGET_NETWORK_LIBRARIES "$GNUSTEP_NETWORK_LIBRARIES"
3759_ACEOF
3760
3761
3762GNUSTEP_NETWORK_HEADERS=`echo $GNUSTEP_NETWORK_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
3763
3764cat >>confdefs.h <<_ACEOF
3765#define GNUSTEP_TARGET_NETWORK_HEADERS "$GNUSTEP_NETWORK_HEADERS"
3766_ACEOF
3767
3768
3769GNUSTEP_NETWORK_DOC=`echo $GNUSTEP_NETWORK_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
3770
3771cat >>confdefs.h <<_ACEOF
3772#define GNUSTEP_TARGET_NETWORK_DOC "$GNUSTEP_NETWORK_DOC"
3773_ACEOF
3774
3775
3776GNUSTEP_NETWORK_DOC_MAN=`echo $GNUSTEP_NETWORK_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
3777
3778cat >>confdefs.h <<_ACEOF
3779#define GNUSTEP_TARGET_NETWORK_DOC_MAN "$GNUSTEP_NETWORK_DOC_MAN"
3780_ACEOF
3781
3782
3783GNUSTEP_NETWORK_DOC_INFO=`echo $GNUSTEP_NETWORK_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
3784
3785cat >>confdefs.h <<_ACEOF
3786#define GNUSTEP_TARGET_NETWORK_DOC_INFO "$GNUSTEP_NETWORK_DOC_INFO"
3787_ACEOF
3788
3789
3790#
3791# LOCAL domain paths
3792#
3793GNUSTEP_LOCAL_APPS=`echo $GNUSTEP_LOCAL_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3794
3795cat >>confdefs.h <<_ACEOF
3796#define GNUSTEP_TARGET_LOCAL_APPS "$GNUSTEP_LOCAL_APPS"
3797_ACEOF
3798
3799
3800GNUSTEP_LOCAL_ADMIN_APPS=`echo $GNUSTEP_LOCAL_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3801
3802cat >>confdefs.h <<_ACEOF
3803#define GNUSTEP_TARGET_LOCAL_ADMIN_APPS "$GNUSTEP_LOCAL_ADMIN_APPS"
3804_ACEOF
3805
3806
3807GNUSTEP_LOCAL_WEB_APPS=`echo $GNUSTEP_LOCAL_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3808
3809cat >>confdefs.h <<_ACEOF
3810#define GNUSTEP_TARGET_LOCAL_WEB_APPS "$GNUSTEP_LOCAL_WEB_APPS"
3811_ACEOF
3812
3813
3814GNUSTEP_LOCAL_TOOLS=`echo $GNUSTEP_LOCAL_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3815
3816cat >>confdefs.h <<_ACEOF
3817#define GNUSTEP_TARGET_LOCAL_TOOLS "$GNUSTEP_LOCAL_TOOLS"
3818_ACEOF
3819
3820
3821GNUSTEP_LOCAL_ADMIN_TOOLS=`echo $GNUSTEP_LOCAL_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3822
3823cat >>confdefs.h <<_ACEOF
3824#define GNUSTEP_TARGET_LOCAL_ADMIN_TOOLS "$GNUSTEP_LOCAL_ADMIN_TOOLS"
3825_ACEOF
3826
3827
3828GNUSTEP_LOCAL_LIBRARY=`echo $GNUSTEP_LOCAL_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
3829
3830cat >>confdefs.h <<_ACEOF
3831#define GNUSTEP_TARGET_LOCAL_LIBRARY "$GNUSTEP_LOCAL_LIBRARY"
3832_ACEOF
3833
3834
3835GNUSTEP_LOCAL_LIBRARIES=`echo $GNUSTEP_LOCAL_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
3836
3837cat >>confdefs.h <<_ACEOF
3838#define GNUSTEP_TARGET_LOCAL_LIBRARIES "$GNUSTEP_LOCAL_LIBRARIES"
3839_ACEOF
3840
3841
3842GNUSTEP_LOCAL_HEADERS=`echo $GNUSTEP_LOCAL_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
3843
3844cat >>confdefs.h <<_ACEOF
3845#define GNUSTEP_TARGET_LOCAL_HEADERS "$GNUSTEP_LOCAL_HEADERS"
3846_ACEOF
3847
3848
3849GNUSTEP_LOCAL_DOC=`echo $GNUSTEP_LOCAL_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
3850
3851cat >>confdefs.h <<_ACEOF
3852#define GNUSTEP_TARGET_LOCAL_DOC "$GNUSTEP_LOCAL_DOC"
3853_ACEOF
3854
3855
3856GNUSTEP_LOCAL_DOC_MAN=`echo $GNUSTEP_LOCAL_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
3857
3858cat >>confdefs.h <<_ACEOF
3859#define GNUSTEP_TARGET_LOCAL_DOC_MAN "$GNUSTEP_LOCAL_DOC_MAN"
3860_ACEOF
3861
3862
3863GNUSTEP_LOCAL_DOC_INFO=`echo $GNUSTEP_LOCAL_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
3864
3865cat >>confdefs.h <<_ACEOF
3866#define GNUSTEP_TARGET_LOCAL_DOC_INFO "$GNUSTEP_LOCAL_DOC_INFO"
3867_ACEOF
3868
3869
3870#
3871# USER_DIR domain paths
3872#
3873GNUSTEP_USER_DIR_APPS=`echo $GNUSTEP_USER_DIR_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3874
3875cat >>confdefs.h <<_ACEOF
3876#define GNUSTEP_TARGET_USER_DIR_APPS "$GNUSTEP_USER_DIR_APPS"
3877_ACEOF
3878
3879
3880GNUSTEP_USER_DIR_ADMIN_APPS=`echo $GNUSTEP_USER_DIR_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3881
3882cat >>confdefs.h <<_ACEOF
3883#define GNUSTEP_TARGET_USER_DIR_ADMIN_APPS "$GNUSTEP_USER_DIR_ADMIN_APPS"
3884_ACEOF
3885
3886
3887GNUSTEP_USER_DIR_WEB_APPS=`echo $GNUSTEP_USER_DIR_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
3888
3889cat >>confdefs.h <<_ACEOF
3890#define GNUSTEP_TARGET_USER_DIR_WEB_APPS "$GNUSTEP_USER_DIR_WEB_APPS"
3891_ACEOF
3892
3893
3894GNUSTEP_USER_DIR_TOOLS=`echo $GNUSTEP_USER_DIR_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3895
3896cat >>confdefs.h <<_ACEOF
3897#define GNUSTEP_TARGET_USER_DIR_TOOLS "$GNUSTEP_USER_DIR_TOOLS"
3898_ACEOF
3899
3900
3901GNUSTEP_USER_DIR_ADMIN_TOOLS=`echo $GNUSTEP_USER_DIR_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
3902
3903cat >>confdefs.h <<_ACEOF
3904#define GNUSTEP_TARGET_USER_DIR_ADMIN_TOOLS "$GNUSTEP_USER_DIR_ADMIN_TOOLS"
3905_ACEOF
3906
3907
3908GNUSTEP_USER_DIR_LIBRARY=`echo $GNUSTEP_USER_DIR_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
3909
3910cat >>confdefs.h <<_ACEOF
3911#define GNUSTEP_TARGET_USER_DIR_LIBRARY "$GNUSTEP_USER_DIR_LIBRARY"
3912_ACEOF
3913
3914
3915GNUSTEP_USER_DIR_LIBRARIES=`echo $GNUSTEP_USER_DIR_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
3916
3917cat >>confdefs.h <<_ACEOF
3918#define GNUSTEP_TARGET_USER_DIR_LIBRARIES "$GNUSTEP_USER_DIR_LIBRARIES"
3919_ACEOF
3920
3921
3922GNUSTEP_USER_DIR_HEADERS=`echo $GNUSTEP_USER_DIR_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
3923
3924cat >>confdefs.h <<_ACEOF
3925#define GNUSTEP_TARGET_USER_DIR_HEADERS "$GNUSTEP_USER_DIR_HEADERS"
3926_ACEOF
3927
3928
3929GNUSTEP_USER_DIR_DOC=`echo $GNUSTEP_USER_DIR_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
3930
3931cat >>confdefs.h <<_ACEOF
3932#define GNUSTEP_TARGET_USER_DIR_DOC "$GNUSTEP_USER_DIR_DOC"
3933_ACEOF
3934
3935
3936GNUSTEP_USER_DIR_DOC_MAN=`echo $GNUSTEP_USER_DIR_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
3937
3938cat >>confdefs.h <<_ACEOF
3939#define GNUSTEP_TARGET_USER_DIR_DOC_MAN "$GNUSTEP_USER_DIR_DOC_MAN"
3940_ACEOF
3941
3942
3943GNUSTEP_USER_DIR_DOC_INFO=`echo $GNUSTEP_USER_DIR_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
3944
3945cat >>confdefs.h <<_ACEOF
3946#define GNUSTEP_TARGET_USER_DIR_DOC_INFO "$GNUSTEP_USER_DIR_DOC_INFO"
3947_ACEOF
3948
3949
3950GNUSTEP_TARGET_SYSTEM_USERS_DIR=`echo $GNUSTEP_TARGET_SYSTEM_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
3951
3952cat >>confdefs.h <<_ACEOF
3953#define GNUSTEP_TARGET_SYSTEM_USERS_DIR "$GNUSTEP_TARGET_SYSTEM_USERS_DIR"
3954_ACEOF
3955
3956GNUSTEP_TARGET_NETWORK_USERS_DIR=`echo $GNUSTEP_TARGET_NETWORK_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
3957
3958cat >>confdefs.h <<_ACEOF
3959#define GNUSTEP_TARGET_NETWORK_USERS_DIR "$GNUSTEP_TARGET_NETWORK_USERS_DIR"
3960_ACEOF
3961
3962GNUSTEP_TARGET_LOCAL_USERS_DIR=`echo $GNUSTEP_TARGET_LOCAL_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
3963
3964cat >>confdefs.h <<_ACEOF
3965#define GNUSTEP_TARGET_LOCAL_USERS_DIR "$GNUSTEP_TARGET_LOCAL_USERS_DIR"
3966_ACEOF
3967
3968
3969#
3970# Now load the values to be used in locating libraries etc used when
3971# building the base library ... as supplied by the gnustep-make package
3972#
3973# It looks like we ought to source the whole GNUstep.sh here, and even
3974# ask it to output all variables!  That way we have access to (eg)
3975# GNUSTEP_SYSTEM_HEADERS below.
3976#
3977# We need to unset any values that we really need, or existing settings
3978# would be used by GNUstep.sh
3979#
3980unset GNUSTEP_SYSTEM_HEADERS
3981unset GNUSTEP_SYSTEM_LIBRARIES
3982unset GNUSTEP_NETWORK_HEADERS
3983unset GNUSTEP_NETWORK_LIBRARIES
3984unset GNUSTEP_LOCAL_HEADERS
3985unset GNUSTEP_LOCAL_LIBRARIES
3986GNUSTEP_MAKEFILES="$CURRENT_GNUSTEP_MAKEFILES"
3987GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes
3988. "$CURRENT_GNUSTEP_MAKEFILES/GNUstep.sh"
3989unset GNUSTEP_SH_EXPORT_ALL_VARIABLES
3990
3991# For backwards compatibility, define GNUSTEP_SYSTEM_HEADERS from
3992# GNUSTEP_SYSTEM_ROOT if not set yet.
3993if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then
3994  GNUSTEP_SYSTEM_HEADERS="$GNUSTEP_SYSTEM_ROOT/Library/Headers"
3995fi
3996
3997if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then
3998  GNUSTEP_SYSTEM_LIBRARIES="$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
3999fi
4000
4001if test x"$GNUSTEP_NETWORK_HEADERS" = x""; then
4002  GNUSTEP_NETWORK_HEADERS="$GNUSTEP_NETWORK_ROOT/Library/Headers"
4003fi
4004
4005if test x"$GNUSTEP_NETWORK_LIBRARIES" = x""; then
4006  GNUSTEP_NETWORK_LIBRARIES="$GNUSTEP_NETWORK_ROOT/Library/Libraries"
4007fi
4008
4009if test x"$GNUSTEP_LOCAL_HEADERS" = x""; then
4010  GNUSTEP_LOCAL_HEADERS="$GNUSTEP_LOCAL_ROOT/Library/Headers"
4011fi
4012
4013if test x"$GNUSTEP_LOCAL_LIBRARIES" = x""; then
4014  GNUSTEP_LOCAL_LIBRARIES="$GNUSTEP_LOCAL_ROOT/Library/Libraries"
4015fi
4016
4017#
4018# Add standard library and header directories for configure to use to locate
4019# plain C developer headers/libraries which have been installed in the
4020# GNUstep hierarchy. These take precedence
4021#
4022if test x"$GNUSTEP_IS_FLATTENED" = x"yes"; then
4023  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS"
4024  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS"
4025  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS"
4026  LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES"
4027  LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES"
4028  LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES"
4029else
4030  # FIXME: Cross-compiling should read the target from the configure
4031  # options and use it.   GNUSTEP_TARGET_* variables do not exist in
4032  # this context (so "$GNUSTEP_TARGET_CPU" will always be "")
4033  if test x"$GNUSTEP_TARGET_CPU" = x""; then
4034    ARCH="$GNUSTEP_HOST_CPU-$GNUSTEP_HOST_OS"
4035  else
4036    ARCH=$GNUSTEP_TARGET_CPU-$GNUSTEP_TARGET_OS
4037  fi
4038  ALIB="$ARCH/$LIBRARY_COMBO"
4039  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS/$ALIB"
4040  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS/$ARCH"
4041  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS"
4042  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS/$ALIB"
4043  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS/$ARCH"
4044  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS"
4045  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS/$ALIB"
4046  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS/$ARCH"
4047  CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS"
4048  LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES/$ALIB"
4049  LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES/$ARCH"
4050  LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES"
4051  LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES/$ALIB"
4052  LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES/$ARCH"
4053  LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES"
4054  LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES/$ALIB"
4055  LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES/$ARCH"
4056  LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES"
4057fi
4058
4059
4060#--------------------------------------------------------------------
4061# Find the compiler
4062#--------------------------------------------------------------------
4063MAKECC=`gnustep-config --variable=CC`
4064MAKECPP=`gnustep-config --variable=CPP`
4065MAKECXX=`gnustep-config --variable=CXX`
4066if test "$CC" = ""; then
4067  CC=$MAKECC
4068  export CC
4069else
4070  if test "$CC" != "$MAKECC"; then
4071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CC=$CC or run the gnustep-base configure again with your CC environment variable set to $MAKECC" >&5
4072$as_echo "$as_me: WARNING: You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CC=$CC or run the gnustep-base configure again with your CC environment variable set to $MAKECC" >&2;}
4073  fi
4074fi
4075if test "$CPP" = ""; then
4076  CPP=$MAKECPP
4077  export CPP
4078else
4079  if test "$CPP" != "$MAKECPP"; then
4080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the preprocessor ($CPP) set to a different value from that used by gnustep-make ($MAKECPP).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPP=$CPP or run the gnustep-base configure again with your CPP environment variable set to $MAKECPP" >&5
4081$as_echo "$as_me: WARNING: You are running configure with the preprocessor ($CPP) set to a different value from that used by gnustep-make ($MAKECPP).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPP=$CPP or run the gnustep-base configure again with your CPP environment variable set to $MAKECPP" >&2;}
4082  fi
4083fi
4084if test "$CXX" = ""; then
4085  CXX=$MAKECXX
4086  export CXX
4087else
4088  if test "$CXX" != "$MAKECXX"; then
4089    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the compiler ($CXX) set to a different value from that used by gnustep-make ($MAKECXX).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CXX=$CXX or run the gnustep-base configure again with your CXX environment variable set to $MAKECXX" >&5
4090$as_echo "$as_me: WARNING: You are running configure with the compiler ($CXX) set to a different value from that used by gnustep-make ($MAKECXX).  To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CXX=$CXX or run the gnustep-base configure again with your CXX environment variable set to $MAKECXX" >&2;}
4091  fi
4092fi
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098if test -n "$ac_tool_prefix"; then
4099  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4100set dummy ${ac_tool_prefix}gcc; ac_word=$2
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102$as_echo_n "checking for $ac_word... " >&6; }
4103if ${ac_cv_prog_CC+:} false; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  if test -n "$CC"; then
4107  ac_cv_prog_CC="$CC" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112  IFS=$as_save_IFS
4113  test -z "$as_dir" && as_dir=.
4114    for ac_exec_ext in '' $ac_executable_extensions; do
4115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118    break 2
4119  fi
4120done
4121  done
4122IFS=$as_save_IFS
4123
4124fi
4125fi
4126CC=$ac_cv_prog_CC
4127if test -n "$CC"; then
4128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129$as_echo "$CC" >&6; }
4130else
4131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
4133fi
4134
4135
4136fi
4137if test -z "$ac_cv_prog_CC"; then
4138  ac_ct_CC=$CC
4139  # Extract the first word of "gcc", so it can be a program name with args.
4140set dummy gcc; ac_word=$2
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
4143if ${ac_cv_prog_ac_ct_CC+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  if test -n "$ac_ct_CC"; then
4147  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152  IFS=$as_save_IFS
4153  test -z "$as_dir" && as_dir=.
4154    for ac_exec_ext in '' $ac_executable_extensions; do
4155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156    ac_cv_prog_ac_ct_CC="gcc"
4157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158    break 2
4159  fi
4160done
4161  done
4162IFS=$as_save_IFS
4163
4164fi
4165fi
4166ac_ct_CC=$ac_cv_prog_ac_ct_CC
4167if test -n "$ac_ct_CC"; then
4168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4169$as_echo "$ac_ct_CC" >&6; }
4170else
4171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
4173fi
4174
4175  if test "x$ac_ct_CC" = x; then
4176    CC=""
4177  else
4178    case $cross_compiling:$ac_tool_warned in
4179yes:)
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182ac_tool_warned=yes ;;
4183esac
4184    CC=$ac_ct_CC
4185  fi
4186else
4187  CC="$ac_cv_prog_CC"
4188fi
4189
4190if test -z "$CC"; then
4191          if test -n "$ac_tool_prefix"; then
4192    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4193set dummy ${ac_tool_prefix}cc; ac_word=$2
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195$as_echo_n "checking for $ac_word... " >&6; }
4196if ${ac_cv_prog_CC+:} false; then :
4197  $as_echo_n "(cached) " >&6
4198else
4199  if test -n "$CC"; then
4200  ac_cv_prog_CC="$CC" # Let the user override the test.
4201else
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205  IFS=$as_save_IFS
4206  test -z "$as_dir" && as_dir=.
4207    for ac_exec_ext in '' $ac_executable_extensions; do
4208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209    ac_cv_prog_CC="${ac_tool_prefix}cc"
4210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211    break 2
4212  fi
4213done
4214  done
4215IFS=$as_save_IFS
4216
4217fi
4218fi
4219CC=$ac_cv_prog_CC
4220if test -n "$CC"; then
4221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222$as_echo "$CC" >&6; }
4223else
4224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225$as_echo "no" >&6; }
4226fi
4227
4228
4229  fi
4230fi
4231if test -z "$CC"; then
4232  # Extract the first word of "cc", so it can be a program name with args.
4233set dummy cc; ac_word=$2
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
4236if ${ac_cv_prog_CC+:} false; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if test -n "$CC"; then
4240  ac_cv_prog_CC="$CC" # Let the user override the test.
4241else
4242  ac_prog_rejected=no
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246  IFS=$as_save_IFS
4247  test -z "$as_dir" && as_dir=.
4248    for ac_exec_ext in '' $ac_executable_extensions; do
4249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4251       ac_prog_rejected=yes
4252       continue
4253     fi
4254    ac_cv_prog_CC="cc"
4255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256    break 2
4257  fi
4258done
4259  done
4260IFS=$as_save_IFS
4261
4262if test $ac_prog_rejected = yes; then
4263  # We found a bogon in the path, so make sure we never use it.
4264  set dummy $ac_cv_prog_CC
4265  shift
4266  if test $# != 0; then
4267    # We chose a different compiler from the bogus one.
4268    # However, it has the same basename, so the bogon will be chosen
4269    # first if we set CC to just the basename; use the full file name.
4270    shift
4271    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4272  fi
4273fi
4274fi
4275fi
4276CC=$ac_cv_prog_CC
4277if test -n "$CC"; then
4278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4279$as_echo "$CC" >&6; }
4280else
4281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282$as_echo "no" >&6; }
4283fi
4284
4285
4286fi
4287if test -z "$CC"; then
4288  if test -n "$ac_tool_prefix"; then
4289  for ac_prog in cl.exe
4290  do
4291    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294$as_echo_n "checking for $ac_word... " >&6; }
4295if ${ac_cv_prog_CC+:} false; then :
4296  $as_echo_n "(cached) " >&6
4297else
4298  if test -n "$CC"; then
4299  ac_cv_prog_CC="$CC" # Let the user override the test.
4300else
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_exec_ext in '' $ac_executable_extensions; do
4307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310    break 2
4311  fi
4312done
4313  done
4314IFS=$as_save_IFS
4315
4316fi
4317fi
4318CC=$ac_cv_prog_CC
4319if test -n "$CC"; then
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321$as_echo "$CC" >&6; }
4322else
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
4325fi
4326
4327
4328    test -n "$CC" && break
4329  done
4330fi
4331if test -z "$CC"; then
4332  ac_ct_CC=$CC
4333  for ac_prog in cl.exe
4334do
4335  # Extract the first word of "$ac_prog", so it can be a program name with args.
4336set dummy $ac_prog; ac_word=$2
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338$as_echo_n "checking for $ac_word... " >&6; }
4339if ${ac_cv_prog_ac_ct_CC+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if test -n "$ac_ct_CC"; then
4343  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348  IFS=$as_save_IFS
4349  test -z "$as_dir" && as_dir=.
4350    for ac_exec_ext in '' $ac_executable_extensions; do
4351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352    ac_cv_prog_ac_ct_CC="$ac_prog"
4353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354    break 2
4355  fi
4356done
4357  done
4358IFS=$as_save_IFS
4359
4360fi
4361fi
4362ac_ct_CC=$ac_cv_prog_ac_ct_CC
4363if test -n "$ac_ct_CC"; then
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4365$as_echo "$ac_ct_CC" >&6; }
4366else
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368$as_echo "no" >&6; }
4369fi
4370
4371
4372  test -n "$ac_ct_CC" && break
4373done
4374
4375  if test "x$ac_ct_CC" = x; then
4376    CC=""
4377  else
4378    case $cross_compiling:$ac_tool_warned in
4379yes:)
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382ac_tool_warned=yes ;;
4383esac
4384    CC=$ac_ct_CC
4385  fi
4386fi
4387
4388fi
4389
4390
4391test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4393as_fn_error $? "no acceptable C compiler found in \$PATH
4394See \`config.log' for more details" "$LINENO" 5; }
4395
4396# Provide some information about the compiler.
4397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4398set X $ac_compile
4399ac_compiler=$2
4400for ac_option in --version -v -V -qversion; do
4401  { { ac_try="$ac_compiler $ac_option >&5"
4402case "(($ac_try" in
4403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404  *) ac_try_echo=$ac_try;;
4405esac
4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4409  ac_status=$?
4410  if test -s conftest.err; then
4411    sed '10a\
4412... rest of stderr output deleted ...
4413         10q' conftest.err >conftest.er1
4414    cat conftest.er1 >&5
4415  fi
4416  rm -f conftest.er1 conftest.err
4417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418  test $ac_status = 0; }
4419done
4420
4421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h.  */
4423
4424int
4425main ()
4426{
4427
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432ac_clean_files_save=$ac_clean_files
4433ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4434# Try to create an executable without -o first, disregard a.out.
4435# It will help us diagnose broken compilers, and finding out an intuition
4436# of exeext.
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4438$as_echo_n "checking whether the C compiler works... " >&6; }
4439ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4440
4441# The possible output files:
4442ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4443
4444ac_rmfiles=
4445for ac_file in $ac_files
4446do
4447  case $ac_file in
4448    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4449    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4450  esac
4451done
4452rm -f $ac_rmfiles
4453
4454if { { ac_try="$ac_link_default"
4455case "(($ac_try" in
4456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457  *) ac_try_echo=$ac_try;;
4458esac
4459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460$as_echo "$ac_try_echo"; } >&5
4461  (eval "$ac_link_default") 2>&5
4462  ac_status=$?
4463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464  test $ac_status = 0; }; then :
4465  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4467# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4468# so that the user can short-circuit this test for compilers unknown to
4469# Autoconf.
4470for ac_file in $ac_files ''
4471do
4472  test -f "$ac_file" || continue
4473  case $ac_file in
4474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4475	;;
4476    [ab].out )
4477	# We found the default executable, but exeext='' is most
4478	# certainly right.
4479	break;;
4480    *.* )
4481	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4482	then :; else
4483	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4484	fi
4485	# We set ac_cv_exeext here because the later test for it is not
4486	# safe: cross compilers may not add the suffix if given an `-o'
4487	# argument, so we may need to know it at that point already.
4488	# Even if this section looks crufty: it has the advantage of
4489	# actually working.
4490	break;;
4491    * )
4492	break;;
4493  esac
4494done
4495test "$ac_cv_exeext" = no && ac_cv_exeext=
4496
4497else
4498  ac_file=''
4499fi
4500if test -z "$ac_file"; then :
4501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502$as_echo "no" >&6; }
4503$as_echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508as_fn_error 77 "C compiler cannot create executables
4509See \`config.log' for more details" "$LINENO" 5; }
4510else
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512$as_echo "yes" >&6; }
4513fi
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4515$as_echo_n "checking for C compiler default output file name... " >&6; }
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4517$as_echo "$ac_file" >&6; }
4518ac_exeext=$ac_cv_exeext
4519
4520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4521ac_clean_files=$ac_clean_files_save
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4523$as_echo_n "checking for suffix of executables... " >&6; }
4524if { { ac_try="$ac_link"
4525case "(($ac_try" in
4526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527  *) ac_try_echo=$ac_try;;
4528esac
4529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530$as_echo "$ac_try_echo"; } >&5
4531  (eval "$ac_link") 2>&5
4532  ac_status=$?
4533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534  test $ac_status = 0; }; then :
4535  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4536# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4537# work properly (i.e., refer to `conftest.exe'), while it won't with
4538# `rm'.
4539for ac_file in conftest.exe conftest conftest.*; do
4540  test -f "$ac_file" || continue
4541  case $ac_file in
4542    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4543    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544	  break;;
4545    * ) break;;
4546  esac
4547done
4548else
4549  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4552See \`config.log' for more details" "$LINENO" 5; }
4553fi
4554rm -f conftest conftest$ac_cv_exeext
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4556$as_echo "$ac_cv_exeext" >&6; }
4557
4558rm -f conftest.$ac_ext
4559EXEEXT=$ac_cv_exeext
4560ac_exeext=$EXEEXT
4561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h.  */
4563#include <stdio.h>
4564int
4565main ()
4566{
4567FILE *f = fopen ("conftest.out", "w");
4568 return ferror (f) || fclose (f) != 0;
4569
4570  ;
4571  return 0;
4572}
4573_ACEOF
4574ac_clean_files="$ac_clean_files conftest.out"
4575# Check that the compiler produces executables we can run.  If not, either
4576# the compiler is broken, or we cross compile.
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4578$as_echo_n "checking whether we are cross compiling... " >&6; }
4579if test "$cross_compiling" != yes; then
4580  { { ac_try="$ac_link"
4581case "(($ac_try" in
4582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583  *) ac_try_echo=$ac_try;;
4584esac
4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
4587  (eval "$ac_link") 2>&5
4588  ac_status=$?
4589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590  test $ac_status = 0; }
4591  if { ac_try='./conftest$ac_cv_exeext'
4592  { { case "(($ac_try" in
4593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594  *) ac_try_echo=$ac_try;;
4595esac
4596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597$as_echo "$ac_try_echo"; } >&5
4598  (eval "$ac_try") 2>&5
4599  ac_status=$?
4600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601  test $ac_status = 0; }; }; then
4602    cross_compiling=no
4603  else
4604    if test "$cross_compiling" = maybe; then
4605	cross_compiling=yes
4606    else
4607	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609as_fn_error $? "cannot run C compiled programs.
4610If you meant to cross compile, use \`--host'.
4611See \`config.log' for more details" "$LINENO" 5; }
4612    fi
4613  fi
4614fi
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4616$as_echo "$cross_compiling" >&6; }
4617
4618rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4619ac_clean_files=$ac_clean_files_save
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4621$as_echo_n "checking for suffix of object files... " >&6; }
4622if ${ac_cv_objext+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627
4628int
4629main ()
4630{
4631
4632  ;
4633  return 0;
4634}
4635_ACEOF
4636rm -f conftest.o conftest.obj
4637if { { ac_try="$ac_compile"
4638case "(($ac_try" in
4639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640  *) ac_try_echo=$ac_try;;
4641esac
4642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643$as_echo "$ac_try_echo"; } >&5
4644  (eval "$ac_compile") 2>&5
4645  ac_status=$?
4646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647  test $ac_status = 0; }; then :
4648  for ac_file in conftest.o conftest.obj conftest.*; do
4649  test -f "$ac_file" || continue;
4650  case $ac_file in
4651    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4652    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4653       break;;
4654  esac
4655done
4656else
4657  $as_echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4662as_fn_error $? "cannot compute suffix of object files: cannot compile
4663See \`config.log' for more details" "$LINENO" 5; }
4664fi
4665rm -f conftest.$ac_cv_objext conftest.$ac_ext
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4668$as_echo "$ac_cv_objext" >&6; }
4669OBJEXT=$ac_cv_objext
4670ac_objext=$OBJEXT
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4672$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4673if ${ac_cv_c_compiler_gnu+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678
4679int
4680main ()
4681{
4682#ifndef __GNUC__
4683       choke me
4684#endif
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_compile "$LINENO"; then :
4691  ac_compiler_gnu=yes
4692else
4693  ac_compiler_gnu=no
4694fi
4695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696ac_cv_c_compiler_gnu=$ac_compiler_gnu
4697
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4700$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4701if test $ac_compiler_gnu = yes; then
4702  GCC=yes
4703else
4704  GCC=
4705fi
4706ac_test_CFLAGS=${CFLAGS+set}
4707ac_save_CFLAGS=$CFLAGS
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4709$as_echo_n "checking whether $CC accepts -g... " >&6; }
4710if ${ac_cv_prog_cc_g+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  ac_save_c_werror_flag=$ac_c_werror_flag
4714   ac_c_werror_flag=yes
4715   ac_cv_prog_cc_g=no
4716   CFLAGS="-g"
4717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h.  */
4719
4720int
4721main ()
4722{
4723
4724  ;
4725  return 0;
4726}
4727_ACEOF
4728if ac_fn_c_try_compile "$LINENO"; then :
4729  ac_cv_prog_cc_g=yes
4730else
4731  CFLAGS=""
4732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h.  */
4734
4735int
4736main ()
4737{
4738
4739  ;
4740  return 0;
4741}
4742_ACEOF
4743if ac_fn_c_try_compile "$LINENO"; then :
4744
4745else
4746  ac_c_werror_flag=$ac_save_c_werror_flag
4747	 CFLAGS="-g"
4748	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749/* end confdefs.h.  */
4750
4751int
4752main ()
4753{
4754
4755  ;
4756  return 0;
4757}
4758_ACEOF
4759if ac_fn_c_try_compile "$LINENO"; then :
4760  ac_cv_prog_cc_g=yes
4761fi
4762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767   ac_c_werror_flag=$ac_save_c_werror_flag
4768fi
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4770$as_echo "$ac_cv_prog_cc_g" >&6; }
4771if test "$ac_test_CFLAGS" = set; then
4772  CFLAGS=$ac_save_CFLAGS
4773elif test $ac_cv_prog_cc_g = yes; then
4774  if test "$GCC" = yes; then
4775    CFLAGS="-g -O2"
4776  else
4777    CFLAGS="-g"
4778  fi
4779else
4780  if test "$GCC" = yes; then
4781    CFLAGS="-O2"
4782  else
4783    CFLAGS=
4784  fi
4785fi
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4787$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4788if ${ac_cv_prog_cc_c89+:} false; then :
4789  $as_echo_n "(cached) " >&6
4790else
4791  ac_cv_prog_cc_c89=no
4792ac_save_CC=$CC
4793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795#include <stdarg.h>
4796#include <stdio.h>
4797struct stat;
4798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4799struct buf { int x; };
4800FILE * (*rcsopen) (struct buf *, struct stat *, int);
4801static char *e (p, i)
4802     char **p;
4803     int i;
4804{
4805  return p[i];
4806}
4807static char *f (char * (*g) (char **, int), char **p, ...)
4808{
4809  char *s;
4810  va_list v;
4811  va_start (v,p);
4812  s = g (p, va_arg (v,int));
4813  va_end (v);
4814  return s;
4815}
4816
4817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4818   function prototypes and stuff, but not '\xHH' hex character constants.
4819   These don't provoke an error unfortunately, instead are silently treated
4820   as 'x'.  The following induces an error, until -std is added to get
4821   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4822   array size at least.  It's necessary to write '\x00'==0 to get something
4823   that's true only with -std.  */
4824int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4825
4826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4827   inside strings and character constants.  */
4828#define FOO(x) 'x'
4829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4830
4831int test (int i, double x);
4832struct s1 {int (*f) (int a);};
4833struct s2 {int (*f) (double a);};
4834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4835int argc;
4836char **argv;
4837int
4838main ()
4839{
4840return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4846	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4847do
4848  CC="$ac_save_CC $ac_arg"
4849  if ac_fn_c_try_compile "$LINENO"; then :
4850  ac_cv_prog_cc_c89=$ac_arg
4851fi
4852rm -f core conftest.err conftest.$ac_objext
4853  test "x$ac_cv_prog_cc_c89" != "xno" && break
4854done
4855rm -f conftest.$ac_ext
4856CC=$ac_save_CC
4857
4858fi
4859# AC_CACHE_VAL
4860case "x$ac_cv_prog_cc_c89" in
4861  x)
4862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4863$as_echo "none needed" >&6; } ;;
4864  xno)
4865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4866$as_echo "unsupported" >&6; } ;;
4867  *)
4868    CC="$CC $ac_cv_prog_cc_c89"
4869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4870$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4871esac
4872if test "x$ac_cv_prog_cc_c89" != xno; then :
4873
4874fi
4875
4876ac_ext=c
4877ac_cpp='$CPP $CPPFLAGS'
4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881
4882ac_ext=c
4883ac_cpp='$CPP $CPPFLAGS'
4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4888$as_echo_n "checking how to run the C preprocessor... " >&6; }
4889# On Suns, sometimes $CPP names a directory.
4890if test -n "$CPP" && test -d "$CPP"; then
4891  CPP=
4892fi
4893if test -z "$CPP"; then
4894  if ${ac_cv_prog_CPP+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897      # Double quotes because CPP needs to be expanded
4898    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4899    do
4900      ac_preproc_ok=false
4901for ac_c_preproc_warn_flag in '' yes
4902do
4903  # Use a header file that comes with gcc, so configuring glibc
4904  # with a fresh cross-compiler works.
4905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906  # <limits.h> exists even on freestanding compilers.
4907  # On the NeXT, cc -E runs the code through the compiler's parser,
4908  # not just through cpp. "Syntax error" is here to catch this case.
4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911#ifdef __STDC__
4912# include <limits.h>
4913#else
4914# include <assert.h>
4915#endif
4916		     Syntax error
4917_ACEOF
4918if ac_fn_c_try_cpp "$LINENO"; then :
4919
4920else
4921  # Broken: fails on valid input.
4922continue
4923fi
4924rm -f conftest.err conftest.i conftest.$ac_ext
4925
4926  # OK, works on sane cases.  Now check whether nonexistent headers
4927  # can be detected and how.
4928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930#include <ac_nonexistent.h>
4931_ACEOF
4932if ac_fn_c_try_cpp "$LINENO"; then :
4933  # Broken: success on invalid input.
4934continue
4935else
4936  # Passes both tests.
4937ac_preproc_ok=:
4938break
4939fi
4940rm -f conftest.err conftest.i conftest.$ac_ext
4941
4942done
4943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944rm -f conftest.i conftest.err conftest.$ac_ext
4945if $ac_preproc_ok; then :
4946  break
4947fi
4948
4949    done
4950    ac_cv_prog_CPP=$CPP
4951
4952fi
4953  CPP=$ac_cv_prog_CPP
4954else
4955  ac_cv_prog_CPP=$CPP
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4958$as_echo "$CPP" >&6; }
4959ac_preproc_ok=false
4960for ac_c_preproc_warn_flag in '' yes
4961do
4962  # Use a header file that comes with gcc, so configuring glibc
4963  # with a fresh cross-compiler works.
4964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965  # <limits.h> exists even on freestanding compilers.
4966  # On the NeXT, cc -E runs the code through the compiler's parser,
4967  # not just through cpp. "Syntax error" is here to catch this case.
4968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h.  */
4970#ifdef __STDC__
4971# include <limits.h>
4972#else
4973# include <assert.h>
4974#endif
4975		     Syntax error
4976_ACEOF
4977if ac_fn_c_try_cpp "$LINENO"; then :
4978
4979else
4980  # Broken: fails on valid input.
4981continue
4982fi
4983rm -f conftest.err conftest.i conftest.$ac_ext
4984
4985  # OK, works on sane cases.  Now check whether nonexistent headers
4986  # can be detected and how.
4987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988/* end confdefs.h.  */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if ac_fn_c_try_cpp "$LINENO"; then :
4992  # Broken: success on invalid input.
4993continue
4994else
4995  # Passes both tests.
4996ac_preproc_ok=:
4997break
4998fi
4999rm -f conftest.err conftest.i conftest.$ac_ext
5000
5001done
5002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003rm -f conftest.i conftest.err conftest.$ac_ext
5004if $ac_preproc_ok; then :
5005
5006else
5007  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5009as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5010See \`config.log' for more details" "$LINENO" 5; }
5011fi
5012
5013ac_ext=c
5014ac_cpp='$CPP $CPPFLAGS'
5015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018
5019
5020
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5022$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5023if ${ac_cv_path_GREP+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  if test -z "$GREP"; then
5027  ac_path_GREP_found=false
5028  # Loop through the user's path and test for each of PROGNAME-LIST
5029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5031do
5032  IFS=$as_save_IFS
5033  test -z "$as_dir" && as_dir=.
5034    for ac_prog in grep ggrep; do
5035    for ac_exec_ext in '' $ac_executable_extensions; do
5036      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5037      as_fn_executable_p "$ac_path_GREP" || continue
5038# Check for GNU ac_path_GREP and select it if it is found.
5039  # Check for GNU $ac_path_GREP
5040case `"$ac_path_GREP" --version 2>&1` in
5041*GNU*)
5042  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5043*)
5044  ac_count=0
5045  $as_echo_n 0123456789 >"conftest.in"
5046  while :
5047  do
5048    cat "conftest.in" "conftest.in" >"conftest.tmp"
5049    mv "conftest.tmp" "conftest.in"
5050    cp "conftest.in" "conftest.nl"
5051    $as_echo 'GREP' >> "conftest.nl"
5052    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5053    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5054    as_fn_arith $ac_count + 1 && ac_count=$as_val
5055    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5056      # Best one so far, save it but keep looking for a better one
5057      ac_cv_path_GREP="$ac_path_GREP"
5058      ac_path_GREP_max=$ac_count
5059    fi
5060    # 10*(2^10) chars as input seems more than enough
5061    test $ac_count -gt 10 && break
5062  done
5063  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5064esac
5065
5066      $ac_path_GREP_found && break 3
5067    done
5068  done
5069  done
5070IFS=$as_save_IFS
5071  if test -z "$ac_cv_path_GREP"; then
5072    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5073  fi
5074else
5075  ac_cv_path_GREP=$GREP
5076fi
5077
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5080$as_echo "$ac_cv_path_GREP" >&6; }
5081 GREP="$ac_cv_path_GREP"
5082
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5085$as_echo_n "checking for egrep... " >&6; }
5086if ${ac_cv_path_EGREP+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5090   then ac_cv_path_EGREP="$GREP -E"
5091   else
5092     if test -z "$EGREP"; then
5093  ac_path_EGREP_found=false
5094  # Loop through the user's path and test for each of PROGNAME-LIST
5095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5097do
5098  IFS=$as_save_IFS
5099  test -z "$as_dir" && as_dir=.
5100    for ac_prog in egrep; do
5101    for ac_exec_ext in '' $ac_executable_extensions; do
5102      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5103      as_fn_executable_p "$ac_path_EGREP" || continue
5104# Check for GNU ac_path_EGREP and select it if it is found.
5105  # Check for GNU $ac_path_EGREP
5106case `"$ac_path_EGREP" --version 2>&1` in
5107*GNU*)
5108  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5109*)
5110  ac_count=0
5111  $as_echo_n 0123456789 >"conftest.in"
5112  while :
5113  do
5114    cat "conftest.in" "conftest.in" >"conftest.tmp"
5115    mv "conftest.tmp" "conftest.in"
5116    cp "conftest.in" "conftest.nl"
5117    $as_echo 'EGREP' >> "conftest.nl"
5118    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5119    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5120    as_fn_arith $ac_count + 1 && ac_count=$as_val
5121    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5122      # Best one so far, save it but keep looking for a better one
5123      ac_cv_path_EGREP="$ac_path_EGREP"
5124      ac_path_EGREP_max=$ac_count
5125    fi
5126    # 10*(2^10) chars as input seems more than enough
5127    test $ac_count -gt 10 && break
5128  done
5129  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5130esac
5131
5132      $ac_path_EGREP_found && break 3
5133    done
5134  done
5135  done
5136IFS=$as_save_IFS
5137  if test -z "$ac_cv_path_EGREP"; then
5138    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5139  fi
5140else
5141  ac_cv_path_EGREP=$EGREP
5142fi
5143
5144   fi
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5147$as_echo "$ac_cv_path_EGREP" >&6; }
5148 EGREP="$ac_cv_path_EGREP"
5149
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5152$as_echo_n "checking for ANSI C header files... " >&6; }
5153if ${ac_cv_header_stdc+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158#include <stdlib.h>
5159#include <stdarg.h>
5160#include <string.h>
5161#include <float.h>
5162
5163int
5164main ()
5165{
5166
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_c_try_compile "$LINENO"; then :
5172  ac_cv_header_stdc=yes
5173else
5174  ac_cv_header_stdc=no
5175fi
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177
5178if test $ac_cv_header_stdc = yes; then
5179  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h.  */
5182#include <string.h>
5183
5184_ACEOF
5185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5186  $EGREP "memchr" >/dev/null 2>&1; then :
5187
5188else
5189  ac_cv_header_stdc=no
5190fi
5191rm -f conftest*
5192
5193fi
5194
5195if test $ac_cv_header_stdc = yes; then
5196  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199#include <stdlib.h>
5200
5201_ACEOF
5202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5203  $EGREP "free" >/dev/null 2>&1; then :
5204
5205else
5206  ac_cv_header_stdc=no
5207fi
5208rm -f conftest*
5209
5210fi
5211
5212if test $ac_cv_header_stdc = yes; then
5213  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5214  if test "$cross_compiling" = yes; then :
5215  :
5216else
5217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h.  */
5219#include <ctype.h>
5220#include <stdlib.h>
5221#if ((' ' & 0x0FF) == 0x020)
5222# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5223# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5224#else
5225# define ISLOWER(c) \
5226		   (('a' <= (c) && (c) <= 'i') \
5227		     || ('j' <= (c) && (c) <= 'r') \
5228		     || ('s' <= (c) && (c) <= 'z'))
5229# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5230#endif
5231
5232#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5233int
5234main ()
5235{
5236  int i;
5237  for (i = 0; i < 256; i++)
5238    if (XOR (islower (i), ISLOWER (i))
5239	|| toupper (i) != TOUPPER (i))
5240      return 2;
5241  return 0;
5242}
5243_ACEOF
5244if ac_fn_c_try_run "$LINENO"; then :
5245
5246else
5247  ac_cv_header_stdc=no
5248fi
5249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5250  conftest.$ac_objext conftest.beam conftest.$ac_ext
5251fi
5252
5253fi
5254fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5256$as_echo "$ac_cv_header_stdc" >&6; }
5257if test $ac_cv_header_stdc = yes; then
5258
5259$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5260
5261fi
5262
5263# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5264for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5265		  inttypes.h stdint.h unistd.h
5266do :
5267  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5268ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5269"
5270if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5271  cat >>confdefs.h <<_ACEOF
5272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5273_ACEOF
5274
5275fi
5276
5277done
5278
5279
5280
5281  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5282if test "x$ac_cv_header_minix_config_h" = xyes; then :
5283  MINIX=yes
5284else
5285  MINIX=
5286fi
5287
5288
5289  if test "$MINIX" = yes; then
5290
5291$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5292
5293
5294$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5295
5296
5297$as_echo "#define _MINIX 1" >>confdefs.h
5298
5299  fi
5300
5301
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5303$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5304if ${ac_cv_safe_to_define___extensions__+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309
5310#         define __EXTENSIONS__ 1
5311          $ac_includes_default
5312int
5313main ()
5314{
5315
5316  ;
5317  return 0;
5318}
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"; then :
5321  ac_cv_safe_to_define___extensions__=yes
5322else
5323  ac_cv_safe_to_define___extensions__=no
5324fi
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5328$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5329  test $ac_cv_safe_to_define___extensions__ = yes &&
5330    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5331
5332  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5333
5334  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5335
5336  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5337
5338  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5339
5340
5341
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5343$as_echo_n "checking whether the compiler is clang... " >&6; }
5344if test ! x"${GCC}" = x"yes" ; then
5345  CLANG_CC=no
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348else
5349  if "${CC}" -v 2>&1 | grep -q 'clang version'; then
5350    CLANG_CC=yes
5351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352$as_echo "yes" >&6; }
5353  else
5354    CLANG_CC=no
5355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357  fi
5358fi
5359
5360
5361
5362# Large file support needed by NSData/NSFileHandle.
5363# These macros must be called after AC_USE_SYSTEM_EXTENSIONS because
5364# the `fseeko' declaration may be hidden by default on some systems.
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5366$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5367if ${ac_cv_sys_largefile_source+:} false; then :
5368  $as_echo_n "(cached) " >&6
5369else
5370  while :; do
5371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h.  */
5373#include <sys/types.h> /* for off_t */
5374     #include <stdio.h>
5375int
5376main ()
5377{
5378int (*fp) (FILE *, off_t, int) = fseeko;
5379     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_link "$LINENO"; then :
5385  ac_cv_sys_largefile_source=no; break
5386fi
5387rm -f core conftest.err conftest.$ac_objext \
5388    conftest$ac_exeext conftest.$ac_ext
5389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h.  */
5391#define _LARGEFILE_SOURCE 1
5392#include <sys/types.h> /* for off_t */
5393     #include <stdio.h>
5394int
5395main ()
5396{
5397int (*fp) (FILE *, off_t, int) = fseeko;
5398     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5399  ;
5400  return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_link "$LINENO"; then :
5404  ac_cv_sys_largefile_source=1; break
5405fi
5406rm -f core conftest.err conftest.$ac_objext \
5407    conftest$ac_exeext conftest.$ac_ext
5408  ac_cv_sys_largefile_source=unknown
5409  break
5410done
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5413$as_echo "$ac_cv_sys_largefile_source" >&6; }
5414case $ac_cv_sys_largefile_source in #(
5415  no | unknown) ;;
5416  *)
5417cat >>confdefs.h <<_ACEOF
5418#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5419_ACEOF
5420;;
5421esac
5422rm -rf conftest*
5423
5424# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5425# in glibc 2.1.3, but that breaks too many other things.
5426# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5427if test $ac_cv_sys_largefile_source != unknown; then
5428
5429$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5430
5431fi
5432
5433
5434# Check whether --enable-largefile was given.
5435if test "${enable_largefile+set}" = set; then :
5436  enableval=$enable_largefile;
5437fi
5438
5439if test "$enable_largefile" != no; then
5440
5441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5442$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5443if ${ac_cv_sys_largefile_CC+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  ac_cv_sys_largefile_CC=no
5447     if test "$GCC" != yes; then
5448       ac_save_CC=$CC
5449       while :; do
5450	 # IRIX 6.2 and later do not support large files by default,
5451	 # so use the C compiler's -n32 option if that helps.
5452	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454#include <sys/types.h>
5455 /* Check that off_t can represent 2**63 - 1 correctly.
5456    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5457    since some C++ compilers masquerading as C compilers
5458    incorrectly reject 9223372036854775807.  */
5459#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5460  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5461		       && LARGE_OFF_T % 2147483647 == 1)
5462		      ? 1 : -1];
5463int
5464main ()
5465{
5466
5467  ;
5468  return 0;
5469}
5470_ACEOF
5471	 if ac_fn_c_try_compile "$LINENO"; then :
5472  break
5473fi
5474rm -f core conftest.err conftest.$ac_objext
5475	 CC="$CC -n32"
5476	 if ac_fn_c_try_compile "$LINENO"; then :
5477  ac_cv_sys_largefile_CC=' -n32'; break
5478fi
5479rm -f core conftest.err conftest.$ac_objext
5480	 break
5481       done
5482       CC=$ac_save_CC
5483       rm -f conftest.$ac_ext
5484    fi
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5487$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5488  if test "$ac_cv_sys_largefile_CC" != no; then
5489    CC=$CC$ac_cv_sys_largefile_CC
5490  fi
5491
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5493$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5494if ${ac_cv_sys_file_offset_bits+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  while :; do
5498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500#include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503    since some C++ compilers masquerading as C compilers
5504    incorrectly reject 9223372036854775807.  */
5505#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507		       && LARGE_OFF_T % 2147483647 == 1)
5508		      ? 1 : -1];
5509int
5510main ()
5511{
5512
5513  ;
5514  return 0;
5515}
5516_ACEOF
5517if ac_fn_c_try_compile "$LINENO"; then :
5518  ac_cv_sys_file_offset_bits=no; break
5519fi
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522/* end confdefs.h.  */
5523#define _FILE_OFFSET_BITS 64
5524#include <sys/types.h>
5525 /* Check that off_t can represent 2**63 - 1 correctly.
5526    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5527    since some C++ compilers masquerading as C compilers
5528    incorrectly reject 9223372036854775807.  */
5529#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5530  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5531		       && LARGE_OFF_T % 2147483647 == 1)
5532		      ? 1 : -1];
5533int
5534main ()
5535{
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541if ac_fn_c_try_compile "$LINENO"; then :
5542  ac_cv_sys_file_offset_bits=64; break
5543fi
5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545  ac_cv_sys_file_offset_bits=unknown
5546  break
5547done
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5550$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5551case $ac_cv_sys_file_offset_bits in #(
5552  no | unknown) ;;
5553  *)
5554cat >>confdefs.h <<_ACEOF
5555#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5556_ACEOF
5557;;
5558esac
5559rm -rf conftest*
5560  if test $ac_cv_sys_file_offset_bits = unknown; then
5561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5562$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5563if ${ac_cv_sys_large_files+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  while :; do
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569#include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572    since some C++ compilers masquerading as C compilers
5573    incorrectly reject 9223372036854775807.  */
5574#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576		       && LARGE_OFF_T % 2147483647 == 1)
5577		      ? 1 : -1];
5578int
5579main ()
5580{
5581
5582  ;
5583  return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_compile "$LINENO"; then :
5587  ac_cv_sys_large_files=no; break
5588fi
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592#define _LARGE_FILES 1
5593#include <sys/types.h>
5594 /* Check that off_t can represent 2**63 - 1 correctly.
5595    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5596    since some C++ compilers masquerading as C compilers
5597    incorrectly reject 9223372036854775807.  */
5598#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5599  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5600		       && LARGE_OFF_T % 2147483647 == 1)
5601		      ? 1 : -1];
5602int
5603main ()
5604{
5605
5606  ;
5607  return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_compile "$LINENO"; then :
5611  ac_cv_sys_large_files=1; break
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614  ac_cv_sys_large_files=unknown
5615  break
5616done
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5619$as_echo "$ac_cv_sys_large_files" >&6; }
5620case $ac_cv_sys_large_files in #(
5621  no | unknown) ;;
5622  *)
5623cat >>confdefs.h <<_ACEOF
5624#define _LARGE_FILES $ac_cv_sys_large_files
5625_ACEOF
5626;;
5627esac
5628rm -rf conftest*
5629  fi
5630
5631
5632fi
5633
5634ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5635if test "x$ac_cv_type_off_t" = xyes; then :
5636
5637else
5638
5639cat >>confdefs.h <<_ACEOF
5640#define off_t long int
5641_ACEOF
5642
5643fi
5644
5645
5646#--------------------------------------------------------------------
5647# Check how to enable builtins for atomic operations
5648#--------------------------------------------------------------------
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports atomic operations" >&5
5657$as_echo_n "checking whether the compiler supports atomic operations... " >&6; };
5658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660typedef int atomic;
5661int
5662main ()
5663{
5664atomic x; atomic y; __sync_bool_compare_and_swap(&x, y, y + 1);
5665  ;
5666  return 0;
5667}
5668_ACEOF
5669if ac_fn_c_try_link "$LINENO"; then :
5670  have_atomic=yes
5671else
5672  have_atomic=no
5673fi
5674rm -f core conftest.err conftest.$ac_objext \
5675    conftest$ac_exeext conftest.$ac_ext;
5676  if test "$have_atomic" = "yes"; then
5677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678$as_echo "yes" >&6; };
5679
5680$as_echo "#define USE_ATOMIC_BUILTINS 1" >>confdefs.h
5681
5682  else
5683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684$as_echo "no" >&6; };
5685    if test "$CC" = "gcc"; then
5686      saved_CFLAGS="$CFLAGS";
5687      ATOMIC_CFLAGS="";
5688
5689      # FIXME: Forcing -march=i568 for any i568 or later CPU is a
5690      # stop gap measure to make the compiler emit native assembly
5691      # for atomic operations on i586 or latter processors (GCC by
5692      # default emits code compatible with the original i386 and
5693      # requires library functions to emulate atomic operations).
5694      # When gnustep-make takes care of this kind of target setting,
5695      # the check can safely be removed.
5696      case "$target_cpu" in
5697        i586*|i686*|i786*)
5698          ATOMIC_CFLAGS="-march=i586"
5699          CFLAGS="$saved_CFLAGS $ATOMIC_CFLAGS"
5700          ;;
5701        x86_64)
5702          ATOMIC_CFLAGS="-march=x86-64"
5703          CFLAGS="$saved_CFLAGS $ATOMIC_CFLAGS"
5704          ;;
5705      esac
5706      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports atomic operations with -march" >&5
5707$as_echo_n "checking whether CC supports atomic operations with -march... " >&6; };
5708        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709/* end confdefs.h.  */
5710typedef int atomic;
5711int
5712main ()
5713{
5714atomic x; atomic y; __sync_bool_compare_and_swap(&x, y, y+1);
5715  ;
5716  return 0;
5717}
5718_ACEOF
5719if ac_fn_c_try_link "$LINENO"; then :
5720  need_march=yes
5721else
5722  need_march=no
5723fi
5724rm -f core conftest.err conftest.$ac_objext \
5725    conftest$ac_exeext conftest.$ac_ext;
5726
5727      if test "$need_march" = "yes"; then
5728        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729$as_echo "yes" >&6; };
5730	OBJCFLAGS="$OBJCFLAGS $ATOMIC_CFLAGS";
5731
5732$as_echo "#define USE_ATOMIC_BUILTINS 1" >>confdefs.h
5733
5734      else
5735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; };
5737        saved_LDFLAGS="$LDFLAGS";
5738        LDFLAGS="$saved_LDFLAGS -lgcc";
5739        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports atomic operations using libgcc" >&5
5740$as_echo_n "checking whether CC supports atomic operations using libgcc... " >&6; };
5741          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h.  */
5743typedef int atomic;
5744int
5745main ()
5746{
5747atomic x; atomic y; __sync_bool_compare_and_swap(&x, y, y+1);
5748  ;
5749  return 0;
5750}
5751_ACEOF
5752if ac_fn_c_try_link "$LINENO"; then :
5753  atomic_in_libgcc=yes
5754else
5755  atomic_in_libgcc=no
5756fi
5757rm -f core conftest.err conftest.$ac_objext \
5758    conftest$ac_exeext conftest.$ac_ext;
5759        if test "$atomic_in_libgcc" = "yes"; then
5760          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761$as_echo "yes" >&6; };
5762          LIBS="$LIBS -lgcc";
5763
5764$as_echo "#define USE_ATOMIC_BUILTINS 1" >>confdefs.h
5765
5766        else
5767          LDFLAGS="$saved_LDFLAGS";
5768          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; };
5770        fi
5771      fi
5772    fi
5773  fi
5774ac_ext=c
5775ac_cpp='$CPP $CPPFLAGS'
5776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778ac_compiler_gnu=$ac_cv_c_compiler_gnu
5779
5780
5781
5782# Extract the first word of "whoami", so it can be a program name with args.
5783set dummy whoami; ac_word=$2
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785$as_echo_n "checking for $ac_word... " >&6; }
5786if ${ac_cv_path_WHOAMI+:} false; then :
5787  $as_echo_n "(cached) " >&6
5788else
5789  case $WHOAMI in
5790  [\\/]* | ?:[\\/]*)
5791  ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
5792  ;;
5793  *)
5794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795as_dummy="$PATH:/usr/ucb"
5796for as_dir in $as_dummy
5797do
5798  IFS=$as_save_IFS
5799  test -z "$as_dir" && as_dir=.
5800    for ac_exec_ext in '' $ac_executable_extensions; do
5801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802    ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
5803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804    break 2
5805  fi
5806done
5807  done
5808IFS=$as_save_IFS
5809
5810  test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
5811  ;;
5812esac
5813fi
5814WHOAMI=$ac_cv_path_WHOAMI
5815if test -n "$WHOAMI"; then
5816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5
5817$as_echo "$WHOAMI" >&6; }
5818else
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
5821fi
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5832	if test -n "$ac_tool_prefix"; then
5833  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5834set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
5837if ${ac_cv_path_PKG_CONFIG+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  case $PKG_CONFIG in
5841  [\\/]* | ?:[\\/]*)
5842  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5843  ;;
5844  *)
5845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850    for ac_exec_ext in '' $ac_executable_extensions; do
5851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857  done
5858IFS=$as_save_IFS
5859
5860  ;;
5861esac
5862fi
5863PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5864if test -n "$PKG_CONFIG"; then
5865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5866$as_echo "$PKG_CONFIG" >&6; }
5867else
5868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869$as_echo "no" >&6; }
5870fi
5871
5872
5873fi
5874if test -z "$ac_cv_path_PKG_CONFIG"; then
5875  ac_pt_PKG_CONFIG=$PKG_CONFIG
5876  # Extract the first word of "pkg-config", so it can be a program name with args.
5877set dummy pkg-config; ac_word=$2
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879$as_echo_n "checking for $ac_word... " >&6; }
5880if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  case $ac_pt_PKG_CONFIG in
5884  [\\/]* | ?:[\\/]*)
5885  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5886  ;;
5887  *)
5888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891  IFS=$as_save_IFS
5892  test -z "$as_dir" && as_dir=.
5893    for ac_exec_ext in '' $ac_executable_extensions; do
5894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897    break 2
5898  fi
5899done
5900  done
5901IFS=$as_save_IFS
5902
5903  ;;
5904esac
5905fi
5906ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5907if test -n "$ac_pt_PKG_CONFIG"; then
5908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5909$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5910else
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915  if test "x$ac_pt_PKG_CONFIG" = x; then
5916    PKG_CONFIG=""
5917  else
5918    case $cross_compiling:$ac_tool_warned in
5919yes:)
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5922ac_tool_warned=yes ;;
5923esac
5924    PKG_CONFIG=$ac_pt_PKG_CONFIG
5925  fi
5926else
5927  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5928fi
5929
5930fi
5931if test -n "$PKG_CONFIG"; then
5932	_pkg_min_version=0.9.0
5933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5934$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5935	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5937$as_echo "yes" >&6; }
5938	else
5939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941		PKG_CONFIG=""
5942	fi
5943fi
5944# If the modern mechanism failswe may havew an older pkg-config
5945# so try looking it up the old fashioned way.
5946if test -z "$PKG_CONFIG"; then
5947  # Extract the first word of "pkg-config", so it can be a program name with args.
5948set dummy pkg-config; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
5951if ${ac_cv_path_PKG_CONFIG+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  case $PKG_CONFIG in
5955  [\\/]* | ?:[\\/]*)
5956  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5957  ;;
5958  *)
5959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964    for ac_exec_ext in '' $ac_executable_extensions; do
5965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971  done
5972IFS=$as_save_IFS
5973
5974  ;;
5975esac
5976fi
5977PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5978if test -n "$PKG_CONFIG"; then
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5980$as_echo "$PKG_CONFIG" >&6; }
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
5985
5986
5987fi
5988
5989
5990#--------------------------------------------------------------------
5991# specific target_os options
5992#--------------------------------------------------------------------
5993INCLUDE_FLAGS="$CPPFLAGS"
5994LDIR_FLAGS="$LDFLAGS"
5995# This is just for configuring. Later, in config.make, INCLUDE_FLAGS
5996# goes in CONFIG_SYSTEM_INCL and LIBS goes in CONFIG_SYSTEM_LIBS
5997case "$target_os" in
5998  freebsd* | dragonfly* | openbsd* )
5999	        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
6000		LDFLAGS="$LDFLAGS -L/usr/local/lib";;
6001  netbsd*)	CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
6002		LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
6003  linux-android* )
6004		# link against libandroid for native application APIs
6005		LIBS="$LIBS -landroid";;
6006esac
6007
6008#--------------------------------------------------------------------
6009# Set Apple/Darwin/OSX/NeXT information for other tests
6010#--------------------------------------------------------------------
6011OBJC_RUNTIME_LIB=`echo $LIBRARY_COMBO | tr '-' ' ' | awk '{print $1}'`
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the Objective-C runtime" >&5
6013$as_echo_n "checking the Objective-C runtime... " >&6; }
6014if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
6015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: NeXT" >&5
6016$as_echo "NeXT" >&6; }
6017  OBJCFLAGS="$OBJCFLAGS -fnext-runtime -DNeXT_RUNTIME"
6018elif test "$OBJC_RUNTIME_LIB" = "ng"; then
6019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Next Gen" >&5
6020$as_echo "Next Gen" >&6; }
6021else
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
6023$as_echo "GNU" >&6; }
6024  if test "$CLANG_CC" = "yes"; then
6025    OBJCFLAGS="$OBJCFLAGS -fobjc-runtime=gcc"
6026  fi
6027fi
6028LIBOBJC=`gnustep-config --objc-libs`
6029if test "$LIBOBJC" = ""; then
6030  as_fn_error $? "The command 'gnustep-config --objc-libs' (provided by the gnustep-make package) returned no Objective-C library.  Unable to continue configuring without Objective-C support." "$LINENO" 5
6031  exit 1
6032fi
6033
6034#--------------------------------------------------------------------
6035# Miscellaneous flags
6036#--------------------------------------------------------------------
6037
6038# Check to see if the libobjc library is in our GNUSTEP_SYSTEM_LIBRARIES.
6039# If so, there are probably other libraries that we want there also, so
6040# leave the proper includes in CPPFLAGS and LDFLAGS
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom shared objc library" >&5
6042$as_echo_n "checking for custom shared objc library... " >&6; }
6043if ${gs_cv_objc_libdir+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  gs_cv_objc_libdir=NONE
6047gs_cv_objc_incdir=NONE
6048# Try GNUSTEP_SYSTEM_LIBRARIES first
6049if test "$GNUSTEP_IS_FLATTENED" = yes; then
6050  GNUSTEP_LDIR="$GNUSTEP_SYSTEM_LIBRARIES"
6051  GNUSTEP_HDIR="$GNUSTEP_SYSTEM_HEADERS"
6052else
6053  GNUSTEP_LDIR="$GNUSTEP_SYSTEM_LIBRARIES/$obj_dir"
6054  GNUSTEP_HDIR="$GNUSTEP_SYSTEM_HEADERS/$LIBRARY_COMBO"
6055fi
6056
6057if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
6058  if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib" -o -f "$GNUSTEP_LDIR/libobjc_gc.a" -o -f "$GNUSTEP_LDIR/libobjc_gc.so" -o -f "$GNUSTEP_LDIR/libobjc_gc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc_gc-gnu.dylib"; then
6059    gs_cv_objc_libdir="$GNUSTEP_LDIR"
6060    gs_cv_objc_incdir="$GNUSTEP_HDIR"
6061  fi
6062fi
6063
6064# Try GNUSTEP_NETWORK_LIBRARIES second (override GNUSTEP_SYSTEM if
6065# found)
6066if test "$GNUSTEP_IS_FLATTENED" = yes; then
6067  GNUSTEP_LDIR="$GNUSTEP_NETWORK_LIBRARIES"
6068  GNUSTEP_HDIR="$GNUSTEP_NETWORK_HEADERS"
6069else
6070  GNUSTEP_LDIR="$GNUSTEP_NETWORK_LIBRARIES/$obj_dir"
6071  GNUSTEP_HDIR="$GNUSTEP_NETWORK_HEADERS/$LIBRARY_COMBO"
6072fi
6073
6074if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
6075  if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib" -o -f "$GNUSTEP_LDIR/libobjc_gc.a" -o -f "$GNUSTEP_LDIR/libobjc_gc.so" -o -f "$GNUSTEP_LDIR/libobjc_gc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc_gc-gnu.dylib"; then
6076    gs_cv_objc_libdir="$GNUSTEP_LDIR"
6077    gs_cv_objc_incdir="$GNUSTEP_HDIR"
6078  fi
6079fi
6080
6081# Try GNUSTEP_LOCAL_LIBRARIES third (override GNUSTEP_SYSTEM and
6082# GNUSTEP_NETWORK if found)
6083if test "$GNUSTEP_IS_FLATTENED" = yes; then
6084  GNUSTEP_LDIR="$GNUSTEP_LOCAL_LIBRARIES"
6085  GNUSTEP_HDIR="$GNUSTEP_LOCAL_HEADERS"
6086else
6087  GNUSTEP_LDIR="$GNUSTEP_LOCAL_LIBRARIES/$obj_dir"
6088  GNUSTEP_HDIR="$GNUSTEP_LOCAL_HEADERS/$LIBRARY_COMBO"
6089fi
6090
6091if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
6092  if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib" -o -f "$GNUSTEP_LDIR/libobjc_gc.a" -o -f "$GNUSTEP_LDIR/libobjc_gc.so" -o -f "$GNUSTEP_LDIR/libobjc_gc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc_gc-gnu.dylib"; then
6093    gs_cv_objc_libdir="$GNUSTEP_LDIR"
6094    gs_cv_objc_incdir="$GNUSTEP_HDIR"
6095  fi
6096fi
6097
6098fi
6099
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gs_cv_objc_libdir" >&5
6101$as_echo "$gs_cv_objc_libdir" >&6; }
6102
6103if test "$gs_cv_objc_libdir" != "NONE"; then
6104  #
6105  # The following one is so that headers of custom libraries into
6106  # $GNUSTEP_HDIR are used before the standard ones
6107  #
6108  INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gs_cv_objc_incdir"
6109  LDIR_FLAGS="$LDIR_FLAGS -L$gs_cv_objc_libdir/$LIBRARY_COMBO -L$gs_cv_objc_libdir"
6110  CPPFLAGS="$CPPFLAGS -I$gs_cv_objc_incdir"
6111  LDFLAGS="$LDFLAGS -L$gs_cv_objc_libdir"
6112fi
6113
6114#--------------------------------------------------------------------
6115# Check if Objective-C is installed
6116#--------------------------------------------------------------------
6117for ac_header in objc/runtime.h
6118do :
6119  ac_fn_c_check_header_mongrel "$LINENO" "objc/runtime.h" "ac_cv_header_objc_runtime_h" "$ac_includes_default"
6120if test "x$ac_cv_header_objc_runtime_h" = xyes; then :
6121  cat >>confdefs.h <<_ACEOF
6122#define HAVE_OBJC_RUNTIME_H 1
6123_ACEOF
6124
6125fi
6126
6127done
6128
6129for ac_header in objc/objc.h
6130do :
6131  ac_fn_c_check_header_mongrel "$LINENO" "objc/objc.h" "ac_cv_header_objc_objc_h" "$ac_includes_default"
6132if test "x$ac_cv_header_objc_objc_h" = xyes; then :
6133  cat >>confdefs.h <<_ACEOF
6134#define HAVE_OBJC_OBJC_H 1
6135_ACEOF
6136
6137fi
6138
6139done
6140
6141if test $ac_cv_header_objc_objc_h = no; then
6142  echo "Check to make sure you have the Objective-C runtime library"
6143  echo "and its headers installed."
6144  as_fn_error $? "Could not find Objective-C headers" "$LINENO" 5
6145fi
6146
6147#--------------------------------------------------------------------
6148# Check for strange network stuff used by gdomap
6149#--------------------------------------------------------------------
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: for gdomap network details" >&5
6151$as_echo "$as_me: for gdomap network details" >&6;}
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length socket addresses" >&5
6153$as_echo_n "checking for variable length socket addresses... " >&6; }
6154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156
6157  #include <sys/types.h>
6158  #include <sys/socket.h>
6159  #include <net/if.h>
6160
6161int
6162main ()
6163{
6164struct ifreq s; s.ifr_addr.sa_len = 0;
6165  ;
6166  return 0;
6167}
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"; then :
6170  sa_len=1
6171else
6172  sa_len=0
6173fi
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175if test $sa_len = 1; then
6176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6177$as_echo "found" >&6; }
6178
6179$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
6180
6181else
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6183$as_echo "not found" >&6; }
6184fi
6185
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler visibility attribute support" >&5
6187$as_echo_n "checking for compiler visibility attribute support... " >&6; }
6188saved_CFLAGS="$CFLAGS"
6189CFLAGS="$CFLAGS -Werror"
6190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h.  */
6192
6193  #include <stdio.h>
6194  int foo() __attribute__ ((visibility("internal")));
6195  int foo(){ return 1; }
6196  int main(){ return foo(); }
6197_ACEOF
6198if ac_fn_c_try_compile "$LINENO"; then :
6199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6200$as_echo "found" >&6; }
6201  gs_visibility=1
6202else
6203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
6204$as_echo "not present" >&6; }
6205  gs_visibility=0
6206
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209
6210cat >>confdefs.h <<_ACEOF
6211#define HAVE_VISIBILITY_ATTRIBUTE $gs_visibility
6212_ACEOF
6213
6214CFLAGS="$saved_CFLAGS"
6215
6216
6217#--------------------------------------------------------------------
6218# Check if system has buggy SO_REUSEADDR
6219#--------------------------------------------------------------------
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SO_REUSEADDR is broken" >&5
6221$as_echo_n "checking whether SO_REUSEADDR is broken... " >&6; }
6222if test "$cross_compiling" = yes; then :
6223  reuseaddr_ok="$cross_reuseaddr_ok"
6224else
6225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227#include "$srcdir/config/config.reuseaddr.c"
6228_ACEOF
6229if ac_fn_c_try_run "$LINENO"; then :
6230  reuseaddr_ok=1
6231else
6232  reuseaddr_ok=0
6233fi
6234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6235  conftest.$ac_objext conftest.beam conftest.$ac_ext
6236fi
6237
6238if test $reuseaddr_ok = 0; then
6239
6240$as_echo "#define BROKEN_SO_REUSEADDR 1" >>confdefs.h
6241
6242  echo
6243  echo "The SO_REUSEADDR socket option for controlling re-use of network"
6244  echo "sockets immediately after shutdown appears to be broken on this"
6245  echo "machine.  Networking code will be built without using this"
6246  echo "feature."
6247  echo "The effect of this lack is that when a network service is shut"
6248  echo "down, it cannot be re-started on the same network port until"
6249  echo "an operating-system timeout has expired."
6250  echo "For servers other than gdomap, GNUstep does not normally need"
6251  echo "a particular network port, so the problem is unlikely to arise."
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6253$as_echo "yes" >&6; }
6254else
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259#--------------------------------------------------------------------
6260# Check for thread flags for libobjc.
6261#--------------------------------------------------------------------
6262#
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objc threading flags" >&5
6264$as_echo_n "checking for objc threading flags... " >&6; }
6265#
6266# Get them from gnustep-make which contains the real code to get them
6267#
6268objc_threaded=`grep objc_threaded: $CURRENT_GNUSTEP_MAKEFILES/$lobj_dir/config.make | sed -e 's/objc_threaded:=//'`
6269#
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc_threaded" >&5
6271$as_echo "$objc_threaded" >&6; }
6272
6273#--------------------------------------------------------------------
6274# Byte order information needed for foundation headers.
6275#--------------------------------------------------------------------
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6277$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6278if ${ac_cv_c_bigendian+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  ac_cv_c_bigendian=unknown
6282    # See if we're dealing with a universal compiler.
6283    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285#ifndef __APPLE_CC__
6286	       not a universal capable compiler
6287	     #endif
6288	     typedef int dummy;
6289
6290_ACEOF
6291if ac_fn_c_try_compile "$LINENO"; then :
6292
6293	# Check for potential -arch flags.  It is not universal unless
6294	# there are at least two -arch flags with different values.
6295	ac_arch=
6296	ac_prev=
6297	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6298	 if test -n "$ac_prev"; then
6299	   case $ac_word in
6300	     i?86 | x86_64 | ppc | ppc64)
6301	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6302		 ac_arch=$ac_word
6303	       else
6304		 ac_cv_c_bigendian=universal
6305		 break
6306	       fi
6307	       ;;
6308	   esac
6309	   ac_prev=
6310	 elif test "x$ac_word" = "x-arch"; then
6311	   ac_prev=arch
6312	 fi
6313       done
6314fi
6315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316    if test $ac_cv_c_bigendian = unknown; then
6317      # See if sys/param.h defines the BYTE_ORDER macro.
6318      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320#include <sys/types.h>
6321	     #include <sys/param.h>
6322
6323int
6324main ()
6325{
6326#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6327		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6328		     && LITTLE_ENDIAN)
6329	      bogus endian macros
6330	     #endif
6331
6332  ;
6333  return 0;
6334}
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"; then :
6337  # It does; now see whether it defined to BIG_ENDIAN or not.
6338	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340#include <sys/types.h>
6341		#include <sys/param.h>
6342
6343int
6344main ()
6345{
6346#if BYTE_ORDER != BIG_ENDIAN
6347		 not big endian
6348		#endif
6349
6350  ;
6351  return 0;
6352}
6353_ACEOF
6354if ac_fn_c_try_compile "$LINENO"; then :
6355  ac_cv_c_bigendian=yes
6356else
6357  ac_cv_c_bigendian=no
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362    fi
6363    if test $ac_cv_c_bigendian = unknown; then
6364      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6365      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367#include <limits.h>
6368
6369int
6370main ()
6371{
6372#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6373	      bogus endian macros
6374	     #endif
6375
6376  ;
6377  return 0;
6378}
6379_ACEOF
6380if ac_fn_c_try_compile "$LINENO"; then :
6381  # It does; now see whether it defined to _BIG_ENDIAN or not.
6382	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384#include <limits.h>
6385
6386int
6387main ()
6388{
6389#ifndef _BIG_ENDIAN
6390		 not big endian
6391		#endif
6392
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"; then :
6398  ac_cv_c_bigendian=yes
6399else
6400  ac_cv_c_bigendian=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405    fi
6406    if test $ac_cv_c_bigendian = unknown; then
6407      # Compile a test program.
6408      if test "$cross_compiling" = yes; then :
6409  # Try to guess by grepping values from an object file.
6410	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411/* end confdefs.h.  */
6412short int ascii_mm[] =
6413		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6414		short int ascii_ii[] =
6415		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6416		int use_ascii (int i) {
6417		  return ascii_mm[i] + ascii_ii[i];
6418		}
6419		short int ebcdic_ii[] =
6420		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6421		short int ebcdic_mm[] =
6422		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6423		int use_ebcdic (int i) {
6424		  return ebcdic_mm[i] + ebcdic_ii[i];
6425		}
6426		extern int foo;
6427
6428int
6429main ()
6430{
6431return use_ascii (foo) == use_ebcdic (foo);
6432  ;
6433  return 0;
6434}
6435_ACEOF
6436if ac_fn_c_try_compile "$LINENO"; then :
6437  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6438	      ac_cv_c_bigendian=yes
6439	    fi
6440	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6441	      if test "$ac_cv_c_bigendian" = unknown; then
6442		ac_cv_c_bigendian=no
6443	      else
6444		# finding both strings is unlikely to happen, but who knows?
6445		ac_cv_c_bigendian=unknown
6446	      fi
6447	    fi
6448fi
6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450else
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453$ac_includes_default
6454int
6455main ()
6456{
6457
6458	     /* Are we little or big endian?  From Harbison&Steele.  */
6459	     union
6460	     {
6461	       long int l;
6462	       char c[sizeof (long int)];
6463	     } u;
6464	     u.l = 1;
6465	     return u.c[sizeof (long int) - 1] == 1;
6466
6467  ;
6468  return 0;
6469}
6470_ACEOF
6471if ac_fn_c_try_run "$LINENO"; then :
6472  ac_cv_c_bigendian=no
6473else
6474  ac_cv_c_bigendian=yes
6475fi
6476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6477  conftest.$ac_objext conftest.beam conftest.$ac_ext
6478fi
6479
6480    fi
6481fi
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6483$as_echo "$ac_cv_c_bigendian" >&6; }
6484 case $ac_cv_c_bigendian in #(
6485   yes)
6486     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6487;; #(
6488   no)
6489      ;; #(
6490   universal)
6491
6492$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6493
6494     ;; #(
6495   *)
6496     as_fn_error $? "unknown endianness
6497 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6498 esac
6499
6500if test $ac_cv_c_bigendian = yes; then
6501  GS_WORDS_BIGENDIAN=1
6502else
6503  GS_WORDS_BIGENDIAN=0
6504fi
6505
6506
6507#--------------------------------------------------------------------
6508# Type size information needed for foundation headers.
6509#--------------------------------------------------------------------
6510# The cast to long int works around a bug in the HP C Compiler
6511# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6512# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6513# This bug is HP SR number 8606223364.
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6515$as_echo_n "checking size of void*... " >&6; }
6516if ${ac_cv_sizeof_voidp+:} false; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
6520
6521else
6522  if test "$ac_cv_type_voidp" = yes; then
6523     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6525as_fn_error 77 "cannot compute sizeof (void*)
6526See \`config.log' for more details" "$LINENO" 5; }
6527   else
6528     ac_cv_sizeof_voidp=0
6529   fi
6530fi
6531
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6534$as_echo "$ac_cv_sizeof_voidp" >&6; }
6535
6536
6537
6538cat >>confdefs.h <<_ACEOF
6539#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6540_ACEOF
6541
6542
6543
6544GS_SINT8="signed char"
6545GS_UINT8="unsigned char"
6546
6547
6548
6549# The cast to long int works around a bug in the HP C Compiler
6550# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6551# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6552# This bug is HP SR number 8606223364.
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6554$as_echo_n "checking size of short... " >&6; }
6555if ${ac_cv_sizeof_short+:} false; then :
6556  $as_echo_n "(cached) " >&6
6557else
6558  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6559
6560else
6561  if test "$ac_cv_type_short" = yes; then
6562     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6564as_fn_error 77 "cannot compute sizeof (short)
6565See \`config.log' for more details" "$LINENO" 5; }
6566   else
6567     ac_cv_sizeof_short=0
6568   fi
6569fi
6570
6571fi
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6573$as_echo "$ac_cv_sizeof_short" >&6; }
6574
6575
6576
6577cat >>confdefs.h <<_ACEOF
6578#define SIZEOF_SHORT $ac_cv_sizeof_short
6579_ACEOF
6580
6581
6582
6583
6584# The cast to long int works around a bug in the HP C Compiler
6585# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6586# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6587# This bug is HP SR number 8606223364.
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6589$as_echo_n "checking size of int... " >&6; }
6590if ${ac_cv_sizeof_int+:} false; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6594
6595else
6596  if test "$ac_cv_type_int" = yes; then
6597     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6599as_fn_error 77 "cannot compute sizeof (int)
6600See \`config.log' for more details" "$LINENO" 5; }
6601   else
6602     ac_cv_sizeof_int=0
6603   fi
6604fi
6605
6606fi
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6608$as_echo "$ac_cv_sizeof_int" >&6; }
6609
6610
6611
6612cat >>confdefs.h <<_ACEOF
6613#define SIZEOF_INT $ac_cv_sizeof_int
6614_ACEOF
6615
6616
6617
6618
6619# The cast to long int works around a bug in the HP C Compiler
6620# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6621# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6622# This bug is HP SR number 8606223364.
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6624$as_echo_n "checking size of long... " >&6; }
6625if ${ac_cv_sizeof_long+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6629
6630else
6631  if test "$ac_cv_type_long" = yes; then
6632     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6634as_fn_error 77 "cannot compute sizeof (long)
6635See \`config.log' for more details" "$LINENO" 5; }
6636   else
6637     ac_cv_sizeof_long=0
6638   fi
6639fi
6640
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6643$as_echo "$ac_cv_sizeof_long" >&6; }
6644
6645
6646
6647cat >>confdefs.h <<_ACEOF
6648#define SIZEOF_LONG $ac_cv_sizeof_long
6649_ACEOF
6650
6651
6652
6653
6654# The cast to long int works around a bug in the HP C Compiler
6655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6657# This bug is HP SR number 8606223364.
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6659$as_echo_n "checking size of long long... " >&6; }
6660if ${ac_cv_sizeof_long_long+:} false; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6664
6665else
6666  if test "$ac_cv_type_long_long" = yes; then
6667     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6669as_fn_error 77 "cannot compute sizeof (long long)
6670See \`config.log' for more details" "$LINENO" 5; }
6671   else
6672     ac_cv_sizeof_long_long=0
6673   fi
6674fi
6675
6676fi
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6678$as_echo "$ac_cv_sizeof_long_long" >&6; }
6679
6680
6681
6682cat >>confdefs.h <<_ACEOF
6683#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6684_ACEOF
6685
6686
6687
6688
6689# The cast to long int works around a bug in the HP C Compiler
6690# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6691# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6692# This bug is HP SR number 8606223364.
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
6694$as_echo_n "checking size of float... " >&6; }
6695if ${ac_cv_sizeof_float+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
6699
6700else
6701  if test "$ac_cv_type_float" = yes; then
6702     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6704as_fn_error 77 "cannot compute sizeof (float)
6705See \`config.log' for more details" "$LINENO" 5; }
6706   else
6707     ac_cv_sizeof_float=0
6708   fi
6709fi
6710
6711fi
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
6713$as_echo "$ac_cv_sizeof_float" >&6; }
6714
6715
6716
6717cat >>confdefs.h <<_ACEOF
6718#define SIZEOF_FLOAT $ac_cv_sizeof_float
6719_ACEOF
6720
6721
6722
6723
6724# The cast to long int works around a bug in the HP C Compiler
6725# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6726# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6727# This bug is HP SR number 8606223364.
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
6729$as_echo_n "checking size of double... " >&6; }
6730if ${ac_cv_sizeof_double+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
6734
6735else
6736  if test "$ac_cv_type_double" = yes; then
6737     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6739as_fn_error 77 "cannot compute sizeof (double)
6740See \`config.log' for more details" "$LINENO" 5; }
6741   else
6742     ac_cv_sizeof_double=0
6743   fi
6744fi
6745
6746fi
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
6748$as_echo "$ac_cv_sizeof_double" >&6; }
6749
6750
6751
6752cat >>confdefs.h <<_ACEOF
6753#define SIZEOF_DOUBLE $ac_cv_sizeof_double
6754_ACEOF
6755
6756
6757
6758
6759
6760if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_int; then
6761  GS_SADDR="int"
6762  GS_UADDR="unsigned int"
6763else
6764  if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long; then
6765    GS_SADDR="long"
6766    GS_UADDR="unsigned long"
6767  else
6768    if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long_long; then
6769      GS_SADDR="long long"
6770      GS_UADDR="unsigned long long"
6771    else
6772      as_fn_error $? "Unable to find integer of same size as void*" "$LINENO" 5
6773    fi
6774  fi
6775fi
6776
6777
6778
6779if test $ac_cv_sizeof_short = 2; then
6780  GS_SINT16="signed short"
6781  GS_UINT16="unsigned short"
6782else
6783  if test $ac_cv_sizeof_int = 2; then
6784    GS_SINT16="signed int"
6785    GS_UINT16="unsigned int"
6786  else
6787    as_fn_error $? "Unable to determine type for 16-bit integer" "$LINENO" 5
6788  fi
6789fi
6790
6791
6792
6793if test $ac_cv_sizeof_int = 4; then
6794  GS_SINT32="signed int"
6795  GS_UINT32="unsigned int"
6796else
6797  if test $ac_cv_sizeof_long = 4; then
6798    GS_SINT32="signed long"
6799    GS_UINT32="unsigned long"
6800  else
6801    if test $ac_cv_sizeof_short = 4; then
6802      GS_SINT32="signed short"
6803      GS_UINT32="unsigned short"
6804    else
6805      as_fn_error $? "Unable to determine type for 32-bit integer" "$LINENO" 5
6806    fi
6807  fi
6808fi
6809
6810
6811
6812GS_HAVE_I64=1
6813if test $ac_cv_sizeof_int = 8; then
6814  GS_SINT64="signed int"
6815  GS_UINT64="unsigned int"
6816else
6817  if test $ac_cv_sizeof_long = 8; then
6818    GS_SINT64="signed long"
6819    GS_UINT64="unsigned long"
6820  else
6821    if test $ac_cv_sizeof_long_long = 8; then
6822      GS_SINT64="signed long long"
6823      GS_UINT64="unsigned long long"
6824    else
6825#     64-bit ints not supported - but we need a dummy type for byte-swapping
6826#     of 64-bit values arriving from another system.
6827      GS_SINT64="struct { gsu8 a8; }"
6828      GS_UINT64="struct { gsu8 a8; }"
6829      GS_HAVE_I64=0
6830    fi
6831  fi
6832fi
6833
6834
6835
6836
6837GS_HAVE_I128=1
6838if test $ac_cv_sizeof_long = 16; then
6839  GS_SINT128="signed long"
6840  GS_UINT128="unsigned long"
6841else
6842  if test $ac_cv_sizeof_long_long = 16; then
6843    GS_SINT128="signed long long"
6844    GS_UINT128="unsigned long long"
6845  else
6846#     128-bit ints not supported - but we need a dummy type for byte-swapping
6847#     of 128-bit values arriving from another system.
6848    GS_SINT128="struct { gsu8 a[16]; }"
6849    GS_UINT128="struct { gsu8 a[16]; }"
6850    GS_HAVE_I128=0
6851  fi
6852fi
6853
6854
6855
6856
6857if test $ac_cv_sizeof_float = 4; then
6858  GS_FLT32="float"
6859else
6860  as_fn_error $? "Unable to determine type for 32-bit float" "$LINENO" 5
6861fi
6862
6863
6864if test $ac_cv_sizeof_double = 8; then
6865  GS_FLT64="double"
6866else
6867  as_fn_error $? "Unable to determine type for 64-bit float" "$LINENO" 5
6868fi
6869
6870
6871#--------------------------------------------------------------------
6872# Type-size information for encoding into archives using NSArchiver etc.
6873#--------------------------------------------------------------------
6874if test $ac_cv_sizeof_short = 2; then
6875  _GSC_S_SHT=_GSC_I16
6876else
6877  _GSC_S_SHT=_GSC_I32
6878fi
6879
6880
6881if test $ac_cv_sizeof_int = 2; then
6882  _GSC_S_INT=_GSC_I16
6883else
6884  if test $ac_cv_sizeof_int = 4; then
6885    _GSC_S_INT=_GSC_I32
6886  else
6887    if test $ac_cv_sizeof_int = 8; then
6888      _GSC_S_INT=_GSC_I64
6889    else
6890      if test $ac_cv_sizeof_int = 16; then
6891	_GSC_S_INT=_GSC_I128
6892      fi
6893    fi
6894  fi
6895fi
6896
6897
6898if test $ac_cv_sizeof_long = 4; then
6899  _GSC_S_LNG=_GSC_I32
6900else
6901  if test $ac_cv_sizeof_long = 8; then
6902    _GSC_S_LNG=_GSC_I64
6903  else
6904    if test $ac_cv_sizeof_long = 16; then
6905      _GSC_S_LNG=_GSC_I128
6906    fi
6907  fi
6908fi
6909
6910
6911if test $ac_cv_sizeof_long_long = 4; then
6912  _GSC_S_LNG_LNG=_GSC_I32
6913else
6914  if test $ac_cv_sizeof_long_long = 8; then
6915    _GSC_S_LNG_LNG=_GSC_I64
6916  else
6917    if test $ac_cv_sizeof_long_long = 16; then
6918      _GSC_S_LNG_LNG=_GSC_I128
6919    fi
6920  fi
6921fi
6922
6923
6924
6925#--------------------------------------------------------------------
6926# Limit information needed for foundation headers.
6927#--------------------------------------------------------------------
6928ac_ext=c
6929ac_cpp='$CPP $CPPFLAGS'
6930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX" >&5
6935$as_echo_n "checking for working INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX... " >&6; };
6936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938#include <inttypes.h>
6939int
6940main ()
6941{
6942int imax = INTPTR_MAX; int imin = INTPTR_MIN; unsigned umax = UINTPTR_MAX;
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_c_try_compile "$LINENO"; then :
6948  have_valid_ptr_limits=yes
6949else
6950  have_valid_ptr_limits=no
6951fi
6952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
6953  if test "$have_valid_ptr_limits" = "yes"; then
6954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6955$as_echo "yes" >&6; };
6956    BUGGY_PTR_LIMITS=0
6957  else
6958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959$as_echo "no" >&6; };
6960    BUGGY_PTR_LIMITS=1
6961    case "$target_os" in
6962      solaris*)
6963        case "$target_cpu" in
6964          sparc64*|x86_64*)
6965            GS_INTPTR_MAX="INT64_MAX"
6966            GS_INTPTR_MIN="INT64_MIN"
6967            GS_UINTPTR_MAX="UINT64_MAX"
6968            ;;
6969          sparc*|i386*|i586*|i686*)
6970            GS_INTPTR_MAX="INT32_MAX"
6971            GS_INTPTR_MIN="INT32_MIN"
6972            GS_UINTPTR_MAX="UINT32_MAX"
6973            ;;
6974          *) ;;
6975        esac ;;
6976      # support for other OS's with broken macros to be added here (HP-UX, IRIX being known)
6977      *)
6978      ;;
6979    esac
6980
6981
6982
6983  fi
6984
6985ac_ext=c
6986ac_cpp='$CPP $CPPFLAGS'
6987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989ac_compiler_gnu=$ac_cv_c_compiler_gnu
6990
6991
6992#--------------------------------------------------------------------
6993# Setup dynamic linking
6994#--------------------------------------------------------------------
6995# Copyright (C) 2005 Free Software Foundation
6996#
6997# Copying and distribution of this file, with or without modification,
6998# are permitted in any medium without royalty provided the copyright
6999# notice and this notice are preserved.
7000#--------------------------------------------------------------------
7001# Guess if we are using a object file format that supports automatic
7002# loading of constructor functions.
7003#
7004# If this system supports autoloading of constructors, that means that gcc
7005# doesn't have to do it for us via collect2. This routine tests for this
7006# in a very roundabout way by compiling a program with a constructor and
7007# testing the file, via nm, for certain symbols that collect2 includes to
7008# handle loading of constructors.
7009#
7010# Makes the following substitutions:
7011#	Defines CON_AUTOLOAD (whether constructor functions are autoloaded)
7012#--------------------------------------------------------------------
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking loading of constructor functions" >&5
7014$as_echo_n "checking loading of constructor functions... " >&6; }
7015if ${objc_cv_con_autoload+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  if test "$cross_compiling" = yes; then :
7019  objc_cv_con_autoload=no
7020else
7021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023static int loaded = 0;
7024	void cons_functions() __attribute__ ((constructor));
7025	void cons_functions() { loaded = 1; }
7026	int main()
7027	{
7028  	  return ( (loaded == 1) ? 0 : 1);
7029	}
7030_ACEOF
7031if ac_fn_c_try_run "$LINENO"; then :
7032  objc_cv_con_autoload=yes
7033else
7034  objc_cv_con_autoload=no
7035fi
7036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7037  conftest.$ac_objext conftest.beam conftest.$ac_ext
7038fi
7039
7040case "$target_os" in
7041    cygwin*)	objc_cv_con_autoload=yes;;
7042    mingw*)	objc_cv_con_autoload=yes;;
7043esac
7044
7045fi
7046
7047if test $objc_cv_con_autoload = yes; then
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7049$as_echo "yes" >&6; }
7050
7051$as_echo "#define CON_AUTOLOAD 1" >>confdefs.h
7052
7053else
7054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058# Copyright (C) 2005 Free Software Foundation
7059# Copying and distribution of this file, with or without modification,
7060# are permitted in any medium without royalty provided the copyright
7061# notice and this notice are preserved.
7062#--------------------------------------------------------------------
7063# Guess the type of dynamic linker for the system
7064#
7065# Makes the following substitutions:
7066#	DYNAMIC_LINKER	- cooresponds to the interface that is included
7067#		in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
7068#--------------------------------------------------------------------
7069DYNAMIC_LINKER=null
7070ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7071if test "x$ac_cv_header_windows_h" = xyes; then :
7072  DYNAMIC_LINKER=win32
7073fi
7074
7075
7076if test $DYNAMIC_LINKER = null; then
7077  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7078if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7079  DYNAMIC_LINKER=simple
7080fi
7081
7082
7083fi
7084if test $DYNAMIC_LINKER = null; then
7085  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
7086if test "x$ac_cv_header_dl_h" = xyes; then :
7087  DYNAMIC_LINKER=hpux
7088fi
7089
7090
7091fi
7092if test $DYNAMIC_LINKER = null; then
7093  ac_fn_c_check_header_mongrel "$LINENO" "dld/defs.h" "ac_cv_header_dld_defs_h" "$ac_includes_default"
7094if test "x$ac_cv_header_dld_defs_h" = xyes; then :
7095  DYNAMIC_LINKER=dld
7096fi
7097
7098
7099fi
7100
7101# NB: This is used as follows: in Source/Makefile.postamble we copy
7102# $(DYNAMIC_LINKER)-load.h into dynamic-load.h
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic linker type" >&5
7104$as_echo_n "checking for dynamic linker type... " >&6; }
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNAMIC_LINKER" >&5
7106$as_echo "$DYNAMIC_LINKER" >&6; }
7107
7108if test $DYNAMIC_LINKER = simple; then
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
7110$as_echo_n "checking for dladdr in -ldl... " >&6; }
7111if ${ac_cv_lib_dl_dladdr+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114  ac_check_lib_save_LIBS=$LIBS
7115LIBS="-ldl  $LIBS"
7116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118
7119/* Override any GCC internal prototype to avoid an error.
7120   Use char because int might match the return type of a GCC
7121   builtin and then its argument prototype would still apply.  */
7122#ifdef __cplusplus
7123extern "C"
7124#endif
7125char dladdr ();
7126int
7127main ()
7128{
7129return dladdr ();
7130  ;
7131  return 0;
7132}
7133_ACEOF
7134if ac_fn_c_try_link "$LINENO"; then :
7135  ac_cv_lib_dl_dladdr=yes
7136else
7137  ac_cv_lib_dl_dladdr=no
7138fi
7139rm -f core conftest.err conftest.$ac_objext \
7140    conftest$ac_exeext conftest.$ac_ext
7141LIBS=$ac_check_lib_save_LIBS
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
7144$as_echo "$ac_cv_lib_dl_dladdr" >&6; }
7145if test "x$ac_cv_lib_dl_dladdr" = xyes; then :
7146  cat >>confdefs.h <<_ACEOF
7147#define HAVE_LIBDL 1
7148_ACEOF
7149
7150  LIBS="-ldl $LIBS"
7151
7152fi
7153
7154fi
7155
7156
7157# NOTE: libdl should be in LIBS now if it's available.
7158for ac_func in dladdr
7159do :
7160  ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
7161if test "x$ac_cv_func_dladdr" = xyes; then :
7162  cat >>confdefs.h <<_ACEOF
7163#define HAVE_DLADDR 1
7164_ACEOF
7165
7166fi
7167done
7168
7169
7170for ac_func in gethostbyname
7171do :
7172  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7173if test "x$ac_cv_func_gethostbyname" = xyes; then :
7174  cat >>confdefs.h <<_ACEOF
7175#define HAVE_GETHOSTBYNAME 1
7176_ACEOF
7177
7178fi
7179done
7180
7181if test "$ac_cv_func_gethostbyname" = "no"; then
7182  # QNX has gethostbyname and friends in libsocket
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
7184$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
7185if ${ac_cv_lib_socket_gethostbyname+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  ac_check_lib_save_LIBS=$LIBS
7189LIBS="-lsocket  $LIBS"
7190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192
7193/* Override any GCC internal prototype to avoid an error.
7194   Use char because int might match the return type of a GCC
7195   builtin and then its argument prototype would still apply.  */
7196#ifdef __cplusplus
7197extern "C"
7198#endif
7199char gethostbyname ();
7200int
7201main ()
7202{
7203return gethostbyname ();
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208if ac_fn_c_try_link "$LINENO"; then :
7209  ac_cv_lib_socket_gethostbyname=yes
7210else
7211  ac_cv_lib_socket_gethostbyname=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext \
7214    conftest$ac_exeext conftest.$ac_ext
7215LIBS=$ac_check_lib_save_LIBS
7216fi
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
7218$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
7219if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
7220  cat >>confdefs.h <<_ACEOF
7221#define HAVE_LIBSOCKET 1
7222_ACEOF
7223
7224  LIBS="-lsocket $LIBS"
7225
7226fi
7227
7228fi
7229
7230for ac_func in getaddrinfo
7231do :
7232  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
7233if test "x$ac_cv_func_getaddrinfo" = xyes; then :
7234  cat >>confdefs.h <<_ACEOF
7235#define HAVE_GETADDRINFO 1
7236_ACEOF
7237
7238fi
7239done
7240
7241
7242#--------------------------------------------------------------------
7243# Check for pthread.h
7244#--------------------------------------------------------------------
7245for ac_header in pthread.h
7246do :
7247  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7248if test "x$ac_cv_header_pthread_h" = xyes; then :
7249  cat >>confdefs.h <<_ACEOF
7250#define HAVE_PTHREAD_H 1
7251_ACEOF
7252
7253fi
7254
7255done
7256
7257for ac_header in pthread_np.h
7258do :
7259  ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default
7260		  #ifdef HAVE_PTHREAD_H
7261		  #include <pthread.h>
7262		  #endif
7263
7264"
7265if test "x$ac_cv_header_pthread_np_h" = xyes; then :
7266  cat >>confdefs.h <<_ACEOF
7267#define HAVE_PTHREAD_NP_H 1
7268_ACEOF
7269
7270fi
7271
7272done
7273
7274if test $ac_cv_header_pthread_h = yes ; then
7275  # The cast to long int works around a bug in the HP C Compiler
7276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7278# This bug is HP SR number 8606223364.
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_mutex_t" >&5
7280$as_echo_n "checking size of pthread_mutex_t... " >&6; }
7281if ${ac_cv_sizeof_pthread_mutex_t+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_mutex_t))" "ac_cv_sizeof_pthread_mutex_t"        "$ac_includes_default
7285#include <pthread.h>
7286"; then :
7287
7288else
7289  if test "$ac_cv_type_pthread_mutex_t" = yes; then
7290     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7292as_fn_error 77 "cannot compute sizeof (pthread_mutex_t)
7293See \`config.log' for more details" "$LINENO" 5; }
7294   else
7295     ac_cv_sizeof_pthread_mutex_t=0
7296   fi
7297fi
7298
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_mutex_t" >&5
7301$as_echo "$ac_cv_sizeof_pthread_mutex_t" >&6; }
7302
7303
7304
7305cat >>confdefs.h <<_ACEOF
7306#define SIZEOF_PTHREAD_MUTEX_T $ac_cv_sizeof_pthread_mutex_t
7307_ACEOF
7308
7309
7310  GS_SIZEOF_MUTEX_T=$ac_cv_sizeof_pthread_mutex_t
7311  if test $ac_cv_sizeof_pthread_mutex_t = 0 ; then
7312    as_fn_error $? "Unable to find size of pthread_mutex_t (required)." "$LINENO" 5
7313  fi
7314
7315# pthread_mutex_t.__data.__owner is non-standard since pthread_mutex_t is
7316# nominally an opaque type.  We must not rely on this for anything other
7317# than debug output!
7318  ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__owner" "ac_cv_member_pthread_mutex_t___data___owner" "$ac_includes_default
7319#include <pthread.h>
7320"
7321if test "x$ac_cv_member_pthread_mutex_t___data___owner" = xyes; then :
7322
7323fi
7324
7325  if test $ac_cv_member_pthread_mutex_t___data___owner = yes ; then
7326
7327$as_echo "#define HAVE_PTHREAD_MUTEX_OWNER 1" >>confdefs.h
7328
7329  fi
7330  # The cast to long int works around a bug in the HP C Compiler
7331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7333# This bug is HP SR number 8606223364.
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_cond_t" >&5
7335$as_echo_n "checking size of pthread_cond_t... " >&6; }
7336if ${ac_cv_sizeof_pthread_cond_t+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_cond_t))" "ac_cv_sizeof_pthread_cond_t"        "$ac_includes_default
7340#include <pthread.h>
7341"; then :
7342
7343else
7344  if test "$ac_cv_type_pthread_cond_t" = yes; then
7345     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7347as_fn_error 77 "cannot compute sizeof (pthread_cond_t)
7348See \`config.log' for more details" "$LINENO" 5; }
7349   else
7350     ac_cv_sizeof_pthread_cond_t=0
7351   fi
7352fi
7353
7354fi
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_cond_t" >&5
7356$as_echo "$ac_cv_sizeof_pthread_cond_t" >&6; }
7357
7358
7359
7360cat >>confdefs.h <<_ACEOF
7361#define SIZEOF_PTHREAD_COND_T $ac_cv_sizeof_pthread_cond_t
7362_ACEOF
7363
7364
7365  if test $ac_cv_sizeof_pthread_cond_t = 0 ; then
7366    as_fn_error $? "Unable to find size of pthread_cond_t (required)." "$LINENO" 5
7367  fi
7368  GS_SIZEOF_COND_T=$ac_cv_sizeof_pthread_cond_t
7369
7370  # The cast to long int works around a bug in the HP C Compiler,
7371# see AC_CHECK_SIZEOF for more information.
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of pthread_mutex_t" >&5
7373$as_echo_n "checking alignment of pthread_mutex_t... " >&6; }
7374if ${ac_cv_alignof_pthread_mutex_t+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_pthread_mutex_t"        "$ac_includes_default
7378#include <pthread.h>
7379
7380#ifndef offsetof
7381# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
7382#endif
7383typedef struct { char x; pthread_mutex_t y; } ac__type_alignof_;"; then :
7384
7385else
7386  if test "$ac_cv_type_pthread_mutex_t" = yes; then
7387     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7389as_fn_error 77 "cannot compute alignment of pthread_mutex_t
7390See \`config.log' for more details" "$LINENO" 5; }
7391   else
7392     ac_cv_alignof_pthread_mutex_t=0
7393   fi
7394fi
7395
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_pthread_mutex_t" >&5
7398$as_echo "$ac_cv_alignof_pthread_mutex_t" >&6; }
7399
7400
7401
7402cat >>confdefs.h <<_ACEOF
7403#define ALIGNOF_PTHREAD_MUTEX_T $ac_cv_alignof_pthread_mutex_t
7404_ACEOF
7405
7406
7407  GS_ALIGNOF_MUTEX_T=$ac_cv_alignof_pthread_mutex_t
7408  if test $ac_cv_alignof_pthread_mutex_t = 0 ; then
7409    as_fn_error $? "Unable to find align of pthread_mutex_t (required)." "$LINENO" 5
7410  fi
7411
7412  # The cast to long int works around a bug in the HP C Compiler,
7413# see AC_CHECK_SIZEOF for more information.
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of pthread_cond_t" >&5
7415$as_echo_n "checking alignment of pthread_cond_t... " >&6; }
7416if ${ac_cv_alignof_pthread_cond_t+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_pthread_cond_t"        "$ac_includes_default
7420#include <pthread.h>
7421
7422#ifndef offsetof
7423# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
7424#endif
7425typedef struct { char x; pthread_cond_t y; } ac__type_alignof_;"; then :
7426
7427else
7428  if test "$ac_cv_type_pthread_cond_t" = yes; then
7429     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7431as_fn_error 77 "cannot compute alignment of pthread_cond_t
7432See \`config.log' for more details" "$LINENO" 5; }
7433   else
7434     ac_cv_alignof_pthread_cond_t=0
7435   fi
7436fi
7437
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_pthread_cond_t" >&5
7440$as_echo "$ac_cv_alignof_pthread_cond_t" >&6; }
7441
7442
7443
7444cat >>confdefs.h <<_ACEOF
7445#define ALIGNOF_PTHREAD_COND_T $ac_cv_alignof_pthread_cond_t
7446_ACEOF
7447
7448
7449  if test $ac_cv_alignof_pthread_cond_t = 0 ; then
7450    as_fn_error $? "Unable to find align of pthread_cond_t (required)." "$LINENO" 5
7451  fi
7452  GS_ALIGNOF_COND_T=$ac_cv_alignof_pthread_cond_t
7453
7454else
7455  as_fn_error $? "Unable to find pthread.h (needed for thread support)." "$LINENO" 5
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
7458$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
7459if ${ac_cv_lib_pthread_pthread_join+:} false; then :
7460  $as_echo_n "(cached) " >&6
7461else
7462  ac_check_lib_save_LIBS=$LIBS
7463LIBS="-lpthread  $LIBS"
7464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h.  */
7466
7467/* Override any GCC internal prototype to avoid an error.
7468   Use char because int might match the return type of a GCC
7469   builtin and then its argument prototype would still apply.  */
7470#ifdef __cplusplus
7471extern "C"
7472#endif
7473char pthread_join ();
7474int
7475main ()
7476{
7477return pthread_join ();
7478  ;
7479  return 0;
7480}
7481_ACEOF
7482if ac_fn_c_try_link "$LINENO"; then :
7483  ac_cv_lib_pthread_pthread_join=yes
7484else
7485  ac_cv_lib_pthread_pthread_join=no
7486fi
7487rm -f core conftest.err conftest.$ac_objext \
7488    conftest$ac_exeext conftest.$ac_ext
7489LIBS=$ac_check_lib_save_LIBS
7490fi
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
7492$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
7493if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
7494  pthread_ok=yes
7495else
7496  pthread_ok=no
7497fi
7498
7499ismingw=no
7500checkinlibc=no
7501case "$target_os" in
7502  mingw*)	ismingw=yes;;
7503  nto*)		checkinlibc=yes;;
7504  qnx*)		checkinlibc=yes;;
7505  *android*)   checkinlibc=yes;;
7506esac
7507if test $pthread_ok = yes ; then
7508  LIBS="$LIBS -lpthread"
7509else
7510  if test $ismingw = yes ; then
7511    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthreadGC2" >&5
7512$as_echo_n "checking for pthread_join in -lpthreadGC2... " >&6; }
7513if ${ac_cv_lib_pthreadGC2_pthread_join+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  ac_check_lib_save_LIBS=$LIBS
7517LIBS="-lpthreadGC2  $LIBS"
7518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520
7521/* Override any GCC internal prototype to avoid an error.
7522   Use char because int might match the return type of a GCC
7523   builtin and then its argument prototype would still apply.  */
7524#ifdef __cplusplus
7525extern "C"
7526#endif
7527char pthread_join ();
7528int
7529main ()
7530{
7531return pthread_join ();
7532  ;
7533  return 0;
7534}
7535_ACEOF
7536if ac_fn_c_try_link "$LINENO"; then :
7537  ac_cv_lib_pthreadGC2_pthread_join=yes
7538else
7539  ac_cv_lib_pthreadGC2_pthread_join=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext \
7542    conftest$ac_exeext conftest.$ac_ext
7543LIBS=$ac_check_lib_save_LIBS
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC2_pthread_join" >&5
7546$as_echo "$ac_cv_lib_pthreadGC2_pthread_join" >&6; }
7547if test "x$ac_cv_lib_pthreadGC2_pthread_join" = xyes; then :
7548  pthread_ok=yes
7549else
7550  pthread_ok=no
7551fi
7552
7553    if test $pthread_ok = yes ; then
7554      LIBS="$LIBS -lpthreadGC2"
7555    fi
7556  fi
7557  # Android and QNX have pthread in libc instead of libpthread
7558  if test $checkinlibc = yes ; then
7559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lc" >&5
7560$as_echo_n "checking for pthread_join in -lc... " >&6; }
7561if ${ac_cv_lib_c_pthread_join+:} false; then :
7562  $as_echo_n "(cached) " >&6
7563else
7564  ac_check_lib_save_LIBS=$LIBS
7565LIBS="-lc  $LIBS"
7566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h.  */
7568
7569/* Override any GCC internal prototype to avoid an error.
7570   Use char because int might match the return type of a GCC
7571   builtin and then its argument prototype would still apply.  */
7572#ifdef __cplusplus
7573extern "C"
7574#endif
7575char pthread_join ();
7576int
7577main ()
7578{
7579return pthread_join ();
7580  ;
7581  return 0;
7582}
7583_ACEOF
7584if ac_fn_c_try_link "$LINENO"; then :
7585  ac_cv_lib_c_pthread_join=yes
7586else
7587  ac_cv_lib_c_pthread_join=no
7588fi
7589rm -f core conftest.err conftest.$ac_objext \
7590    conftest$ac_exeext conftest.$ac_ext
7591LIBS=$ac_check_lib_save_LIBS
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_join" >&5
7594$as_echo "$ac_cv_lib_c_pthread_join" >&6; }
7595if test "x$ac_cv_lib_c_pthread_join" = xyes; then :
7596  pthread_ok=yes
7597else
7598  pthread_ok=no
7599fi
7600
7601    if test $pthread_ok = yes ; then
7602       LIBS="$LIBS -lc"
7603    fi
7604  fi
7605fi
7606if test $pthread_ok = no ; then
7607  as_fn_error $? "Unable to find pthread library (needed for thread support)." "$LINENO" 5
7608fi
7609
7610# Check threading extensions
7611for ac_func in pthread_getthreadid_np pthread_main_np
7612do :
7613  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7615if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7616  cat >>confdefs.h <<_ACEOF
7617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7618_ACEOF
7619
7620fi
7621done
7622
7623
7624# Typically need librt on Solaris for sched_yield
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
7626$as_echo_n "checking for sched_yield in -lrt... " >&6; }
7627if ${ac_cv_lib_rt_sched_yield+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  ac_check_lib_save_LIBS=$LIBS
7631LIBS="-lrt  $LIBS"
7632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h.  */
7634
7635/* Override any GCC internal prototype to avoid an error.
7636   Use char because int might match the return type of a GCC
7637   builtin and then its argument prototype would still apply.  */
7638#ifdef __cplusplus
7639extern "C"
7640#endif
7641char sched_yield ();
7642int
7643main ()
7644{
7645return sched_yield ();
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650if ac_fn_c_try_link "$LINENO"; then :
7651  ac_cv_lib_rt_sched_yield=yes
7652else
7653  ac_cv_lib_rt_sched_yield=no
7654fi
7655rm -f core conftest.err conftest.$ac_objext \
7656    conftest$ac_exeext conftest.$ac_ext
7657LIBS=$ac_check_lib_save_LIBS
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
7660$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
7661if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
7662  cat >>confdefs.h <<_ACEOF
7663#define HAVE_LIBRT 1
7664_ACEOF
7665
7666  LIBS="-lrt $LIBS"
7667
7668fi
7669
7670
7671
7672#--------------------------------------------------------------------
7673# One of these function needed by NSThread.m and objc initialize test
7674#--------------------------------------------------------------------
7675for ac_func in nanosleep usleep Sleep
7676do :
7677  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7678ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7679if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7680  cat >>confdefs.h <<_ACEOF
7681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7682_ACEOF
7683
7684fi
7685done
7686
7687
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objc_root_class attribute support" >&5
7689$as_echo_n "checking for objc_root_class attribute support... " >&6; }
7690saved_CFLAGS="$CFLAGS"
7691CFLAGS="$CFLAGS -Werror $OBJCFLAGS -x objective-c"
7692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694
7695  __attribute__((objc_root_class)) @interface RootObject
7696  @end
7697  @implementation RootObject
7698  @end
7699_ACEOF
7700if ac_fn_c_try_compile "$LINENO"; then :
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7702$as_echo "found" >&6; }
7703  gs_objc_root_class_attr=1
7704else
7705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
7706$as_echo "not present" >&6; }
7707  gs_objc_root_class_attr=0
7708
7709fi
7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711
7712GS_HAVE_OBJC_ROOT_CLASS_ATTR=$gs_objc_root_class_attr
7713
7714
7715cat >>confdefs.h <<_ACEOF
7716#define HAVE_OBJC_ROOT_CLASS_ATTRIBUTE $gs_objc_root_class_attr
7717_ACEOF
7718
7719CFLAGS=$saved_CFLAGS
7720
7721
7722#--------------------------------------------------------------------
7723# Check if we can name pthreads
7724#--------------------------------------------------------------------
7725
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np()" >&5
7727$as_echo_n "checking for pthread_setname_np()... " >&6; }
7728if ${gs_cv_pthread_setname_np+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733#include <pthread.h>
7734int
7735main ()
7736{
7737pthread_setname_np("name");
7738  ;
7739  return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_link "$LINENO"; then :
7743  gs_cv_pthread_setname_np=darwin
7744else
7745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746/* end confdefs.h.  */
7747#include <pthread.h>
7748int
7749main ()
7750{
7751pthread_setname_np(pthread_self(), "name");
7752  ;
7753  return 0;
7754}
7755_ACEOF
7756if ac_fn_c_try_link "$LINENO"; then :
7757  gs_cv_pthread_setname_np=glibc
7758else
7759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760/* end confdefs.h.  */
7761#include <pthread.h>
7762int
7763main ()
7764{
7765pthread_setname_np(pthread_self(), "%s", "name");
7766  ;
7767  return 0;
7768}
7769_ACEOF
7770if ac_fn_c_try_link "$LINENO"; then :
7771  gs_cv_pthread_setname_np=netbsd
7772else
7773  gs_cv_pthread_setname_np=none
7774fi
7775rm -f core conftest.err conftest.$ac_objext \
7776    conftest$ac_exeext conftest.$ac_ext
7777fi
7778rm -f core conftest.err conftest.$ac_objext \
7779    conftest$ac_exeext conftest.$ac_ext
7780fi
7781rm -f core conftest.err conftest.$ac_objext \
7782    conftest$ac_exeext conftest.$ac_ext
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gs_cv_pthread_setname_np" >&5
7785$as_echo "$gs_cv_pthread_setname_np" >&6; }
7786case $gs_cv_pthread_setname_np in
7787  darwin)
7788
7789$as_echo "#define PTHREAD_SETNAME(a) pthread_setname_np(a)" >>confdefs.h
7790
7791    ;;
7792  glibc)
7793
7794$as_echo "#define PTHREAD_SETNAME(a) pthread_setname_np(pthread_self(),a)" >>confdefs.h
7795
7796    ;;
7797  netbsd)
7798
7799$as_echo "#define PTHREAD_SETNAME(a) pthread_setname_np(pthread_self(),\"%s\",a)" >>confdefs.h
7800
7801    ;;
7802esac
7803
7804#--------------------------------------------------------------------
7805# Check if we have spinlock support
7806#--------------------------------------------------------------------
7807for ac_func in pthread_spin_lock
7808do :
7809  ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
7810if test "x$ac_cv_func_pthread_spin_lock" = xyes; then :
7811  cat >>confdefs.h <<_ACEOF
7812#define HAVE_PTHREAD_SPIN_LOCK 1
7813_ACEOF
7814
7815fi
7816done
7817
7818
7819#--------------------------------------------------------------------
7820# Check whether we can get the system thread ID
7821#--------------------------------------------------------------------
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid()" >&5
7823$as_echo_n "checking for gettid()... " >&6; }
7824if ${ac_cv_gettid+:} false; then :
7825  $as_echo_n "(cached) " >&6
7826else
7827  if test "$cross_compiling" = yes; then :
7828  ac_cv_gettid=no
7829else
7830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h.  */
7832#define _GNU_SOURCE
7833#include <unistd.h>
7834#include <sys/syscall.h>
7835#include <sys/types.h>
7836int main(int argc, char **argv) {
7837pid_t t = syscall(SYS_gettid); return t == -1 ? 1 : 0; }
7838_ACEOF
7839if ac_fn_c_try_run "$LINENO"; then :
7840  ac_cv_gettid=yes
7841else
7842  ac_cv_gettid=no
7843fi
7844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7845  conftest.$ac_objext conftest.beam conftest.$ac_ext
7846fi
7847
7848fi
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gettid" >&5
7850$as_echo "$ac_cv_gettid" >&6; }
7851if test "$ac_cv_gettid" = "yes"; then
7852
7853$as_echo "#define HAVE_GETTID 1" >>confdefs.h
7854
7855fi
7856
7857#--------------------------------------------------------------------
7858# Check whether Objective-C /really/ works
7859#--------------------------------------------------------------------
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objc really works" >&5
7861$as_echo_n "checking whether objc really works... " >&6; }
7862saved_LIBS="$LIBS"
7863saved_CPPFLAGS="$CPPFLAGS"
7864LIBS="$LIBS $LIBOBJC"
7865CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
7866if test x"$objc_threaded" != x""; then
7867  LIBS="$LIBS $objc_threaded"
7868fi
7869LIBS="$LIBS $extra_LIBS"
7870if ${gs_cv_objc_works+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  if test "$cross_compiling" = yes; then :
7874  gs_cv_objc_works="$cross_gs_cv_objc_works"
7875else
7876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878#include "$srcdir/config/config.objc.m"
7879_ACEOF
7880if ac_fn_c_try_run "$LINENO"; then :
7881  gs_cv_objc_works=yes
7882else
7883  gs_cv_objc_works=no
7884fi
7885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7886  conftest.$ac_objext conftest.beam conftest.$ac_ext
7887fi
7888
7889
7890fi
7891
7892if test $gs_cv_objc_works = yes; then
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894$as_echo "yes" >&6; }
7895else
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898  echo "I don't seem to be able to use your Objective-C compiler to produce"
7899  echo "working binaries!  Please check your Objective-C compiler installation."
7900  echo "If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc"
7901  echo "can be found by the dynamic linker - usually that requires you to play"
7902  echo "with LD_LIBRARY_PATH or /etc/ld.so.conf."
7903  echo "Please refer to your compiler installation instructions for more help."
7904  as_fn_error $? "The Objective-C compiler does not work or is not installed properly." "$LINENO" 5
7905fi
7906
7907# Don't revert any Objective-C flags as they are used in the next test
7908
7909#---------------------------------------------------------------------
7910# See if we are using a compiler which allows us to change the class
7911# to be used for constant strings by using the -fconstant-string-class
7912# option.  If that is the case, we change it to NSConstantString.
7913# Unless we are building for the apple runtime (ie only building base
7914# additions library and not implementing a constant string class).
7915#---------------------------------------------------------------------
7916if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
7917  NX_CONST_STRING_OBJCFLAGS=""
7918  NX_CONST_STRING_CLASS=NXConstantString
7919else
7920  strclass_CPPFLAGS="$CPPFLAGS"
7921  CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -fconstant-string-class" >&5
7923$as_echo_n "checking if the compiler supports -fconstant-string-class... " >&6; }
7924  if ${gs_cv_objc_compiler_supports_constant_string_class+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  if test "$cross_compiling" = yes; then :
7928  gs_cv_objc_compiler_supports_constant_string_class="$cross_gs_cv_objc_compiler_supports_constant_string_class"
7929else
7930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931/* end confdefs.h.  */
7932#include "$srcdir/config/config.constant-string-class.m"
7933_ACEOF
7934if ac_fn_c_try_run "$LINENO"; then :
7935  gs_cv_objc_compiler_supports_constant_string_class=yes
7936else
7937  gs_cv_objc_compiler_supports_constant_string_class=no
7938fi
7939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7940  conftest.$ac_objext conftest.beam conftest.$ac_ext
7941fi
7942
7943
7944fi
7945
7946  if test $gs_cv_objc_compiler_supports_constant_string_class = yes; then
7947    NX_CONST_STRING_OBJCFLAGS="-fconstant-string-class=NSConstantString"
7948    NX_CONST_STRING_CLASS=NSConstantString
7949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950$as_echo "yes" >&6; }
7951  else
7952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954    # Check whether --enable-nxconstantstring was given.
7955if test "${enable_nxconstantstring+set}" = set; then :
7956  enableval=$enable_nxconstantstring;
7957else
7958  enable_nxconstantstring=no
7959fi
7960
7961    if test $enable_nxconstantstring = yes; then
7962      NX_CONST_STRING_OBJCFLAGS=""
7963      NX_CONST_STRING_CLASS=NXConstantString
7964      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the use of NXConstantString as the string class in gnustep-base.  The objective-c runtime library typically implements its own class of the same name, so you must either enforce a link order which ensures that the gnustep-base implementation is used, or (better) you must remove the class from the runtime library!" >&5
7965$as_echo "$as_me: WARNING: You have enabled the use of NXConstantString as the string class in gnustep-base.  The objective-c runtime library typically implements its own class of the same name, so you must either enforce a link order which ensures that the gnustep-base implementation is used, or (better) you must remove the class from the runtime library!" >&2;}
7966    else
7967      as_fn_error $? "Your compiler does not appear to implement the -fconstant-string-class option needed for support of strings.  Please check for a more recent version or consider using --enable-nxconstantstring" "$LINENO" 5
7968    fi
7969  fi
7970  CPPFLAGS="$strclass_CPPFLAGS"
7971fi
7972
7973
7974
7975
7976# Don't revert any Objective-C flags as they are used in the next test
7977
7978#---------------------------------------------------------------------
7979# Guess if we are using a compiler which has the (GNU extension) +load
7980# method which is executed before main.
7981# Defines HAVE_LOAD_METHOD if +load methods are called before main.
7982# Needed by NSProcessInfo.m
7983#---------------------------------------------------------------------
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if +load method is executed before main" >&5
7985$as_echo_n "checking if +load method is executed before main... " >&6; }
7986if ${gs_cv_objc_load_method_worked+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  if test "$cross_compiling" = yes; then :
7990  gs_cv_objc_load_method_worked="$cross_gs_cv_objc_load_method_worked"
7991else
7992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h.  */
7994#include "$srcdir/config/config.loadtest.m"
7995_ACEOF
7996if ac_fn_c_try_run "$LINENO"; then :
7997  gs_cv_objc_load_method_worked=yes
7998else
7999  gs_cv_objc_load_method_worked=no
8000fi
8001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8002  conftest.$ac_objext conftest.beam conftest.$ac_ext
8003fi
8004
8005
8006fi
8007
8008if test $gs_cv_objc_load_method_worked = yes; then
8009
8010$as_echo "#define HAVE_LOAD_METHOD 1" >>confdefs.h
8011
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8013$as_echo "yes" >&6; }
8014else
8015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
8017fi
8018
8019# Don't revert any Objective-C flags as they are used in the next test
8020
8021#--------------------------------------------------------------------
8022# Check for thread synchronisation support in runtime
8023#--------------------------------------------------------------------
8024for ac_func in objc_sync_enter
8025do :
8026  ac_fn_c_check_func "$LINENO" "objc_sync_enter" "ac_cv_func_objc_sync_enter"
8027if test "x$ac_cv_func_objc_sync_enter" = xyes; then :
8028  cat >>confdefs.h <<_ACEOF
8029#define HAVE_OBJC_SYNC_ENTER 1
8030_ACEOF
8031
8032fi
8033done
8034
8035if test $ac_cv_func_objc_sync_enter = yes ; then
8036  OBJCSYNC=1
8037else
8038  OBJCSYNC=0
8039  if test "$OBJC_RUNTIME_LIB" = "ng"; then
8040    as_fn_error $? "The objc runtime library does not appear to have synchronisation support.  Try re-configuring gnustep-make with a CPPFLAGS variable containing a -L point to specify the directory containing the correct libobjc, or using the --with-objc-lib-flag=... option." "$LINENO" 5
8041  fi
8042fi
8043
8044
8045# Don't revert any Objective-C flags as they are used in the next test
8046
8047#--------------------------------------------------------------------
8048# Check for ObjC2 support in runtime
8049#--------------------------------------------------------------------
8050if test "$cross_compiling" = "yes"; then
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: \"Cross compiling! Using predefined OBJC2RUNTIME variable\"" >&5
8052$as_echo "$as_me: \"Cross compiling! Using predefined OBJC2RUNTIME variable\"" >&6;}
8053  OBJC2RUNTIME="$cross_objc2_runtime"
8054else
8055  for ac_func in objc_setProperty
8056do :
8057  ac_fn_c_check_func "$LINENO" "objc_setProperty" "ac_cv_func_objc_setProperty"
8058if test "x$ac_cv_func_objc_setProperty" = xyes; then :
8059  cat >>confdefs.h <<_ACEOF
8060#define HAVE_OBJC_SETPROPERTY 1
8061_ACEOF
8062
8063fi
8064done
8065
8066  if test $ac_cv_func_objc_setProperty = yes ; then
8067    OBJC2RUNTIME=1
8068  else
8069    OBJC2RUNTIME=0
8070    if test "$OBJC_RUNTIME_LIB" = "ng"; then
8071      as_fn_error $? "The objc runtime library does not appear to have property support.  Try re-configuring gnustep-make with a CPPFLAGS variable containing a -L point to specify the directory containing the correct libobjc, or using the --with-objc-lib-flag=... option." "$LINENO" 5
8072    fi
8073  fi
8074fi
8075
8076
8077#--------------------------------------------------------------------
8078# Check for blocks support in runtime
8079#--------------------------------------------------------------------
8080for ac_func in _Block_copy
8081do :
8082  ac_fn_c_check_func "$LINENO" "_Block_copy" "ac_cv_func__Block_copy"
8083if test "x$ac_cv_func__Block_copy" = xyes; then :
8084  cat >>confdefs.h <<_ACEOF
8085#define HAVE__BLOCK_COPY 1
8086_ACEOF
8087
8088fi
8089done
8090
8091if test $ac_cv_func__Block_copy = yes ; then
8092  HAVE_BLOCKS=1
8093else
8094  HAVE_BLOCKS=0
8095  if test "$OBJC_RUNTIME_LIB" = "ng"; then
8096    as_fn_error $? "The objc runtime library does not appear to have blocks support.  Try re-configuring gnustep-make with a CPPFLAGS variable containing a -L point to specify the directory containing the correct libobjc, or using the --with-objc-lib-flag=... option." "$LINENO" 5
8097  fi
8098fi
8099
8100
8101# Don't revert any Objective-C flags as they are used in the next test
8102
8103GS_NONFRAGILE=0
8104GS_MIXEDABI=0
8105if test "$nonfragile" = "yes"; then
8106  saved_CPPFLAGS="$CPPFLAGS"
8107  CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
8108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-fragile-abi support" >&5
8109$as_echo_n "checking for non-fragile-abi support... " >&6; }
8110  if test "$cross_compiling" = yes; then :
8111  non_fragile="$cross_non_fragile"
8112else
8113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115#include "$srcdir/config/config.non-fragile-ivars.m"
8116_ACEOF
8117if ac_fn_c_try_run "$LINENO"; then :
8118  non_fragile=yes
8119else
8120  non_fragile=no
8121fi
8122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8123  conftest.$ac_objext conftest.beam conftest.$ac_ext
8124fi
8125
8126  CPPFLAGS="$saved_CPPFLAGS"
8127  if test $non_fragile = yes; then
8128    GS_NONFRAGILE=1
8129    if test "$OBJC_RUNTIME_LIB" != "ng"; then
8130      # Check whether --enable-mixedabi was given.
8131if test "${enable_mixedabi+set}" = set; then :
8132  enableval=$enable_mixedabi;
8133else
8134  enable_mixedabi=yes
8135fi
8136
8137      if test $enable_mixedabi = yes; then
8138        GS_MIXEDABI=1
8139      fi
8140    fi
8141  fi
8142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $non_fragile" >&5
8143$as_echo "$non_fragile" >&6; }
8144fi
8145
8146
8147
8148
8149# Don't revert any Objective-C flags as they are used in the next test
8150
8151#--------------------------------------------------------------------
8152# get_uninstalled_dtable used by behavior.m and objc-load.m
8153#--------------------------------------------------------------------
8154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155/* end confdefs.h.  */
8156#include <objc/objc-api.h>
8157
8158_ACEOF
8159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160  $EGREP "objc_get_uninstalled_dtable" >/dev/null 2>&1; then :
8161
8162$as_echo "#define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1" >>confdefs.h
8163
8164fi
8165rm -f conftest*
8166
8167
8168# Don't revert any Objective-C flags as they are used in the next test
8169
8170
8171#--------------------------------------------------------------------
8172# Native Objective-C exceptions
8173#--------------------------------------------------------------------
8174
8175if test "$OBJC_RUNTIME_LIB" = "ng"; then
8176  exceptions=yes
8177else
8178  # Determine if native Objective-C exceptions are enabled
8179  # in gnustep-make.  They are enabled if the compiler supports it; they
8180  # are disabled if it doesn't.  And, of course, the user may have
8181  # forced one behaviour or the other.  Note that we go and look at the
8182  # actual config.make file to be able to know what was configured in
8183  # gnustep-make regardless of any gnustep-base that is currently
8184  # installed.  We can't use `gnustep-config --objc-flags` because that
8185  # may report native exceptions as disabled because the currently
8186  # installed gnustep-base has them disabled.
8187  if grep USE_OBJC_EXCEPTIONS $CURRENT_GNUSTEP_MAKEFILES/$lobj_dir/config.make | grep yes >&5 2>&5; then
8188    exceptions=yes
8189  else
8190    exceptions=no
8191  fi
8192fi
8193
8194# At this point, if exceptions=no, then native exceptions are disabled
8195# and won't be used.  If exceptions=yes, we need to check if they work
8196# and if the runtime has proper support for them.  If it does, we'll
8197# happily use them; if it doesn't, we'll automatically disable them
8198# because they don't work. ;-)
8199
8200#--------------------------------------------------------------------
8201# One of these is needed by for handling uncaught exceptions
8202#--------------------------------------------------------------------
8203
8204# TODO: These checks are not really needed if native exceptions are
8205# disabled.  So maybe we should not run them at all in that case.  On
8206# the other hand, that case is going to become more and more unusual.
8207
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objc_setUncaughtExceptionHandler() in runtime" >&5
8209$as_echo_n "checking for objc_setUncaughtExceptionHandler() in runtime... " >&6; }
8210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h.  */
8212#include "$srcdir/config/config.setUncaughtExceptionHandler.m"
8213_ACEOF
8214if ac_fn_c_try_link "$LINENO"; then :
8215  have_set_uncaught_exception_handler=yes
8216else
8217  have_set_uncaught_exception_handler=no
8218fi
8219rm -f core conftest.err conftest.$ac_objext \
8220    conftest$ac_exeext conftest.$ac_ext
8221if test $have_set_uncaught_exception_handler = yes; then
8222
8223$as_echo "#define HAVE_SET_UNCAUGHT_EXCEPTION_HANDLER 1" >>confdefs.h
8224
8225fi
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_set_uncaught_exception_handler" >&5
8227$as_echo "$have_set_uncaught_exception_handler" >&6; }
8228
8229# Don't revert any Objective-C flags as they are used in the next test
8230
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objc_set_unexpected() in runtime" >&5
8232$as_echo_n "checking for objc_set_unexpected() in runtime... " >&6; }
8233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h.  */
8235#include "$srcdir/config/config.set_unexpected.m"
8236_ACEOF
8237if ac_fn_c_try_link "$LINENO"; then :
8238  have_set_unexpected=yes
8239else
8240  have_set_unexpected=no
8241fi
8242rm -f core conftest.err conftest.$ac_objext \
8243    conftest$ac_exeext conftest.$ac_ext
8244if test $have_set_unexpected = yes; then
8245
8246$as_echo "#define HAVE_SET_UNEXPECTED 1" >>confdefs.h
8247
8248fi
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_set_unexpected" >&5
8250$as_echo "$have_set_unexpected" >&6; }
8251
8252# Don't revert any Objective-C flags as they are used in the next test
8253
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _objc_unexpected_exception in runtime" >&5
8255$as_echo_n "checking for _objc_unexpected_exception in runtime... " >&6; }
8256if test "$cross_compiling" = yes; then :
8257  have_unexpected="$cross_have_unexpected"
8258else
8259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261#include "$srcdir/config/config.unexpected.m"
8262_ACEOF
8263if ac_fn_c_try_run "$LINENO"; then :
8264  have_unexpected=yes
8265else
8266  have_unexpected=no
8267fi
8268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8269  conftest.$ac_objext conftest.beam conftest.$ac_ext
8270fi
8271
8272if test $have_unexpected = yes; then
8273
8274$as_echo "#define HAVE_UNEXPECTED 1" >>confdefs.h
8275
8276fi
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unexpected" >&5
8278$as_echo "$have_unexpected" >&6; }
8279
8280# TODO: It would also be nice to actually test that native Objective-C
8281# exceptions work.
8282
8283if test "$exceptions" = "yes"; then
8284  if test x"$have_set_uncaught_exception_handler" = x"no"; then
8285    if test x"$have_set_unexpected" = x"no"; then
8286      if test x"$have_unexpected" = x"no"; then
8287        { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling native Objective-C exceptions because the ObjC runtime" >&5
8288$as_echo "$as_me: Disabling native Objective-C exceptions because the ObjC runtime" >&6;}
8289        { $as_echo "$as_me:${as_lineno-$LINENO}: has no way to set an uncaught exception handler.  Please install" >&5
8290$as_echo "$as_me: has no way to set an uncaught exception handler.  Please install" >&6;}
8291        { $as_echo "$as_me:${as_lineno-$LINENO}: a recent Objective-C runtime if you want to use them." >&5
8292$as_echo "$as_me: a recent Objective-C runtime if you want to use them." >&6;}
8293        exceptions="no";
8294      fi
8295    fi
8296  fi
8297fi
8298
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable native Objective-C exceptions" >&5
8300$as_echo_n "checking whether to enable native Objective-C exceptions... " >&6; }
8301if test "$exceptions" = "yes"; then
8302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8303$as_echo "yes" >&6; }
8304  BASE_NATIVE_OBJC_EXCEPTIONS=1
8305else
8306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307$as_echo "no" >&6; }
8308  BASE_NATIVE_OBJC_EXCEPTIONS=0
8309fi
8310
8311
8312# Don't revert any Objective-C flags as they are used in the next test
8313
8314#--------------------------------------------------------------------
8315# Function needed by @synchronize directive
8316#--------------------------------------------------------------------
8317for ac_func in objc_sync_enter
8318do :
8319  ac_fn_c_check_func "$LINENO" "objc_sync_enter" "ac_cv_func_objc_sync_enter"
8320if test "x$ac_cv_func_objc_sync_enter" = xyes; then :
8321  cat >>confdefs.h <<_ACEOF
8322#define HAVE_OBJC_SYNC_ENTER 1
8323_ACEOF
8324
8325fi
8326done
8327
8328
8329HAVE_OBJC_SYNC_ENTER=no
8330if test $ac_cv_func_objc_sync_enter = yes ; then
8331  HAVE_OBJC_SYNC_ENTER=yes
8332fi
8333
8334
8335# Don't revert any Objective-C flags as they are used in the next test
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread-safe +initialize in runtime" >&5
8338$as_echo_n "checking for thread-safe +initialize in runtime... " >&6; }
8339if test "$cross_compiling" = yes; then :
8340  safe_initialize="$cross_safe_initialize"
8341else
8342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h.  */
8344#include "$srcdir/config/config.initialize.m"
8345_ACEOF
8346if ac_fn_c_try_run "$LINENO"; then :
8347  safe_initialize=yes
8348else
8349  safe_initialize=no
8350fi
8351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8352  conftest.$ac_objext conftest.beam conftest.$ac_ext
8353fi
8354
8355if test $safe_initialize = yes; then
8356
8357$as_echo "#define HAVE_INITIALIZE 1" >>confdefs.h
8358
8359else
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your ObjectiveC runtime does not support thread-safe class initialisation.  Please use a different runtime if you intend to use threads." >&5
8361$as_echo "$as_me: WARNING: Your ObjectiveC runtime does not support thread-safe class initialisation.  Please use a different runtime if you intend to use threads." >&2;}
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $safe_initialize" >&5
8364$as_echo "$safe_initialize" >&6; }
8365
8366LIBS="$saved_LIBS"
8367CPPFLAGS="$saved_CPPFLAGS"
8368
8369
8370
8371#--------------------------------------------------------------------
8372# Generic settings needed by NSZone.m
8373#--------------------------------------------------------------------
8374ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8375if test "x$ac_cv_type_size_t" = xyes; then :
8376
8377else
8378
8379cat >>confdefs.h <<_ACEOF
8380#define size_t unsigned int
8381_ACEOF
8382
8383fi
8384
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8386$as_echo_n "checking for inline... " >&6; }
8387if ${ac_cv_c_inline+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  ac_cv_c_inline=no
8391for ac_kw in inline __inline__ __inline; do
8392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h.  */
8394#ifndef __cplusplus
8395typedef int foo_t;
8396static $ac_kw foo_t static_foo () {return 0; }
8397$ac_kw foo_t foo () {return 0; }
8398#endif
8399
8400_ACEOF
8401if ac_fn_c_try_compile "$LINENO"; then :
8402  ac_cv_c_inline=$ac_kw
8403fi
8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405  test "$ac_cv_c_inline" != no && break
8406done
8407
8408fi
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8410$as_echo "$ac_cv_c_inline" >&6; }
8411
8412case $ac_cv_c_inline in
8413  inline | yes) ;;
8414  *)
8415    case $ac_cv_c_inline in
8416      no) ac_val=;;
8417      *) ac_val=$ac_cv_c_inline;;
8418    esac
8419    cat >>confdefs.h <<_ACEOF
8420#ifndef __cplusplus
8421#define inline $ac_val
8422#endif
8423_ACEOF
8424    ;;
8425esac
8426
8427
8428#--------------------------------------------------------------------
8429# Following header checks needed for bzero in Storage.m and other places
8430#--------------------------------------------------------------------
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8432$as_echo_n "checking for ANSI C header files... " >&6; }
8433if ${ac_cv_header_stdc+:} false; then :
8434  $as_echo_n "(cached) " >&6
8435else
8436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437/* end confdefs.h.  */
8438#include <stdlib.h>
8439#include <stdarg.h>
8440#include <string.h>
8441#include <float.h>
8442
8443int
8444main ()
8445{
8446
8447  ;
8448  return 0;
8449}
8450_ACEOF
8451if ac_fn_c_try_compile "$LINENO"; then :
8452  ac_cv_header_stdc=yes
8453else
8454  ac_cv_header_stdc=no
8455fi
8456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457
8458if test $ac_cv_header_stdc = yes; then
8459  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462#include <string.h>
8463
8464_ACEOF
8465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8466  $EGREP "memchr" >/dev/null 2>&1; then :
8467
8468else
8469  ac_cv_header_stdc=no
8470fi
8471rm -f conftest*
8472
8473fi
8474
8475if test $ac_cv_header_stdc = yes; then
8476  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478/* end confdefs.h.  */
8479#include <stdlib.h>
8480
8481_ACEOF
8482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483  $EGREP "free" >/dev/null 2>&1; then :
8484
8485else
8486  ac_cv_header_stdc=no
8487fi
8488rm -f conftest*
8489
8490fi
8491
8492if test $ac_cv_header_stdc = yes; then
8493  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8494  if test "$cross_compiling" = yes; then :
8495  :
8496else
8497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h.  */
8499#include <ctype.h>
8500#include <stdlib.h>
8501#if ((' ' & 0x0FF) == 0x020)
8502# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8503# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8504#else
8505# define ISLOWER(c) \
8506		   (('a' <= (c) && (c) <= 'i') \
8507		     || ('j' <= (c) && (c) <= 'r') \
8508		     || ('s' <= (c) && (c) <= 'z'))
8509# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8510#endif
8511
8512#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8513int
8514main ()
8515{
8516  int i;
8517  for (i = 0; i < 256; i++)
8518    if (XOR (islower (i), ISLOWER (i))
8519	|| toupper (i) != TOUPPER (i))
8520      return 2;
8521  return 0;
8522}
8523_ACEOF
8524if ac_fn_c_try_run "$LINENO"; then :
8525
8526else
8527  ac_cv_header_stdc=no
8528fi
8529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8530  conftest.$ac_objext conftest.beam conftest.$ac_ext
8531fi
8532
8533fi
8534fi
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8536$as_echo "$ac_cv_header_stdc" >&6; }
8537if test $ac_cv_header_stdc = yes; then
8538
8539$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8540
8541fi
8542
8543for ac_header in string.h memory.h alloca.h
8544do :
8545  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8548  cat >>confdefs.h <<_ACEOF
8549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8550_ACEOF
8551
8552fi
8553
8554done
8555
8556
8557#--------------------------------------------------------------------
8558# Following header check needed NSConnection.h
8559#--------------------------------------------------------------------
8560for ac_header in float.h
8561do :
8562  ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
8563if test "x$ac_cv_header_float_h" = xyes; then :
8564  cat >>confdefs.h <<_ACEOF
8565#define HAVE_FLOAT_H 1
8566_ACEOF
8567
8568fi
8569
8570done
8571
8572
8573#--------------------------------------------------------------------
8574# Header files and functions for files and filesystems
8575#--------------------------------------------------------------------
8576for ac_header in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
8577do :
8578  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8581  cat >>confdefs.h <<_ACEOF
8582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8583_ACEOF
8584
8585fi
8586
8587done
8588
8589for ac_header in sys/cdefs.h sys/syslimits.h sys/param.h
8590do :
8591  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8592ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8594  cat >>confdefs.h <<_ACEOF
8595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8596_ACEOF
8597
8598fi
8599
8600done
8601
8602# Twisted header checks for some BSDs with stupid interdependencies
8603for ac_header in sys/syslimits.h
8604do :
8605  ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "#if HAVE_SYS_CDEFS_H
8606   #include <sys/cdefs.h>
8607   #endif
8608   #include <sys/syslimits.h>
8609
8610"
8611if test "x$ac_cv_header_sys_syslimits_h" = xyes; then :
8612  cat >>confdefs.h <<_ACEOF
8613#define HAVE_SYS_SYSLIMITS_H 1
8614_ACEOF
8615
8616fi
8617
8618done
8619
8620for ac_header in sys/param.h
8621do :
8622  ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "#if HAVE_SYS_CDEFS_H
8623   #include <sys/cdefs.h>
8624   #endif
8625   #if HAVE_SYS_SYSLIMITS_H
8626   #include <sys/syslimits.h>
8627   #endif
8628
8629"
8630if test "x$ac_cv_header_sys_param_h" = xyes; then :
8631  cat >>confdefs.h <<_ACEOF
8632#define HAVE_SYS_PARAM_H 1
8633_ACEOF
8634
8635fi
8636
8637done
8638
8639for ac_header in sys/mount.h
8640do :
8641  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#if HAVE_SYS_CDEFS_H
8642   #include <sys/cdefs.h>
8643   #endif
8644   #if HAVE_SYS_SYSLIMITS_H
8645   #include <sys/syslimits.h>
8646   #endif
8647   #if HAVE_SYS_PARAM_H
8648   #include <sys/param.h>
8649   #endif
8650
8651"
8652if test "x$ac_cv_header_sys_mount_h" = xyes; then :
8653  cat >>confdefs.h <<_ACEOF
8654#define HAVE_SYS_MOUNT_H 1
8655_ACEOF
8656
8657fi
8658
8659done
8660
8661for ac_header in sys/types.h windows.h locale.h langinfo.h
8662do :
8663  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8664ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8665if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8666  cat >>confdefs.h <<_ACEOF
8667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8668_ACEOF
8669
8670fi
8671
8672done
8673
8674saved_LIBS="$LIBS"
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8676$as_echo_n "checking for main in -lm... " >&6; }
8677if ${ac_cv_lib_m_main+:} false; then :
8678  $as_echo_n "(cached) " >&6
8679else
8680  ac_check_lib_save_LIBS=$LIBS
8681LIBS="-lm  $LIBS"
8682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h.  */
8684
8685
8686int
8687main ()
8688{
8689return main ();
8690  ;
8691  return 0;
8692}
8693_ACEOF
8694if ac_fn_c_try_link "$LINENO"; then :
8695  ac_cv_lib_m_main=yes
8696else
8697  ac_cv_lib_m_main=no
8698fi
8699rm -f core conftest.err conftest.$ac_objext \
8700    conftest$ac_exeext conftest.$ac_ext
8701LIBS=$ac_check_lib_save_LIBS
8702fi
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8704$as_echo "$ac_cv_lib_m_main" >&6; }
8705if test "x$ac_cv_lib_m_main" = xyes; then :
8706  cat >>confdefs.h <<_ACEOF
8707#define HAVE_LIBM 1
8708_ACEOF
8709
8710  LIBS="-lm $LIBS"
8711
8712fi
8713
8714for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwnam_r getpwuid getpwuid_r getgrgid getgrgid_r getgrnam getgrnam_r rint getopt malloc_usable_size
8715do :
8716  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8718if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8719  cat >>confdefs.h <<_ACEOF
8720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8721_ACEOF
8722
8723fi
8724done
8725
8726LIBS="$saved_LIBS"
8727
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_gecos field in struct passwd" >&5
8729$as_echo_n "checking for pw_gecos field in struct passwd... " >&6; }
8730if ${ac_cv_have_pw_gecos_in_struct_passwd+:} false; then :
8731  $as_echo_n "(cached) " >&6
8732else
8733
8734	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736 #include <pwd.h>
8737int
8738main ()
8739{
8740 struct passwd p; p.pw_gecos = 0;
8741  ;
8742  return 0;
8743}
8744_ACEOF
8745if ac_fn_c_try_compile "$LINENO"; then :
8746   ac_cv_have_pw_gecos_in_struct_passwd="yes"
8747else
8748   ac_cv_have_pw_gecos_in_struct_passwd="no"
8749
8750fi
8751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752
8753fi
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_gecos_in_struct_passwd" >&5
8755$as_echo "$ac_cv_have_pw_gecos_in_struct_passwd" >&6; }
8756if test "x$ac_cv_have_pw_gecos_in_struct_passwd" = "xyes" ; then
8757
8758$as_echo "#define HAVE_PW_GECOS_IN_PASSWD 1" >>confdefs.h
8759
8760fi
8761
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for currency_symbol field in struct lconv" >&5
8763$as_echo_n "checking for currency_symbol field in struct lconv... " >&6; }
8764if ${ac_cv_have_currency_symbol_in_struct_lconv+:} false; then :
8765  $as_echo_n "(cached) " >&6
8766else
8767
8768	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h.  */
8770 #include <locale.h>
8771int
8772main ()
8773{
8774 struct lconv l; l.currency_symbol = NULL;
8775  ;
8776  return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_compile "$LINENO"; then :
8780   ac_cv_have_currency_symbol_in_struct_lconv="yes"
8781else
8782   ac_cv_have_currency_symbol_in_struct_lconv="no"
8783
8784fi
8785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_currency_symbol_in_struct_lconv" >&5
8789$as_echo "$ac_cv_have_currency_symbol_in_struct_lconv" >&6; }
8790if test "x$ac_cv_have_currency_symbol_in_struct_lconv" = "xyes" ; then
8791
8792$as_echo "#define HAVE_CURRENCY_SYMBOL_IN_LCONV 1" >>confdefs.h
8793
8794fi
8795
8796#--------------------------------------------------------------------
8797# These two headers (functions) needed by Time.m
8798#--------------------------------------------------------------------
8799
8800for ac_header in time.h sys/time.h tzfile.h sys/rusage.h ucbinclude/sys/resource.h
8801do :
8802  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8803ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8805  cat >>confdefs.h <<_ACEOF
8806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8807_ACEOF
8808
8809fi
8810
8811done
8812
8813for ac_func in time ctime tzset
8814do :
8815  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8816ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8817if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8818  cat >>confdefs.h <<_ACEOF
8819#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8820_ACEOF
8821
8822fi
8823done
8824
8825
8826# Check if tzfile contains the proper definitions
8827if test $ac_cv_header_tzfile_h = yes; then
8828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h.  */
8830#include <tzfile.h>
8831
8832_ACEOF
8833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8834  $EGREP "tzhead" >/dev/null 2>&1; then :
8835
8836$as_echo "#define HAVE_TZHEAD 1" >>confdefs.h
8837
8838fi
8839rm -f conftest*
8840
8841fi
8842
8843#--------------------------------------------------------------------
8844# These headers/functions needed by GSTcpPort.m
8845#--------------------------------------------------------------------
8846for ac_header in sys/socket.h netinet/in.h
8847do :
8848  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8849ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8850if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8851  cat >>confdefs.h <<_ACEOF
8852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8853_ACEOF
8854
8855fi
8856
8857done
8858
8859ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
8860if test "x$ac_cv_type_socklen_t" = xyes; then :
8861
8862cat >>confdefs.h <<_ACEOF
8863#define HAVE_SOCKLEN_T 1
8864_ACEOF
8865
8866
8867fi
8868
8869
8870#--------------------------------------------------------------------
8871# These headers/functions needed for stacktrace in NSException.m
8872#--------------------------------------------------------------------
8873# Check whether --enable-bfd was given.
8874if test "${enable_bfd+set}" = set; then :
8875  enableval=$enable_bfd;
8876else
8877  enable_bfd=no
8878fi
8879
8880if test $enable_bfd = yes ; then
8881
8882$as_echo "#define USE_BFD 1" >>confdefs.h
8883
8884  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You enabled bfd, which causes gnustep-base to link with libbfd. This makes the license GPL rather than the normal LGPL." >&5
8885$as_echo "$as_me: WARNING: You enabled bfd, which causes gnustep-base to link with libbfd. This makes the license GPL rather than the normal LGPL." >&2;}
8886fi
8887
8888for ac_header in bfd.h
8889do :
8890  ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
8891if test "x$ac_cv_header_bfd_h" = xyes; then :
8892  cat >>confdefs.h <<_ACEOF
8893#define HAVE_BFD_H 1
8894_ACEOF
8895
8896fi
8897
8898done
8899
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_fprintf in -lintl" >&5
8901$as_echo_n "checking for libintl_fprintf in -lintl... " >&6; }
8902if ${ac_cv_lib_intl_libintl_fprintf+:} false; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  ac_check_lib_save_LIBS=$LIBS
8906LIBS="-lintl  $LIBS"
8907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909
8910/* Override any GCC internal prototype to avoid an error.
8911   Use char because int might match the return type of a GCC
8912   builtin and then its argument prototype would still apply.  */
8913#ifdef __cplusplus
8914extern "C"
8915#endif
8916char libintl_fprintf ();
8917int
8918main ()
8919{
8920return libintl_fprintf ();
8921  ;
8922  return 0;
8923}
8924_ACEOF
8925if ac_fn_c_try_link "$LINENO"; then :
8926  ac_cv_lib_intl_libintl_fprintf=yes
8927else
8928  ac_cv_lib_intl_libintl_fprintf=no
8929fi
8930rm -f core conftest.err conftest.$ac_objext \
8931    conftest$ac_exeext conftest.$ac_ext
8932LIBS=$ac_check_lib_save_LIBS
8933fi
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_fprintf" >&5
8935$as_echo "$ac_cv_lib_intl_libintl_fprintf" >&6; }
8936if test "x$ac_cv_lib_intl_libintl_fprintf" = xyes; then :
8937  cat >>confdefs.h <<_ACEOF
8938#define HAVE_LIBINTL 1
8939_ACEOF
8940
8941  LIBS="-lintl $LIBS"
8942
8943fi
8944
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyn_string_append in -liberty" >&5
8946$as_echo_n "checking for dyn_string_append in -liberty... " >&6; }
8947if ${ac_cv_lib_iberty_dyn_string_append+:} false; then :
8948  $as_echo_n "(cached) " >&6
8949else
8950  ac_check_lib_save_LIBS=$LIBS
8951LIBS="-liberty  $LIBS"
8952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h.  */
8954
8955/* Override any GCC internal prototype to avoid an error.
8956   Use char because int might match the return type of a GCC
8957   builtin and then its argument prototype would still apply.  */
8958#ifdef __cplusplus
8959extern "C"
8960#endif
8961char dyn_string_append ();
8962int
8963main ()
8964{
8965return dyn_string_append ();
8966  ;
8967  return 0;
8968}
8969_ACEOF
8970if ac_fn_c_try_link "$LINENO"; then :
8971  ac_cv_lib_iberty_dyn_string_append=yes
8972else
8973  ac_cv_lib_iberty_dyn_string_append=no
8974fi
8975rm -f core conftest.err conftest.$ac_objext \
8976    conftest$ac_exeext conftest.$ac_ext
8977LIBS=$ac_check_lib_save_LIBS
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_dyn_string_append" >&5
8980$as_echo "$ac_cv_lib_iberty_dyn_string_append" >&6; }
8981if test "x$ac_cv_lib_iberty_dyn_string_append" = xyes; then :
8982  cat >>confdefs.h <<_ACEOF
8983#define HAVE_LIBIBERTY 1
8984_ACEOF
8985
8986  LIBS="-liberty $LIBS"
8987
8988fi
8989
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
8991$as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
8992if ${ac_cv_lib_bfd_bfd_openr+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  ac_check_lib_save_LIBS=$LIBS
8996LIBS="-lbfd  $LIBS"
8997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998/* end confdefs.h.  */
8999
9000/* Override any GCC internal prototype to avoid an error.
9001   Use char because int might match the return type of a GCC
9002   builtin and then its argument prototype would still apply.  */
9003#ifdef __cplusplus
9004extern "C"
9005#endif
9006char bfd_openr ();
9007int
9008main ()
9009{
9010return bfd_openr ();
9011  ;
9012  return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_link "$LINENO"; then :
9016  ac_cv_lib_bfd_bfd_openr=yes
9017else
9018  ac_cv_lib_bfd_bfd_openr=no
9019fi
9020rm -f core conftest.err conftest.$ac_objext \
9021    conftest$ac_exeext conftest.$ac_ext
9022LIBS=$ac_check_lib_save_LIBS
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
9025$as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
9026if test "x$ac_cv_lib_bfd_bfd_openr" = xyes; then :
9027  cat >>confdefs.h <<_ACEOF
9028#define HAVE_LIBBFD 1
9029_ACEOF
9030
9031  LIBS="-lbfd $LIBS"
9032
9033fi
9034
9035if test $ismingw = yes ; then
9036  for ac_header in dbghelp.h
9037do :
9038  ac_fn_c_check_header_mongrel "$LINENO" "dbghelp.h" "ac_cv_header_dbghelp_h" "$ac_includes_default"
9039if test "x$ac_cv_header_dbghelp_h" = xyes; then :
9040  cat >>confdefs.h <<_ACEOF
9041#define HAVE_DBGHELP_H 1
9042_ACEOF
9043
9044fi
9045
9046done
9047
9048else
9049  for ac_header in execinfo.h
9050do :
9051  ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
9052if test "x$ac_cv_header_execinfo_h" = xyes; then :
9053  cat >>confdefs.h <<_ACEOF
9054#define HAVE_EXECINFO_H 1
9055_ACEOF
9056
9057fi
9058
9059done
9060
9061  for ac_func in backtrace
9062do :
9063  ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
9064if test "x$ac_cv_func_backtrace" = xyes; then :
9065  cat >>confdefs.h <<_ACEOF
9066#define HAVE_BACKTRACE 1
9067_ACEOF
9068
9069fi
9070done
9071
9072fi
9073
9074for ac_func in __builtin_extract_return_address
9075do :
9076  ac_fn_c_check_func "$LINENO" "__builtin_extract_return_address" "ac_cv_func___builtin_extract_return_address"
9077if test "x$ac_cv_func___builtin_extract_return_address" = xyes; then :
9078  cat >>confdefs.h <<_ACEOF
9079#define HAVE___BUILTIN_EXTRACT_RETURN_ADDRESS 1
9080_ACEOF
9081
9082fi
9083done
9084
9085
9086for ac_header in unwind.h
9087do :
9088  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
9089if test "x$ac_cv_header_unwind_h" = xyes; then :
9090  cat >>confdefs.h <<_ACEOF
9091#define HAVE_UNWIND_H 1
9092_ACEOF
9093
9094fi
9095
9096done
9097
9098
9099#--------------------------------------------------------------------
9100# These headers/functions needed by NSLog.m
9101#--------------------------------------------------------------------
9102for ac_header in syslog.h sys/slog.h sys/slogcodes.h
9103do :
9104  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9105ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9106if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9107  cat >>confdefs.h <<_ACEOF
9108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9109_ACEOF
9110
9111fi
9112
9113done
9114
9115for ac_func in syslog
9116do :
9117  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
9118if test "x$ac_cv_func_syslog" = xyes; then :
9119  cat >>confdefs.h <<_ACEOF
9120#define HAVE_SYSLOG 1
9121_ACEOF
9122
9123fi
9124done
9125
9126if test "$ac_cv_header_sys_slog_h" = "yes"; then
9127  oldLibs="$LIBS";
9128  LIBS="$LIBS -l:libc.a";
9129  for ac_func in slogf
9130do :
9131  ac_fn_c_check_func "$LINENO" "slogf" "ac_cv_func_slogf"
9132if test "x$ac_cv_func_slogf" = xyes; then :
9133  cat >>confdefs.h <<_ACEOF
9134#define HAVE_SLOGF 1
9135_ACEOF
9136
9137fi
9138done
9139
9140  if test "$ac_cv_func_slogf" = "no"; then
9141    LIBS="$oldLibs"
9142  fi
9143fi
9144#--------------------------------------------------------------------
9145# These headers/functions needed by NSRunLoop.m
9146#--------------------------------------------------------------------
9147for ac_header in poll.h
9148do :
9149  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
9150if test "x$ac_cv_header_poll_h" = xyes; then :
9151  cat >>confdefs.h <<_ACEOF
9152#define HAVE_POLL_H 1
9153_ACEOF
9154
9155fi
9156
9157done
9158
9159for ac_func in poll
9160do :
9161  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
9162if test "x$ac_cv_func_poll" = xyes; then :
9163  cat >>confdefs.h <<_ACEOF
9164#define HAVE_POLL 1
9165_ACEOF
9166
9167fi
9168done
9169
9170have_poll=no
9171if test $ac_cv_header_poll_h = yes; then
9172  have_poll=yes
9173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll emulation" >&5
9174$as_echo_n "checking for poll emulation... " >&6; }
9175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h.  */
9177#include "config/config.poll.c"
9178_ACEOF
9179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9180  $EGREP "emulating_poll" >/dev/null 2>&1; then :
9181  have_poll=no
9182fi
9183rm -f conftest*
9184
9185  if test $have_poll = yes; then
9186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187$as_echo "no" >&6; }
9188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll supports devices" >&5
9189$as_echo_n "checking if poll supports devices... " >&6; }
9190    if test "$cross_compiling" = yes; then :
9191  have_poll="$cross_have_poll"
9192else
9193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194/* end confdefs.h.  */
9195#include "$srcdir/config/config.poll-dev.c"i
9196_ACEOF
9197if ac_fn_c_try_run "$LINENO"; then :
9198
9199else
9200  have_poll=no
9201fi
9202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9203  conftest.$ac_objext conftest.beam conftest.$ac_ext
9204fi
9205
9206    if test $have_poll = yes; then
9207      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9208$as_echo "yes" >&6; }
9209
9210$as_echo "#define HAVE_POLL_F 1" >>confdefs.h
9211
9212    else
9213      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214$as_echo "no" >&6; }
9215    fi
9216  else
9217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9218$as_echo "yes" >&6; }
9219  fi
9220fi
9221
9222#--------------------------------------------------------------------
9223# This function needed by StdioStream.m
9224#--------------------------------------------------------------------
9225for ac_func in vsprintf vasprintf snprintf vsnprintf
9226do :
9227  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9228ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9229if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9230  cat >>confdefs.h <<_ACEOF
9231#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9232_ACEOF
9233
9234fi
9235done
9236
9237if test $ac_cv_func_vsprintf = yes ; then
9238    if test "$cross_compiling" = yes; then :
9239  VSPRINTF_RETURNS_LENGTH="$cross_VSPRINTF_RETURNS_LENGTH"
9240else
9241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243#include "$srcdir/config/config.vsprintf.c"
9244_ACEOF
9245if ac_fn_c_try_run "$LINENO"; then :
9246  VSPRINTF_RETURNS_LENGTH=1
9247else
9248  VSPRINTF_RETURNS_LENGTH=0
9249fi
9250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9251  conftest.$ac_objext conftest.beam conftest.$ac_ext
9252fi
9253
9254
9255cat >>confdefs.h <<_ACEOF
9256#define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH
9257_ACEOF
9258
9259fi
9260if test $ac_cv_func_vasprintf = yes ; then
9261    if test "$cross_compiling" = yes; then :
9262  VASPRINTF_RETURNS_LENGTH="$cross_VASPRINTF_RETURNS_LENGTH"
9263else
9264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h.  */
9266#include "$srcdir/config/config.vasprintf.c"
9267_ACEOF
9268if ac_fn_c_try_run "$LINENO"; then :
9269  VASPRINTF_RETURNS_LENGTH=1
9270else
9271  VASPRINTF_RETURNS_LENGTH=0
9272fi
9273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9274  conftest.$ac_objext conftest.beam conftest.$ac_ext
9275fi
9276
9277
9278cat >>confdefs.h <<_ACEOF
9279#define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH
9280_ACEOF
9281
9282fi
9283
9284#--------------------------------------------------------------------
9285# This function needed by NSFileManager.m
9286#--------------------------------------------------------------------
9287for ac_func in getcwd
9288do :
9289  ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
9290if test "x$ac_cv_func_getcwd" = xyes; then :
9291  cat >>confdefs.h <<_ACEOF
9292#define HAVE_GETCWD 1
9293_ACEOF
9294
9295fi
9296done
9297
9298ac_header_dirent=no
9299for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9300  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9302$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9303if eval \${$as_ac_Header+:} false; then :
9304  $as_echo_n "(cached) " >&6
9305else
9306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h.  */
9308#include <sys/types.h>
9309#include <$ac_hdr>
9310
9311int
9312main ()
9313{
9314if ((DIR *) 0)
9315return 0;
9316  ;
9317  return 0;
9318}
9319_ACEOF
9320if ac_fn_c_try_compile "$LINENO"; then :
9321  eval "$as_ac_Header=yes"
9322else
9323  eval "$as_ac_Header=no"
9324fi
9325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326fi
9327eval ac_res=\$$as_ac_Header
9328	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9329$as_echo "$ac_res" >&6; }
9330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9331  cat >>confdefs.h <<_ACEOF
9332#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9333_ACEOF
9334
9335ac_header_dirent=$ac_hdr; break
9336fi
9337
9338done
9339# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9340if test $ac_header_dirent = dirent.h; then
9341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9342$as_echo_n "checking for library containing opendir... " >&6; }
9343if ${ac_cv_search_opendir+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  ac_func_search_save_LIBS=$LIBS
9347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h.  */
9349
9350/* Override any GCC internal prototype to avoid an error.
9351   Use char because int might match the return type of a GCC
9352   builtin and then its argument prototype would still apply.  */
9353#ifdef __cplusplus
9354extern "C"
9355#endif
9356char opendir ();
9357int
9358main ()
9359{
9360return opendir ();
9361  ;
9362  return 0;
9363}
9364_ACEOF
9365for ac_lib in '' dir; do
9366  if test -z "$ac_lib"; then
9367    ac_res="none required"
9368  else
9369    ac_res=-l$ac_lib
9370    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9371  fi
9372  if ac_fn_c_try_link "$LINENO"; then :
9373  ac_cv_search_opendir=$ac_res
9374fi
9375rm -f core conftest.err conftest.$ac_objext \
9376    conftest$ac_exeext
9377  if ${ac_cv_search_opendir+:} false; then :
9378  break
9379fi
9380done
9381if ${ac_cv_search_opendir+:} false; then :
9382
9383else
9384  ac_cv_search_opendir=no
9385fi
9386rm conftest.$ac_ext
9387LIBS=$ac_func_search_save_LIBS
9388fi
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9390$as_echo "$ac_cv_search_opendir" >&6; }
9391ac_res=$ac_cv_search_opendir
9392if test "$ac_res" != no; then :
9393  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9394
9395fi
9396
9397else
9398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9399$as_echo_n "checking for library containing opendir... " >&6; }
9400if ${ac_cv_search_opendir+:} false; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  ac_func_search_save_LIBS=$LIBS
9404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406
9407/* Override any GCC internal prototype to avoid an error.
9408   Use char because int might match the return type of a GCC
9409   builtin and then its argument prototype would still apply.  */
9410#ifdef __cplusplus
9411extern "C"
9412#endif
9413char opendir ();
9414int
9415main ()
9416{
9417return opendir ();
9418  ;
9419  return 0;
9420}
9421_ACEOF
9422for ac_lib in '' x; do
9423  if test -z "$ac_lib"; then
9424    ac_res="none required"
9425  else
9426    ac_res=-l$ac_lib
9427    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9428  fi
9429  if ac_fn_c_try_link "$LINENO"; then :
9430  ac_cv_search_opendir=$ac_res
9431fi
9432rm -f core conftest.err conftest.$ac_objext \
9433    conftest$ac_exeext
9434  if ${ac_cv_search_opendir+:} false; then :
9435  break
9436fi
9437done
9438if ${ac_cv_search_opendir+:} false; then :
9439
9440else
9441  ac_cv_search_opendir=no
9442fi
9443rm conftest.$ac_ext
9444LIBS=$ac_func_search_save_LIBS
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9447$as_echo "$ac_cv_search_opendir" >&6; }
9448ac_res=$ac_cv_search_opendir
9449if test "$ac_res" != no; then :
9450  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9451
9452fi
9453
9454fi
9455
9456
9457#--------------------------------------------------------------------
9458# This function needed by gdomap.c
9459#--------------------------------------------------------------------
9460for ac_header in getopt.h
9461do :
9462  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9463if test "x$ac_cv_header_getopt_h" = xyes; then :
9464  cat >>confdefs.h <<_ACEOF
9465#define HAVE_GETOPT_H 1
9466_ACEOF
9467
9468fi
9469
9470done
9471
9472
9473#--------------------------------------------------------------------
9474# This function needed by NSPage.m
9475#--------------------------------------------------------------------
9476for ac_func in posix_memalign valloc
9477do :
9478  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9479ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9480if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9481  cat >>confdefs.h <<_ACEOF
9482#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9483_ACEOF
9484
9485fi
9486done
9487
9488
9489#--------------------------------------------------------------------
9490# This function needed by Time.m
9491#--------------------------------------------------------------------
9492for ac_func in times
9493do :
9494  ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
9495if test "x$ac_cv_func_times" = xyes; then :
9496  cat >>confdefs.h <<_ACEOF
9497#define HAVE_TIMES 1
9498_ACEOF
9499
9500fi
9501done
9502
9503
9504#--------------------------------------------------------------------
9505# These functions needed by NSData.m and GSFFIInvocation.m
9506#--------------------------------------------------------------------
9507for ac_func in mkstemp
9508do :
9509  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
9510if test "x$ac_cv_func_mkstemp" = xyes; then :
9511  cat >>confdefs.h <<_ACEOF
9512#define HAVE_MKSTEMP 1
9513_ACEOF
9514
9515fi
9516done
9517
9518for ac_func in shmctl
9519do :
9520  ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
9521if test "x$ac_cv_func_shmctl" = xyes; then :
9522  cat >>confdefs.h <<_ACEOF
9523#define HAVE_SHMCTL 1
9524_ACEOF
9525
9526fi
9527done
9528
9529for ac_func in mmap
9530do :
9531  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9532if test "x$ac_cv_func_mmap" = xyes; then :
9533  cat >>confdefs.h <<_ACEOF
9534#define HAVE_MMAP 1
9535_ACEOF
9536
9537fi
9538done
9539
9540for ac_func in mprotect
9541do :
9542  ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
9543if test "x$ac_cv_func_mprotect" = xyes; then :
9544  cat >>confdefs.h <<_ACEOF
9545#define HAVE_MPROTECT 1
9546_ACEOF
9547
9548fi
9549done
9550
9551for ac_header in sys/mman.h
9552do :
9553  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9554if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9555  cat >>confdefs.h <<_ACEOF
9556#define HAVE_SYS_MMAN_H 1
9557_ACEOF
9558
9559fi
9560
9561done
9562
9563
9564#--------------------------------------------------------------------
9565# These functions needed by NSTask.m
9566#--------------------------------------------------------------------
9567for ac_func in killpg setpgrp setpgid setsid grantpt
9568do :
9569  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9570ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9571if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9572  cat >>confdefs.h <<_ACEOF
9573#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574_ACEOF
9575
9576fi
9577done
9578
9579if test "x$ac_cv_func_setpgrp" = xyes; then
9580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
9581$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
9582if ${ac_cv_func_setpgrp_void+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  if test "$cross_compiling" = yes; then :
9586  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
9587else
9588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h.  */
9590$ac_includes_default
9591int
9592main ()
9593{
9594/* If this system has a BSD-style setpgrp which takes arguments,
9595  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
9596  exit successfully. */
9597  return setpgrp (1,1) != -1;
9598  ;
9599  return 0;
9600}
9601_ACEOF
9602if ac_fn_c_try_run "$LINENO"; then :
9603  ac_cv_func_setpgrp_void=no
9604else
9605  ac_cv_func_setpgrp_void=yes
9606fi
9607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9608  conftest.$ac_objext conftest.beam conftest.$ac_ext
9609fi
9610
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
9613$as_echo "$ac_cv_func_setpgrp_void" >&6; }
9614if test $ac_cv_func_setpgrp_void = yes; then
9615
9616$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
9617
9618fi
9619
9620fi
9621
9622HAVE_PTS_STREAM_MODULES=0
9623case "${target}" in
9624  *-sysv-*)
9625    HAVE_PTS_STREAM_MODULES=1
9626    ;;
9627esac
9628
9629cat >>confdefs.h <<_ACEOF
9630#define HAVE_PTS_STREAM_MODULES $HAVE_PTS_STREAM_MODULES
9631_ACEOF
9632
9633
9634
9635for ac_header in 	fcntl.h 	inttypes.h 	libc.h 	limits.h 	malloc.h 	memory.h 	signal.h 	stdint.h 	string.h 	sys/fcntl.h 	sys/file.h 	sys/filio.h 	sys/inttypes.h 	sys/ioctl.h 	sys/signal.h 	sys/stropts.h 	sys/wait.h 	unistd.h 	utime.h         stdlib.h
9636do :
9637  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9638ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9639if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9640  cat >>confdefs.h <<_ACEOF
9641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9642_ACEOF
9643
9644fi
9645
9646done
9647
9648
9649if test $ac_cv_header_inttypes_h = yes; then
9650INCLUDE_INTTYPES="#include <inttypes.h>"
9651elif test $ac_cv_header_sys_inttypes_h = yes; then
9652INCLUDE_INTTYPES="#include <sys/inttypes.h>"
9653elif test $ac_cv_header_stdint_h = yes; then
9654INCLUDE_INTTYPES="#include <stdint.h>"
9655else
9656INCLUDE_INTTYPES="no"
9657fi
9658
9659if test "$INCLUDE_INTTYPES" = "no"; then
9660INCLUDE_INTTYPES=""
9661DEFINE_INT8_T="#define int8_t gss8"
9662DEFINE_UINT8_T="#define uint8_t gsu8"
9663DEFINE_INT16_T="#define int16_t gss16"
9664DEFINE_UINT16_T="#define uint16_t gsu16"
9665DEFINE_INT32_T="#define int32_t gss32"
9666DEFINE_UINT32_T="#define uint32_t gsu32"
9667DEFINE_INT64_T="#define int64_t gss64"
9668DEFINE_UINT64_T="#define uint64_t gsu64"
9669DEFINE_INTPTR_T="#define intptr_t gssaddr"
9670DEFINE_UINTPTR_T="#define uintptr_t gsuaddr"
9671else
9672DEFINE_INT8_T=""
9673DEFINE_UINT8_T=""
9674DEFINE_INT16_T=""
9675DEFINE_UINT16_T=""
9676DEFINE_INT32_T=""
9677DEFINE_UINT32_T=""
9678DEFINE_INT64_T=""
9679DEFINE_UINT64_T=""
9680DEFINE_INTPTR_T=""
9681DEFINE_UINTPTR_T=""
9682fi
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696#--------------------------------------------------------------------
9697# These used by GSFileHandle.m and distributed objects
9698# On some systems we need -lnsl ... so check for that case.
9699#--------------------------------------------------------------------
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9701$as_echo_n "checking for library containing inet_ntop... " >&6; }
9702if ${ac_cv_search_inet_ntop+:} false; then :
9703  $as_echo_n "(cached) " >&6
9704else
9705  ac_func_search_save_LIBS=$LIBS
9706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h.  */
9708
9709/* Override any GCC internal prototype to avoid an error.
9710   Use char because int might match the return type of a GCC
9711   builtin and then its argument prototype would still apply.  */
9712#ifdef __cplusplus
9713extern "C"
9714#endif
9715char inet_ntop ();
9716int
9717main ()
9718{
9719return inet_ntop ();
9720  ;
9721  return 0;
9722}
9723_ACEOF
9724for ac_lib in '' nsl; do
9725  if test -z "$ac_lib"; then
9726    ac_res="none required"
9727  else
9728    ac_res=-l$ac_lib
9729    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9730  fi
9731  if ac_fn_c_try_link "$LINENO"; then :
9732  ac_cv_search_inet_ntop=$ac_res
9733fi
9734rm -f core conftest.err conftest.$ac_objext \
9735    conftest$ac_exeext
9736  if ${ac_cv_search_inet_ntop+:} false; then :
9737  break
9738fi
9739done
9740if ${ac_cv_search_inet_ntop+:} false; then :
9741
9742else
9743  ac_cv_search_inet_ntop=no
9744fi
9745rm conftest.$ac_ext
9746LIBS=$ac_func_search_save_LIBS
9747fi
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9749$as_echo "$ac_cv_search_inet_ntop" >&6; }
9750ac_res=$ac_cv_search_inet_ntop
9751if test "$ac_res" != no; then :
9752  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9753
9754fi
9755
9756for ac_func in gethostbyaddr_r inet_aton inet_pton inet_ntop sigaction
9757do :
9758  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9759ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9760if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9761  cat >>confdefs.h <<_ACEOF
9762#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9763_ACEOF
9764
9765fi
9766done
9767
9768
9769USE_ZLIB=0
9770for ac_header in zlib.h
9771do :
9772  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9773if test "x$ac_cv_header_zlib_h" = xyes; then :
9774  cat >>confdefs.h <<_ACEOF
9775#define HAVE_ZLIB_H 1
9776_ACEOF
9777
9778fi
9779
9780done
9781
9782if test $ac_cv_header_zlib_h = yes; then
9783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
9784$as_echo_n "checking for gzseek in -lz... " >&6; }
9785if ${ac_cv_lib_z_gzseek+:} false; then :
9786  $as_echo_n "(cached) " >&6
9787else
9788  ac_check_lib_save_LIBS=$LIBS
9789LIBS="-lz  $LIBS"
9790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792
9793/* Override any GCC internal prototype to avoid an error.
9794   Use char because int might match the return type of a GCC
9795   builtin and then its argument prototype would still apply.  */
9796#ifdef __cplusplus
9797extern "C"
9798#endif
9799char gzseek ();
9800int
9801main ()
9802{
9803return gzseek ();
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_link "$LINENO"; then :
9809  ac_cv_lib_z_gzseek=yes
9810else
9811  ac_cv_lib_z_gzseek=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext \
9814    conftest$ac_exeext conftest.$ac_ext
9815LIBS=$ac_check_lib_save_LIBS
9816fi
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
9818$as_echo "$ac_cv_lib_z_gzseek" >&6; }
9819if test "x$ac_cv_lib_z_gzseek" = xyes; then :
9820  zlib_ok=yes
9821else
9822  zlib_ok=no
9823fi
9824
9825  if test "$zlib_ok" = yes; then
9826    LIBS="$LIBS -lz"
9827    USE_ZLIB=1
9828  fi
9829fi
9830
9831
9832HAVE_INET_PTON=no
9833if test $ac_cv_func_inet_pton = yes ; then
9834  HAVE_INET_PTON=yes
9835fi
9836
9837
9838HAVE_INET_NTOP=no
9839if test $ac_cv_func_inet_ntop = yes ; then
9840  HAVE_INET_NTOP=yes
9841fi
9842
9843
9844#--------------------------------------------------------------------
9845# For setting thread stack size
9846#--------------------------------------------------------------------
9847for ac_header in sys/resource.h
9848do :
9849  ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
9850if test "x$ac_cv_header_sys_resource_h" = xyes; then :
9851  cat >>confdefs.h <<_ACEOF
9852#define HAVE_SYS_RESOURCE_H 1
9853_ACEOF
9854
9855fi
9856
9857done
9858
9859for ac_func in setrlimit
9860do :
9861  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
9862if test "x$ac_cv_func_setrlimit" = xyes; then :
9863  cat >>confdefs.h <<_ACEOF
9864#define HAVE_SETRLIMIT 1
9865_ACEOF
9866
9867fi
9868done
9869
9870
9871#--------------------------------------------------------------------
9872# One of these functions needed by NSDebug.m and NSProcessInfo.m
9873#--------------------------------------------------------------------
9874for ac_func in strerror
9875do :
9876  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9877if test "x$ac_cv_func_strerror" = xyes; then :
9878  cat >>confdefs.h <<_ACEOF
9879#define HAVE_STRERROR 1
9880_ACEOF
9881
9882fi
9883done
9884
9885ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9886if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
9887  ac_have_decl=1
9888else
9889  ac_have_decl=0
9890fi
9891
9892cat >>confdefs.h <<_ACEOF
9893#define HAVE_DECL_STRERROR_R $ac_have_decl
9894_ACEOF
9895
9896for ac_func in strerror_r
9897do :
9898  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9899if test "x$ac_cv_func_strerror_r" = xyes; then :
9900  cat >>confdefs.h <<_ACEOF
9901#define HAVE_STRERROR_R 1
9902_ACEOF
9903
9904fi
9905done
9906
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9908$as_echo_n "checking whether strerror_r returns char *... " >&6; }
9909if ${ac_cv_func_strerror_r_char_p+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912
9913    ac_cv_func_strerror_r_char_p=no
9914    if test $ac_cv_have_decl_strerror_r = yes; then
9915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916/* end confdefs.h.  */
9917$ac_includes_default
9918int
9919main ()
9920{
9921
9922	  char buf[100];
9923	  char x = *strerror_r (0, buf, sizeof buf);
9924	  char *p = strerror_r (0, buf, sizeof buf);
9925	  return !p || x;
9926
9927  ;
9928  return 0;
9929}
9930_ACEOF
9931if ac_fn_c_try_compile "$LINENO"; then :
9932  ac_cv_func_strerror_r_char_p=yes
9933fi
9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935    else
9936      # strerror_r is not declared.  Choose between
9937      # systems that have relatively inaccessible declarations for the
9938      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
9939      # former has a strerror_r that returns char*, while the latter
9940      # has a strerror_r that returns `int'.
9941      # This test should segfault on the DEC system.
9942      if test "$cross_compiling" = yes; then :
9943  :
9944else
9945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946/* end confdefs.h.  */
9947$ac_includes_default
9948	extern char *strerror_r ();
9949int
9950main ()
9951{
9952char buf[100];
9953	  char x = *strerror_r (0, buf, sizeof buf);
9954	  return ! isalpha (x);
9955  ;
9956  return 0;
9957}
9958_ACEOF
9959if ac_fn_c_try_run "$LINENO"; then :
9960  ac_cv_func_strerror_r_char_p=yes
9961fi
9962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9963  conftest.$ac_objext conftest.beam conftest.$ac_ext
9964fi
9965
9966    fi
9967
9968fi
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9970$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9971if test $ac_cv_func_strerror_r_char_p = yes; then
9972
9973$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9974
9975fi
9976
9977
9978#--------------------------------------------------------------------
9979# Needed by NSDebug.m
9980#--------------------------------------------------------------------
9981for ac_func in sigsetjmp
9982do :
9983  ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
9984if test "x$ac_cv_func_sigsetjmp" = xyes; then :
9985  cat >>confdefs.h <<_ACEOF
9986#define HAVE_SIGSETJMP 1
9987_ACEOF
9988
9989fi
9990done
9991
9992
9993#--------------------------------------------------------------------
9994# This type needed by GSFormat
9995#--------------------------------------------------------------------
9996ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
9997if test "x$ac_cv_type_uintmax_t" = xyes; then :
9998
9999cat >>confdefs.h <<_ACEOF
10000#define HAVE_UINTMAX_T 1
10001_ACEOF
10002
10003
10004fi
10005
10006for ac_header in wchar.h
10007do :
10008  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10009if test "x$ac_cv_header_wchar_h" = xyes; then :
10010  cat >>confdefs.h <<_ACEOF
10011#define HAVE_WCHAR_H 1
10012_ACEOF
10013
10014fi
10015
10016done
10017
10018
10019#--------------------------------------------------------------------
10020# Check if short and int values need to be word aligned
10021#--------------------------------------------------------------------
10022saved_CFLAGS="$CFLAGS"
10023CFLAGS="$CFLAGS -O0"
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking short/int needs to be word aligned" >&5
10025$as_echo_n "checking short/int needs to be word aligned... " >&6; }
10026if test "$cross_compiling" = yes; then :
10027  NEED_WORD_ALIGNMENT="$cross_NEED_WORD_ALIGNMENT"
10028else
10029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h.  */
10031#include "$srcdir/config/config.align.c"
10032_ACEOF
10033if ac_fn_c_try_run "$LINENO"; then :
10034  NEED_WORD_ALIGNMENT=0
10035else
10036  NEED_WORD_ALIGNMENT=1
10037fi
10038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10039  conftest.$ac_objext conftest.beam conftest.$ac_ext
10040fi
10041
10042CFLAGS="$saved_CFLAGS"
10043
10044cat >>confdefs.h <<_ACEOF
10045#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
10046_ACEOF
10047
10048if test $NEED_WORD_ALIGNMENT = 1; then
10049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050$as_echo "yes" >&6; }
10051else
10052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053$as_echo "no" >&6; }
10054fi
10055
10056#--------------------------------------------------------------------
10057# This needed by NSString for handling of %@ printf directive.
10058#--------------------------------------------------------------------
10059for ac_func in register_printf_specifier
10060do :
10061  ac_fn_c_check_func "$LINENO" "register_printf_specifier" "ac_cv_func_register_printf_specifier"
10062if test "x$ac_cv_func_register_printf_specifier" = xyes; then :
10063  cat >>confdefs.h <<_ACEOF
10064#define HAVE_REGISTER_PRINTF_SPECIFIER 1
10065_ACEOF
10066
10067fi
10068done
10069
10070ac_fn_c_check_func "$LINENO" "register_printf_function" "ac_cv_func_register_printf_function"
10071if test "x$ac_cv_func_register_printf_function" = xyes; then :
10072  register_printf=1
10073else
10074  register_printf=0
10075fi
10076
10077if test $register_printf = 1; then
10078  if test "$cross_compiling" = yes; then :
10079  working_register_printf="$cross_working_register_printf"
10080else
10081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h.  */
10083#include "$srcdir/config/config.printf.c"
10084_ACEOF
10085if ac_fn_c_try_run "$LINENO"; then :
10086  working_register_printf=1
10087else
10088  working_register_printf=0
10089fi
10090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10091  conftest.$ac_objext conftest.beam conftest.$ac_ext
10092fi
10093
10094  if test $working_register_printf = 1; then
10095
10096$as_echo "#define HAVE_REGISTER_PRINTF_FUNCTION 1" >>confdefs.h
10097
10098    if test "$cross_compiling" = yes; then :
10099  wide_register_printf="$cross_wide_register_printf"
10100else
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103#include "$srcdir/config/config.wprintf.c"
10104_ACEOF
10105if ac_fn_c_try_run "$LINENO"; then :
10106  wide_register_printf=1
10107else
10108  wide_register_printf=0
10109fi
10110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10111  conftest.$ac_objext conftest.beam conftest.$ac_ext
10112fi
10113
10114    if test $wide_register_printf = 1; then
10115
10116$as_echo "#define HAVE_WIDE_PRINTF_FUNCTION 1" >>confdefs.h
10117
10118    fi
10119  fi
10120fi
10121
10122
10123#--------------------------------------------------------------------
10124# This function needed by NSString.
10125#--------------------------------------------------------------------
10126for ac_func in realpath
10127do :
10128  ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
10129if test "x$ac_cv_func_realpath" = xyes; then :
10130  cat >>confdefs.h <<_ACEOF
10131#define HAVE_REALPATH 1
10132_ACEOF
10133
10134fi
10135done
10136
10137
10138#--------------------------------------------------------------------
10139# Check if the C Library defines extern char *program_invocation_name
10140# Used in critical cases by NSProcessInfo.m
10141#--------------------------------------------------------------------
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking program_invocation_name in C Library" >&5
10143$as_echo_n "checking program_invocation_name in C Library... " >&6; }
10144if ${gs_cv_program_invocation_name_worked+:} false; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  if test "$cross_compiling" = yes; then :
10148  gs_cv_program_invocation_name_worked="$cross_gs_cv_program_invocation_name_worked"
10149else
10150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h.  */
10152
10153#include <string.h>
10154int
10155main (int argc, char *argv[])
10156{
10157  extern char *program_invocation_name;
10158  return (strcmp (program_invocation_name, argv[0]));
10159}
10160
10161_ACEOF
10162if ac_fn_c_try_run "$LINENO"; then :
10163  gs_cv_program_invocation_name_worked=yes
10164else
10165  gs_cv_program_invocation_name_worked=no
10166fi
10167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10168  conftest.$ac_objext conftest.beam conftest.$ac_ext
10169fi
10170
10171fi
10172
10173if test $gs_cv_program_invocation_name_worked = yes; then
10174
10175$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
10176
10177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10178$as_echo "yes" >&6; }
10179else
10180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181$as_echo "no" >&6; }
10182fi
10183
10184#--------------------------------------------------------------------
10185# Check for uname header used by NSProcessInfo.m
10186#--------------------------------------------------------------------
10187for ac_header in sys/utsname.h
10188do :
10189  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
10190if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
10191  cat >>confdefs.h <<_ACEOF
10192#define HAVE_SYS_UTSNAME_H 1
10193_ACEOF
10194
10195fi
10196
10197done
10198
10199
10200#--------------------------------------------------------------------
10201# Check for sysctlbyname used by NSProcessInfo.m
10202#--------------------------------------------------------------------
10203for ac_header in sys/sysctl.h
10204do :
10205  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
10206if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
10207  cat >>confdefs.h <<_ACEOF
10208#define HAVE_SYS_SYSCTL_H 1
10209_ACEOF
10210
10211fi
10212
10213done
10214
10215for ac_func in sysctlbyname
10216do :
10217  ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
10218if test "x$ac_cv_func_sysctlbyname" = xyes; then :
10219  cat >>confdefs.h <<_ACEOF
10220#define HAVE_SYSCTLBYNAME 1
10221_ACEOF
10222
10223fi
10224done
10225
10226
10227#--------------------------------------------------------------------
10228# Defines HAVE_PROCFS if the kernel supports the /proc filesystem.
10229# Needed by NSProcessInfo.m
10230#--------------------------------------------------------------------
10231for ac_header in procfs.h
10232do :
10233  ac_fn_c_check_header_mongrel "$LINENO" "procfs.h" "ac_cv_header_procfs_h" "$ac_includes_default"
10234if test "x$ac_cv_header_procfs_h" = xyes; then :
10235  cat >>confdefs.h <<_ACEOF
10236#define HAVE_PROCFS_H 1
10237_ACEOF
10238
10239fi
10240
10241done
10242
10243 # Check whether --enable-procfs was given.
10244if test "${enable_procfs+set}" = set; then :
10245  enableval=$enable_procfs; enable_procfs="$enableval"
10246else
10247  if test "$cross_compiling" = yes; then enable_procfs=cross; else enable_procfs=yes; fi;
10248fi
10249
10250
10251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel support for /proc filesystem" >&5
10252$as_echo_n "checking kernel support for /proc filesystem... " >&6; }
10253if ${ac_cv_sys_procfs+:} false; then :
10254  $as_echo_n "(cached) " >&6
10255else
10256  if test "$enable_procfs" = yes; then
10257  # Suggested change for the following line was
10258  #  if test -d /proc/0; then
10259  # but it doesn't work on my linux - /proc/0 does not exist, but /proc
10260  # works fine
10261    if grep 'proc' /proc/mounts >/dev/null 2>/dev/null; then
10262      ac_cv_sys_procfs=yes
10263    else
10264      ac_cv_sys_procfs=no
10265    fi
10266    case "$target_os" in
10267      # Solaris has proc, but it is not readable
10268      solaris*)    ac_cv_sys_procfs=no;;
10269      irix*)       ac_cv_sys_procfs=no;;
10270      # Cygwin does have proc, but it does not show with mount
10271      cygwin*)     ac_cv_sys_procfs=yes;;
10272    esac
10273  elif test "$enable_procfs" = cross; then
10274    ac_cv_sys_procfs=no
10275  else
10276    ac_cv_sys_procfs=no
10277  fi
10278fi
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_procfs" >&5
10280$as_echo "$ac_cv_sys_procfs" >&6; }
10281
10282  if test "$enable_procfs" = cross; then
10283    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling: Pass --enable-procfs argument to enable use of /proc filesystem." >&5
10284$as_echo "$as_me: WARNING: Cross-compiling: Pass --enable-procfs argument to enable use of /proc filesystem." >&2;}
10285  fi
10286  if test $ac_cv_sys_procfs = yes; then
10287
10288$as_echo "#define HAVE_PROCFS 1" >>confdefs.h
10289
10290  fi
10291
10292
10293 # Check whether --enable-procfs-psinfo was given.
10294if test "${enable_procfs_psinfo+set}" = set; then :
10295  enableval=$enable_procfs_psinfo; enable_procfs_psinfo="$enableval"
10296else
10297  if test "$cross_compiling" = yes; then enable_procfs_psinfo=cross; else enable_procfs_psinfo=yes; fi;
10298fi
10299
10300
10301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for /proc psinfo struct" >&5
10302$as_echo_n "checking support for /proc psinfo struct... " >&6; }
10303if ${ac_cv_sys_procfs_psinfo+:} false; then :
10304  $as_echo_n "(cached) " >&6
10305else
10306  if test "$enable_procfs_psinfo" = yes; then
10307    if test "$cross_compiling" = yes; then :
10308  ac_cv_sys_procfs_psinfo=yes
10309else
10310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312#include "$srcdir/config/config.psinfo.c"
10313_ACEOF
10314if ac_fn_c_try_run "$LINENO"; then :
10315  ac_cv_sys_procfs_psinfo=yes
10316else
10317  ac_cv_sys_procfs_psinfo=no
10318fi
10319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10320  conftest.$ac_objext conftest.beam conftest.$ac_ext
10321fi
10322
10323  elif test "$enable_procfs" = cross; then
10324    ac_cv_sys_procfs_psinfo=no
10325  else
10326    ac_cv_sys_procfs_psinfo=no
10327  fi
10328fi
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_procfs_psinfo" >&5
10330$as_echo "$ac_cv_sys_procfs_psinfo" >&6; }
10331
10332  if test "$enable_procfs" = cross; then
10333    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling: Pass --enable-procfs-psinfo argument to enable use of /proc psinfo information." >&5
10334$as_echo "$as_me: WARNING: Cross-compiling: Pass --enable-procfs-psinfo argument to enable use of /proc psinfo information." >&2;}
10335  fi
10336  if test $ac_cv_sys_procfs_psinfo = yes; then
10337
10338$as_echo "#define HAVE_PROCFS_PSINFO 1" >>confdefs.h
10339
10340  fi
10341
10342
10343
10344
10345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking link to exe of process in /proc" >&5
10346$as_echo_n "checking link to exe of process in /proc... " >&6; }
10347if ${ac_cv_sys_procfs_exe_link+:} false; then :
10348  $as_echo_n "(cached) " >&6
10349else
10350  if test "$ac_cv_sys_procfs" = yes; then
10351      # Linux 2.2.x and up
10352      if test -L /proc/self/exe; then
10353        ac_cv_sys_procfs_exe_link=/proc/self/exe
10354      # FreeBSD 4.x and up
10355      elif test -L /proc/curproc/file; then
10356        ac_cv_sys_procfs_exe_link=/proc/curproc/file
10357      else
10358        ac_cv_sys_procfs_exe_link=no
10359      fi
10360    else
10361      ac_cv_sys_procfs_exe_link=no
10362    fi
10363fi
10364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_procfs_exe_link" >&5
10365$as_echo "$ac_cv_sys_procfs_exe_link" >&6; }
10366
10367  if test "$ac_cv_sys_procfs_exe_link" != no; then
10368
10369cat >>confdefs.h <<_ACEOF
10370#define PROCFS_EXE_LINK "$ac_cv_sys_procfs_exe_link"
10371_ACEOF
10372
10373  fi
10374
10375
10376#--------------------------------------------------------------------
10377# Check if /proc/$$/cmdline terminates the last argument with a nul
10378#--------------------------------------------------------------------
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking /proc/$$/cmdline terminated by nul" >&5
10380$as_echo_n "checking /proc/$$/cmdline terminated by nul... " >&6; }
10381if test "$cross_compiling" = yes; then :
10382  CMDLINE_TERMINATED="$cross_CMDLINE_TERMINATED"
10383else
10384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385/* end confdefs.h.  */
10386#include "$srcdir/config/config.proccmd.c"
10387_ACEOF
10388if ac_fn_c_try_run "$LINENO"; then :
10389  CMDLINE_TERMINATED=1
10390else
10391  CMDLINE_TERMINATED=0
10392fi
10393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10394  conftest.$ac_objext conftest.beam conftest.$ac_ext
10395fi
10396
10397
10398cat >>confdefs.h <<_ACEOF
10399#define CMDLINE_TERMINATED $CMDLINE_TERMINATED
10400_ACEOF
10401
10402if test $CMDLINE_TERMINATED = 1; then
10403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10404$as_echo "yes" >&6; }
10405else
10406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407$as_echo "no" >&6; }
10408fi
10409
10410#--------------------------------------------------------------------
10411# If /proc doesn't work, try kvm (on FreeBSD, for instance)
10412#--------------------------------------------------------------------
10413have_kvm_env=0
10414save_LIBS="$LIBS"
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_getenvv in -lkvm" >&5
10416$as_echo_n "checking for kvm_getenvv in -lkvm... " >&6; }
10417if ${ac_cv_lib_kvm_kvm_getenvv+:} false; then :
10418  $as_echo_n "(cached) " >&6
10419else
10420  ac_check_lib_save_LIBS=$LIBS
10421LIBS="-lkvm  $LIBS"
10422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424
10425/* Override any GCC internal prototype to avoid an error.
10426   Use char because int might match the return type of a GCC
10427   builtin and then its argument prototype would still apply.  */
10428#ifdef __cplusplus
10429extern "C"
10430#endif
10431char kvm_getenvv ();
10432int
10433main ()
10434{
10435return kvm_getenvv ();
10436  ;
10437  return 0;
10438}
10439_ACEOF
10440if ac_fn_c_try_link "$LINENO"; then :
10441  ac_cv_lib_kvm_kvm_getenvv=yes
10442else
10443  ac_cv_lib_kvm_kvm_getenvv=no
10444fi
10445rm -f core conftest.err conftest.$ac_objext \
10446    conftest$ac_exeext conftest.$ac_ext
10447LIBS=$ac_check_lib_save_LIBS
10448fi
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getenvv" >&5
10450$as_echo "$ac_cv_lib_kvm_kvm_getenvv" >&6; }
10451if test "x$ac_cv_lib_kvm_kvm_getenvv" = xyes; then :
10452  cat >>confdefs.h <<_ACEOF
10453#define HAVE_LIBKVM 1
10454_ACEOF
10455
10456  LIBS="-lkvm $LIBS"
10457
10458fi
10459
10460if test "$ac_cv_lib_kvm_kvm_getenvv" = yes; then
10461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can access kernel memory" >&5
10462$as_echo_n "checking if we can access kernel memory... " >&6; }
10463  if test "$cross_compiling" = yes; then :
10464  have_kvm_env="$cross_have_kvm_env"
10465else
10466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467/* end confdefs.h.  */
10468#include "$srcdir/config/config.kvmopen.c"
10469_ACEOF
10470if ac_fn_c_try_run "$LINENO"; then :
10471  have_kvm_env=1
10472else
10473  have_kvm_env=0
10474fi
10475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10476  conftest.$ac_objext conftest.beam conftest.$ac_ext
10477fi
10478
10479  if test $have_kvm_env = 1; then
10480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10481$as_echo "yes" >&6; }
10482
10483$as_echo "#define HAVE_KVM_ENV 1" >>confdefs.h
10484
10485  else
10486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487$as_echo "no" >&6; }
10488    # Reset LIBS since we don't need kvm
10489    LIBS="$save_LIBS"
10490  fi
10491fi
10492
10493#--------------------------------------------------------------------
10494# Include redefinition of main () only if needed.
10495# On some systems - force redefinition to be used as the /proc stuff
10496# doesn't work. Allow NSProcessInfo initialization method also.
10497#--------------------------------------------------------------------
10498PASS_ARG=no
10499case "$target_os" in
10500  cygwin*)	PASS_ARG=yes;;
10501esac
10502
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking use of pass-through arguments" >&5
10504$as_echo_n "checking use of pass-through arguments... " >&6; }
10505# Check whether --enable-pass-arguments was given.
10506if test "${enable_pass_arguments+set}" = set; then :
10507  enableval=$enable_pass_arguments;
10508else
10509  enable_pass_arguments=$PASS_ARG
10510fi
10511
10512
10513if test "$enable_pass_arguments" = "yes"; then
10514  GS_PASS_ARGUMENTS=1
10515else
10516  GS_PASS_ARGUMENTS=0
10517fi
10518
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pass_arguments" >&5
10520$as_echo "$enable_pass_arguments" >&6; }
10521
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking use of fake-main definition" >&5
10523$as_echo_n "checking use of fake-main definition... " >&6; }
10524# Check whether --enable-fake-main was given.
10525if test "${enable_fake_main+set}" = set; then :
10526  enableval=$enable_fake_main;
10527else
10528  enable_fake_main=no
10529fi
10530
10531
10532if test "$enable_pass_arguments" = "no"; then
10533  case "$target_os" in
10534    freebsd2*)	enable_fake_main=yes;;
10535    freebsd*)	;;
10536    dragonfly*) ;;
10537    kfreebsd*)	enable_fake_main=yes;;
10538    netbsd*)	enable_fake_main=yes;;
10539    openbsd*)	enable_fake_main=yes;;
10540    *sysv*)	enable_fake_main=yes;;
10541  esac
10542fi
10543
10544GS_FAKE_MAIN=0
10545if test "$enable_fake_main" = "yes"; then
10546  GS_FAKE_MAIN=1
10547elif test "$enable_pass_arguments" = "no"; then
10548  if test "$gs_cv_objc_load_method_worked" = yes -a \( "$ac_cv_sys_procfs" = yes -o "$have_kvm_env" = 1 -o "$ac_cv_sys_procfs_psinfo" = yes \); then
10549    GS_FAKE_MAIN=0
10550    if test "$have_kvm_env" = "1"; then
10551      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using libkvm which is known to be buggy on some systems consider configuring with --enable-fake-main instead." >&5
10552$as_echo "$as_me: WARNING: Using libkvm which is known to be buggy on some systems consider configuring with --enable-fake-main instead." >&2;}
10553    fi
10554  else
10555    case "$target_os" in
10556      darwin* ) ;;
10557      * )
10558       GS_FAKE_MAIN=1
10559       enable_fake_main=yes
10560    esac
10561  fi
10562fi
10563case "$target_os" in
10564    mingw*)	enable_fake_main=no; GS_FAKE_MAIN=0;;
10565esac
10566
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fake_main" >&5
10568$as_echo "$enable_fake_main" >&6; }
10569
10570#--------------------------------------------------------------------
10571# Simple way to add a bunch of paths to the flags
10572#--------------------------------------------------------------------
10573
10574# Check whether --with-include-flags was given.
10575if test "${with_include_flags+set}" = set; then :
10576  withval=$with_include_flags; include_flags="$withval"
10577else
10578  include_flags="no"
10579fi
10580
10581if test ${include_flags} != "no"; then
10582    CPPFLAGS="$CPPFLAGS ${include_flags}"
10583    INCLUDE_FLAGS="$INCLUDE_FLAGS ${include_flags}"
10584fi
10585
10586
10587# Check whether --with-library-flags was given.
10588if test "${with_library_flags+set}" = set; then :
10589  withval=$with_library_flags; library_flags="$withval"
10590else
10591  library_flags="no"
10592fi
10593
10594if test ${library_flags} != "no"; then
10595    LDFLAGS="$LDFLAGS ${library_flags}"
10596    LDIR_FLAGS="$LDIR_FLAGS ${library_flags}"
10597fi
10598
10599#--------------------------------------------------------------------
10600# Check for FFI interface libraries for invocations
10601# We enable ffi by default now, as it's the only well supported
10602# library nowadays.
10603#--------------------------------------------------------------------
10604do_broken_libffi=no
10605do_broken_libffcall=no
10606do_enable_libffi=yes
10607do_enable_libffcall=no
10608case "$target_cpu" in
10609  sparc64*)
10610    case "$target_os" in
10611      solaris*)
10612        do_broken_libffcall=yes;
10613        do_enable_libffi=yes;
10614        do_enable_libffcall=no;;
10615      *) ;;
10616    esac ;;
10617  *) ;;
10618esac
10619
10620if test "$exceptions" = "yes"; then
10621  # ffcall will mess up native exceptions, so we must disable it.
10622  do_broken_libffcall=yes
10623  do_enable_libffcall=no
10624fi
10625
10626# Check whether --enable-libffi was given.
10627if test "${enable_libffi+set}" = set; then :
10628  enableval=$enable_libffi;
10629else
10630  enable_libffi=$do_enable_libffi
10631fi
10632
10633
10634# Check whether --enable-ffcall was given.
10635if test "${enable_ffcall+set}" = set; then :
10636  enableval=$enable_ffcall;
10637else
10638  enable_ffcall=$do_enable_libffcall
10639fi
10640
10641
10642if test $enable_ffcall = yes; then
10643  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ffcall has been enabled ... this is deprecated ... please install and use a recent libffi if possible" >&5
10644$as_echo "$as_me: WARNING: ffcall has been enabled ... this is deprecated ... please install and use a recent libffi if possible" >&2;}
10645fi
10646
10647# Check whether --enable-invocations was given.
10648if test "${enable_invocations+set}" = set; then :
10649  enableval=$enable_invocations;
10650else
10651  enable_invocations=yes
10652fi
10653
10654
10655# DO isn't used on apple-apple-apple
10656if test $LIBRARY_COMBO = apple-apple-apple; then
10657  enable_invocations=no
10658fi
10659
10660
10661# Check whether --with-ffi-include was given.
10662if test "${with_ffi_include+set}" = set; then :
10663  withval=$with_ffi_include; ffi_incdir="$withval"
10664else
10665  ffi_incdir="no"
10666fi
10667
10668if test ${ffi_incdir} != "no"; then
10669    CPPFLAGS="$CPPFLAGS -I${ffi_incdir}"
10670    INCLUDE_FLAGS="$INCLUDE_FLAGS -I${ffi_incdir}"
10671fi
10672
10673
10674# Check whether --with-ffi-library was given.
10675if test "${with_ffi_library+set}" = set; then :
10676  withval=$with_ffi_library; ffi_libdir="$withval"
10677else
10678  ffi_libdir="no"
10679fi
10680
10681if test ${ffi_libdir} != "no"; then
10682
10683case "$target_os" in
10684	netbsd*)
10685		LDFLAGS="$LDFLAGS -L${ffi_libdir} -Wl,-R${ffi_libdir}"
10686		LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${ffi_libdir} -L${ffi_libdir}";;
10687	*)
10688		LDFLAGS="$LDFLAGS -L${ffi_libdir}"
10689		LDIR_FLAGS="$LDIR_FLAGS -L${ffi_libdir}";;
10690esac
10691
10692fi
10693
10694if test "$do_broken_libffi" = "no"; then
10695  if test -n "$PKG_CONFIG"; then
10696    if $PKG_CONFIG --exists libffi; then
10697      pkg_config_libffi=yes
10698      ffi_CFLAGS=`$PKG_CONFIG --cflags libffi`;
10699      CPPFLAGS="$CPPFLAGS $ffi_CFLAGS"
10700      INCLUDE_FLAGS="$INCLUDE_FLAGS $ffi_CFLAGS"
10701    fi
10702  fi
10703  ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
10704if test "x$ac_cv_header_ffi_h" = xyes; then :
10705  have_libffi=yes
10706else
10707  have_libffi=no
10708fi
10709
10710
10711else
10712  have_libffi=no
10713fi
10714if test "$do_broken_libffcall" = "no"; then
10715  for ac_header in callback.h
10716do :
10717  ac_fn_c_check_header_mongrel "$LINENO" "callback.h" "ac_cv_header_callback_h" "$ac_includes_default"
10718if test "x$ac_cv_header_callback_h" = xyes; then :
10719  cat >>confdefs.h <<_ACEOF
10720#define HAVE_CALLBACK_H 1
10721_ACEOF
10722 have_ffcall=yes
10723else
10724  have_ffcall=no
10725fi
10726
10727done
10728
10729else
10730  have_ffcall=no
10731fi
10732if test $have_ffcall = no; then
10733  enable_ffcall=no
10734  # If we don't have ffcall but do have libffi, use libffi
10735  if test $have_libffi = yes; then
10736    enable_libffi=yes
10737  fi
10738fi
10739if test $have_libffi = no; then
10740  enable_libffi=no
10741  # If we don't have libffi but do have ffcall, use ffcall
10742  if test $have_ffcall = yes; then
10743    if test $enable_ffcall = no; then
10744      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ffi support seems to be missing on this system ... please install a recent libffi" >&5
10745$as_echo "$as_me: WARNING: ffi support seems to be missing on this system ... please install a recent libffi" >&2;}
10746    fi
10747  fi
10748fi
10749
10750have_forward_hook=yes
10751saved_CPPFLAGS="$CPPFLAGS"
10752CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for forwarding callback in runtime" >&5
10754$as_echo_n "checking for forwarding callback in runtime... " >&6; }
10755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756/* end confdefs.h.  */
10757#include "$srcdir/config/config.forward2.m"
10758_ACEOF
10759if ac_fn_c_try_compile "$LINENO"; then :
10760  have_forward_hook=yes
10761else
10762  have_forward_hook=no
10763fi
10764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765if test $have_forward_hook = yes; then
10766
10767$as_echo "#define HAVE_FORWARD2 1" >>confdefs.h
10768
10769else
10770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772#include "$srcdir/config/config.forward.m"
10773_ACEOF
10774if ac_fn_c_try_compile "$LINENO"; then :
10775  have_forward_hook=yes
10776else
10777  have_forward_hook=no
10778fi
10779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780fi
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_forward_hook" >&5
10782$as_echo "$have_forward_hook" >&6; }
10783if test $have_forward_hook = no; then
10784  enable_libffi=no
10785  enable_ffcall=no
10786fi
10787CPPFLAGS="$saved_CPPFLAGS"
10788
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FFI library usage" >&5
10790$as_echo_n "checking FFI library usage... " >&6; }
10791WITH_FFI=none
10792if test $enable_libffi = yes; then
10793
10794$as_echo "#define USE_LIBFFI 1" >>confdefs.h
10795
10796  WITH_FFI=libffi
10797  if test "$pkg_config_libffi" = "yes"; then
10798    ffi_LIBS=`pkg-config --libs libffi`
10799  else
10800    ffi_LIBS=-lffi
10801  fi
10802  LIBS="$ffi_LIBS $LIBS"
10803  if test "$cross_compiling" = yes; then :
10804  ffi_ok="$cross_ffi_ok"
10805else
10806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807/* end confdefs.h.  */
10808#include "$srcdir/config/config.ffi.c"
10809_ACEOF
10810if ac_fn_c_try_run "$LINENO"; then :
10811  ffi_ok="yes"
10812else
10813  ffi_ok="no"
10814fi
10815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10816  conftest.$ac_objext conftest.beam conftest.$ac_ext
10817fi
10818
10819  if test $ffi_ok = yes; then
10820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: libffi" >&5
10821$as_echo "libffi" >&6; }
10822    if test $do_broken_libffi = yes; then
10823      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ffi may be broken on this system ... try enabling ffcall" >&5
10824$as_echo "$as_me: WARNING: ffi may be broken on this system ... try enabling ffcall" >&2;}
10825    fi
10826    for ac_func in ffi_prep_closure_loc
10827do :
10828  ac_fn_c_check_func "$LINENO" "ffi_prep_closure_loc" "ac_cv_func_ffi_prep_closure_loc"
10829if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes; then :
10830  cat >>confdefs.h <<_ACEOF
10831#define HAVE_FFI_PREP_CLOSURE_LOC 1
10832_ACEOF
10833
10834fi
10835done
10836
10837  else
10838    as_fn_error $? "The ffi library (libffi) does not appear to be working.  Perhaps it's missing or you need a more recent version.  Version 3.0.9 or later should work, and you can find a link to it n the list of packages for download at http://www.gnustep.org/resources/sources.html" "$LINENO" 5
10839  fi
10840elif test $enable_ffcall = yes; then
10841
10842$as_echo "#define USE_FFCALL 1" >>confdefs.h
10843
10844  WITH_FFI=ffcall
10845  LIBS="-lcallback -lavcall $LIBS"
10846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847/* end confdefs.h.  */
10848#include <callback.h>
10849int
10850main ()
10851{
10852
10853  ;
10854  return 0;
10855}
10856_ACEOF
10857if ac_fn_c_try_link "$LINENO"; then :
10858  ffi_ok="yes"
10859else
10860  ffi_ok="no"
10861fi
10862rm -f core conftest.err conftest.$ac_objext \
10863    conftest$ac_exeext conftest.$ac_ext
10864  if test $ffi_ok = yes; then
10865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ffcall" >&5
10866$as_echo "ffcall" >&6; }
10867  fi
10868  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ffcall is broken on some systems and is deprecated ... try enabling ffi" >&5
10869$as_echo "$as_me: WARNING: ffcall is broken on some systems and is deprecated ... try enabling ffi" >&2;}
10870else
10871  ffi_ok=no
10872fi
10873
10874if test $enable_ffcall = yes -a $ffi_ok = yes; then
10875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ffcall trampolines work" >&5
10876$as_echo_n "checking if ffcall trampolines work... " >&6; }
10877  if test "$cross_compiling" = yes; then :
10878  have_working_trampoline=yes
10879else
10880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h.  */
10882#include "$srcdir/config/config.trampoline.c"
10883_ACEOF
10884if ac_fn_c_try_run "$LINENO"; then :
10885  have_working_trampoline=yes
10886else
10887  have_working_trampoline=no
10888fi
10889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10890  conftest.$ac_objext conftest.beam conftest.$ac_ext
10891fi
10892
10893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_working_trampoline" >&5
10894$as_echo "$have_working_trampoline" >&6; }
10895fi
10896
10897if test $ffi_ok = no; then
10898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10899$as_echo "none" >&6; }
10900  echo
10901  if test $have_forward_hook = no; then
10902    echo "You do not have an up-to-date libobjc library installed"
10903  elif test "$have_working_trampoline" = no; then
10904    echo "You have ffcall, but it does not work properly. Most likely because"
10905    echo "your system's security policy is blocking some parts of ffcall"
10906    echo "we recommend installing libffi instead."
10907  else
10908    echo "You do not have either ffcall or libffi installed/enabled, or configure needs"
10909    echo "--with-ffi-include and/or --with-ffi-library flags so GNUstep can find them,"
10910    echo "or you have ffcall but gnustep-make is configured to use native exceptions"
10911    echo "(native exceptions are not compatible with ffcall)."
10912  fi
10913  echo "GNUstep requires libffi (or ffcall) and proper libobjc hooks to do"
10914  echo "invocations and DO."
10915  echo "(This does not apply on apple-apple-apple systems where DO is"
10916  echo "not compatible with other GNUstep systems.)"
10917  if test $enable_invocations = yes; then
10918    echo
10919    echo "You most likely do not want to build base without invocation support."
10920    echo "Many things (including Distributed Objects and undo/redo), won't work"
10921    echo "at all without invocations."
10922    echo "If you really want to build -base without invocation support,"
10923    echo "add --disable-invocations to the configure arguments."
10924    echo "For more information, read the GNUstep build guide, ffcall section:"
10925    echo "http://gnustep.made-it.com/BuildGuide/index.html"
10926    as_fn_error $? "Incomplete support for ffi functionality." "$LINENO" 5
10927  fi
10928  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Incomplete support for ffi funtionality." >&5
10929$as_echo "$as_me: WARNING: Incomplete support for ffi funtionality." >&2;}
10930fi
10931
10932
10933
10934#--------------------------------------------------------------------
10935# Check for iconv support (for Unicode conversion).
10936#--------------------------------------------------------------------
10937# Do this before checking for xml2,  as xml2 may require iconv.
10938#
10939# We need to find an iconv library that matches the installed iconv.h header
10940# (if any). It is important to check header/library compatibility. It's
10941# fairly common to have iconv support both in libc and from libiconv. In that
10942# case, a naive check that iconv() is in libc will succeed, but if we use
10943# libiconv's iconv.h, it will redefine iconv() to functions that exist
10944# only in libiconv, and we'll get link errors.
10945#
10946# Some versions of iconv don't support the '//TRANSLIT' option, which is
10947# needed for a lossy conversion (where we pick the closest equivalent for
10948# any character present in the source string which does not exist in the
10949# destination characterset), so we check for support of that first.
10950
10951# First, check if there's a working iconv in libc (ie. if the test program
10952# runs without any extra flags).
10953# Check whether --enable-iconv was given.
10954if test "${enable_iconv+set}" = set; then :
10955  enableval=$enable_iconv;
10956else
10957  enable_iconv=yes
10958fi
10959
10960
10961if test $enable_iconv = yes; then
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv support" >&5
10963$as_echo_n "checking iconv support... " >&6; }
10964if test "$cross_compiling" = yes; then :
10965  found_iconv="$cross_found_iconv_libc"
10966else
10967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969#include <iconv.h>
10970int main(int argc,char **argv)
10971{ return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
10972
10973_ACEOF
10974if ac_fn_c_try_run "$LINENO"; then :
10975  # libc has a working iconv.
10976
10977$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10978
10979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in libc" >&5
10980$as_echo "yes, in libc" >&6; }
10981  found_iconv=yes
10982
10983else
10984  found_iconv=no
10985
10986fi
10987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10988  conftest.$ac_objext conftest.beam conftest.$ac_ext
10989fi
10990
10991
10992if test $found_iconv = no ; then
10993  # libc doesn't have a working iconv with translit.
10994  # Try adding -liconv and any user supplied directory.
10995
10996# Check whether --with-libiconv-library was given.
10997if test "${with_libiconv_library+set}" = set; then :
10998  withval=$with_libiconv_library; libiconv_libdir="$withval"
10999else
11000  libiconv_libdir="no"
11001fi
11002
11003
11004  if test "$libiconv_libdir" != "no"; then
11005
11006case "$target_os" in
11007	netbsd*)
11008		LDFLAGS="$LDFLAGS -L${libiconv_libdir} -Wl,-R${libiconv_libdir}"
11009		LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${libiconv_libdir} -L${libiconv_libdir}";;
11010	*)
11011		LDFLAGS="$LDFLAGS -L${libiconv_libdir}"
11012		LDIR_FLAGS="$LDIR_FLAGS -L${libiconv_libdir}";;
11013esac
11014
11015  fi
11016
11017  old_LIBS="$LIBS"
11018  LIBS="-liconv $LIBS"
11019  if test "$cross_compiling" = yes; then :
11020  found_iconv="$cross_found_iconv_liconv";
11021    if test "$found_iconv" = "no"; then
11022      LIBS="$old_LIBS"
11023    fi
11024
11025else
11026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027/* end confdefs.h.  */
11028#include <iconv.h>
11029  int main(int argc,char **argv)
11030  { return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
11031
11032_ACEOF
11033if ac_fn_c_try_run "$LINENO"; then :
11034  # -liconv works.
11035
11036$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11037
11038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, -liconv" >&5
11039$as_echo "yes, -liconv" >&6; }
11040    found_iconv=yes
11041
11042else
11043  found_iconv=no
11044    LIBS="$old_LIBS"
11045
11046fi
11047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11048  conftest.$ac_objext conftest.beam conftest.$ac_ext
11049fi
11050
11051fi
11052
11053if test $found_iconv = no ; then
11054  # -liconv with translit didn't work. Try giconv.h and -lgiconv.
11055  # BSDs install this lib as libgiconv.
11056  old_LIBS="$LIBS"
11057  LIBS="-lgiconv $LIBS"
11058  if test "$cross_compiling" = yes; then :
11059  found_iconv="$cross_found_iconv_lgiconv";
11060    if test "$found_iconv" = "no"; then
11061      LIBS="$old_LIBS"
11062    fi
11063
11064else
11065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h.  */
11067#include <giconv.h>
11068  int main(int argc,char **argv)
11069  { return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
11070
11071_ACEOF
11072if ac_fn_c_try_run "$LINENO"; then :
11073
11074$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11075
11076
11077$as_echo "#define HAVE_GICONV 1" >>confdefs.h
11078
11079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, -lgiconv" >&5
11080$as_echo "yes, -lgiconv" >&6; }
11081    found_iconv=yes
11082
11083else
11084  found_iconv=no
11085    LIBS="$old_LIBS"
11086
11087fi
11088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11089  conftest.$ac_objext conftest.beam conftest.$ac_ext
11090fi
11091
11092fi
11093
11094# Check whether --enable-stricticonv was given.
11095if test "${enable_stricticonv+set}" = set; then :
11096  enableval=$enable_stricticonv;
11097else
11098  enable_stricticonv=no
11099fi
11100
11101if test $enable_stricticonv = yes; then
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking non-lossy iconv support" >&5
11103$as_echo_n "checking non-lossy iconv support... " >&6; }
11104if test "$cross_compiling" = yes; then :
11105  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11107as_fn_error $? "cannot run test program while cross compiling
11108See \`config.log' for more details" "$LINENO" 5; }
11109else
11110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h.  */
11112#include <iconv.h>
11113int main(int argc,char **argv)
11114{ return iconv_open("UTF-8","ASCII") == -1 ? 1 : 0; }
11115
11116_ACEOF
11117if ac_fn_c_try_run "$LINENO"; then :
11118  # libc has a working iconv.
11119
11120$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11121
11122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in libc" >&5
11123$as_echo "yes, in libc" >&6; }
11124  found_iconv=yes
11125
11126else
11127  found_iconv=no
11128
11129fi
11130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11131  conftest.$ac_objext conftest.beam conftest.$ac_ext
11132fi
11133
11134
11135if test $found_iconv = no ; then
11136  # libc doesn't have a working iconv. Try adding -liconv and any user
11137  # supplied directory.
11138
11139# Check whether --with-libiconv-library was given.
11140if test "${with_libiconv_library+set}" = set; then :
11141  withval=$with_libiconv_library; libiconv_libdir="$withval"
11142else
11143  libiconv_libdir="no"
11144fi
11145
11146
11147  if test "$libiconv_libdir" != "no"; then
11148
11149case "$target_os" in
11150	netbsd*)
11151		LDFLAGS="$LDFLAGS -L${libiconv_libdir} -Wl,-R${libiconv_libdir}"
11152		LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${libiconv_libdir} -L${libiconv_libdir}";;
11153	*)
11154		LDFLAGS="$LDFLAGS -L${libiconv_libdir}"
11155		LDIR_FLAGS="$LDIR_FLAGS -L${libiconv_libdir}";;
11156esac
11157
11158  fi
11159
11160  old_LIBS="$LIBS"
11161  LIBS="-liconv $LIBS"
11162  if test "$cross_compiling" = yes; then :
11163  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11165as_fn_error $? "cannot run test program while cross compiling
11166See \`config.log' for more details" "$LINENO" 5; }
11167else
11168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169/* end confdefs.h.  */
11170#include <iconv.h>
11171  int main(int argc,char **argv)
11172  { return iconv_open("UTF-8","ASCII") == -1 ? 1 : 0; }
11173
11174_ACEOF
11175if ac_fn_c_try_run "$LINENO"; then :
11176  # -liconv works.
11177
11178$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11179
11180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, -liconv" >&5
11181$as_echo "yes, -liconv" >&6; }
11182    found_iconv=yes
11183
11184else
11185  found_iconv=no
11186    LIBS="$old_LIBS"
11187
11188fi
11189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11190  conftest.$ac_objext conftest.beam conftest.$ac_ext
11191fi
11192
11193fi
11194
11195if test $found_iconv = no ; then
11196  # -liconv didn't work. Try giconv.h and -lgiconv.
11197  # BSDs install this lib as libgiconv.
11198  old_LIBS="$LIBS"
11199  LIBS="-lgiconv $LIBS"
11200  if test "$cross_compiling" = yes; then :
11201  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11203as_fn_error $? "cannot run test program while cross compiling
11204See \`config.log' for more details" "$LINENO" 5; }
11205else
11206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207/* end confdefs.h.  */
11208#include <giconv.h>
11209  int main(int argc,char **argv)
11210  { return iconv_open("UTF-8","ASCII") == -1 ? 1 : 0; }
11211
11212_ACEOF
11213if ac_fn_c_try_run "$LINENO"; then :
11214
11215$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11216
11217
11218$as_echo "#define HAVE_GICONV 1" >>confdefs.h
11219
11220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, -lgiconv" >&5
11221$as_echo "yes, -lgiconv" >&6; }
11222    found_iconv=yes
11223
11224else
11225  found_iconv=no
11226    LIBS="$old_LIBS"
11227
11228fi
11229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11230  conftest.$ac_objext conftest.beam conftest.$ac_ext
11231fi
11232
11233fi
11234fi
11235
11236if test $found_iconv = no ; then
11237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
11239  echo
11240  echo "You do not appear to have usable iconv header/library."
11241  echo "Building without them will disable much characterset support."
11242  echo "If you really want to build gnustep-base without character conversion"
11243  echo " support, please add --disable-iconv to the configure arguments."
11244  as_fn_error $? "Missing support for character conversion functionality." "$LINENO" 5
11245fi
11246fi
11247
11248#--------------------------------------------------------------------
11249# Check recent libxml2 for GSXML and NSXMLNode
11250# See DEPENDENCIES POLICY at the start of this file.
11251#--------------------------------------------------------------------
11252# Check whether --enable-xml was given.
11253if test "${enable_xml+set}" = set; then :
11254  enableval=$enable_xml;
11255else
11256  enable_xml=yes
11257fi
11258
11259
11260HAVE_LIBXML=0
11261
11262if test $enable_xml = yes; then
11263
11264pkg_failed=no
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
11266$as_echo_n "checking for XML... " >&6; }
11267
11268if test -n "$XML_CFLAGS"; then
11269    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
11270 elif test -n "$PKG_CONFIG"; then
11271    if test -n "$PKG_CONFIG" && \
11272    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.3.0\""; } >&5
11273  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.3.0") 2>&5
11274  ac_status=$?
11275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276  test $ac_status = 0; }; then
11277  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.3.0" 2>/dev/null`
11278		      test "x$?" != "x0" && pkg_failed=yes
11279else
11280  pkg_failed=yes
11281fi
11282 else
11283    pkg_failed=untried
11284fi
11285if test -n "$XML_LIBS"; then
11286    pkg_cv_XML_LIBS="$XML_LIBS"
11287 elif test -n "$PKG_CONFIG"; then
11288    if test -n "$PKG_CONFIG" && \
11289    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.3.0\""; } >&5
11290  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.3.0") 2>&5
11291  ac_status=$?
11292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293  test $ac_status = 0; }; then
11294  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.3.0" 2>/dev/null`
11295		      test "x$?" != "x0" && pkg_failed=yes
11296else
11297  pkg_failed=yes
11298fi
11299 else
11300    pkg_failed=untried
11301fi
11302
11303
11304
11305if test $pkg_failed = yes; then
11306   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
11308
11309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11310        _pkg_short_errors_supported=yes
11311else
11312        _pkg_short_errors_supported=no
11313fi
11314        if test $_pkg_short_errors_supported = yes; then
11315	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.3.0" 2>&1`
11316        else
11317	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.3.0" 2>&1`
11318        fi
11319	# Put the nasty error message in config.log where it belongs
11320	echo "$XML_PKG_ERRORS" >&5
11321
11322
11323
11324
11325# Check whether --with-xml-prefix was given.
11326if test "${with_xml_prefix+set}" = set; then :
11327  withval=$with_xml_prefix; xml_config_prefix="$withval"
11328else
11329  xml_config_prefix=""
11330fi
11331
11332# Check whether --enable-xmltest was given.
11333if test "${enable_xmltest+set}" = set; then :
11334  enableval=$enable_xmltest;
11335else
11336  enable_xmltest=yes
11337fi
11338
11339
11340  if test x$xml_config_prefix != x ; then
11341    xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
11342    if test x${XML2_CONFIG+set} != xset ; then
11343      XML2_CONFIG=$xml_config_prefix/bin/xml2-config
11344    fi
11345    if test x${XML_CONFIG+set} != xset ; then
11346      XML_CONFIG=$xml_config_prefix/bin/xml-config
11347    fi
11348  fi
11349
11350  # Extract the first word of "xml2-config", so it can be a program name with args.
11351set dummy xml2-config; ac_word=$2
11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353$as_echo_n "checking for $ac_word... " >&6; }
11354if ${ac_cv_path_XML2_CONFIG+:} false; then :
11355  $as_echo_n "(cached) " >&6
11356else
11357  case $XML2_CONFIG in
11358  [\\/]* | ?:[\\/]*)
11359  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
11360  ;;
11361  *)
11362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363for as_dir in $PATH
11364do
11365  IFS=$as_save_IFS
11366  test -z "$as_dir" && as_dir=.
11367    for ac_exec_ext in '' $ac_executable_extensions; do
11368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371    break 2
11372  fi
11373done
11374  done
11375IFS=$as_save_IFS
11376
11377  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
11378  ;;
11379esac
11380fi
11381XML2_CONFIG=$ac_cv_path_XML2_CONFIG
11382if test -n "$XML2_CONFIG"; then
11383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
11384$as_echo "$XML2_CONFIG" >&6; }
11385else
11386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
11388fi
11389
11390
11391  if test "$XML2_CONFIG" = "no" ; then
11392    # Extract the first word of "xml-config", so it can be a program name with args.
11393set dummy xml-config; ac_word=$2
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395$as_echo_n "checking for $ac_word... " >&6; }
11396if ${ac_cv_path_XML_CONFIG+:} false; then :
11397  $as_echo_n "(cached) " >&6
11398else
11399  case $XML_CONFIG in
11400  [\\/]* | ?:[\\/]*)
11401  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
11402  ;;
11403  *)
11404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405for as_dir in $PATH
11406do
11407  IFS=$as_save_IFS
11408  test -z "$as_dir" && as_dir=.
11409    for ac_exec_ext in '' $ac_executable_extensions; do
11410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411    ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413    break 2
11414  fi
11415done
11416  done
11417IFS=$as_save_IFS
11418
11419  test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
11420  ;;
11421esac
11422fi
11423XML_CONFIG=$ac_cv_path_XML_CONFIG
11424if test -n "$XML_CONFIG"; then
11425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
11426$as_echo "$XML_CONFIG" >&6; }
11427else
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429$as_echo "no" >&6; }
11430fi
11431
11432
11433  else
11434    XML_CONFIG=$XML2_CONFIG
11435  fi
11436  min_xml_version=2.3.0
11437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
11438$as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
11439  no_xml=""
11440  if test "$XML_CONFIG" = "no" ; then
11441    XML_CFLAGS=""
11442    XML_LIBS="-lxml2"
11443
11444    ac_save_CFLAGS="$CFLAGS"
11445    ac_save_LIBS="$LIBS"
11446    CFLAGS="$CFLAGS $XML_CFLAGS"
11447    LIBS="$XML_LIBS $LIBS"
11448    rm -f conf.xmltest
11449    if test "$cross_compiling" = yes; then :
11450  echo $ac_n "cross compiling; assumed OK... $ac_c"
11451else
11452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453/* end confdefs.h.  */
11454
11455#include <stdlib.h>
11456#include <stdio.h>
11457#include <libxml/xmlversion.h>
11458#include <libxml/parser.h>
11459
11460int
11461main()
11462{
11463  int xml_major_version, xml_minor_version, xml_micro_version;
11464  int major, minor, micro;
11465  char *tmp_version;
11466
11467  system("touch conf.xmltest");
11468
11469  tmp_version = xmlStrdup("$min_xml_version");
11470  if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11471    printf("%s, bad version string\n", "$min_xml_version");
11472    exit(1);
11473  }
11474
11475  tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
11476  if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
11477    printf("%s, bad version string\n", "$min_xml_version");
11478    exit(1);
11479  }
11480
11481  if ((xml_major_version > major) ||
11482      ((xml_major_version == major) && (xml_minor_version > minor)) ||
11483      ((xml_major_version == major) && (xml_minor_version == minor) &&
11484       (xml_micro_version >= micro)))
11485    {
11486      return 0;
11487    }
11488  else
11489    {
11490      printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
11491	xml_major_version, xml_minor_version, xml_micro_version);
11492      printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
11493	major, minor, micro);
11494      printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
11495      printf("***\n");
11496      printf("*** If you have already installed a sufficiently new version, this error\n");
11497      printf("*** probably means that the wrong copy of the xml-config shell script is\n");
11498      printf("*** being found. The easiest way to fix this is to remove the old version\n");
11499      printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
11500      printf("*** correct copy of xml-config. (In this case, you will have to\n");
11501      printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11502      printf("*** so that the correct libraries are found at run-time))\n");
11503    }
11504  return 1;
11505}
11506
11507_ACEOF
11508if ac_fn_c_try_run "$LINENO"; then :
11509
11510else
11511  no_xml=yes
11512fi
11513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11514  conftest.$ac_objext conftest.beam conftest.$ac_ext
11515fi
11516
11517
11518    CFLAGS="$ac_save_CFLAGS"
11519    LIBS="$ac_save_LIBS"
11520  else
11521    XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
11522    XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
11523    xml_config_major_version=`$XML_CONFIG $xml_config_args --version | \
11524      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11525    xml_config_minor_version=`$XML_CONFIG $xml_config_args --version | \
11526      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11527    xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
11528      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11529
11530    if test "x$enable_xmltest" = "xyes" ; then
11531      ac_save_CFLAGS="$CFLAGS"
11532      ac_save_LIBS="$LIBS"
11533      CFLAGS="$CFLAGS $XML_CFLAGS"
11534      LIBS="$XML_LIBS $LIBS"
11535      rm -f conf.xmltest
11536      if test "$cross_compiling" = yes; then :
11537  echo $ac_n "cross compiling; assumed OK... $ac_c"
11538else
11539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540/* end confdefs.h.  */
11541
11542#include <stdlib.h>
11543#include <stdio.h>
11544#include <libxml/xmlversion.h>
11545#include <libxml/parser.h>
11546
11547int
11548main()
11549{
11550  int xml_major_version, xml_minor_version, xml_micro_version;
11551  int major, minor, micro;
11552  char *tmp_version;
11553
11554  system("touch conf.xmltest");
11555
11556  tmp_version = xmlStrdup("$min_xml_version");
11557  if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11558    printf("%s, bad version string\n", "$min_xml_version");
11559    exit(1);
11560  }
11561
11562  tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
11563  if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
11564    printf("%s, bad version string\n", "$min_xml_version");
11565    exit(1);
11566  }
11567
11568  if((xml_major_version != $xml_config_major_version) ||
11569     (xml_minor_version != $xml_config_minor_version) ||
11570     (xml_micro_version != $xml_config_micro_version))
11571    {
11572      printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
11573             $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
11574             xml_major_version, xml_minor_version, xml_micro_version);
11575      printf("*** was found! If xml-config was correct, then it is best\n");
11576      printf("*** to remove the old version of libxml. You may also be able to fix the error\n");
11577      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11578      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11579      printf("*** required on your system.\n");
11580      printf("*** If xml-config was wrong, set the environment variable XML_CONFIG\n");
11581      printf("*** to point to the correct copy of xml-config, and remove the file config.cache\n");
11582      printf("*** before re-running configure\n");
11583    }
11584  else
11585    {
11586      if ((xml_major_version > major) ||
11587          ((xml_major_version == major) && (xml_minor_version > minor)) ||
11588          ((xml_major_version == major) && (xml_minor_version == minor) &&
11589           (xml_micro_version >= micro)))
11590        {
11591          return 0;
11592        }
11593      else
11594        {
11595          printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
11596            xml_major_version, xml_minor_version, xml_micro_version);
11597          printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
11598            major, minor, micro);
11599          printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
11600          printf("***\n");
11601          printf("*** If you have already installed a sufficiently new version, this error\n");
11602          printf("*** probably means that the wrong copy of the xml-config shell script is\n");
11603          printf("*** being found. The easiest way to fix this is to remove the old version\n");
11604          printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
11605          printf("*** correct copy of xml-config. (In this case, you will have to\n");
11606          printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11607          printf("*** so that the correct libraries are found at run-time))\n");
11608        }
11609    }
11610  return 1;
11611}
11612
11613_ACEOF
11614if ac_fn_c_try_run "$LINENO"; then :
11615
11616else
11617  no_xml=yes
11618fi
11619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11620  conftest.$ac_objext conftest.beam conftest.$ac_ext
11621fi
11622
11623
11624      CFLAGS="$ac_save_CFLAGS"
11625      LIBS="$ac_save_LIBS"
11626    fi
11627  fi
11628
11629  if test "x$no_xml" = x ; then
11630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11631$as_echo "yes" >&6; }
11632    enable_libxml=yes
11633  else
11634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
11636    if test "$XML_CONFIG" = "no" ; then
11637      echo "*** The xml-config script installed by libxml could not be found"
11638      echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
11639      echo "*** your path, or set the XML_CONFIG environment variable to the"
11640      echo "*** full path to xml-config."
11641    else
11642      if test -f conf.xmltest ; then
11643        :
11644      else
11645        echo "*** Could not run libxml test program, checking why..."
11646        CFLAGS="$CFLAGS $XML_CFLAGS"
11647        LIBS="$LIBS $XML_LIBS"
11648              fi
11649    fi
11650
11651    XML_CFLAGS=""
11652    XML_LIBS=""
11653    enable_libxml=no
11654  fi
11655
11656
11657  rm -f conf.xmltest
11658
11659
11660elif test $pkg_failed = untried; then
11661     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662$as_echo "no" >&6; }
11663
11664
11665
11666# Check whether --with-xml-prefix was given.
11667if test "${with_xml_prefix+set}" = set; then :
11668  withval=$with_xml_prefix; xml_config_prefix="$withval"
11669else
11670  xml_config_prefix=""
11671fi
11672
11673# Check whether --enable-xmltest was given.
11674if test "${enable_xmltest+set}" = set; then :
11675  enableval=$enable_xmltest;
11676else
11677  enable_xmltest=yes
11678fi
11679
11680
11681  if test x$xml_config_prefix != x ; then
11682    xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
11683    if test x${XML2_CONFIG+set} != xset ; then
11684      XML2_CONFIG=$xml_config_prefix/bin/xml2-config
11685    fi
11686    if test x${XML_CONFIG+set} != xset ; then
11687      XML_CONFIG=$xml_config_prefix/bin/xml-config
11688    fi
11689  fi
11690
11691  # Extract the first word of "xml2-config", so it can be a program name with args.
11692set dummy xml2-config; ac_word=$2
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694$as_echo_n "checking for $ac_word... " >&6; }
11695if ${ac_cv_path_XML2_CONFIG+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  case $XML2_CONFIG in
11699  [\\/]* | ?:[\\/]*)
11700  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
11701  ;;
11702  *)
11703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704for as_dir in $PATH
11705do
11706  IFS=$as_save_IFS
11707  test -z "$as_dir" && as_dir=.
11708    for ac_exec_ext in '' $ac_executable_extensions; do
11709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712    break 2
11713  fi
11714done
11715  done
11716IFS=$as_save_IFS
11717
11718  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
11719  ;;
11720esac
11721fi
11722XML2_CONFIG=$ac_cv_path_XML2_CONFIG
11723if test -n "$XML2_CONFIG"; then
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
11725$as_echo "$XML2_CONFIG" >&6; }
11726else
11727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
11729fi
11730
11731
11732  if test "$XML2_CONFIG" = "no" ; then
11733    # Extract the first word of "xml-config", so it can be a program name with args.
11734set dummy xml-config; ac_word=$2
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736$as_echo_n "checking for $ac_word... " >&6; }
11737if ${ac_cv_path_XML_CONFIG+:} false; then :
11738  $as_echo_n "(cached) " >&6
11739else
11740  case $XML_CONFIG in
11741  [\\/]* | ?:[\\/]*)
11742  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
11743  ;;
11744  *)
11745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746for as_dir in $PATH
11747do
11748  IFS=$as_save_IFS
11749  test -z "$as_dir" && as_dir=.
11750    for ac_exec_ext in '' $ac_executable_extensions; do
11751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752    ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754    break 2
11755  fi
11756done
11757  done
11758IFS=$as_save_IFS
11759
11760  test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
11761  ;;
11762esac
11763fi
11764XML_CONFIG=$ac_cv_path_XML_CONFIG
11765if test -n "$XML_CONFIG"; then
11766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
11767$as_echo "$XML_CONFIG" >&6; }
11768else
11769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
11771fi
11772
11773
11774  else
11775    XML_CONFIG=$XML2_CONFIG
11776  fi
11777  min_xml_version=2.3.0
11778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
11779$as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
11780  no_xml=""
11781  if test "$XML_CONFIG" = "no" ; then
11782    XML_CFLAGS=""
11783    XML_LIBS="-lxml2"
11784
11785    ac_save_CFLAGS="$CFLAGS"
11786    ac_save_LIBS="$LIBS"
11787    CFLAGS="$CFLAGS $XML_CFLAGS"
11788    LIBS="$XML_LIBS $LIBS"
11789    rm -f conf.xmltest
11790    if test "$cross_compiling" = yes; then :
11791  echo $ac_n "cross compiling; assumed OK... $ac_c"
11792else
11793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794/* end confdefs.h.  */
11795
11796#include <stdlib.h>
11797#include <stdio.h>
11798#include <libxml/xmlversion.h>
11799#include <libxml/parser.h>
11800
11801int
11802main()
11803{
11804  int xml_major_version, xml_minor_version, xml_micro_version;
11805  int major, minor, micro;
11806  char *tmp_version;
11807
11808  system("touch conf.xmltest");
11809
11810  tmp_version = xmlStrdup("$min_xml_version");
11811  if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11812    printf("%s, bad version string\n", "$min_xml_version");
11813    exit(1);
11814  }
11815
11816  tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
11817  if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
11818    printf("%s, bad version string\n", "$min_xml_version");
11819    exit(1);
11820  }
11821
11822  if ((xml_major_version > major) ||
11823      ((xml_major_version == major) && (xml_minor_version > minor)) ||
11824      ((xml_major_version == major) && (xml_minor_version == minor) &&
11825       (xml_micro_version >= micro)))
11826    {
11827      return 0;
11828    }
11829  else
11830    {
11831      printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
11832	xml_major_version, xml_minor_version, xml_micro_version);
11833      printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
11834	major, minor, micro);
11835      printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
11836      printf("***\n");
11837      printf("*** If you have already installed a sufficiently new version, this error\n");
11838      printf("*** probably means that the wrong copy of the xml-config shell script is\n");
11839      printf("*** being found. The easiest way to fix this is to remove the old version\n");
11840      printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
11841      printf("*** correct copy of xml-config. (In this case, you will have to\n");
11842      printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11843      printf("*** so that the correct libraries are found at run-time))\n");
11844    }
11845  return 1;
11846}
11847
11848_ACEOF
11849if ac_fn_c_try_run "$LINENO"; then :
11850
11851else
11852  no_xml=yes
11853fi
11854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11855  conftest.$ac_objext conftest.beam conftest.$ac_ext
11856fi
11857
11858
11859    CFLAGS="$ac_save_CFLAGS"
11860    LIBS="$ac_save_LIBS"
11861  else
11862    XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
11863    XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
11864    xml_config_major_version=`$XML_CONFIG $xml_config_args --version | \
11865      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11866    xml_config_minor_version=`$XML_CONFIG $xml_config_args --version | \
11867      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11868    xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
11869      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11870
11871    if test "x$enable_xmltest" = "xyes" ; then
11872      ac_save_CFLAGS="$CFLAGS"
11873      ac_save_LIBS="$LIBS"
11874      CFLAGS="$CFLAGS $XML_CFLAGS"
11875      LIBS="$XML_LIBS $LIBS"
11876      rm -f conf.xmltest
11877      if test "$cross_compiling" = yes; then :
11878  echo $ac_n "cross compiling; assumed OK... $ac_c"
11879else
11880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881/* end confdefs.h.  */
11882
11883#include <stdlib.h>
11884#include <stdio.h>
11885#include <libxml/xmlversion.h>
11886#include <libxml/parser.h>
11887
11888int
11889main()
11890{
11891  int xml_major_version, xml_minor_version, xml_micro_version;
11892  int major, minor, micro;
11893  char *tmp_version;
11894
11895  system("touch conf.xmltest");
11896
11897  tmp_version = xmlStrdup("$min_xml_version");
11898  if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11899    printf("%s, bad version string\n", "$min_xml_version");
11900    exit(1);
11901  }
11902
11903  tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
11904  if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
11905    printf("%s, bad version string\n", "$min_xml_version");
11906    exit(1);
11907  }
11908
11909  if((xml_major_version != $xml_config_major_version) ||
11910     (xml_minor_version != $xml_config_minor_version) ||
11911     (xml_micro_version != $xml_config_micro_version))
11912    {
11913      printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
11914             $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
11915             xml_major_version, xml_minor_version, xml_micro_version);
11916      printf("*** was found! If xml-config was correct, then it is best\n");
11917      printf("*** to remove the old version of libxml. You may also be able to fix the error\n");
11918      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11919      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11920      printf("*** required on your system.\n");
11921      printf("*** If xml-config was wrong, set the environment variable XML_CONFIG\n");
11922      printf("*** to point to the correct copy of xml-config, and remove the file config.cache\n");
11923      printf("*** before re-running configure\n");
11924    }
11925  else
11926    {
11927      if ((xml_major_version > major) ||
11928          ((xml_major_version == major) && (xml_minor_version > minor)) ||
11929          ((xml_major_version == major) && (xml_minor_version == minor) &&
11930           (xml_micro_version >= micro)))
11931        {
11932          return 0;
11933        }
11934      else
11935        {
11936          printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
11937            xml_major_version, xml_minor_version, xml_micro_version);
11938          printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
11939            major, minor, micro);
11940          printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
11941          printf("***\n");
11942          printf("*** If you have already installed a sufficiently new version, this error\n");
11943          printf("*** probably means that the wrong copy of the xml-config shell script is\n");
11944          printf("*** being found. The easiest way to fix this is to remove the old version\n");
11945          printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
11946          printf("*** correct copy of xml-config. (In this case, you will have to\n");
11947          printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11948          printf("*** so that the correct libraries are found at run-time))\n");
11949        }
11950    }
11951  return 1;
11952}
11953
11954_ACEOF
11955if ac_fn_c_try_run "$LINENO"; then :
11956
11957else
11958  no_xml=yes
11959fi
11960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11961  conftest.$ac_objext conftest.beam conftest.$ac_ext
11962fi
11963
11964
11965      CFLAGS="$ac_save_CFLAGS"
11966      LIBS="$ac_save_LIBS"
11967    fi
11968  fi
11969
11970  if test "x$no_xml" = x ; then
11971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11972$as_echo "yes" >&6; }
11973    enable_libxml=yes
11974  else
11975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
11977    if test "$XML_CONFIG" = "no" ; then
11978      echo "*** The xml-config script installed by libxml could not be found"
11979      echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
11980      echo "*** your path, or set the XML_CONFIG environment variable to the"
11981      echo "*** full path to xml-config."
11982    else
11983      if test -f conf.xmltest ; then
11984        :
11985      else
11986        echo "*** Could not run libxml test program, checking why..."
11987        CFLAGS="$CFLAGS $XML_CFLAGS"
11988        LIBS="$LIBS $XML_LIBS"
11989              fi
11990    fi
11991
11992    XML_CFLAGS=""
11993    XML_LIBS=""
11994    enable_libxml=no
11995  fi
11996
11997
11998  rm -f conf.xmltest
11999
12000
12001else
12002	XML_CFLAGS=$pkg_cv_XML_CFLAGS
12003	XML_LIBS=$pkg_cv_XML_LIBS
12004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005$as_echo "yes" >&6; }
12006	enable_libxml=yes
12007fi
12008
12009  if test $enable_libxml = yes; then
12010    CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
12011    INCLUDE_FLAGS="$INCLUDE_FLAGS $XML_CFLAGS"
12012    LIBS="$XML_LIBS $LIBS"
12013    HAVE_LIBXML=1
12014
12015$as_echo "#define HAVE_LIBXML 1" >>confdefs.h
12016
12017    for ac_header in libxml/SAX2.h
12018do :
12019  ac_fn_c_check_header_mongrel "$LINENO" "libxml/SAX2.h" "ac_cv_header_libxml_SAX2_h" "$ac_includes_default"
12020if test "x$ac_cv_header_libxml_SAX2_h" = xyes; then :
12021  cat >>confdefs.h <<_ACEOF
12022#define HAVE_LIBXML_SAX2_H 1
12023_ACEOF
12024
12025fi
12026
12027done
12028
12029
12030    #--------------------------------------------------------------------
12031    # Check for (optional) libxslt
12032    #--------------------------------------------------------------------
12033    # Check whether --enable-xslt was given.
12034if test "${enable_xslt+set}" = set; then :
12035  enableval=$enable_xslt;
12036else
12037  enable_xslt=yes
12038fi
12039
12040
12041    if test $enable_xslt = yes; then
12042      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltApplyStylesheet in -lxslt" >&5
12043$as_echo_n "checking for xsltApplyStylesheet in -lxslt... " >&6; }
12044if ${ac_cv_lib_xslt_xsltApplyStylesheet+:} false; then :
12045  $as_echo_n "(cached) " >&6
12046else
12047  ac_check_lib_save_LIBS=$LIBS
12048LIBS="-lxslt  $LIBS"
12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050/* end confdefs.h.  */
12051
12052/* Override any GCC internal prototype to avoid an error.
12053   Use char because int might match the return type of a GCC
12054   builtin and then its argument prototype would still apply.  */
12055#ifdef __cplusplus
12056extern "C"
12057#endif
12058char xsltApplyStylesheet ();
12059int
12060main ()
12061{
12062return xsltApplyStylesheet ();
12063  ;
12064  return 0;
12065}
12066_ACEOF
12067if ac_fn_c_try_link "$LINENO"; then :
12068  ac_cv_lib_xslt_xsltApplyStylesheet=yes
12069else
12070  ac_cv_lib_xslt_xsltApplyStylesheet=no
12071fi
12072rm -f core conftest.err conftest.$ac_objext \
12073    conftest$ac_exeext conftest.$ac_ext
12074LIBS=$ac_check_lib_save_LIBS
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltApplyStylesheet" >&5
12077$as_echo "$ac_cv_lib_xslt_xsltApplyStylesheet" >&6; }
12078if test "x$ac_cv_lib_xslt_xsltApplyStylesheet" = xyes; then :
12079  xslt_ok=yes
12080else
12081  xslt_ok=no
12082fi
12083
12084      if test "$xslt_ok" = "yes"; then
12085	ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
12086if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
12087  xslthdr_ok=yes
12088else
12089  xslthdr_ok=no
12090fi
12091
12092
12093	if test "$xslthdr_ok" = "no"; then
12094	  xslt_ok=no
12095	fi
12096      fi
12097      if test "$xslt_ok" = "yes"; then
12098	HAVE_LIBXSLT=1
12099
12100$as_echo "#define HAVE_LIBXSLT 1" >>confdefs.h
12101
12102	LIBS="-lxslt $LIBS"
12103      else
12104	echo
12105	echo "You do not appear to have usable libxslt headers/library."
12106	echo "Building without them will disable the XSLT extensions."
12107	echo "If you really want to build gnustep-base without XSLT support,"
12108	echo "add --disable-xslt to the configure arguments to avoid warning."
12109	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing support for XSLT functionality." >&5
12110$as_echo "$as_me: WARNING: Missing support for XSLT functionality." >&2;}
12111      fi
12112    else
12113      HAVE_LIBXSLT=0
12114      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled support for XSLT funtionality." >&5
12115$as_echo "$as_me: WARNING: Disabled support for XSLT funtionality." >&2;}
12116    fi
12117
12118  else
12119    echo
12120    echo "You do not appear to have usable libxml2 headers/library."
12121    echo "Building without them will disable the GSXML and NSXMLNode."
12122    echo "If you really want to build gnustep-base without XML DOM support"
12123    echo " (though NSXMLParser is unaffected),  please"
12124    echo "add --disable-xml to the configure arguments."
12125    as_fn_error $? "Missing support for XML DOM functionality." "$LINENO" 5
12126  fi
12127else
12128  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: XML functionality disabled." >&5
12129$as_echo "$as_me: WARNING: XML functionality disabled." >&2;}
12130fi
12131
12132
12133#--------------------------------------------------------------------
12134# Check recent libgnutls for SSL streams.
12135# See DEPENDENCIES POLICY at the start of this file.
12136#--------------------------------------------------------------------
12137# Check whether --enable-tls was given.
12138if test "${enable_tls+set}" = set; then :
12139  enableval=$enable_tls;
12140else
12141  enable_tls=yes
12142fi
12143
12144
12145if test $enable_tls = yes; then
12146  HAVE_GNUTLS=0
12147  # Save CFLAGS and LIBS as AM_PATH_TLS clobbers these variables regardless
12148  # of the success of the macro.
12149  saved_LIBS="$LIBS"
12150  saved_CFLAGS="$CFLAGS"
12151
12152  if test -n "$PKG_CONFIG"; then
12153    if pkg-config --exists gnutls; then
12154      { $as_echo "$as_me:${as_lineno-$LINENO}: checking gnutls support" >&5
12155$as_echo_n "checking gnutls support... " >&6; }
12156      HAVE_GNUTLS=1
12157      TLS_CFLAGS=`$PKG_CONFIG --cflags gnutls`
12158      TLS_LIBS=`$PKG_CONFIG --libs gnutls`
12159    fi
12160  fi
12161
12162  if test $HAVE_GNUTLS = 0; then
12163    #  AM_PATH_TLS(2.0.1, enable_libgnutls=yes, enable_libgnutls=no)
12164
12165
12166# Check whether --with-tls-prefix was given.
12167if test "${with_tls_prefix+set}" = set; then :
12168  withval=$with_tls_prefix; tls_config_prefix="$withval"
12169else
12170  tls_config_prefix=""
12171fi
12172
12173# Check whether --enable-tlstest was given.
12174if test "${enable_tlstest+set}" = set; then :
12175  enableval=$enable_tlstest;
12176else
12177  enable_tlstest=yes
12178fi
12179
12180
12181  if test x$tls_config_prefix != x ; then
12182    tls_config_args="$tls_config_args --prefix=$tls_config_prefix"
12183    if test x${TLS_CONFIG+set} != xset ; then
12184      TLS_CONFIG=$tls_config_prefix/bin/libgnutls-config
12185    fi
12186  fi
12187  if test ! -x "$TLS_CONFIG" ; then
12188    unset TLS_CONFIG
12189  fi
12190
12191  # Extract the first word of "libgnutls-config", so it can be a program name with args.
12192set dummy libgnutls-config; ac_word=$2
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194$as_echo_n "checking for $ac_word... " >&6; }
12195if ${ac_cv_path_TLS_CONFIG+:} false; then :
12196  $as_echo_n "(cached) " >&6
12197else
12198  case $TLS_CONFIG in
12199  [\\/]* | ?:[\\/]*)
12200  ac_cv_path_TLS_CONFIG="$TLS_CONFIG" # Let the user override the test with a path.
12201  ;;
12202  *)
12203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204for as_dir in $PATH
12205do
12206  IFS=$as_save_IFS
12207  test -z "$as_dir" && as_dir=.
12208    for ac_exec_ext in '' $ac_executable_extensions; do
12209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210    ac_cv_path_TLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212    break 2
12213  fi
12214done
12215  done
12216IFS=$as_save_IFS
12217
12218  test -z "$ac_cv_path_TLS_CONFIG" && ac_cv_path_TLS_CONFIG="no"
12219  ;;
12220esac
12221fi
12222TLS_CONFIG=$ac_cv_path_TLS_CONFIG
12223if test -n "$TLS_CONFIG"; then
12224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TLS_CONFIG" >&5
12225$as_echo "$TLS_CONFIG" >&6; }
12226else
12227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228$as_echo "no" >&6; }
12229fi
12230
12231
12232  min_tls_version=1.4.0
12233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_tls_version" >&5
12234$as_echo_n "checking for libgnutls - version >= $min_tls_version... " >&6; }
12235  no_tls=""
12236  if test "$TLS_CONFIG" = "no" ; then
12237    if test x$tls_config_prefix != x ; then
12238      TLS_CFLAGS="-I$tls_config_prefix/include"
12239      TLS_LIBS="-L$tls_config_prefix/lib -lgnutls -lgcrypt"
12240    else
12241      TLS_CFLAGS="-I/usr/include"
12242      TLS_LIBS="-L/usr/lib -lgnutls -lgcrypt"
12243    fi
12244
12245    ac_save_CFLAGS="$CFLAGS"
12246    ac_save_LIBS="$LIBS"
12247    CFLAGS="$CFLAGS $TLS_CFLAGS"
12248    LIBS="$TLS_LIBS $LIBS"
12249    rm -f conf.tlstest
12250    if test "$cross_compiling" = yes; then :
12251  echo $ac_n "cross compiling; assumed OK... $ac_c"
12252else
12253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h.  */
12255
12256#include <stdlib.h>
12257#include <stdio.h>
12258#include <gnutls/gnutls.h>
12259
12260int
12261main()
12262{
12263  system("touch conf.tlstest");
12264
12265  if (gnutls_check_version("$min_tls_version") == 0)
12266    {
12267      printf("\n*** An old version of libgnutls (%s) was found.\n",
12268	gnutls_check_version(0));
12269      printf("*** You need a version of libtgnuls newer than $min_tls_version.\n");
12270      printf("*** If you have already installed a sufficiently new version, this error\n");
12271      printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
12272      printf("*** being found. You can fix this is by removing the old version\n");
12273      printf("*** of libgnutls.\n");
12274      return 1;
12275    }
12276  return 0;
12277}
12278
12279_ACEOF
12280if ac_fn_c_try_run "$LINENO"; then :
12281
12282else
12283  no_tls=yes
12284fi
12285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12286  conftest.$ac_objext conftest.beam conftest.$ac_ext
12287fi
12288
12289
12290    CFLAGS="$ac_save_CFLAGS"
12291    LIBS="$ac_save_LIBS"
12292  else
12293    TLS_CFLAGS=`$TLS_CONFIG $tls_config_args --cflags`
12294    TLS_LIBS=`$TLS_CONFIG $tls_config_args --libs`
12295    tls_config_major_version=`$TLS_CONFIG $tls_config_args --version | \
12296      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12297    tls_config_minor_version=`$TLS_CONFIG $tls_config_args --version | \
12298      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12299    tls_config_micro_version=`$TLS_CONFIG $tls_config_args --version | \
12300      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12301
12302    if test "x$enable_tlstest" = "xyes" ; then
12303      ac_save_CFLAGS="$CFLAGS"
12304      ac_save_LIBS="$LIBS"
12305      CFLAGS="$CFLAGS $TLS_CFLAGS"
12306      LIBS="$TLS_LIBS $LIBS"
12307      rm -f conf.tlstest
12308      if test "$cross_compiling" = yes; then :
12309  echo $ac_n "cross compiling; assumed OK... $ac_c"
12310else
12311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312/* end confdefs.h.  */
12313
12314#include <stdlib.h>
12315#include <stdio.h>
12316#include <gnutls/gnutls.h>
12317
12318int
12319main()
12320{
12321  system("touch conf.tlstest");
12322
12323  if (gnutls_check_version("$min_tls_version") == 0)
12324    {
12325      printf("\n*** An old version of libgnutls (%s) was found.\n",
12326	gnutls_check_version(0));
12327      printf("*** You need a version of libtgnuls newer than $min_tls_version.\n");
12328      printf("*** If you have already installed a sufficiently new version, this error\n");
12329      printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
12330      printf("*** being found. You can fix this is by removing the old version\n");
12331      printf("*** of libgnutls.\n");
12332      return 1;
12333    }
12334  return 0;
12335}
12336
12337_ACEOF
12338if ac_fn_c_try_run "$LINENO"; then :
12339
12340else
12341  no_tls=yes
12342fi
12343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12344  conftest.$ac_objext conftest.beam conftest.$ac_ext
12345fi
12346
12347
12348      CFLAGS="$ac_save_CFLAGS"
12349      LIBS="$ac_save_LIBS"
12350    fi
12351  fi
12352
12353  if test "x$no_tls" = x ; then
12354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355$as_echo "yes" >&6; }
12356    enable_libgnutls=yes
12357  else
12358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359$as_echo "no" >&6; }
12360    if test "$TLS_CONFIG" = "no" ; then
12361      echo "*** The libgnutls-config script installed by libgnutls could not be found"
12362      echo "*** If libtgnuls-config was installed in PREFIX, make sure PREFIX/bin is in"
12363      echo "*** your path."
12364    else
12365      if test -f conf.tlstest ; then
12366        :
12367      else
12368        echo "*** Could not run libtgnuls test program, checking why..."
12369        CFLAGS="$CFLAGS $TLS_CFLAGS"
12370        LIBS="$LIBS $TLS_LIBS"
12371              fi
12372    fi
12373
12374    TLS_CFLAGS=""
12375    TLS_LIBS=""
12376    enable_libgnutls=no
12377  fi
12378
12379
12380  rm -f conf.tlstest
12381
12382    if test $enable_libgnutls = yes; then
12383      HAVE_GNUTLS=1
12384    else
12385      HAVE_GNUTLS=0
12386    fi
12387  fi
12388  if test $HAVE_GNUTLS = 1; then
12389    if ! pkg-config --atleast-version=2.12 gnutls; then
12390      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
12391$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
12392if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
12393  $as_echo_n "(cached) " >&6
12394else
12395  ac_check_lib_save_LIBS=$LIBS
12396LIBS="-lgcrypt  $LIBS"
12397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398/* end confdefs.h.  */
12399
12400/* Override any GCC internal prototype to avoid an error.
12401   Use char because int might match the return type of a GCC
12402   builtin and then its argument prototype would still apply.  */
12403#ifdef __cplusplus
12404extern "C"
12405#endif
12406char gcry_control ();
12407int
12408main ()
12409{
12410return gcry_control ();
12411  ;
12412  return 0;
12413}
12414_ACEOF
12415if ac_fn_c_try_link "$LINENO"; then :
12416  ac_cv_lib_gcrypt_gcry_control=yes
12417else
12418  ac_cv_lib_gcrypt_gcry_control=no
12419fi
12420rm -f core conftest.err conftest.$ac_objext \
12421    conftest$ac_exeext conftest.$ac_ext
12422LIBS=$ac_check_lib_save_LIBS
12423fi
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
12425$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
12426if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
12427  have_gcrypt=yes
12428else
12429  have_gcrypt=no
12430fi
12431
12432      if test "$have_gcrypt" = "no"; then
12433        HAVE_GNUTLS=0
12434      else
12435        TLS_LIBS="$TLS_LIBS -lgcrypt"
12436      fi
12437    fi
12438  fi
12439  if test $HAVE_GNUTLS = 0; then
12440    # Restore the CFLAGS and LIBS because AM_PATH_TLS messes them
12441    LIBS="$saved_LIBS"
12442    CFLAGS="$saved_CFLAGS"
12443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444$as_echo "no" >&6; }
12445    echo
12446    echo "You do not appear to have usable libgnutls headers/library."
12447    echo "Building without them will disable SSL/TLS/HTTPS in NSStream,"
12448    echo "NSFileHandle, NSURLHandle and NSURLConnection."
12449    echo "If you really want to build gnustep-base without TLS support,"
12450    echo "add --disable-tls to the configure arguments."
12451    as_fn_error $? "Missing support for TLS functionality." "$LINENO" 5
12452  else
12453    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12454$as_echo "yes" >&6; }
12455    CPPFLAGS="$CPPFLAGS $TLS_CFLAGS"
12456    INCLUDE_FLAGS="$INCLUDE_FLAGS $TLS_CFLAGS"
12457    LIBS="$TLS_LIBS $LIBS"
12458    for ac_func in gnutls_transport_set_errno
12459do :
12460  ac_fn_c_check_func "$LINENO" "gnutls_transport_set_errno" "ac_cv_func_gnutls_transport_set_errno"
12461if test "x$ac_cv_func_gnutls_transport_set_errno" = xyes; then :
12462  cat >>confdefs.h <<_ACEOF
12463#define HAVE_GNUTLS_TRANSPORT_SET_ERRNO 1
12464_ACEOF
12465
12466fi
12467done
12468
12469    if test "$ac_cv_func_gnutls_transport_set_errno" = "no"; then
12470      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing support for thread-safe error handling in GNUTLS.  Please check that you have the most recent version installed (2.0 or later chould be fine)." >&5
12471$as_echo "$as_me: WARNING: Missing support for thread-safe error handling in GNUTLS.  Please check that you have the most recent version installed (2.0 or later chould be fine)." >&2;}
12472    fi
12473    for ac_func in gnutls_x509_privkey_import2
12474do :
12475  ac_fn_c_check_func "$LINENO" "gnutls_x509_privkey_import2" "ac_cv_func_gnutls_x509_privkey_import2"
12476if test "x$ac_cv_func_gnutls_x509_privkey_import2" = xyes; then :
12477  cat >>confdefs.h <<_ACEOF
12478#define HAVE_GNUTLS_X509_PRIVKEY_IMPORT2 1
12479_ACEOF
12480
12481fi
12482done
12483
12484  fi
12485else
12486  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled support for TLS funtionality." >&5
12487$as_echo "$as_me: WARNING: Disabled support for TLS funtionality." >&2;}
12488  HAVE_GNUTLS=0
12489fi
12490if test $HAVE_GNUTLS = 1; then
12491
12492cat >>confdefs.h <<_ACEOF
12493#define HAVE_GNUTLS $HAVE_GNUTLS
12494_ACEOF
12495
12496fi
12497
12498
12499#--------------------------------------------------------------------
12500# Check for NSNetServices
12501# See DEPENDENCIES POLICY at the start of this file.
12502#--------------------------------------------------------------------
12503HAVE_MDNS=0
12504HAVE_AVAHI=0
12505# Check whether --enable-zeroconf was given.
12506if test "${enable_zeroconf+set}" = set; then :
12507  enableval=$enable_zeroconf;
12508else
12509  enable_zeroconf=yes
12510fi
12511
12512
12513# Check whether --with-zeroconf-api was given.
12514if test "${with_zeroconf_api+set}" = set; then :
12515  withval=$with_zeroconf_api; zeroconf_api="$withval"
12516else
12517  zeroconf_api="any"
12518fi
12519
12520if test $enable_zeroconf = yes; then
12521  if test "$zeroconf_api" = "any" || test "$zeroconf_api" = "mdns"; then
12522    for ac_header in dns_sd.h
12523do :
12524  ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
12525if test "x$ac_cv_header_dns_sd_h" = xyes; then :
12526  cat >>confdefs.h <<_ACEOF
12527#define HAVE_DNS_SD_H 1
12528_ACEOF
12529 have_mdns=yes
12530else
12531  have_mdns=no
12532fi
12533
12534done
12535
12536    if test "$have_mdns" = "yes"; then
12537      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceBrowse in -ldns_sd" >&5
12538$as_echo_n "checking for DNSServiceBrowse in -ldns_sd... " >&6; }
12539if ${ac_cv_lib_dns_sd_DNSServiceBrowse+:} false; then :
12540  $as_echo_n "(cached) " >&6
12541else
12542  ac_check_lib_save_LIBS=$LIBS
12543LIBS="-ldns_sd  $LIBS"
12544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545/* end confdefs.h.  */
12546
12547/* Override any GCC internal prototype to avoid an error.
12548   Use char because int might match the return type of a GCC
12549   builtin and then its argument prototype would still apply.  */
12550#ifdef __cplusplus
12551extern "C"
12552#endif
12553char DNSServiceBrowse ();
12554int
12555main ()
12556{
12557return DNSServiceBrowse ();
12558  ;
12559  return 0;
12560}
12561_ACEOF
12562if ac_fn_c_try_link "$LINENO"; then :
12563  ac_cv_lib_dns_sd_DNSServiceBrowse=yes
12564else
12565  ac_cv_lib_dns_sd_DNSServiceBrowse=no
12566fi
12567rm -f core conftest.err conftest.$ac_objext \
12568    conftest$ac_exeext conftest.$ac_ext
12569LIBS=$ac_check_lib_save_LIBS
12570fi
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceBrowse" >&5
12572$as_echo "$ac_cv_lib_dns_sd_DNSServiceBrowse" >&6; }
12573if test "x$ac_cv_lib_dns_sd_DNSServiceBrowse" = xyes; then :
12574  have_mdns=yes
12575else
12576  have_mdns=no
12577fi
12578
12579      if test "$have_mdns" = "yes"; then
12580        MDNS_LIBS="-ldns_sd"
12581        HAVE_MDNS=1
12582      fi
12583    fi
12584  fi
12585  if test "$zeroconf_api" = "any" || test "$zeroconf_api" = "avahi"; then
12586    for ac_header in avahi-client/client.h
12587do :
12588  ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default"
12589if test "x$ac_cv_header_avahi_client_client_h" = xyes; then :
12590  cat >>confdefs.h <<_ACEOF
12591#define HAVE_AVAHI_CLIENT_CLIENT_H 1
12592_ACEOF
12593 have_avahi=yes
12594else
12595  have_avahi=no
12596fi
12597
12598done
12599
12600    if test "$have_avahi" = "yes"; then
12601      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
12602$as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
12603if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606  ac_check_lib_save_LIBS=$LIBS
12607LIBS="-lavahi-client  $LIBS"
12608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h.  */
12610
12611/* Override any GCC internal prototype to avoid an error.
12612   Use char because int might match the return type of a GCC
12613   builtin and then its argument prototype would still apply.  */
12614#ifdef __cplusplus
12615extern "C"
12616#endif
12617char avahi_client_new ();
12618int
12619main ()
12620{
12621return avahi_client_new ();
12622  ;
12623  return 0;
12624}
12625_ACEOF
12626if ac_fn_c_try_link "$LINENO"; then :
12627  ac_cv_lib_avahi_client_avahi_client_new=yes
12628else
12629  ac_cv_lib_avahi_client_avahi_client_new=no
12630fi
12631rm -f core conftest.err conftest.$ac_objext \
12632    conftest$ac_exeext conftest.$ac_ext
12633LIBS=$ac_check_lib_save_LIBS
12634fi
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
12636$as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
12637if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
12638  have_avahi=yes
12639else
12640  have_avahi=no
12641fi
12642
12643      if test "$have_avahi" = "yes"; then
12644        AVAHI_LIBS="-lavahi-common -lavahi-client"
12645        HAVE_AVAHI=1
12646      fi
12647    fi
12648  fi
12649  # If we have both APIs, prefer Avahi, because the mDNS API
12650  # is most certainly the compatability one
12651  if test "$have_avahi" = "yes" && test "$have_mdns" = "yes"; then
12652    LIBS="$AVAHI_LIBS $LIBS"
12653    HAVE_MDNS=0
12654  else
12655    # One of those will be empty.
12656    LIBS="$AVAHI_LIBS $MDNS_LIBS $LIBS"
12657  fi
12658fi
12659
12660
12661#--------------------------------------------------------------------
12662# Check for International Components for Unicode
12663# See DEPENDENCIES POLICY at the start of this file.
12664#--------------------------------------------------------------------
12665HAVE_ICU=0
12666# Check whether --enable-icu was given.
12667if test "${enable_icu+set}" = set; then :
12668  enableval=$enable_icu;
12669else
12670  enable_icu=yes
12671fi
12672
12673
12674if test "$enable_icu" = "yes"; then
12675
12676pkg_failed=no
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
12678$as_echo_n "checking for ICU... " >&6; }
12679
12680if test -n "$ICU_CFLAGS"; then
12681    pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
12682 elif test -n "$PKG_CONFIG"; then
12683    if test -n "$PKG_CONFIG" && \
12684    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n > 49.0\""; } >&5
12685  ($PKG_CONFIG --exists --print-errors "icu-i18n > 49.0") 2>&5
12686  ac_status=$?
12687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688  test $ac_status = 0; }; then
12689  pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n > 49.0" 2>/dev/null`
12690		      test "x$?" != "x0" && pkg_failed=yes
12691else
12692  pkg_failed=yes
12693fi
12694 else
12695    pkg_failed=untried
12696fi
12697if test -n "$ICU_LIBS"; then
12698    pkg_cv_ICU_LIBS="$ICU_LIBS"
12699 elif test -n "$PKG_CONFIG"; then
12700    if test -n "$PKG_CONFIG" && \
12701    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n > 49.0\""; } >&5
12702  ($PKG_CONFIG --exists --print-errors "icu-i18n > 49.0") 2>&5
12703  ac_status=$?
12704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12705  test $ac_status = 0; }; then
12706  pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n > 49.0" 2>/dev/null`
12707		      test "x$?" != "x0" && pkg_failed=yes
12708else
12709  pkg_failed=yes
12710fi
12711 else
12712    pkg_failed=untried
12713fi
12714
12715
12716
12717if test $pkg_failed = yes; then
12718   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
12720
12721if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12722        _pkg_short_errors_supported=yes
12723else
12724        _pkg_short_errors_supported=no
12725fi
12726        if test $_pkg_short_errors_supported = yes; then
12727	        ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n > 49.0" 2>&1`
12728        else
12729	        ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n > 49.0" 2>&1`
12730        fi
12731	# Put the nasty error message in config.log where it belongs
12732	echo "$ICU_PKG_ERRORS" >&5
12733
12734	as_fn_error $? "Package requirements (icu-i18n > 49.0) were not met:
12735
12736$ICU_PKG_ERRORS
12737
12738Consider adjusting the PKG_CONFIG_PATH environment variable if you
12739installed software in a non-standard prefix.
12740
12741Alternatively, you may set the environment variables ICU_CFLAGS
12742and ICU_LIBS to avoid the need to call pkg-config.
12743See the pkg-config man page for more details." "$LINENO" 5
12744elif test $pkg_failed = untried; then
12745     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12749as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12750is in your PATH or set the PKG_CONFIG environment variable to the full
12751path to pkg-config.
12752
12753Alternatively, you may set the environment variables ICU_CFLAGS
12754and ICU_LIBS to avoid the need to call pkg-config.
12755See the pkg-config man page for more details.
12756
12757To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12758See \`config.log' for more details" "$LINENO" 5; }
12759else
12760	ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
12761	ICU_LIBS=$pkg_cv_ICU_LIBS
12762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763$as_echo "yes" >&6; }
12764
12765fi
12766  for ac_header in unicode/uloc.h unicode/ulocdata.h unicode/ucol.h unicode/ucurr.h unicode/uregex.h unicode/ucal.h unicode/unorm2.h unicode/unum.h unicode/udat.h unicode/udatpg.h unicode/ustring.h unicode/usearch.h unicode/ucnv.h
12767do :
12768  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12770if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12771  cat >>confdefs.h <<_ACEOF
12772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12773_ACEOF
12774
12775fi
12776
12777done
12778
12779  LIBS="$LIBS $ICU_LIBS"
12780  HAVE_ICU=1
12781fi
12782
12783
12784#--------------------------------------------------------------------
12785# Check for libdispatch
12786# See DEPENDENCIES POLICY at the start of this file.
12787#--------------------------------------------------------------------
12788HAVE_LIBDISPATCH=0
12789# Check whether --enable-libdispatch was given.
12790if test "${enable_libdispatch+set}" = set; then :
12791  enableval=$enable_libdispatch; enable_libdispatch=$enableval
12792else
12793  enable_libdispatch=yes
12794fi
12795
12796
12797if test $enable_libdispatch = yes; then
12798  for ac_header in dispatch.h
12799do :
12800  ac_fn_c_check_header_mongrel "$LINENO" "dispatch.h" "ac_cv_header_dispatch_h" "$ac_includes_default"
12801if test "x$ac_cv_header_dispatch_h" = xyes; then :
12802  cat >>confdefs.h <<_ACEOF
12803#define HAVE_DISPATCH_H 1
12804_ACEOF
12805 have_dispatch=yes
12806else
12807  have_dispatch=no
12808fi
12809
12810done
12811
12812  if test "$have_dispatch" = "no"; then
12813    for ac_header in dispatch/dispatch.h
12814do :
12815  ac_fn_c_check_header_mongrel "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default"
12816if test "x$ac_cv_header_dispatch_dispatch_h" = xyes; then :
12817  cat >>confdefs.h <<_ACEOF
12818#define HAVE_DISPATCH_DISPATCH_H 1
12819_ACEOF
12820 have_dispatch=yes
12821else
12822  have_dispatch=no
12823fi
12824
12825done
12826
12827    # check for private header which includes runloop integration functions in
12828    # the Swift corelibs libdispatch release
12829    for ac_header in dispatch/private.h
12830do :
12831  ac_fn_c_check_header_mongrel "$LINENO" "dispatch/private.h" "ac_cv_header_dispatch_private_h" "$ac_includes_default"
12832if test "x$ac_cv_header_dispatch_private_h" = xyes; then :
12833  cat >>confdefs.h <<_ACEOF
12834#define HAVE_DISPATCH_PRIVATE_H 1
12835_ACEOF
12836
12837fi
12838
12839done
12840
12841  fi
12842  if test "$have_dispatch" = "yes"; then
12843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dispatch_queue_create in -ldispatch" >&5
12844$as_echo_n "checking for dispatch_queue_create in -ldispatch... " >&6; }
12845if ${ac_cv_lib_dispatch_dispatch_queue_create+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848  ac_check_lib_save_LIBS=$LIBS
12849LIBS="-ldispatch  $LIBS"
12850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h.  */
12852
12853/* Override any GCC internal prototype to avoid an error.
12854   Use char because int might match the return type of a GCC
12855   builtin and then its argument prototype would still apply.  */
12856#ifdef __cplusplus
12857extern "C"
12858#endif
12859char dispatch_queue_create ();
12860int
12861main ()
12862{
12863return dispatch_queue_create ();
12864  ;
12865  return 0;
12866}
12867_ACEOF
12868if ac_fn_c_try_link "$LINENO"; then :
12869  ac_cv_lib_dispatch_dispatch_queue_create=yes
12870else
12871  ac_cv_lib_dispatch_dispatch_queue_create=no
12872fi
12873rm -f core conftest.err conftest.$ac_objext \
12874    conftest$ac_exeext conftest.$ac_ext
12875LIBS=$ac_check_lib_save_LIBS
12876fi
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dispatch_dispatch_queue_create" >&5
12878$as_echo "$ac_cv_lib_dispatch_dispatch_queue_create" >&6; }
12879if test "x$ac_cv_lib_dispatch_dispatch_queue_create" = xyes; then :
12880  have_dispatch=yes
12881else
12882  have_dispatch=no
12883fi
12884
12885    if test "$have_dispatch" = "yes"; then
12886      saveLIBS="$LIBS"
12887      LIBS="-lobjc -ldispatch";
12888      # This check is needed because libdispatch might be linked against a
12889      # version of libBlocksRuntime that defines symbols conflicting with libobjc
12890      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link libdispatch and libobjc at the same time" >&5
12891$as_echo_n "checking whether we can link libdispatch and libobjc at the same time... " >&6; }
12892      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h.  */
12894
12895int
12896main ()
12897{
12898
12899  ;
12900  return 0;
12901}
12902_ACEOF
12903if ac_fn_c_try_link "$LINENO"; then :
12904  have_dispatch=yes
12905else
12906  have_dispatch=no
12907fi
12908rm -f core conftest.err conftest.$ac_objext \
12909    conftest$ac_exeext conftest.$ac_ext
12910      if test "$have_dispatch" = "yes"; then
12911	LIBS="$saveLIBS -ldispatch";
12912	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12913$as_echo "yes" >&6; };
12914	HAVE_LIBDISPATCH=1;
12915      else
12916	LIBS="$saveLIBS";
12917	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918$as_echo "no" >&6; };
12919      fi
12920    fi
12921  else
12922  HAVE_LIBDISPATCH=0;
12923  # just ignore libdispatch if it's not there
12924  fi
12925fi
12926
12927
12928HAVE_LIBDISPATCH_RUNLOOP=0
12929if test $HAVE_LIBDISPATCH = 1; then
12930  # We check whether we have a variant of libdispatch that allows runloop
12931  # integration
12932  for ac_func in dispatch_main_queue_drain_np dispatch_get_main_queue_handle_np
12933do :
12934  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12936if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12937  cat >>confdefs.h <<_ACEOF
12938#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12939_ACEOF
12940
12941fi
12942done
12943
12944  if test "$ac_cv_func_dispatch_main_queue_drain_np" = "yes" && test "$ac_cv_func_dispatch_get_main_queue_handle_np" = "yes"; then
12945    HAVE_LIBDISPATCH_RUNLOOP=1
12946  fi
12947  # Check for "_4CF" variants of runloop integration functions provided by the
12948  # Swift corelibs libdispatch release
12949  for ac_func in _dispatch_main_queue_callback_4CF _dispatch_get_main_queue_handle_4CF
12950do :
12951  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12952ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12953if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12954  cat >>confdefs.h <<_ACEOF
12955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12956_ACEOF
12957
12958fi
12959done
12960
12961  if test "$ac_cv_func__dispatch_main_queue_callback_4CF" = "yes" && test "$ac_cv_func__dispatch_get_main_queue_handle_4CF" = "yes"; then
12962    HAVE_LIBDISPATCH_RUNLOOP=1
12963  fi
12964fi
12965
12966
12967#--------------------------------------------------------------------
12968# Check GMP for NSDecimal
12969#--------------------------------------------------------------------
12970
12971# Check whether --with-gmp-include was given.
12972if test "${with_gmp_include+set}" = set; then :
12973  withval=$with_gmp_include; gmp_incdir="$withval"
12974else
12975  gmp_incdir="no"
12976fi
12977
12978
12979
12980# Check whether --with-gmp-library was given.
12981if test "${with_gmp_library+set}" = set; then :
12982  withval=$with_gmp_library; gmp_libdir="$withval"
12983else
12984  gmp_libdir="no"
12985fi
12986
12987
12988libs_temp=$LIBS
12989
12990if test "$gmp_incdir" != "no"; then
12991  CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
12992  INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gmp_incdir"
12993fi
12994if test "$gmp_libdir" != "no"; then
12995
12996case "$target_os" in
12997	netbsd*)
12998		LDFLAGS="$LDFLAGS -L${gmp_libdir} -Wl,-R${gmp_libdir}"
12999		LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${gmp_libdir} -L${gmp_libdir}";;
13000	*)
13001		LDFLAGS="$LDFLAGS -L${gmp_libdir}"
13002		LDIR_FLAGS="$LDIR_FLAGS -L${gmp_libdir}";;
13003esac
13004
13005fi
13006
13007USE_GMP=0
13008for ac_header in gmp.h
13009do :
13010  ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
13011if test "x$ac_cv_header_gmp_h" = xyes; then :
13012  cat >>confdefs.h <<_ACEOF
13013#define HAVE_GMP_H 1
13014_ACEOF
13015
13016fi
13017
13018done
13019
13020if test $ac_cv_header_gmp_h = yes; then
13021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpf_abs in -lgmp" >&5
13022$as_echo_n "checking for mpf_abs in -lgmp... " >&6; }
13023if ${ac_cv_lib_gmp_mpf_abs+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  ac_check_lib_save_LIBS=$LIBS
13027LIBS="-lgmp  $LIBS"
13028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h.  */
13030
13031/* Override any GCC internal prototype to avoid an error.
13032   Use char because int might match the return type of a GCC
13033   builtin and then its argument prototype would still apply.  */
13034#ifdef __cplusplus
13035extern "C"
13036#endif
13037char mpf_abs ();
13038int
13039main ()
13040{
13041return mpf_abs ();
13042  ;
13043  return 0;
13044}
13045_ACEOF
13046if ac_fn_c_try_link "$LINENO"; then :
13047  ac_cv_lib_gmp_mpf_abs=yes
13048else
13049  ac_cv_lib_gmp_mpf_abs=no
13050fi
13051rm -f core conftest.err conftest.$ac_objext \
13052    conftest$ac_exeext conftest.$ac_ext
13053LIBS=$ac_check_lib_save_LIBS
13054fi
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_mpf_abs" >&5
13056$as_echo "$ac_cv_lib_gmp_mpf_abs" >&6; }
13057if test "x$ac_cv_lib_gmp_mpf_abs" = xyes; then :
13058  gmp_ok=yes
13059else
13060  gmp_ok=no
13061fi
13062
13063  if test "$gmp_ok" = no; then
13064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpf_abs in -lgmp" >&5
13065$as_echo_n "checking for __gmpf_abs in -lgmp... " >&6; }
13066if ${ac_cv_lib_gmp___gmpf_abs+:} false; then :
13067  $as_echo_n "(cached) " >&6
13068else
13069  ac_check_lib_save_LIBS=$LIBS
13070LIBS="-lgmp  $LIBS"
13071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072/* end confdefs.h.  */
13073
13074/* Override any GCC internal prototype to avoid an error.
13075   Use char because int might match the return type of a GCC
13076   builtin and then its argument prototype would still apply.  */
13077#ifdef __cplusplus
13078extern "C"
13079#endif
13080char __gmpf_abs ();
13081int
13082main ()
13083{
13084return __gmpf_abs ();
13085  ;
13086  return 0;
13087}
13088_ACEOF
13089if ac_fn_c_try_link "$LINENO"; then :
13090  ac_cv_lib_gmp___gmpf_abs=yes
13091else
13092  ac_cv_lib_gmp___gmpf_abs=no
13093fi
13094rm -f core conftest.err conftest.$ac_objext \
13095    conftest$ac_exeext conftest.$ac_ext
13096LIBS=$ac_check_lib_save_LIBS
13097fi
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpf_abs" >&5
13099$as_echo "$ac_cv_lib_gmp___gmpf_abs" >&6; }
13100if test "x$ac_cv_lib_gmp___gmpf_abs" = xyes; then :
13101  gmp_ok=yes
13102else
13103  gmp_ok=no
13104fi
13105
13106  fi
13107  if test "$gmp_ok" = yes; then
13108    LIBS="-lgmp $LIBS"
13109    USE_GMP=1
13110  fi
13111fi
13112
13113
13114
13115
13116#--------------------------------------------------------------------
13117# Check whether nl_langinfo(CODESET) is supported, needed by Unicode.m.
13118#--------------------------------------------------------------------
13119
13120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13121$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13122if ${am_cv_langinfo_codeset+:} false; then :
13123  $as_echo_n "(cached) " >&6
13124else
13125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126/* end confdefs.h.  */
13127#include <langinfo.h>
13128int
13129main ()
13130{
13131char* cs = nl_langinfo(CODESET);
13132  ;
13133  return 0;
13134}
13135_ACEOF
13136if ac_fn_c_try_link "$LINENO"; then :
13137  am_cv_langinfo_codeset=yes
13138else
13139  am_cv_langinfo_codeset=no
13140fi
13141rm -f core conftest.err conftest.$ac_objext \
13142    conftest$ac_exeext conftest.$ac_ext
13143
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13146$as_echo "$am_cv_langinfo_codeset" >&6; }
13147  if test $am_cv_langinfo_codeset = yes; then
13148
13149$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13150
13151  fi
13152
13153
13154
13155
13156
13157
13158#--------------------------------------------------------------------
13159# Check for -Wdeclaration-after-statement
13160#--------------------------------------------------------------------
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13162$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13163
13164saved_CFLAGS="$CFLAGS"
13165CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167/* end confdefs.h.  */
13168
13169int
13170main ()
13171{
13172
13173  ;
13174  return 0;
13175}
13176_ACEOF
13177if ac_fn_c_try_compile "$LINENO"; then :
13178  HAS_W_DECL_AFTER_STATEMENT=yes
13179else
13180  HAS_W_DECL_AFTER_STATEMENT=no
13181fi
13182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183CFLAGS="$saved_CFLAGS"
13184
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_W_DECL_AFTER_STATEMENT" >&5
13186$as_echo "$HAS_W_DECL_AFTER_STATEMENT" >&6; }
13187
13188if test x"$HAS_W_DECL_AFTER_STATEMENT" = x"yes"; then
13189  WARN_FLAGS="-Wall -Wdeclaration-after-statement"
13190else
13191  WARN_FLAGS=-Wall
13192fi
13193
13194
13195
13196#--------------------------------------------------------------------
13197# Check if we should use an alternative gdomap port
13198#--------------------------------------------------------------------
13199
13200# Check whether --with-gdomap-port was given.
13201if test "${with_gdomap_port+set}" = set; then :
13202  withval=$with_gdomap_port; gdomap_port="$withval"
13203else
13204  gdomap_port="no"
13205fi
13206
13207
13208if test "$gdomap_port" = "no"; then
13209  GNUSTEP_GDOMAP_PORT_OVERRIDE="$gdomap_port"
13210else
13211  GNUSTEP_GDOMAP_PORT_OVERRIDE="$gdomap_port"
13212fi
13213
13214
13215#--------------------------------------------------------------------
13216# Check if we should install gdomap as setuid
13217#--------------------------------------------------------------------
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should install gdomap as setuid" >&5
13219$as_echo_n "checking if we should install gdomap as setuid... " >&6; }
13220# Check whether --enable-setuid-gdomap was given.
13221if test "${enable_setuid_gdomap+set}" = set; then :
13222  enableval=$enable_setuid_gdomap; ac_cv_setuid_gdomap=$enableval
13223else
13224  ac_cv_setuid_gdomap="no"
13225fi
13226
13227
13228if test "$ac_cv_setuid_gdomap" = "yes"; then
13229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13230$as_echo "yes" >&6; };
13231  GNUSTEP_INSTALL_GDOMAP_AS_SETUID="yes"
13232else
13233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234$as_echo "no" >&6; };
13235  GNUSTEP_INSTALL_GDOMAP_AS_SETUID="no"
13236fi
13237
13238
13239
13240#--------------------------------------------------------------------
13241# Record the version
13242#--------------------------------------------------------------------
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of gnustep-base we are compiling" >&5
13244$as_echo_n "checking for the version of gnustep-base we are compiling... " >&6; }
13245if test -f "Version"; then
13246  . ./Version
13247fi
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
13249$as_echo "$VERSION" >&6; }
13250
13251
13252
13253
13254
13255
13256#--------------------------------------------------------------------
13257# Write the Makefiles
13258#--------------------------------------------------------------------
13259ac_config_files="$ac_config_files config.mak base.make Headers/GNUstepBase/GSConfig.h"
13260
13261cat >confcache <<\_ACEOF
13262# This file is a shell script that caches the results of configure
13263# tests run on this system so they can be shared between configure
13264# scripts and configure runs, see configure's option --config-cache.
13265# It is not useful on other systems.  If it contains results you don't
13266# want to keep, you may remove or edit it.
13267#
13268# config.status only pays attention to the cache file if you give it
13269# the --recheck option to rerun configure.
13270#
13271# `ac_cv_env_foo' variables (set or unset) will be overridden when
13272# loading this file, other *unset* `ac_cv_foo' will be assigned the
13273# following values.
13274
13275_ACEOF
13276
13277# The following way of writing the cache mishandles newlines in values,
13278# but we know of no workaround that is simple, portable, and efficient.
13279# So, we kill variables containing newlines.
13280# Ultrix sh set writes to stderr and can't be redirected directly,
13281# and sets the high bit in the cache file unless we assign to the vars.
13282(
13283  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13284    eval ac_val=\$$ac_var
13285    case $ac_val in #(
13286    *${as_nl}*)
13287      case $ac_var in #(
13288      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13289$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13290      esac
13291      case $ac_var in #(
13292      _ | IFS | as_nl) ;; #(
13293      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13294      *) { eval $ac_var=; unset $ac_var;} ;;
13295      esac ;;
13296    esac
13297  done
13298
13299  (set) 2>&1 |
13300    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13301    *${as_nl}ac_space=\ *)
13302      # `set' does not quote correctly, so add quotes: double-quote
13303      # substitution turns \\\\ into \\, and sed turns \\ into \.
13304      sed -n \
13305	"s/'/'\\\\''/g;
13306	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13307      ;; #(
13308    *)
13309      # `set' quotes correctly as required by POSIX, so do not add quotes.
13310      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13311      ;;
13312    esac |
13313    sort
13314) |
13315  sed '
13316     /^ac_cv_env_/b end
13317     t clear
13318     :clear
13319     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13320     t end
13321     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13322     :end' >>confcache
13323if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13324  if test -w "$cache_file"; then
13325    if test "x$cache_file" != "x/dev/null"; then
13326      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13327$as_echo "$as_me: updating cache $cache_file" >&6;}
13328      if test ! -f "$cache_file" || test -h "$cache_file"; then
13329	cat confcache >"$cache_file"
13330      else
13331        case $cache_file in #(
13332        */* | ?:*)
13333	  mv -f confcache "$cache_file"$$ &&
13334	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13335        *)
13336	  mv -f confcache "$cache_file" ;;
13337	esac
13338      fi
13339    fi
13340  else
13341    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13342$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13343  fi
13344fi
13345rm -f confcache
13346
13347test "x$prefix" = xNONE && prefix=$ac_default_prefix
13348# Let make expand exec_prefix.
13349test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13350
13351DEFS=-DHAVE_CONFIG_H
13352
13353ac_libobjs=
13354ac_ltlibobjs=
13355U=
13356for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13357  # 1. Remove the extension, and $U if already installed.
13358  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13359  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13360  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13361  #    will be set to the directory where LIBOBJS objects are built.
13362  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13363  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13364done
13365LIBOBJS=$ac_libobjs
13366
13367LTLIBOBJS=$ac_ltlibobjs
13368
13369
13370
13371
13372: "${CONFIG_STATUS=./config.status}"
13373ac_write_fail=0
13374ac_clean_files_save=$ac_clean_files
13375ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13377$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13378as_write_fail=0
13379cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13380#! $SHELL
13381# Generated by $as_me.
13382# Run this file to recreate the current configuration.
13383# Compiler output produced by configure, useful for debugging
13384# configure, is in config.log if it exists.
13385
13386debug=false
13387ac_cs_recheck=false
13388ac_cs_silent=false
13389
13390SHELL=\${CONFIG_SHELL-$SHELL}
13391export SHELL
13392_ASEOF
13393cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13394## -------------------- ##
13395## M4sh Initialization. ##
13396## -------------------- ##
13397
13398# Be more Bourne compatible
13399DUALCASE=1; export DUALCASE # for MKS sh
13400if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13401  emulate sh
13402  NULLCMD=:
13403  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13404  # is contrary to our usage.  Disable this feature.
13405  alias -g '${1+"$@"}'='"$@"'
13406  setopt NO_GLOB_SUBST
13407else
13408  case `(set -o) 2>/dev/null` in #(
13409  *posix*) :
13410    set -o posix ;; #(
13411  *) :
13412     ;;
13413esac
13414fi
13415
13416
13417as_nl='
13418'
13419export as_nl
13420# Printing a long string crashes Solaris 7 /usr/bin/printf.
13421as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13422as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13423as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13424# Prefer a ksh shell builtin over an external printf program on Solaris,
13425# but without wasting forks for bash or zsh.
13426if test -z "$BASH_VERSION$ZSH_VERSION" \
13427    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13428  as_echo='print -r --'
13429  as_echo_n='print -rn --'
13430elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13431  as_echo='printf %s\n'
13432  as_echo_n='printf %s'
13433else
13434  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13435    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13436    as_echo_n='/usr/ucb/echo -n'
13437  else
13438    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13439    as_echo_n_body='eval
13440      arg=$1;
13441      case $arg in #(
13442      *"$as_nl"*)
13443	expr "X$arg" : "X\\(.*\\)$as_nl";
13444	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13445      esac;
13446      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13447    '
13448    export as_echo_n_body
13449    as_echo_n='sh -c $as_echo_n_body as_echo'
13450  fi
13451  export as_echo_body
13452  as_echo='sh -c $as_echo_body as_echo'
13453fi
13454
13455# The user is always right.
13456if test "${PATH_SEPARATOR+set}" != set; then
13457  PATH_SEPARATOR=:
13458  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13459    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13460      PATH_SEPARATOR=';'
13461  }
13462fi
13463
13464
13465# IFS
13466# We need space, tab and new line, in precisely that order.  Quoting is
13467# there to prevent editors from complaining about space-tab.
13468# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13469# splitting by setting IFS to empty value.)
13470IFS=" ""	$as_nl"
13471
13472# Find who we are.  Look in the path if we contain no directory separator.
13473as_myself=
13474case $0 in #((
13475  *[\\/]* ) as_myself=$0 ;;
13476  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477for as_dir in $PATH
13478do
13479  IFS=$as_save_IFS
13480  test -z "$as_dir" && as_dir=.
13481    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13482  done
13483IFS=$as_save_IFS
13484
13485     ;;
13486esac
13487# We did not find ourselves, most probably we were run as `sh COMMAND'
13488# in which case we are not to be found in the path.
13489if test "x$as_myself" = x; then
13490  as_myself=$0
13491fi
13492if test ! -f "$as_myself"; then
13493  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13494  exit 1
13495fi
13496
13497# Unset variables that we do not need and which cause bugs (e.g. in
13498# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13499# suppresses any "Segmentation fault" message there.  '((' could
13500# trigger a bug in pdksh 5.2.14.
13501for as_var in BASH_ENV ENV MAIL MAILPATH
13502do eval test x\${$as_var+set} = xset \
13503  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13504done
13505PS1='$ '
13506PS2='> '
13507PS4='+ '
13508
13509# NLS nuisances.
13510LC_ALL=C
13511export LC_ALL
13512LANGUAGE=C
13513export LANGUAGE
13514
13515# CDPATH.
13516(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13517
13518
13519# as_fn_error STATUS ERROR [LINENO LOG_FD]
13520# ----------------------------------------
13521# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13522# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13523# script with STATUS, using 1 if that was 0.
13524as_fn_error ()
13525{
13526  as_status=$1; test $as_status -eq 0 && as_status=1
13527  if test "$4"; then
13528    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13529    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13530  fi
13531  $as_echo "$as_me: error: $2" >&2
13532  as_fn_exit $as_status
13533} # as_fn_error
13534
13535
13536# as_fn_set_status STATUS
13537# -----------------------
13538# Set $? to STATUS, without forking.
13539as_fn_set_status ()
13540{
13541  return $1
13542} # as_fn_set_status
13543
13544# as_fn_exit STATUS
13545# -----------------
13546# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13547as_fn_exit ()
13548{
13549  set +e
13550  as_fn_set_status $1
13551  exit $1
13552} # as_fn_exit
13553
13554# as_fn_unset VAR
13555# ---------------
13556# Portably unset VAR.
13557as_fn_unset ()
13558{
13559  { eval $1=; unset $1;}
13560}
13561as_unset=as_fn_unset
13562# as_fn_append VAR VALUE
13563# ----------------------
13564# Append the text in VALUE to the end of the definition contained in VAR. Take
13565# advantage of any shell optimizations that allow amortized linear growth over
13566# repeated appends, instead of the typical quadratic growth present in naive
13567# implementations.
13568if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13569  eval 'as_fn_append ()
13570  {
13571    eval $1+=\$2
13572  }'
13573else
13574  as_fn_append ()
13575  {
13576    eval $1=\$$1\$2
13577  }
13578fi # as_fn_append
13579
13580# as_fn_arith ARG...
13581# ------------------
13582# Perform arithmetic evaluation on the ARGs, and store the result in the
13583# global $as_val. Take advantage of shells that can avoid forks. The arguments
13584# must be portable across $(()) and expr.
13585if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13586  eval 'as_fn_arith ()
13587  {
13588    as_val=$(( $* ))
13589  }'
13590else
13591  as_fn_arith ()
13592  {
13593    as_val=`expr "$@" || test $? -eq 1`
13594  }
13595fi # as_fn_arith
13596
13597
13598if expr a : '\(a\)' >/dev/null 2>&1 &&
13599   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13600  as_expr=expr
13601else
13602  as_expr=false
13603fi
13604
13605if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13606  as_basename=basename
13607else
13608  as_basename=false
13609fi
13610
13611if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13612  as_dirname=dirname
13613else
13614  as_dirname=false
13615fi
13616
13617as_me=`$as_basename -- "$0" ||
13618$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13619	 X"$0" : 'X\(//\)$' \| \
13620	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13621$as_echo X/"$0" |
13622    sed '/^.*\/\([^/][^/]*\)\/*$/{
13623	    s//\1/
13624	    q
13625	  }
13626	  /^X\/\(\/\/\)$/{
13627	    s//\1/
13628	    q
13629	  }
13630	  /^X\/\(\/\).*/{
13631	    s//\1/
13632	    q
13633	  }
13634	  s/.*/./; q'`
13635
13636# Avoid depending upon Character Ranges.
13637as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13638as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13639as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13640as_cr_digits='0123456789'
13641as_cr_alnum=$as_cr_Letters$as_cr_digits
13642
13643ECHO_C= ECHO_N= ECHO_T=
13644case `echo -n x` in #(((((
13645-n*)
13646  case `echo 'xy\c'` in
13647  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13648  xy)  ECHO_C='\c';;
13649  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13650       ECHO_T='	';;
13651  esac;;
13652*)
13653  ECHO_N='-n';;
13654esac
13655
13656rm -f conf$$ conf$$.exe conf$$.file
13657if test -d conf$$.dir; then
13658  rm -f conf$$.dir/conf$$.file
13659else
13660  rm -f conf$$.dir
13661  mkdir conf$$.dir 2>/dev/null
13662fi
13663if (echo >conf$$.file) 2>/dev/null; then
13664  if ln -s conf$$.file conf$$ 2>/dev/null; then
13665    as_ln_s='ln -s'
13666    # ... but there are two gotchas:
13667    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13668    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13669    # In both cases, we have to default to `cp -pR'.
13670    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13671      as_ln_s='cp -pR'
13672  elif ln conf$$.file conf$$ 2>/dev/null; then
13673    as_ln_s=ln
13674  else
13675    as_ln_s='cp -pR'
13676  fi
13677else
13678  as_ln_s='cp -pR'
13679fi
13680rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13681rmdir conf$$.dir 2>/dev/null
13682
13683
13684# as_fn_mkdir_p
13685# -------------
13686# Create "$as_dir" as a directory, including parents if necessary.
13687as_fn_mkdir_p ()
13688{
13689
13690  case $as_dir in #(
13691  -*) as_dir=./$as_dir;;
13692  esac
13693  test -d "$as_dir" || eval $as_mkdir_p || {
13694    as_dirs=
13695    while :; do
13696      case $as_dir in #(
13697      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13698      *) as_qdir=$as_dir;;
13699      esac
13700      as_dirs="'$as_qdir' $as_dirs"
13701      as_dir=`$as_dirname -- "$as_dir" ||
13702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13703	 X"$as_dir" : 'X\(//\)[^/]' \| \
13704	 X"$as_dir" : 'X\(//\)$' \| \
13705	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13706$as_echo X"$as_dir" |
13707    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13708	    s//\1/
13709	    q
13710	  }
13711	  /^X\(\/\/\)[^/].*/{
13712	    s//\1/
13713	    q
13714	  }
13715	  /^X\(\/\/\)$/{
13716	    s//\1/
13717	    q
13718	  }
13719	  /^X\(\/\).*/{
13720	    s//\1/
13721	    q
13722	  }
13723	  s/.*/./; q'`
13724      test -d "$as_dir" && break
13725    done
13726    test -z "$as_dirs" || eval "mkdir $as_dirs"
13727  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13728
13729
13730} # as_fn_mkdir_p
13731if mkdir -p . 2>/dev/null; then
13732  as_mkdir_p='mkdir -p "$as_dir"'
13733else
13734  test -d ./-p && rmdir ./-p
13735  as_mkdir_p=false
13736fi
13737
13738
13739# as_fn_executable_p FILE
13740# -----------------------
13741# Test if FILE is an executable regular file.
13742as_fn_executable_p ()
13743{
13744  test -f "$1" && test -x "$1"
13745} # as_fn_executable_p
13746as_test_x='test -x'
13747as_executable_p=as_fn_executable_p
13748
13749# Sed expression to map a string onto a valid CPP name.
13750as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13751
13752# Sed expression to map a string onto a valid variable name.
13753as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13754
13755
13756exec 6>&1
13757## ----------------------------------- ##
13758## Main body of $CONFIG_STATUS script. ##
13759## ----------------------------------- ##
13760_ASEOF
13761test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13762
13763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13764# Save the log message, to keep $0 and so on meaningful, and to
13765# report actual input values of CONFIG_FILES etc. instead of their
13766# values after options handling.
13767ac_log="
13768This file was extended by $as_me, which was
13769generated by GNU Autoconf 2.69.  Invocation command line was
13770
13771  CONFIG_FILES    = $CONFIG_FILES
13772  CONFIG_HEADERS  = $CONFIG_HEADERS
13773  CONFIG_LINKS    = $CONFIG_LINKS
13774  CONFIG_COMMANDS = $CONFIG_COMMANDS
13775  $ $0 $@
13776
13777on `(hostname || uname -n) 2>/dev/null | sed 1q`
13778"
13779
13780_ACEOF
13781
13782case $ac_config_files in *"
13783"*) set x $ac_config_files; shift; ac_config_files=$*;;
13784esac
13785
13786case $ac_config_headers in *"
13787"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13788esac
13789
13790
13791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792# Files that config.status was made for.
13793config_files="$ac_config_files"
13794config_headers="$ac_config_headers"
13795
13796_ACEOF
13797
13798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13799ac_cs_usage="\
13800\`$as_me' instantiates files and other configuration actions
13801from templates according to the current configuration.  Unless the files
13802and actions are specified as TAGs, all are instantiated by default.
13803
13804Usage: $0 [OPTION]... [TAG]...
13805
13806  -h, --help       print this help, then exit
13807  -V, --version    print version number and configuration settings, then exit
13808      --config     print configuration, then exit
13809  -q, --quiet, --silent
13810                   do not print progress messages
13811  -d, --debug      don't remove temporary files
13812      --recheck    update $as_me by reconfiguring in the same conditions
13813      --file=FILE[:TEMPLATE]
13814                   instantiate the configuration file FILE
13815      --header=FILE[:TEMPLATE]
13816                   instantiate the configuration header FILE
13817
13818Configuration files:
13819$config_files
13820
13821Configuration headers:
13822$config_headers
13823
13824Report bugs to the package provider."
13825
13826_ACEOF
13827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13828ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13829ac_cs_version="\\
13830config.status
13831configured by $0, generated by GNU Autoconf 2.69,
13832  with options \\"\$ac_cs_config\\"
13833
13834Copyright (C) 2012 Free Software Foundation, Inc.
13835This config.status script is free software; the Free Software Foundation
13836gives unlimited permission to copy, distribute and modify it."
13837
13838ac_pwd='$ac_pwd'
13839srcdir='$srcdir'
13840test -n "\$AWK" || AWK=awk
13841_ACEOF
13842
13843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844# The default lists apply if the user does not specify any file.
13845ac_need_defaults=:
13846while test $# != 0
13847do
13848  case $1 in
13849  --*=?*)
13850    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13851    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13852    ac_shift=:
13853    ;;
13854  --*=)
13855    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13856    ac_optarg=
13857    ac_shift=:
13858    ;;
13859  *)
13860    ac_option=$1
13861    ac_optarg=$2
13862    ac_shift=shift
13863    ;;
13864  esac
13865
13866  case $ac_option in
13867  # Handling of the options.
13868  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13869    ac_cs_recheck=: ;;
13870  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13871    $as_echo "$ac_cs_version"; exit ;;
13872  --config | --confi | --conf | --con | --co | --c )
13873    $as_echo "$ac_cs_config"; exit ;;
13874  --debug | --debu | --deb | --de | --d | -d )
13875    debug=: ;;
13876  --file | --fil | --fi | --f )
13877    $ac_shift
13878    case $ac_optarg in
13879    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13880    '') as_fn_error $? "missing file argument" ;;
13881    esac
13882    as_fn_append CONFIG_FILES " '$ac_optarg'"
13883    ac_need_defaults=false;;
13884  --header | --heade | --head | --hea )
13885    $ac_shift
13886    case $ac_optarg in
13887    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13888    esac
13889    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13890    ac_need_defaults=false;;
13891  --he | --h)
13892    # Conflict between --help and --header
13893    as_fn_error $? "ambiguous option: \`$1'
13894Try \`$0 --help' for more information.";;
13895  --help | --hel | -h )
13896    $as_echo "$ac_cs_usage"; exit ;;
13897  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13898  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13899    ac_cs_silent=: ;;
13900
13901  # This is an error.
13902  -*) as_fn_error $? "unrecognized option: \`$1'
13903Try \`$0 --help' for more information." ;;
13904
13905  *) as_fn_append ac_config_targets " $1"
13906     ac_need_defaults=false ;;
13907
13908  esac
13909  shift
13910done
13911
13912ac_configure_extra_args=
13913
13914if $ac_cs_silent; then
13915  exec 6>/dev/null
13916  ac_configure_extra_args="$ac_configure_extra_args --silent"
13917fi
13918
13919_ACEOF
13920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13921if \$ac_cs_recheck; then
13922  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13923  shift
13924  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13925  CONFIG_SHELL='$SHELL'
13926  export CONFIG_SHELL
13927  exec "\$@"
13928fi
13929
13930_ACEOF
13931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932exec 5>>config.log
13933{
13934  echo
13935  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13936## Running $as_me. ##
13937_ASBOX
13938  $as_echo "$ac_log"
13939} >&5
13940
13941_ACEOF
13942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13943_ACEOF
13944
13945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13946
13947# Handling of arguments.
13948for ac_config_target in $ac_config_targets
13949do
13950  case $ac_config_target in
13951    "Headers/GNUstepBase/config.h") CONFIG_HEADERS="$CONFIG_HEADERS Headers/GNUstepBase/config.h" ;;
13952    "config.mak") CONFIG_FILES="$CONFIG_FILES config.mak" ;;
13953    "base.make") CONFIG_FILES="$CONFIG_FILES base.make" ;;
13954    "Headers/GNUstepBase/GSConfig.h") CONFIG_FILES="$CONFIG_FILES Headers/GNUstepBase/GSConfig.h" ;;
13955
13956  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13957  esac
13958done
13959
13960
13961# If the user did not use the arguments to specify the items to instantiate,
13962# then the envvar interface is used.  Set only those that are not.
13963# We use the long form for the default assignment because of an extremely
13964# bizarre bug on SunOS 4.1.3.
13965if $ac_need_defaults; then
13966  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13967  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13968fi
13969
13970# Have a temporary directory for convenience.  Make it in the build tree
13971# simply because there is no reason against having it here, and in addition,
13972# creating and moving files from /tmp can sometimes cause problems.
13973# Hook for its removal unless debugging.
13974# Note that there is a small window in which the directory will not be cleaned:
13975# after its creation but before its name has been assigned to `$tmp'.
13976$debug ||
13977{
13978  tmp= ac_tmp=
13979  trap 'exit_status=$?
13980  : "${ac_tmp:=$tmp}"
13981  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13982' 0
13983  trap 'as_fn_exit 1' 1 2 13 15
13984}
13985# Create a (secure) tmp directory for tmp files.
13986
13987{
13988  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13989  test -d "$tmp"
13990}  ||
13991{
13992  tmp=./conf$$-$RANDOM
13993  (umask 077 && mkdir "$tmp")
13994} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13995ac_tmp=$tmp
13996
13997# Set up the scripts for CONFIG_FILES section.
13998# No need to generate them if there are no CONFIG_FILES.
13999# This happens for instance with `./config.status config.h'.
14000if test -n "$CONFIG_FILES"; then
14001
14002
14003ac_cr=`echo X | tr X '\015'`
14004# On cygwin, bash can eat \r inside `` if the user requested igncr.
14005# But we know of no other shell where ac_cr would be empty at this
14006# point, so we can use a bashism as a fallback.
14007if test "x$ac_cr" = x; then
14008  eval ac_cr=\$\'\\r\'
14009fi
14010ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14011if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14012  ac_cs_awk_cr='\\r'
14013else
14014  ac_cs_awk_cr=$ac_cr
14015fi
14016
14017echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14018_ACEOF
14019
14020
14021{
14022  echo "cat >conf$$subs.awk <<_ACEOF" &&
14023  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14024  echo "_ACEOF"
14025} >conf$$subs.sh ||
14026  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14027ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14028ac_delim='%!_!# '
14029for ac_last_try in false false false false false :; do
14030  . ./conf$$subs.sh ||
14031    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14032
14033  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14034  if test $ac_delim_n = $ac_delim_num; then
14035    break
14036  elif $ac_last_try; then
14037    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14038  else
14039    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14040  fi
14041done
14042rm -f conf$$subs.sh
14043
14044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14045cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14046_ACEOF
14047sed -n '
14048h
14049s/^/S["/; s/!.*/"]=/
14050p
14051g
14052s/^[^!]*!//
14053:repl
14054t repl
14055s/'"$ac_delim"'$//
14056t delim
14057:nl
14058h
14059s/\(.\{148\}\)..*/\1/
14060t more1
14061s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14062p
14063n
14064b repl
14065:more1
14066s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14067p
14068g
14069s/.\{148\}//
14070t nl
14071:delim
14072h
14073s/\(.\{148\}\)..*/\1/
14074t more2
14075s/["\\]/\\&/g; s/^/"/; s/$/"/
14076p
14077b
14078:more2
14079s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14080p
14081g
14082s/.\{148\}//
14083t delim
14084' <conf$$subs.awk | sed '
14085/^[^""]/{
14086  N
14087  s/\n//
14088}
14089' >>$CONFIG_STATUS || ac_write_fail=1
14090rm -f conf$$subs.awk
14091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14092_ACAWK
14093cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14094  for (key in S) S_is_set[key] = 1
14095  FS = ""
14096
14097}
14098{
14099  line = $ 0
14100  nfields = split(line, field, "@")
14101  substed = 0
14102  len = length(field[1])
14103  for (i = 2; i < nfields; i++) {
14104    key = field[i]
14105    keylen = length(key)
14106    if (S_is_set[key]) {
14107      value = S[key]
14108      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14109      len += length(value) + length(field[++i])
14110      substed = 1
14111    } else
14112      len += 1 + keylen
14113  }
14114
14115  print line
14116}
14117
14118_ACAWK
14119_ACEOF
14120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14121if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14122  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14123else
14124  cat
14125fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14126  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14127_ACEOF
14128
14129# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14130# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14131# trailing colons and then remove the whole line if VPATH becomes empty
14132# (actually we leave an empty line to preserve line numbers).
14133if test "x$srcdir" = x.; then
14134  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14135h
14136s///
14137s/^/:/
14138s/[	 ]*$/:/
14139s/:\$(srcdir):/:/g
14140s/:\${srcdir}:/:/g
14141s/:@srcdir@:/:/g
14142s/^:*//
14143s/:*$//
14144x
14145s/\(=[	 ]*\).*/\1/
14146G
14147s/\n//
14148s/^[^=]*=[	 ]*$//
14149}'
14150fi
14151
14152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14153fi # test -n "$CONFIG_FILES"
14154
14155# Set up the scripts for CONFIG_HEADERS section.
14156# No need to generate them if there are no CONFIG_HEADERS.
14157# This happens for instance with `./config.status Makefile'.
14158if test -n "$CONFIG_HEADERS"; then
14159cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14160BEGIN {
14161_ACEOF
14162
14163# Transform confdefs.h into an awk script `defines.awk', embedded as
14164# here-document in config.status, that substitutes the proper values into
14165# config.h.in to produce config.h.
14166
14167# Create a delimiter string that does not exist in confdefs.h, to ease
14168# handling of long lines.
14169ac_delim='%!_!# '
14170for ac_last_try in false false :; do
14171  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14172  if test -z "$ac_tt"; then
14173    break
14174  elif $ac_last_try; then
14175    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14176  else
14177    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14178  fi
14179done
14180
14181# For the awk script, D is an array of macro values keyed by name,
14182# likewise P contains macro parameters if any.  Preserve backslash
14183# newline sequences.
14184
14185ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14186sed -n '
14187s/.\{148\}/&'"$ac_delim"'/g
14188t rset
14189:rset
14190s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14191t def
14192d
14193:def
14194s/\\$//
14195t bsnl
14196s/["\\]/\\&/g
14197s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14198D["\1"]=" \3"/p
14199s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14200d
14201:bsnl
14202s/["\\]/\\&/g
14203s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14204D["\1"]=" \3\\\\\\n"\\/p
14205t cont
14206s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14207t cont
14208d
14209:cont
14210n
14211s/.\{148\}/&'"$ac_delim"'/g
14212t clear
14213:clear
14214s/\\$//
14215t bsnlc
14216s/["\\]/\\&/g; s/^/"/; s/$/"/p
14217d
14218:bsnlc
14219s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14220b cont
14221' <confdefs.h | sed '
14222s/'"$ac_delim"'/"\\\
14223"/g' >>$CONFIG_STATUS || ac_write_fail=1
14224
14225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226  for (key in D) D_is_set[key] = 1
14227  FS = ""
14228}
14229/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14230  line = \$ 0
14231  split(line, arg, " ")
14232  if (arg[1] == "#") {
14233    defundef = arg[2]
14234    mac1 = arg[3]
14235  } else {
14236    defundef = substr(arg[1], 2)
14237    mac1 = arg[2]
14238  }
14239  split(mac1, mac2, "(") #)
14240  macro = mac2[1]
14241  prefix = substr(line, 1, index(line, defundef) - 1)
14242  if (D_is_set[macro]) {
14243    # Preserve the white space surrounding the "#".
14244    print prefix "define", macro P[macro] D[macro]
14245    next
14246  } else {
14247    # Replace #undef with comments.  This is necessary, for example,
14248    # in the case of _POSIX_SOURCE, which is predefined and required
14249    # on some systems where configure will not decide to define it.
14250    if (defundef == "undef") {
14251      print "/*", prefix defundef, macro, "*/"
14252      next
14253    }
14254  }
14255}
14256{ print }
14257_ACAWK
14258_ACEOF
14259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14260  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14261fi # test -n "$CONFIG_HEADERS"
14262
14263
14264eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14265shift
14266for ac_tag
14267do
14268  case $ac_tag in
14269  :[FHLC]) ac_mode=$ac_tag; continue;;
14270  esac
14271  case $ac_mode$ac_tag in
14272  :[FHL]*:*);;
14273  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14274  :[FH]-) ac_tag=-:-;;
14275  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14276  esac
14277  ac_save_IFS=$IFS
14278  IFS=:
14279  set x $ac_tag
14280  IFS=$ac_save_IFS
14281  shift
14282  ac_file=$1
14283  shift
14284
14285  case $ac_mode in
14286  :L) ac_source=$1;;
14287  :[FH])
14288    ac_file_inputs=
14289    for ac_f
14290    do
14291      case $ac_f in
14292      -) ac_f="$ac_tmp/stdin";;
14293      *) # Look for the file first in the build tree, then in the source tree
14294	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14295	 # because $ac_f cannot contain `:'.
14296	 test -f "$ac_f" ||
14297	   case $ac_f in
14298	   [\\/$]*) false;;
14299	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14300	   esac ||
14301	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14302      esac
14303      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14304      as_fn_append ac_file_inputs " '$ac_f'"
14305    done
14306
14307    # Let's still pretend it is `configure' which instantiates (i.e., don't
14308    # use $as_me), people would be surprised to read:
14309    #    /* config.h.  Generated by config.status.  */
14310    configure_input='Generated from '`
14311	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14312	`' by configure.'
14313    if test x"$ac_file" != x-; then
14314      configure_input="$ac_file.  $configure_input"
14315      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14316$as_echo "$as_me: creating $ac_file" >&6;}
14317    fi
14318    # Neutralize special characters interpreted by sed in replacement strings.
14319    case $configure_input in #(
14320    *\&* | *\|* | *\\* )
14321       ac_sed_conf_input=`$as_echo "$configure_input" |
14322       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14323    *) ac_sed_conf_input=$configure_input;;
14324    esac
14325
14326    case $ac_tag in
14327    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14328      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14329    esac
14330    ;;
14331  esac
14332
14333  ac_dir=`$as_dirname -- "$ac_file" ||
14334$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14335	 X"$ac_file" : 'X\(//\)[^/]' \| \
14336	 X"$ac_file" : 'X\(//\)$' \| \
14337	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14338$as_echo X"$ac_file" |
14339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14340	    s//\1/
14341	    q
14342	  }
14343	  /^X\(\/\/\)[^/].*/{
14344	    s//\1/
14345	    q
14346	  }
14347	  /^X\(\/\/\)$/{
14348	    s//\1/
14349	    q
14350	  }
14351	  /^X\(\/\).*/{
14352	    s//\1/
14353	    q
14354	  }
14355	  s/.*/./; q'`
14356  as_dir="$ac_dir"; as_fn_mkdir_p
14357  ac_builddir=.
14358
14359case "$ac_dir" in
14360.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14361*)
14362  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14363  # A ".." for each directory in $ac_dir_suffix.
14364  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14365  case $ac_top_builddir_sub in
14366  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14367  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14368  esac ;;
14369esac
14370ac_abs_top_builddir=$ac_pwd
14371ac_abs_builddir=$ac_pwd$ac_dir_suffix
14372# for backward compatibility:
14373ac_top_builddir=$ac_top_build_prefix
14374
14375case $srcdir in
14376  .)  # We are building in place.
14377    ac_srcdir=.
14378    ac_top_srcdir=$ac_top_builddir_sub
14379    ac_abs_top_srcdir=$ac_pwd ;;
14380  [\\/]* | ?:[\\/]* )  # Absolute name.
14381    ac_srcdir=$srcdir$ac_dir_suffix;
14382    ac_top_srcdir=$srcdir
14383    ac_abs_top_srcdir=$srcdir ;;
14384  *) # Relative name.
14385    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14386    ac_top_srcdir=$ac_top_build_prefix$srcdir
14387    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14388esac
14389ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14390
14391
14392  case $ac_mode in
14393  :F)
14394  #
14395  # CONFIG_FILE
14396  #
14397
14398_ACEOF
14399
14400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14401# If the template does not know about datarootdir, expand it.
14402# FIXME: This hack should be removed a few years after 2.60.
14403ac_datarootdir_hack=; ac_datarootdir_seen=
14404ac_sed_dataroot='
14405/datarootdir/ {
14406  p
14407  q
14408}
14409/@datadir@/p
14410/@docdir@/p
14411/@infodir@/p
14412/@localedir@/p
14413/@mandir@/p'
14414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14415*datarootdir*) ac_datarootdir_seen=yes;;
14416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14417  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14419_ACEOF
14420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14421  ac_datarootdir_hack='
14422  s&@datadir@&$datadir&g
14423  s&@docdir@&$docdir&g
14424  s&@infodir@&$infodir&g
14425  s&@localedir@&$localedir&g
14426  s&@mandir@&$mandir&g
14427  s&\\\${datarootdir}&$datarootdir&g' ;;
14428esac
14429_ACEOF
14430
14431# Neutralize VPATH when `$srcdir' = `.'.
14432# Shell code in configure.ac might set extrasub.
14433# FIXME: do we really want to maintain this feature?
14434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14435ac_sed_extra="$ac_vpsub
14436$extrasub
14437_ACEOF
14438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14439:t
14440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14441s|@configure_input@|$ac_sed_conf_input|;t t
14442s&@top_builddir@&$ac_top_builddir_sub&;t t
14443s&@top_build_prefix@&$ac_top_build_prefix&;t t
14444s&@srcdir@&$ac_srcdir&;t t
14445s&@abs_srcdir@&$ac_abs_srcdir&;t t
14446s&@top_srcdir@&$ac_top_srcdir&;t t
14447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14448s&@builddir@&$ac_builddir&;t t
14449s&@abs_builddir@&$ac_abs_builddir&;t t
14450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14451$ac_datarootdir_hack
14452"
14453eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14454  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14455
14456test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14457  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14458  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14459      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14460  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14461which seems to be undefined.  Please make sure it is defined" >&5
14462$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14463which seems to be undefined.  Please make sure it is defined" >&2;}
14464
14465  rm -f "$ac_tmp/stdin"
14466  case $ac_file in
14467  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14468  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14469  esac \
14470  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14471 ;;
14472  :H)
14473  #
14474  # CONFIG_HEADER
14475  #
14476  if test x"$ac_file" != x-; then
14477    {
14478      $as_echo "/* $configure_input  */" \
14479      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14480    } >"$ac_tmp/config.h" \
14481      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14482    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14483      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14484$as_echo "$as_me: $ac_file is unchanged" >&6;}
14485    else
14486      rm -f "$ac_file"
14487      mv "$ac_tmp/config.h" "$ac_file" \
14488	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14489    fi
14490  else
14491    $as_echo "/* $configure_input  */" \
14492      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14493      || as_fn_error $? "could not create -" "$LINENO" 5
14494  fi
14495 ;;
14496
14497
14498  esac
14499
14500done # for ac_tag
14501
14502
14503as_fn_exit 0
14504_ACEOF
14505ac_clean_files=$ac_clean_files_save
14506
14507test $ac_write_fail = 0 ||
14508  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14509
14510
14511# configure is writing to config.log, and then calls config.status.
14512# config.status does its own redirection, appending to config.log.
14513# Unfortunately, on DOS this fails, as config.log is still kept open
14514# by configure, so config.status won't be able to write to it; its
14515# output is simply discarded.  So we exec the FD to /dev/null,
14516# effectively closing config.log, so it can be properly (re)opened and
14517# appended to by config.status.  When coming back to configure, we
14518# need to make the FD available again.
14519if test "$no_create" != yes; then
14520  ac_cs_success=:
14521  ac_config_status_args=
14522  test "$silent" = yes &&
14523    ac_config_status_args="$ac_config_status_args --quiet"
14524  exec 5>/dev/null
14525  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14526  exec 5>>config.log
14527  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14528  # would make configure fail if this is the last instruction.
14529  $ac_cs_success || as_fn_exit 1
14530fi
14531if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14532  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14533$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14534fi
14535
14536