source: trunk/third/ORBit/configure @ 15271

Revision 15271, 146.2 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15270, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-shared[=PKGS]  build shared libraries [default=yes]"
16ac_help="$ac_help
17  --enable-static[=PKGS]  build static libraries [default=yes]"
18ac_help="$ac_help
19  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20ac_help="$ac_help
21  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23  --disable-libtool-lock  avoid locking (might break parallel builds)"
24ac_help="$ac_help
25  --enable-maintainer-mode enable make rules and dependencies not useful
26                          (and sometimes confusing) to the casual installer"
27ac_help="$ac_help
28  --disable-indent        do not indent output code"
29ac_help="$ac_help
30  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
31ac_help="$ac_help
32  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
33ac_help="$ac_help
34  --disable-glibtest       Do not try to compile and run a test GLIB program"
35
36# Initialize some variables set by options.
37# The variables have the same names as the options, with
38# dashes changed to underlines.
39build=NONE
40cache_file=./config.cache
41exec_prefix=NONE
42host=NONE
43no_create=
44nonopt=NONE
45no_recursion=
46prefix=NONE
47program_prefix=NONE
48program_suffix=NONE
49program_transform_name=s,x,x,
50silent=
51site=
52srcdir=
53target=NONE
54verbose=
55x_includes=NONE
56x_libraries=NONE
57bindir='${exec_prefix}/bin'
58sbindir='${exec_prefix}/sbin'
59libexecdir='${exec_prefix}/libexec'
60datadir='${prefix}/share'
61sysconfdir='${prefix}/etc'
62sharedstatedir='${prefix}/com'
63localstatedir='${prefix}/var'
64libdir='${exec_prefix}/lib'
65includedir='${prefix}/include'
66oldincludedir='/usr/include'
67infodir='${prefix}/info'
68mandir='${prefix}/man'
69
70# Initialize some other variables.
71subdirs=
72MFLAGS= MAKEFLAGS=
73SHELL=${CONFIG_SHELL-/bin/sh}
74# Maximum number of lines to put in a shell here document.
75ac_max_here_lines=12
76
77ac_prev=
78for ac_option
79do
80
81  # If the previous option needs an argument, assign it.
82  if test -n "$ac_prev"; then
83    eval "$ac_prev=\$ac_option"
84    ac_prev=
85    continue
86  fi
87
88  case "$ac_option" in
89  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90  *) ac_optarg= ;;
91  esac
92
93  # Accept the important Cygnus configure options, so we can diagnose typos.
94
95  case "$ac_option" in
96
97  -bindir | --bindir | --bindi | --bind | --bin | --bi)
98    ac_prev=bindir ;;
99  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100    bindir="$ac_optarg" ;;
101
102  -build | --build | --buil | --bui | --bu)
103    ac_prev=build ;;
104  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105    build="$ac_optarg" ;;
106
107  -cache-file | --cache-file | --cache-fil | --cache-fi \
108  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109    ac_prev=cache_file ;;
110  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112    cache_file="$ac_optarg" ;;
113
114  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115    ac_prev=datadir ;;
116  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117  | --da=*)
118    datadir="$ac_optarg" ;;
119
120  -disable-* | --disable-*)
121    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122    # Reject names that are not valid shell variable names.
123    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125    fi
126    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127    eval "enable_${ac_feature}=no" ;;
128
129  -enable-* | --enable-*)
130    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131    # Reject names that are not valid shell variable names.
132    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134    fi
135    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136    case "$ac_option" in
137      *=*) ;;
138      *) ac_optarg=yes ;;
139    esac
140    eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144  | --exec | --exe | --ex)
145    ac_prev=exec_prefix ;;
146  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148  | --exec=* | --exe=* | --ex=*)
149    exec_prefix="$ac_optarg" ;;
150
151  -gas | --gas | --ga | --g)
152    # Obsolete; use --with-gas.
153    with_gas=yes ;;
154
155  -help | --help | --hel | --he)
156    # Omit some internal or obsolete options to make the list less imposing.
157    # This message is too long to be a string in the A/UX 3.1 sh.
158    cat << EOF
159Usage: configure [options] [host]
160Options: [defaults in brackets after descriptions]
161Configuration:
162  --cache-file=FILE       cache test results in FILE
163  --help                  print this message
164  --no-create             do not create output files
165  --quiet, --silent       do not print \`checking...' messages
166  --version               print the version of autoconf that created configure
167Directory and file names:
168  --prefix=PREFIX         install architecture-independent files in PREFIX
169                          [$ac_default_prefix]
170  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
171                          [same as prefix]
172  --bindir=DIR            user executables in DIR [EPREFIX/bin]
173  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
174  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
175  --datadir=DIR           read-only architecture-independent data in DIR
176                          [PREFIX/share]
177  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
178  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
179                          [PREFIX/com]
180  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
181  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
182  --includedir=DIR        C header files in DIR [PREFIX/include]
183  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
184  --infodir=DIR           info documentation in DIR [PREFIX/info]
185  --mandir=DIR            man documentation in DIR [PREFIX/man]
186  --srcdir=DIR            find the sources in DIR [configure dir or ..]
187  --program-prefix=PREFIX prepend PREFIX to installed program names
188  --program-suffix=SUFFIX append SUFFIX to installed program names
189  --program-transform-name=PROGRAM
190                          run sed PROGRAM on installed program names
191EOF
192    cat << EOF
193Host type:
194  --build=BUILD           configure for building on BUILD [BUILD=HOST]
195  --host=HOST             configure for HOST [guessed]
196  --target=TARGET         configure for TARGET [TARGET=HOST]
197Features and packages:
198  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
199  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
200  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
201  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
202  --x-includes=DIR        X include files are in DIR
203  --x-libraries=DIR       X library files are in DIR
204EOF
205    if test -n "$ac_help"; then
206      echo "--enable and --with options recognized:$ac_help"
207    fi
208    exit 0 ;;
209
210  -host | --host | --hos | --ho)
211    ac_prev=host ;;
212  -host=* | --host=* | --hos=* | --ho=*)
213    host="$ac_optarg" ;;
214
215  -includedir | --includedir | --includedi | --included | --include \
216  | --includ | --inclu | --incl | --inc)
217    ac_prev=includedir ;;
218  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219  | --includ=* | --inclu=* | --incl=* | --inc=*)
220    includedir="$ac_optarg" ;;
221
222  -infodir | --infodir | --infodi | --infod | --info | --inf)
223    ac_prev=infodir ;;
224  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225    infodir="$ac_optarg" ;;
226
227  -libdir | --libdir | --libdi | --libd)
228    ac_prev=libdir ;;
229  -libdir=* | --libdir=* | --libdi=* | --libd=*)
230    libdir="$ac_optarg" ;;
231
232  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233  | --libexe | --libex | --libe)
234    ac_prev=libexecdir ;;
235  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236  | --libexe=* | --libex=* | --libe=*)
237    libexecdir="$ac_optarg" ;;
238
239  -localstatedir | --localstatedir | --localstatedi | --localstated \
240  | --localstate | --localstat | --localsta | --localst \
241  | --locals | --local | --loca | --loc | --lo)
242    ac_prev=localstatedir ;;
243  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246    localstatedir="$ac_optarg" ;;
247
248  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249    ac_prev=mandir ;;
250  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251    mandir="$ac_optarg" ;;
252
253  -nfp | --nfp | --nf)
254    # Obsolete; use --without-fp.
255    with_fp=no ;;
256
257  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258  | --no-cr | --no-c)
259    no_create=yes ;;
260
261  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263    no_recursion=yes ;;
264
265  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267  | --oldin | --oldi | --old | --ol | --o)
268    ac_prev=oldincludedir ;;
269  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272    oldincludedir="$ac_optarg" ;;
273
274  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275    ac_prev=prefix ;;
276  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277    prefix="$ac_optarg" ;;
278
279  -program-prefix | --program-prefix | --program-prefi | --program-pref \
280  | --program-pre | --program-pr | --program-p)
281    ac_prev=program_prefix ;;
282  -program-prefix=* | --program-prefix=* | --program-prefi=* \
283  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284    program_prefix="$ac_optarg" ;;
285
286  -program-suffix | --program-suffix | --program-suffi | --program-suff \
287  | --program-suf | --program-su | --program-s)
288    ac_prev=program_suffix ;;
289  -program-suffix=* | --program-suffix=* | --program-suffi=* \
290  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291    program_suffix="$ac_optarg" ;;
292
293  -program-transform-name | --program-transform-name \
294  | --program-transform-nam | --program-transform-na \
295  | --program-transform-n | --program-transform- \
296  | --program-transform | --program-transfor \
297  | --program-transfo | --program-transf \
298  | --program-trans | --program-tran \
299  | --progr-tra | --program-tr | --program-t)
300    ac_prev=program_transform_name ;;
301  -program-transform-name=* | --program-transform-name=* \
302  | --program-transform-nam=* | --program-transform-na=* \
303  | --program-transform-n=* | --program-transform-=* \
304  | --program-transform=* | --program-transfor=* \
305  | --program-transfo=* | --program-transf=* \
306  | --program-trans=* | --program-tran=* \
307  | --progr-tra=* | --program-tr=* | --program-t=*)
308    program_transform_name="$ac_optarg" ;;
309
310  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311  | -silent | --silent | --silen | --sile | --sil)
312    silent=yes ;;
313
314  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315    ac_prev=sbindir ;;
316  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317  | --sbi=* | --sb=*)
318    sbindir="$ac_optarg" ;;
319
320  -sharedstatedir | --sharedstatedir | --sharedstatedi \
321  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322  | --sharedst | --shareds | --shared | --share | --shar \
323  | --sha | --sh)
324    ac_prev=sharedstatedir ;;
325  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328  | --sha=* | --sh=*)
329    sharedstatedir="$ac_optarg" ;;
330
331  -site | --site | --sit)
332    ac_prev=site ;;
333  -site=* | --site=* | --sit=*)
334    site="$ac_optarg" ;;
335
336  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337    ac_prev=srcdir ;;
338  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339    srcdir="$ac_optarg" ;;
340
341  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342  | --syscon | --sysco | --sysc | --sys | --sy)
343    ac_prev=sysconfdir ;;
344  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346    sysconfdir="$ac_optarg" ;;
347
348  -target | --target | --targe | --targ | --tar | --ta | --t)
349    ac_prev=target ;;
350  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351    target="$ac_optarg" ;;
352
353  -v | -verbose | --verbose | --verbos | --verbo | --verb)
354    verbose=yes ;;
355
356  -version | --version | --versio | --versi | --vers)
357    echo "configure generated by autoconf version 2.13"
358    exit 0 ;;
359
360  -with-* | --with-*)
361    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362    # Reject names that are not valid shell variable names.
363    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365    fi
366    ac_package=`echo $ac_package| sed 's/-/_/g'`
367    case "$ac_option" in
368      *=*) ;;
369      *) ac_optarg=yes ;;
370    esac
371    eval "with_${ac_package}='$ac_optarg'" ;;
372
373  -without-* | --without-*)
374    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375    # Reject names that are not valid shell variable names.
376    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378    fi
379    ac_package=`echo $ac_package| sed 's/-/_/g'`
380    eval "with_${ac_package}=no" ;;
381
382  --x)
383    # Obsolete; use --with-x.
384    with_x=yes ;;
385
386  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387  | --x-incl | --x-inc | --x-in | --x-i)
388    ac_prev=x_includes ;;
389  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391    x_includes="$ac_optarg" ;;
392
393  -x-libraries | --x-libraries | --x-librarie | --x-librari \
394  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395    ac_prev=x_libraries ;;
396  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398    x_libraries="$ac_optarg" ;;
399
400  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401    ;;
402
403  *)
404    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405      echo "configure: warning: $ac_option: invalid host type" 1>&2
406    fi
407    if test "x$nonopt" != xNONE; then
408      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409    fi
410    nonopt="$ac_option"
411    ;;
412
413  esac
414done
415
416if test -n "$ac_prev"; then
417  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418fi
419
420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422# File descriptor usage:
423# 0 standard input
424# 1 file creation
425# 2 errors and warnings
426# 3 some systems may open it to /dev/tty
427# 4 used on the Kubota Titan
428# 6 checking for... messages and results
429# 5 compiler messages saved in config.log
430if test "$silent" = yes; then
431  exec 6>/dev/null
432else
433  exec 6>&1
434fi
435exec 5>./config.log
436
437echo "\
438This file contains any messages produced by compilers while
439running configure, to aid debugging if configure makes a mistake.
440" 1>&5
441
442# Strip out --no-create and --no-recursion so they do not pile up.
443# Also quote any args containing shell metacharacters.
444ac_configure_args=
445for ac_arg
446do
447  case "$ac_arg" in
448  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449  | --no-cr | --no-c) ;;
450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455  esac
456done
457
458# NLS nuisances.
459# Only set these to C if already set.  These must not be set unconditionally
460# because not all systems understand e.g. LANG=C (notably SCO).
461# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462# Non-C LC_CTYPE values break the ctype check.
463if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
464if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
467
468# confdefs.h avoids OS command line length limits that DEFS can exceed.
469rm -rf conftest* confdefs.h
470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
471echo > confdefs.h
472
473# A filename unique to this package, relative to the directory that
474# configure is in, which we can look for to find out if srcdir is correct.
475ac_unique_file=src/orb/orbit_types.h
476
477# Find the source files, if location was not specified.
478if test -z "$srcdir"; then
479  ac_srcdir_defaulted=yes
480  # Try the directory containing this script, then its parent.
481  ac_prog=$0
482  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484  srcdir=$ac_confdir
485  if test ! -r $srcdir/$ac_unique_file; then
486    srcdir=..
487  fi
488else
489  ac_srcdir_defaulted=no
490fi
491if test ! -r $srcdir/$ac_unique_file; then
492  if test "$ac_srcdir_defaulted" = yes; then
493    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494  else
495    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496  fi
497fi
498srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500# Prefer explicitly selected file to automatically selected ones.
501if test -z "$CONFIG_SITE"; then
502  if test "x$prefix" != xNONE; then
503    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504  else
505    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506  fi
507fi
508for ac_site_file in $CONFIG_SITE; do
509  if test -r "$ac_site_file"; then
510    echo "loading site script $ac_site_file"
511    . "$ac_site_file"
512  fi
513done
514
515if test -r "$cache_file"; then
516  echo "loading cache $cache_file"
517  . $cache_file
518else
519  echo "creating cache $cache_file"
520  > $cache_file
521fi
522
523ac_ext=c
524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525ac_cpp='$CPP $CPPFLAGS'
526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528cross_compiling=$ac_cv_prog_cc_cross
529
530ac_exeext=
531ac_objext=o
532if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535    ac_n= ac_c='
536' ac_t='        '
537  else
538    ac_n=-n ac_c= ac_t=
539  fi
540else
541  ac_n= ac_c='\c' ac_t=
542fi
543
544
545
546 # required version of autoconf
547
548# (From GTK+)
549# Making releases:
550#   ORBIT_MICRO_VERSION += 1;
551#   ORBIT_INTERFACE_AGE += 1;
552#   ORBIT_BINARY_AGE += 1;
553# if any functions have been added, set ORBIT_INTERFACE_AGE to 0.
554# if backwards compatibility has been broken,
555# set ORBIT_BINARY_AGE and ORBIT_INTERFACE_AGE to 0.
556#
557##########
558# Screw the above, just play with the numbers until they match the
559# package version number. As soon as libtool lets us specify
560# sonames we'll start using that for binary compat, but until then
561# caveat user :)
562
563ORBIT_MAJOR_VERSION=0
564ORBIT_MINOR_VERSION=5
565ORBIT_MICRO_VERSION=4
566ORBIT_INTERFACE_AGE=0
567ORBIT_BINARY_AGE=0
568ORBIT_VERSION=$ORBIT_MAJOR_VERSION.$ORBIT_MINOR_VERSION.$ORBIT_MICRO_VERSION
569
570
571
572
573
574# libtool versioning
575#LT_RELEASE=$ORBIT_MAJOR_VERSION.$ORBIT_MINOR_VERSION
576#LT_CURRENT=`expr $ORBIT_MICRO_VERSION - $ORBIT_INTERFACE_AGE`
577#LT_REVISION=$ORBIT_INTERFACE_AGE
578#LT_AGE=`expr $ORBIT_BINARY_AGE - $ORBIT_INTERFACE_AGE`
579LT_RELEASE=$ORBIT_VERSION
580LT_CURRENT=$ORBIT_MINOR_VERSION
581LT_REVISION=$ORBIT_MICRO_VERSION
582LT_AGE=$ORBIT_MINOR_VERSION
583
584
585
586
587
588# Increment this every time a feature is added in the .idl compiler
589# that needs help from the main libraries.
590ORBIT_SERIAL=9
591
592
593# For automake.
594VERSION=$ORBIT_VERSION
595PACKAGE=ORBit
596
597
598
599
600
601ac_aux_dir=
602for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
603  if test -f $ac_dir/install-sh; then
604    ac_aux_dir=$ac_dir
605    ac_install_sh="$ac_aux_dir/install-sh -c"
606    break
607  elif test -f $ac_dir/install.sh; then
608    ac_aux_dir=$ac_dir
609    ac_install_sh="$ac_aux_dir/install.sh -c"
610    break
611  fi
612done
613if test -z "$ac_aux_dir"; then
614  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
615fi
616ac_config_guess=$ac_aux_dir/config.guess
617ac_config_sub=$ac_aux_dir/config.sub
618ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619
620# Find a good install program.  We prefer a C program (faster),
621# so one script is as good as another.  But avoid the broken or
622# incompatible versions:
623# SysV /etc/install, /usr/sbin/install
624# SunOS /usr/etc/install
625# IRIX /sbin/install
626# AIX /bin/install
627# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
628# AFS /usr/afsws/bin/install, which mishandles nonexistent args
629# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
630# ./install, which can be erroneously created by make from ./install.sh.
631echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
632echo "configure:633: checking for a BSD compatible install" >&5
633if test -z "$INSTALL"; then
634if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
635  echo $ac_n "(cached) $ac_c" 1>&6
636else
637    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
638  for ac_dir in $PATH; do
639    # Account for people who put trailing slashes in PATH elements.
640    case "$ac_dir/" in
641    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
642    *)
643      # OSF1 and SCO ODT 3.0 have their own names for install.
644      # Don't use installbsd from OSF since it installs stuff as root
645      # by default.
646      for ac_prog in ginstall scoinst install; do
647        if test -f $ac_dir/$ac_prog; then
648          if test $ac_prog = install &&
649            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
650            # AIX install.  It has an incompatible calling convention.
651            :
652          else
653            ac_cv_path_install="$ac_dir/$ac_prog -c"
654            break 2
655          fi
656        fi
657      done
658      ;;
659    esac
660  done
661  IFS="$ac_save_IFS"
662
663fi
664  if test "${ac_cv_path_install+set}" = set; then
665    INSTALL="$ac_cv_path_install"
666  else
667    # As a last resort, use the slow shell script.  We don't cache a
668    # path for INSTALL within a source directory, because that will
669    # break other packages using the cache if that directory is
670    # removed, or if the path is relative.
671    INSTALL="$ac_install_sh"
672  fi
673fi
674echo "$ac_t""$INSTALL" 1>&6
675
676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
677# It thinks the first close brace ends the variable substitution.
678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
679
680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
681
682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
683
684echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
685echo "configure:686: checking whether build environment is sane" >&5
686# Just in case
687sleep 1
688echo timestamp > conftestfile
689# Do `set' in a subshell so we don't clobber the current shell's
690# arguments.  Must try -L first in case configure is actually a
691# symlink; some systems play weird games with the mod time of symlinks
692# (eg FreeBSD returns the mod time of the symlink's containing
693# directory).
694if (
695   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
696   if test "$*" = "X"; then
697      # -L didn't work.
698      set X `ls -t $srcdir/configure conftestfile`
699   fi
700   if test "$*" != "X $srcdir/configure conftestfile" \
701      && test "$*" != "X conftestfile $srcdir/configure"; then
702
703      # If neither matched, then we have a broken ls.  This can happen
704      # if, for instance, CONFIG_SHELL is bash and it inherits a
705      # broken ls alias from the environment.  This has actually
706      # happened.  Such a system could not be considered "sane".
707      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
708alias in your environment" 1>&2; exit 1; }
709   fi
710
711   test "$2" = conftestfile
712   )
713then
714   # Ok.
715   :
716else
717   { echo "configure: error: newly created file is older than distributed files!
718Check your system clock" 1>&2; exit 1; }
719fi
720rm -f conftest*
721echo "$ac_t""yes" 1>&6
722if test "$program_transform_name" = s,x,x,; then
723  program_transform_name=
724else
725  # Double any \ or $.  echo might interpret backslashes.
726  cat <<\EOF_SED > conftestsed
727s,\\,\\\\,g; s,\$,$$,g
728EOF_SED
729  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
730  rm -f conftestsed
731fi
732test "$program_prefix" != NONE &&
733  program_transform_name="s,^,${program_prefix},; $program_transform_name"
734# Use a double $ so make ignores it.
735test "$program_suffix" != NONE &&
736  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
737
738# sed with no file args requires a program.
739test "$program_transform_name" = "" && program_transform_name="s,x,x,"
740
741echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
742echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5
743set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
744if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
745  echo $ac_n "(cached) $ac_c" 1>&6
746else
747  cat > conftestmake <<\EOF
748all:
749        @echo 'ac_maketemp="${MAKE}"'
750EOF
751# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
752eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
753if test -n "$ac_maketemp"; then
754  eval ac_cv_prog_make_${ac_make}_set=yes
755else
756  eval ac_cv_prog_make_${ac_make}_set=no
757fi
758rm -f conftestmake
759fi
760if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
761  echo "$ac_t""yes" 1>&6
762  SET_MAKE=
763else
764  echo "$ac_t""no" 1>&6
765  SET_MAKE="MAKE=${MAKE-make}"
766fi
767
768
769PACKAGE=$PACKAGE
770
771VERSION=$VERSION
772
773if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
774  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
775fi
776
777
778
779missing_dir=`cd $ac_aux_dir && pwd`
780echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
781echo "configure:782: checking for working aclocal" >&5
782# Run test in a subshell; some versions of sh will print an error if
783# an executable is not found, even if stderr is redirected.
784# Redirect stdin to placate older versions of autoconf.  Sigh.
785if (aclocal --version) < /dev/null > /dev/null 2>&1; then
786   ACLOCAL=aclocal
787   echo "$ac_t""found" 1>&6
788else
789   ACLOCAL="$missing_dir/missing aclocal"
790   echo "$ac_t""missing" 1>&6
791fi
792
793echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
794echo "configure:795: checking for working autoconf" >&5
795# Run test in a subshell; some versions of sh will print an error if
796# an executable is not found, even if stderr is redirected.
797# Redirect stdin to placate older versions of autoconf.  Sigh.
798if (autoconf --version) < /dev/null > /dev/null 2>&1; then
799   AUTOCONF=autoconf
800   echo "$ac_t""found" 1>&6
801else
802   AUTOCONF="$missing_dir/missing autoconf"
803   echo "$ac_t""missing" 1>&6
804fi
805
806echo $ac_n "checking for working automake""... $ac_c" 1>&6
807echo "configure:808: checking for working automake" >&5
808# Run test in a subshell; some versions of sh will print an error if
809# an executable is not found, even if stderr is redirected.
810# Redirect stdin to placate older versions of autoconf.  Sigh.
811if (automake --version) < /dev/null > /dev/null 2>&1; then
812   AUTOMAKE=automake
813   echo "$ac_t""found" 1>&6
814else
815   AUTOMAKE="$missing_dir/missing automake"
816   echo "$ac_t""missing" 1>&6
817fi
818
819echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
820echo "configure:821: checking for working autoheader" >&5
821# Run test in a subshell; some versions of sh will print an error if
822# an executable is not found, even if stderr is redirected.
823# Redirect stdin to placate older versions of autoconf.  Sigh.
824if (autoheader --version) < /dev/null > /dev/null 2>&1; then
825   AUTOHEADER=autoheader
826   echo "$ac_t""found" 1>&6
827else
828   AUTOHEADER="$missing_dir/missing autoheader"
829   echo "$ac_t""missing" 1>&6
830fi
831
832echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
833echo "configure:834: checking for working makeinfo" >&5
834# Run test in a subshell; some versions of sh will print an error if
835# an executable is not found, even if stderr is redirected.
836# Redirect stdin to placate older versions of autoconf.  Sigh.
837if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
838   MAKEINFO=makeinfo
839   echo "$ac_t""found" 1>&6
840else
841   MAKEINFO="$missing_dir/missing makeinfo"
842   echo "$ac_t""missing" 1>&6
843fi
844
845
846
847# Check whether --enable-shared or --disable-shared was given.
848if test "${enable_shared+set}" = set; then
849  enableval="$enable_shared"
850  p=${PACKAGE-default}
851case "$enableval" in
852yes) enable_shared=yes ;;
853no) enable_shared=no ;;
854*)
855  enable_shared=no
856  # Look at the argument we got.  We use all the common list separators.
857  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
858  for pkg in $enableval; do
859    if test "X$pkg" = "X$p"; then
860      enable_shared=yes
861    fi
862  done
863  IFS="$ac_save_ifs"
864  ;;
865esac
866else
867  enable_shared=yes
868fi
869
870# Check whether --enable-static or --disable-static was given.
871if test "${enable_static+set}" = set; then
872  enableval="$enable_static"
873  p=${PACKAGE-default}
874case "$enableval" in
875yes) enable_static=yes ;;
876no) enable_static=no ;;
877*)
878  enable_static=no
879  # Look at the argument we got.  We use all the common list separators.
880  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
881  for pkg in $enableval; do
882    if test "X$pkg" = "X$p"; then
883      enable_static=yes
884    fi
885  done
886  IFS="$ac_save_ifs"
887  ;;
888esac
889else
890  enable_static=yes
891fi
892
893# Check whether --enable-fast-install or --disable-fast-install was given.
894if test "${enable_fast_install+set}" = set; then
895  enableval="$enable_fast_install"
896  p=${PACKAGE-default}
897case "$enableval" in
898yes) enable_fast_install=yes ;;
899no) enable_fast_install=no ;;
900*)
901  enable_fast_install=no
902  # Look at the argument we got.  We use all the common list separators.
903  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
904  for pkg in $enableval; do
905    if test "X$pkg" = "X$p"; then
906      enable_fast_install=yes
907    fi
908  done
909  IFS="$ac_save_ifs"
910  ;;
911esac
912else
913  enable_fast_install=yes
914fi
915
916
917# Make sure we can run config.sub.
918if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
919else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
920fi
921
922echo $ac_n "checking host system type""... $ac_c" 1>&6
923echo "configure:924: checking host system type" >&5
924
925host_alias=$host
926case "$host_alias" in
927NONE)
928  case $nonopt in
929  NONE)
930    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
931    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
932    fi ;;
933  *) host_alias=$nonopt ;;
934  esac ;;
935esac
936
937host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
938host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
939host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
940host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
941echo "$ac_t""$host" 1>&6
942
943echo $ac_n "checking build system type""... $ac_c" 1>&6
944echo "configure:945: checking build system type" >&5
945
946build_alias=$build
947case "$build_alias" in
948NONE)
949  case $nonopt in
950  NONE) build_alias=$host_alias ;;
951  *) build_alias=$nonopt ;;
952  esac ;;
953esac
954
955build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
956build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
957build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
958build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
959echo "$ac_t""$build" 1>&6
960
961# Extract the first word of "ranlib", so it can be a program name with args.
962set dummy ranlib; ac_word=$2
963echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964echo "configure:965: checking for $ac_word" >&5
965if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
966  echo $ac_n "(cached) $ac_c" 1>&6
967else
968  if test -n "$RANLIB"; then
969  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
970else
971  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
972  ac_dummy="$PATH"
973  for ac_dir in $ac_dummy; do
974    test -z "$ac_dir" && ac_dir=.
975    if test -f $ac_dir/$ac_word; then
976      ac_cv_prog_RANLIB="ranlib"
977      break
978    fi
979  done
980  IFS="$ac_save_ifs"
981  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
982fi
983fi
984RANLIB="$ac_cv_prog_RANLIB"
985if test -n "$RANLIB"; then
986  echo "$ac_t""$RANLIB" 1>&6
987else
988  echo "$ac_t""no" 1>&6
989fi
990
991# Extract the first word of "gcc", so it can be a program name with args.
992set dummy gcc; ac_word=$2
993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994echo "configure:995: checking for $ac_word" >&5
995if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
996  echo $ac_n "(cached) $ac_c" 1>&6
997else
998  if test -n "$CC"; then
999  ac_cv_prog_CC="$CC" # Let the user override the test.
1000else
1001  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1002  ac_dummy="$PATH"
1003  for ac_dir in $ac_dummy; do
1004    test -z "$ac_dir" && ac_dir=.
1005    if test -f $ac_dir/$ac_word; then
1006      ac_cv_prog_CC="gcc"
1007      break
1008    fi
1009  done
1010  IFS="$ac_save_ifs"
1011fi
1012fi
1013CC="$ac_cv_prog_CC"
1014if test -n "$CC"; then
1015  echo "$ac_t""$CC" 1>&6
1016else
1017  echo "$ac_t""no" 1>&6
1018fi
1019
1020if test -z "$CC"; then
1021  # Extract the first word of "cc", so it can be a program name with args.
1022set dummy cc; ac_word=$2
1023echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024echo "configure:1025: checking for $ac_word" >&5
1025if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026  echo $ac_n "(cached) $ac_c" 1>&6
1027else
1028  if test -n "$CC"; then
1029  ac_cv_prog_CC="$CC" # Let the user override the test.
1030else
1031  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1032  ac_prog_rejected=no
1033  ac_dummy="$PATH"
1034  for ac_dir in $ac_dummy; do
1035    test -z "$ac_dir" && ac_dir=.
1036    if test -f $ac_dir/$ac_word; then
1037      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1038        ac_prog_rejected=yes
1039        continue
1040      fi
1041      ac_cv_prog_CC="cc"
1042      break
1043    fi
1044  done
1045  IFS="$ac_save_ifs"
1046if test $ac_prog_rejected = yes; then
1047  # We found a bogon in the path, so make sure we never use it.
1048  set dummy $ac_cv_prog_CC
1049  shift
1050  if test $# -gt 0; then
1051    # We chose a different compiler from the bogus one.
1052    # However, it has the same basename, so the bogon will be chosen
1053    # first if we set CC to just the basename; use the full file name.
1054    shift
1055    set dummy "$ac_dir/$ac_word" "$@"
1056    shift
1057    ac_cv_prog_CC="$@"
1058  fi
1059fi
1060fi
1061fi
1062CC="$ac_cv_prog_CC"
1063if test -n "$CC"; then
1064  echo "$ac_t""$CC" 1>&6
1065else
1066  echo "$ac_t""no" 1>&6
1067fi
1068
1069  if test -z "$CC"; then
1070    case "`uname -s`" in
1071    *win32* | *WIN32*)
1072      # Extract the first word of "cl", so it can be a program name with args.
1073set dummy cl; ac_word=$2
1074echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075echo "configure:1076: checking for $ac_word" >&5
1076if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077  echo $ac_n "(cached) $ac_c" 1>&6
1078else
1079  if test -n "$CC"; then
1080  ac_cv_prog_CC="$CC" # Let the user override the test.
1081else
1082  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1083  ac_dummy="$PATH"
1084  for ac_dir in $ac_dummy; do
1085    test -z "$ac_dir" && ac_dir=.
1086    if test -f $ac_dir/$ac_word; then
1087      ac_cv_prog_CC="cl"
1088      break
1089    fi
1090  done
1091  IFS="$ac_save_ifs"
1092fi
1093fi
1094CC="$ac_cv_prog_CC"
1095if test -n "$CC"; then
1096  echo "$ac_t""$CC" 1>&6
1097else
1098  echo "$ac_t""no" 1>&6
1099fi
1100 ;;
1101    esac
1102  fi
1103  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1104fi
1105
1106echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1107echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1108
1109ac_ext=c
1110# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1111ac_cpp='$CPP $CPPFLAGS'
1112ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1113ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1114cross_compiling=$ac_cv_prog_cc_cross
1115
1116cat > conftest.$ac_ext << EOF
1117
1118#line 1119 "configure"
1119#include "confdefs.h"
1120
1121main(){return(0);}
1122EOF
1123if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1124  ac_cv_prog_cc_works=yes
1125  # If we can't run a trivial program, we are probably using a cross compiler.
1126  if (./conftest; exit) 2>/dev/null; then
1127    ac_cv_prog_cc_cross=no
1128  else
1129    ac_cv_prog_cc_cross=yes
1130  fi
1131else
1132  echo "configure: failed program was:" >&5
1133  cat conftest.$ac_ext >&5
1134  ac_cv_prog_cc_works=no
1135fi
1136rm -fr conftest*
1137ac_ext=c
1138# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1139ac_cpp='$CPP $CPPFLAGS'
1140ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1141ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1142cross_compiling=$ac_cv_prog_cc_cross
1143
1144echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1145if test $ac_cv_prog_cc_works = no; then
1146  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1147fi
1148echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1149echo "configure:1150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1150echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1151cross_compiling=$ac_cv_prog_cc_cross
1152
1153echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1154echo "configure:1155: checking whether we are using GNU C" >&5
1155if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1156  echo $ac_n "(cached) $ac_c" 1>&6
1157else
1158  cat > conftest.c <<EOF
1159#ifdef __GNUC__
1160  yes;
1161#endif
1162EOF
1163if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1164  ac_cv_prog_gcc=yes
1165else
1166  ac_cv_prog_gcc=no
1167fi
1168fi
1169
1170echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1171
1172if test $ac_cv_prog_gcc = yes; then
1173  GCC=yes
1174else
1175  GCC=
1176fi
1177
1178ac_test_CFLAGS="${CFLAGS+set}"
1179ac_save_CFLAGS="$CFLAGS"
1180CFLAGS=
1181echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1182echo "configure:1183: checking whether ${CC-cc} accepts -g" >&5
1183if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1184  echo $ac_n "(cached) $ac_c" 1>&6
1185else
1186  echo 'void f(){}' > conftest.c
1187if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1188  ac_cv_prog_cc_g=yes
1189else
1190  ac_cv_prog_cc_g=no
1191fi
1192rm -f conftest*
1193
1194fi
1195
1196echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1197if test "$ac_test_CFLAGS" = set; then
1198  CFLAGS="$ac_save_CFLAGS"
1199elif test $ac_cv_prog_cc_g = yes; then
1200  if test "$GCC" = yes; then
1201    CFLAGS="-g -O2"
1202  else
1203    CFLAGS="-g"
1204  fi
1205else
1206  if test "$GCC" = yes; then
1207    CFLAGS="-O2"
1208  else
1209    CFLAGS=
1210  fi
1211fi
1212
1213# Check whether --with-gnu-ld or --without-gnu-ld was given.
1214if test "${with_gnu_ld+set}" = set; then
1215  withval="$with_gnu_ld"
1216  test "$withval" = no || with_gnu_ld=yes
1217else
1218  with_gnu_ld=no
1219fi
1220
1221ac_prog=ld
1222if test "$ac_cv_prog_gcc" = yes; then
1223  # Check if gcc -print-prog-name=ld gives a path.
1224  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1225echo "configure:1226: checking for ld used by GCC" >&5
1226  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1227  case "$ac_prog" in
1228    # Accept absolute paths.
1229    [\\/]* | [A-Za-z]:[\\/]*)
1230      re_direlt='/[^/][^/]*/\.\./'
1231      # Canonicalize the path of ld
1232      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1233      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1234        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1235      done
1236      test -z "$LD" && LD="$ac_prog"
1237      ;;
1238  "")
1239    # If it fails, then pretend we aren't using GCC.
1240    ac_prog=ld
1241    ;;
1242  *)
1243    # If it is relative, then search for the first ld in PATH.
1244    with_gnu_ld=unknown
1245    ;;
1246  esac
1247elif test "$with_gnu_ld" = yes; then
1248  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1249echo "configure:1250: checking for GNU ld" >&5
1250else
1251  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1252echo "configure:1253: checking for non-GNU ld" >&5
1253fi
1254if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1255  echo $ac_n "(cached) $ac_c" 1>&6
1256else
1257  if test -z "$LD"; then
1258  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1259  for ac_dir in $PATH; do
1260    test -z "$ac_dir" && ac_dir=.
1261    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1262      ac_cv_path_LD="$ac_dir/$ac_prog"
1263      # Check to see if the program is GNU ld.  I'd rather use --version,
1264      # but apparently some GNU ld's only accept -v.
1265      # Break only if it was the GNU/non-GNU ld that we prefer.
1266      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1267        test "$with_gnu_ld" != no && break
1268      else
1269        test "$with_gnu_ld" != yes && break
1270      fi
1271    fi
1272  done
1273  IFS="$ac_save_ifs"
1274else
1275  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1276fi
1277fi
1278
1279LD="$ac_cv_path_LD"
1280if test -n "$LD"; then
1281  echo "$ac_t""$LD" 1>&6
1282else
1283  echo "$ac_t""no" 1>&6
1284fi
1285test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1286echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1287echo "configure:1288: checking if the linker ($LD) is GNU ld" >&5
1288if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1289  echo $ac_n "(cached) $ac_c" 1>&6
1290else
1291  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1292if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1293  ac_cv_prog_gnu_ld=yes
1294else
1295  ac_cv_prog_gnu_ld=no
1296fi
1297fi
1298
1299echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1300
1301
1302echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1303echo "configure:1304: checking for BSD-compatible nm" >&5
1304if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1305  echo $ac_n "(cached) $ac_c" 1>&6
1306else
1307  if test -n "$NM"; then
1308  # Let the user override the test.
1309  ac_cv_path_NM="$NM"
1310else
1311  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1312  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1313    test -z "$ac_dir" && ac_dir=.
1314    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1315      # Check to see if the nm accepts a BSD-compat flag.
1316      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1317      #   nm: unknown option "B" ignored
1318      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1319        ac_cv_path_NM="$ac_dir/nm -B"
1320        break
1321      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1322        ac_cv_path_NM="$ac_dir/nm -p"
1323        break
1324      else
1325        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1326        continue # so that we can try to find one that supports BSD flags
1327      fi
1328    fi
1329  done
1330  IFS="$ac_save_ifs"
1331  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1332fi
1333fi
1334
1335NM="$ac_cv_path_NM"
1336echo "$ac_t""$NM" 1>&6
1337
1338echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1339echo "configure:1340: checking whether ln -s works" >&5
1340if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1341  echo $ac_n "(cached) $ac_c" 1>&6
1342else
1343  rm -f conftestdata
1344if ln -s X conftestdata 2>/dev/null
1345then
1346  rm -f conftestdata
1347  ac_cv_prog_LN_S="ln -s"
1348else
1349  ac_cv_prog_LN_S=ln
1350fi
1351fi
1352LN_S="$ac_cv_prog_LN_S"
1353if test "$ac_cv_prog_LN_S" = "ln -s"; then
1354  echo "$ac_t""yes" 1>&6
1355else
1356  echo "$ac_t""no" 1>&6
1357fi
1358
1359
1360case "$target" in
1361NONE) lt_target="$host" ;;
1362*) lt_target="$target" ;;
1363esac
1364
1365# Check for any special flags to pass to ltconfig.
1366#
1367# the following will cause an existing older ltconfig to fail, so
1368# we ignore this at the expense of the cache file... Checking this
1369# will just take longer ... bummer!
1370#libtool_flags="--cache-file=$cache_file"
1371#
1372test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1373test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1374test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1375test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1376test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1377
1378
1379# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1380if test "${enable_libtool_lock+set}" = set; then
1381  enableval="$enable_libtool_lock"
1382  :
1383fi
1384
1385test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1386test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1387
1388# Some flags need to be propagated to the compiler or linker for good
1389# libtool support.
1390case "$lt_target" in
1391*-*-irix6*)
1392  # Find out which ABI we are using.
1393  echo '#line 1394 "configure"' > conftest.$ac_ext
1394  if { (eval echo configure:1395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1395    case "`/usr/bin/file conftest.o`" in
1396    *32-bit*)
1397      LD="${LD-ld} -32"
1398      ;;
1399    *N32*)
1400      LD="${LD-ld} -n32"
1401      ;;
1402    *64-bit*)
1403      LD="${LD-ld} -64"
1404      ;;
1405    esac
1406  fi
1407  rm -rf conftest*
1408  ;;
1409
1410*-*-sco3.2v5*)
1411  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1412  SAVE_CFLAGS="$CFLAGS"
1413  CFLAGS="$CFLAGS -belf"
1414  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1415echo "configure:1416: checking whether the C compiler needs -belf" >&5
1416if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1417  echo $ac_n "(cached) $ac_c" 1>&6
1418else
1419  cat > conftest.$ac_ext <<EOF
1420#line 1421 "configure"
1421#include "confdefs.h"
1422
1423int main() {
1424
1425; return 0; }
1426EOF
1427if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428  rm -rf conftest*
1429  lt_cv_cc_needs_belf=yes
1430else
1431  echo "configure: failed program was:" >&5
1432  cat conftest.$ac_ext >&5
1433  rm -rf conftest*
1434  lt_cv_cc_needs_belf=no
1435fi
1436rm -f conftest*
1437fi
1438
1439echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1440  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1441    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1442    CFLAGS="$SAVE_CFLAGS"
1443  fi
1444  ;;
1445
1446
1447esac
1448
1449
1450# Save cache, so that ltconfig can load it
1451cat > confcache <<\EOF
1452# This file is a shell script that caches the results of configure
1453# tests run on this system so they can be shared between configure
1454# scripts and configure runs.  It is not useful on other systems.
1455# If it contains results you don't want to keep, you may remove or edit it.
1456#
1457# By default, configure uses ./config.cache as the cache file,
1458# creating it if it does not exist already.  You can give configure
1459# the --cache-file=FILE option to use a different cache file; that is
1460# what configure does when it calls configure scripts in
1461# subdirectories, so they share the cache.
1462# Giving --cache-file=/dev/null disables caching, for debugging configure.
1463# config.status only pays attention to the cache file if you give it the
1464# --recheck option to rerun configure.
1465#
1466EOF
1467# The following way of writing the cache mishandles newlines in values,
1468# but we know of no workaround that is simple, portable, and efficient.
1469# So, don't put newlines in cache variables' values.
1470# Ultrix sh set writes to stderr and can't be redirected directly,
1471# and sets the high bit in the cache file unless we assign to the vars.
1472(set) 2>&1 |
1473  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1474  *ac_space=\ *)
1475    # `set' does not quote correctly, so add quotes (double-quote substitution
1476    # turns \\\\ into \\, and sed turns \\ into \).
1477    sed -n \
1478      -e "s/'/'\\\\''/g" \
1479      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1480    ;;
1481  *)
1482    # `set' quotes correctly as required by POSIX, so do not add quotes.
1483    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1484    ;;
1485  esac >> confcache
1486if cmp -s $cache_file confcache; then
1487  :
1488else
1489  if test -w $cache_file; then
1490    echo "updating cache $cache_file"
1491    cat confcache > $cache_file
1492  else
1493    echo "not updating unwritable cache $cache_file"
1494  fi
1495fi
1496rm -f confcache
1497
1498
1499# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1500CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1501LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1502LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1503DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1504${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1505$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1506|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1507
1508# Reload cache, that may have been modified by ltconfig
1509if test -r "$cache_file"; then
1510  echo "loading cache $cache_file"
1511  . $cache_file
1512else
1513  echo "creating cache $cache_file"
1514  > $cache_file
1515fi
1516
1517
1518# This can be used to rebuild libtool when needed
1519LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1520
1521# Always use our own libtool.
1522LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1523
1524# Redirect the config.log output again, so that the ltconfig log is not
1525# clobbered by the next message.
1526exec 5>>./config.log
1527
1528echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1529echo "configure:1530: checking whether to enable maintainer-specific portions of Makefiles" >&5
1530    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1531if test "${enable_maintainer_mode+set}" = set; then
1532  enableval="$enable_maintainer_mode"
1533  USE_MAINTAINER_MODE=$enableval
1534else
1535  USE_MAINTAINER_MODE=no
1536fi
1537
1538  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1539 
1540
1541if test $USE_MAINTAINER_MODE = yes; then
1542  MAINTAINER_MODE_TRUE=
1543  MAINTAINER_MODE_FALSE='#'
1544else
1545  MAINTAINER_MODE_TRUE='#'
1546  MAINTAINER_MODE_FALSE=
1547fi
1548  MAINT=$MAINTAINER_MODE_TRUE
1549 
1550
1551
1552if test x$enable_static != xyes ; then
1553  { echo "configure: error: Static linking is required for a working ORBit." 1>&2; exit 1; }
1554  exit 1
1555fi
1556
1557# Extract the first word of "gcc", so it can be a program name with args.
1558set dummy gcc; ac_word=$2
1559echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1560echo "configure:1561: checking for $ac_word" >&5
1561if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1562  echo $ac_n "(cached) $ac_c" 1>&6
1563else
1564  if test -n "$CC"; then
1565  ac_cv_prog_CC="$CC" # Let the user override the test.
1566else
1567  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1568  ac_dummy="$PATH"
1569  for ac_dir in $ac_dummy; do
1570    test -z "$ac_dir" && ac_dir=.
1571    if test -f $ac_dir/$ac_word; then
1572      ac_cv_prog_CC="gcc"
1573      break
1574    fi
1575  done
1576  IFS="$ac_save_ifs"
1577fi
1578fi
1579CC="$ac_cv_prog_CC"
1580if test -n "$CC"; then
1581  echo "$ac_t""$CC" 1>&6
1582else
1583  echo "$ac_t""no" 1>&6
1584fi
1585
1586if test -z "$CC"; then
1587  # Extract the first word of "cc", so it can be a program name with args.
1588set dummy cc; ac_word=$2
1589echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1590echo "configure:1591: checking for $ac_word" >&5
1591if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1592  echo $ac_n "(cached) $ac_c" 1>&6
1593else
1594  if test -n "$CC"; then
1595  ac_cv_prog_CC="$CC" # Let the user override the test.
1596else
1597  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1598  ac_prog_rejected=no
1599  ac_dummy="$PATH"
1600  for ac_dir in $ac_dummy; do
1601    test -z "$ac_dir" && ac_dir=.
1602    if test -f $ac_dir/$ac_word; then
1603      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1604        ac_prog_rejected=yes
1605        continue
1606      fi
1607      ac_cv_prog_CC="cc"
1608      break
1609    fi
1610  done
1611  IFS="$ac_save_ifs"
1612if test $ac_prog_rejected = yes; then
1613  # We found a bogon in the path, so make sure we never use it.
1614  set dummy $ac_cv_prog_CC
1615  shift
1616  if test $# -gt 0; then
1617    # We chose a different compiler from the bogus one.
1618    # However, it has the same basename, so the bogon will be chosen
1619    # first if we set CC to just the basename; use the full file name.
1620    shift
1621    set dummy "$ac_dir/$ac_word" "$@"
1622    shift
1623    ac_cv_prog_CC="$@"
1624  fi
1625fi
1626fi
1627fi
1628CC="$ac_cv_prog_CC"
1629if test -n "$CC"; then
1630  echo "$ac_t""$CC" 1>&6
1631else
1632  echo "$ac_t""no" 1>&6
1633fi
1634
1635  if test -z "$CC"; then
1636    case "`uname -s`" in
1637    *win32* | *WIN32*)
1638      # Extract the first word of "cl", so it can be a program name with args.
1639set dummy cl; ac_word=$2
1640echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1641echo "configure:1642: checking for $ac_word" >&5
1642if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1643  echo $ac_n "(cached) $ac_c" 1>&6
1644else
1645  if test -n "$CC"; then
1646  ac_cv_prog_CC="$CC" # Let the user override the test.
1647else
1648  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1649  ac_dummy="$PATH"
1650  for ac_dir in $ac_dummy; do
1651    test -z "$ac_dir" && ac_dir=.
1652    if test -f $ac_dir/$ac_word; then
1653      ac_cv_prog_CC="cl"
1654      break
1655    fi
1656  done
1657  IFS="$ac_save_ifs"
1658fi
1659fi
1660CC="$ac_cv_prog_CC"
1661if test -n "$CC"; then
1662  echo "$ac_t""$CC" 1>&6
1663else
1664  echo "$ac_t""no" 1>&6
1665fi
1666 ;;
1667    esac
1668  fi
1669  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1670fi
1671
1672echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1673echo "configure:1674: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1674
1675ac_ext=c
1676# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1677ac_cpp='$CPP $CPPFLAGS'
1678ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1679ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1680cross_compiling=$ac_cv_prog_cc_cross
1681
1682cat > conftest.$ac_ext << EOF
1683
1684#line 1685 "configure"
1685#include "confdefs.h"
1686
1687main(){return(0);}
1688EOF
1689if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1690  ac_cv_prog_cc_works=yes
1691  # If we can't run a trivial program, we are probably using a cross compiler.
1692  if (./conftest; exit) 2>/dev/null; then
1693    ac_cv_prog_cc_cross=no
1694  else
1695    ac_cv_prog_cc_cross=yes
1696  fi
1697else
1698  echo "configure: failed program was:" >&5
1699  cat conftest.$ac_ext >&5
1700  ac_cv_prog_cc_works=no
1701fi
1702rm -fr conftest*
1703ac_ext=c
1704# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1705ac_cpp='$CPP $CPPFLAGS'
1706ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1707ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1708cross_compiling=$ac_cv_prog_cc_cross
1709
1710echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1711if test $ac_cv_prog_cc_works = no; then
1712  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1713fi
1714echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1715echo "configure:1716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1716echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1717cross_compiling=$ac_cv_prog_cc_cross
1718
1719echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1720echo "configure:1721: checking whether we are using GNU C" >&5
1721if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1722  echo $ac_n "(cached) $ac_c" 1>&6
1723else
1724  cat > conftest.c <<EOF
1725#ifdef __GNUC__
1726  yes;
1727#endif
1728EOF
1729if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1730  ac_cv_prog_gcc=yes
1731else
1732  ac_cv_prog_gcc=no
1733fi
1734fi
1735
1736echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1737
1738if test $ac_cv_prog_gcc = yes; then
1739  GCC=yes
1740else
1741  GCC=
1742fi
1743
1744ac_test_CFLAGS="${CFLAGS+set}"
1745ac_save_CFLAGS="$CFLAGS"
1746CFLAGS=
1747echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1748echo "configure:1749: checking whether ${CC-cc} accepts -g" >&5
1749if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1750  echo $ac_n "(cached) $ac_c" 1>&6
1751else
1752  echo 'void f(){}' > conftest.c
1753if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1754  ac_cv_prog_cc_g=yes
1755else
1756  ac_cv_prog_cc_g=no
1757fi
1758rm -f conftest*
1759
1760fi
1761
1762echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1763if test "$ac_test_CFLAGS" = set; then
1764  CFLAGS="$ac_save_CFLAGS"
1765elif test $ac_cv_prog_cc_g = yes; then
1766  if test "$GCC" = yes; then
1767    CFLAGS="-g -O2"
1768  else
1769    CFLAGS="-g"
1770  fi
1771else
1772  if test "$GCC" = yes; then
1773    CFLAGS="-O2"
1774  else
1775    CFLAGS=
1776  fi
1777fi
1778
1779# Find a good install program.  We prefer a C program (faster),
1780# so one script is as good as another.  But avoid the broken or
1781# incompatible versions:
1782# SysV /etc/install, /usr/sbin/install
1783# SunOS /usr/etc/install
1784# IRIX /sbin/install
1785# AIX /bin/install
1786# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1787# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1788# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1789# ./install, which can be erroneously created by make from ./install.sh.
1790echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1791echo "configure:1792: checking for a BSD compatible install" >&5
1792if test -z "$INSTALL"; then
1793if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1794  echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1797  for ac_dir in $PATH; do
1798    # Account for people who put trailing slashes in PATH elements.
1799    case "$ac_dir/" in
1800    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1801    *)
1802      # OSF1 and SCO ODT 3.0 have their own names for install.
1803      # Don't use installbsd from OSF since it installs stuff as root
1804      # by default.
1805      for ac_prog in ginstall scoinst install; do
1806        if test -f $ac_dir/$ac_prog; then
1807          if test $ac_prog = install &&
1808            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1809            # AIX install.  It has an incompatible calling convention.
1810            :
1811          else
1812            ac_cv_path_install="$ac_dir/$ac_prog -c"
1813            break 2
1814          fi
1815        fi
1816      done
1817      ;;
1818    esac
1819  done
1820  IFS="$ac_save_IFS"
1821
1822fi
1823  if test "${ac_cv_path_install+set}" = set; then
1824    INSTALL="$ac_cv_path_install"
1825  else
1826    # As a last resort, use the slow shell script.  We don't cache a
1827    # path for INSTALL within a source directory, because that will
1828    # break other packages using the cache if that directory is
1829    # removed, or if the path is relative.
1830    INSTALL="$ac_install_sh"
1831  fi
1832fi
1833echo "$ac_t""$INSTALL" 1>&6
1834
1835# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1836# It thinks the first close brace ends the variable substitution.
1837test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1838
1839test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1840
1841test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1842
1843
1844# Check whether --enable-indent or --disable-indent was given.
1845if test "${enable_indent+set}" = set; then
1846  enableval="$enable_indent"
1847  use_indent=$enableval
1848else
1849  use_indent=yes
1850fi
1851
1852
1853echo $ac_n "checking for indentation command to pipe generated c-files through""... $ac_c" 1>&6
1854echo "configure:1855: checking for indentation command to pipe generated c-files through" >&5
1855for test_indent in "$use_indent" "indent -" cat; do
1856  case "$test_indent" in
1857    yes)
1858      INDENT_COMMAND="indent -npro -bad -bap -bc -sob -br -ce -cli2 -npcs -di1 -psl -i3 -lp -st"
1859      ;;
1860    no)
1861      INDENT_COMMAND=cat
1862      ;;
1863    kr)
1864      INDENT_COMMAND="indent -npro -kr -i8 -bad -fca -sc -sob -psl"
1865      ;;
1866    *)
1867      INDENT_COMMAND="$test_indent"
1868  esac
1869
1870  if echo 2>/dev/null | $INDENT_COMMAND 2>/dev/null 1>&2 ; then
1871    break
1872  fi
1873done
1874echo "$ac_t""$INDENT_COMMAND" 1>&6
1875cat >> confdefs.h <<EOF
1876#define INDENT_COMMAND "$INDENT_COMMAND"
1877EOF
1878
1879
1880
1881# Make sure that we have glib>=1.1.16
1882# Check whether --with-glib-prefix or --without-glib-prefix was given.
1883if test "${with_glib_prefix+set}" = set; then
1884  withval="$with_glib_prefix"
1885  glib_config_prefix="$withval"
1886else
1887  glib_config_prefix=""
1888fi
1889
1890# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1891if test "${with_glib_exec_prefix+set}" = set; then
1892  withval="$with_glib_exec_prefix"
1893  glib_config_exec_prefix="$withval"
1894else
1895  glib_config_exec_prefix=""
1896fi
1897
1898# Check whether --enable-glibtest or --disable-glibtest was given.
1899if test "${enable_glibtest+set}" = set; then
1900  enableval="$enable_glibtest"
1901  :
1902else
1903  enable_glibtest=yes
1904fi
1905
1906
1907  if test x$glib_config_exec_prefix != x ; then
1908     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1909     if test x${GLIB_CONFIG+set} != xset ; then
1910        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1911     fi
1912  fi
1913  if test x$glib_config_prefix != x ; then
1914     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1915     if test x${GLIB_CONFIG+set} != xset ; then
1916        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1917     fi
1918  fi
1919
1920  for module in .
1921  do
1922      case "$module" in
1923         gmodule)
1924             glib_config_args="$glib_config_args gmodule"
1925         ;;
1926         gthread)
1927             glib_config_args="$glib_config_args gthread"
1928         ;;
1929      esac
1930  done
1931
1932  # Extract the first word of "glib-config", so it can be a program name with args.
1933set dummy glib-config; ac_word=$2
1934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1935echo "configure:1936: checking for $ac_word" >&5
1936if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1937  echo $ac_n "(cached) $ac_c" 1>&6
1938else
1939  case "$GLIB_CONFIG" in
1940  /*)
1941  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1942  ;;
1943  ?:/*)                 
1944  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1945  ;;
1946  *)
1947  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1948  ac_dummy="$PATH"
1949  for ac_dir in $ac_dummy; do
1950    test -z "$ac_dir" && ac_dir=.
1951    if test -f $ac_dir/$ac_word; then
1952      ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1953      break
1954    fi
1955  done
1956  IFS="$ac_save_ifs"
1957  test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1958  ;;
1959esac
1960fi
1961GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1962if test -n "$GLIB_CONFIG"; then
1963  echo "$ac_t""$GLIB_CONFIG" 1>&6
1964else
1965  echo "$ac_t""no" 1>&6
1966fi
1967
1968  min_glib_version=1.2.1
1969  echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1970echo "configure:1971: checking for GLIB - version >= $min_glib_version" >&5
1971  no_glib=""
1972  if test "$GLIB_CONFIG" = "no" ; then
1973    no_glib=yes
1974  else
1975    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1976    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1977    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1978           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1979    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1980           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1981    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1982           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1983    if test "x$enable_glibtest" = "xyes" ; then
1984      ac_save_CFLAGS="$CFLAGS"
1985      ac_save_LIBS="$LIBS"
1986      CFLAGS="$CFLAGS $GLIB_CFLAGS"
1987      LIBS="$GLIB_LIBS $LIBS"
1988      rm -f conf.glibtest
1989      if test "$cross_compiling" = yes; then
1990  echo $ac_n "cross compiling; assumed OK... $ac_c"
1991else
1992  cat > conftest.$ac_ext <<EOF
1993#line 1994 "configure"
1994#include "confdefs.h"
1995
1996#include <glib.h>
1997#include <stdio.h>
1998#include <stdlib.h>
1999
2000int
2001main ()
2002{
2003  int major, minor, micro;
2004  char *tmp_version;
2005
2006  system ("touch conf.glibtest");
2007
2008  /* HP/UX 9 (%@#!) writes to sscanf strings */
2009  tmp_version = g_strdup("$min_glib_version");
2010  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2011     printf("%s, bad version string\n", "$min_glib_version");
2012     exit(1);
2013   }
2014
2015  if ((glib_major_version != $glib_config_major_version) ||
2016      (glib_minor_version != $glib_config_minor_version) ||
2017      (glib_micro_version != $glib_config_micro_version))
2018    {
2019      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
2020             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
2021             glib_major_version, glib_minor_version, glib_micro_version);
2022      printf ("*** was found! If glib-config was correct, then it is best\n");
2023      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
2024      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2025      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2026      printf("*** required on your system.\n");
2027      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
2028      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
2029      printf("*** before re-running configure\n");
2030    }
2031  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
2032           (glib_minor_version != GLIB_MINOR_VERSION) ||
2033           (glib_micro_version != GLIB_MICRO_VERSION))
2034    {
2035      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
2036             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
2037      printf("*** library (version %d.%d.%d)\n",
2038             glib_major_version, glib_minor_version, glib_micro_version);
2039    }
2040  else
2041    {
2042      if ((glib_major_version > major) ||
2043        ((glib_major_version == major) && (glib_minor_version > minor)) ||
2044        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
2045      {
2046        return 0;
2047       }
2048     else
2049      {
2050        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
2051               glib_major_version, glib_minor_version, glib_micro_version);
2052        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
2053               major, minor, micro);
2054        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
2055        printf("***\n");
2056        printf("*** If you have already installed a sufficiently new version, this error\n");
2057        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
2058        printf("*** being found. The easiest way to fix this is to remove the old version\n");
2059        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
2060        printf("*** correct copy of glib-config. (In this case, you will have to\n");
2061        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2062        printf("*** so that the correct libraries are found at run-time))\n");
2063      }
2064    }
2065  return 1;
2066}
2067
2068EOF
2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2070then
2071  :
2072else
2073  echo "configure: failed program was:" >&5
2074  cat conftest.$ac_ext >&5
2075  rm -fr conftest*
2076  no_glib=yes
2077fi
2078rm -fr conftest*
2079fi
2080
2081       CFLAGS="$ac_save_CFLAGS"
2082       LIBS="$ac_save_LIBS"
2083     fi
2084  fi
2085  if test "x$no_glib" = x ; then
2086     echo "$ac_t""yes" 1>&6
2087     :     
2088  else
2089     echo "$ac_t""no" 1>&6
2090     if test "$GLIB_CONFIG" = "no" ; then
2091       echo "*** The glib-config script installed by GLIB could not be found"
2092       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
2093       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
2094       echo "*** full path to glib-config."
2095     else
2096       if test -f conf.glibtest ; then
2097        :
2098       else
2099          echo "*** Could not run GLIB test program, checking why..."
2100          CFLAGS="$CFLAGS $GLIB_CFLAGS"
2101          LIBS="$LIBS $GLIB_LIBS"
2102          cat > conftest.$ac_ext <<EOF
2103#line 2104 "configure"
2104#include "confdefs.h"
2105
2106#include <glib.h>
2107#include <stdio.h>
2108
2109int main() {
2110 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
2111; return 0; }
2112EOF
2113if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2114  rm -rf conftest*
2115   echo "*** The test program compiled, but did not run. This usually means"
2116          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
2117          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
2118          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2119          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2120          echo "*** is required on your system"
2121          echo "***"
2122          echo "*** If you have an old version installed, it is best to remove it, although"
2123          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2124          echo "***"
2125          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2126          echo "*** came with the system with the command"
2127          echo "***"
2128          echo "***    rpm --erase --nodeps gtk gtk-devel"
2129else
2130  echo "configure: failed program was:" >&5
2131  cat conftest.$ac_ext >&5
2132  rm -rf conftest*
2133   echo "*** The test program failed to compile or link. See the file config.log for the"
2134          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
2135          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
2136          echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
2137fi
2138rm -f conftest*
2139          CFLAGS="$ac_save_CFLAGS"
2140          LIBS="$ac_save_LIBS"
2141       fi
2142     fi
2143     GLIB_CFLAGS=""
2144     GLIB_LIBS=""
2145     { echo "configure: error:
2146*** GLIB 1.2.1 or better is required. The latest version of GLIB
2147*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
2148  fi
2149 
2150 
2151  rm -f conf.glibtest
2152
2153
2154GMODULE_CFLAGS=`glib-config --cflags gmodule`
2155
2156GMODULE_LIBS=`glib-config --libs gmodule`
2157
2158
2159for ac_prog in 'bison -y' byacc
2160do
2161# Extract the first word of "$ac_prog", so it can be a program name with args.
2162set dummy $ac_prog; ac_word=$2
2163echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2164echo "configure:2165: checking for $ac_word" >&5
2165if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2166  echo $ac_n "(cached) $ac_c" 1>&6
2167else
2168  if test -n "$YACC"; then
2169  ac_cv_prog_YACC="$YACC" # Let the user override the test.
2170else
2171  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2172  ac_dummy="$PATH"
2173  for ac_dir in $ac_dummy; do
2174    test -z "$ac_dir" && ac_dir=.
2175    if test -f $ac_dir/$ac_word; then
2176      ac_cv_prog_YACC="$ac_prog"
2177      break
2178    fi
2179  done
2180  IFS="$ac_save_ifs"
2181fi
2182fi
2183YACC="$ac_cv_prog_YACC"
2184if test -n "$YACC"; then
2185  echo "$ac_t""$YACC" 1>&6
2186else
2187  echo "$ac_t""no" 1>&6
2188fi
2189
2190test -n "$YACC" && break
2191done
2192test -n "$YACC" || YACC="yacc"
2193
2194echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2195echo "configure:2196: checking how to run the C preprocessor" >&5
2196# On Suns, sometimes $CPP names a directory.
2197if test -n "$CPP" && test -d "$CPP"; then
2198  CPP=
2199fi
2200if test -z "$CPP"; then
2201if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2202  echo $ac_n "(cached) $ac_c" 1>&6
2203else
2204    # This must be in double quotes, not single quotes, because CPP may get
2205  # substituted into the Makefile and "${CC-cc}" will confuse make.
2206  CPP="${CC-cc} -E"
2207  # On the NeXT, cc -E runs the code through the compiler's parser,
2208  # not just through cpp.
2209  cat > conftest.$ac_ext <<EOF
2210#line 2211 "configure"
2211#include "confdefs.h"
2212#include <assert.h>
2213Syntax Error
2214EOF
2215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216{ (eval echo configure:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2218if test -z "$ac_err"; then
2219  :
2220else
2221  echo "$ac_err" >&5
2222  echo "configure: failed program was:" >&5
2223  cat conftest.$ac_ext >&5
2224  rm -rf conftest*
2225  CPP="${CC-cc} -E -traditional-cpp"
2226  cat > conftest.$ac_ext <<EOF
2227#line 2228 "configure"
2228#include "confdefs.h"
2229#include <assert.h>
2230Syntax Error
2231EOF
2232ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233{ (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235if test -z "$ac_err"; then
2236  :
2237else
2238  echo "$ac_err" >&5
2239  echo "configure: failed program was:" >&5
2240  cat conftest.$ac_ext >&5
2241  rm -rf conftest*
2242  CPP="${CC-cc} -nologo -E"
2243  cat > conftest.$ac_ext <<EOF
2244#line 2245 "configure"
2245#include "confdefs.h"
2246#include <assert.h>
2247Syntax Error
2248EOF
2249ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2250{ (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2251ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2252if test -z "$ac_err"; then
2253  :
2254else
2255  echo "$ac_err" >&5
2256  echo "configure: failed program was:" >&5
2257  cat conftest.$ac_ext >&5
2258  rm -rf conftest*
2259  CPP=/lib/cpp
2260fi
2261rm -f conftest*
2262fi
2263rm -f conftest*
2264fi
2265rm -f conftest*
2266  ac_cv_prog_CPP="$CPP"
2267fi
2268  CPP="$ac_cv_prog_CPP"
2269else
2270  ac_cv_prog_CPP="$CPP"
2271fi
2272echo "$ac_t""$CPP" 1>&6
2273
2274missing_dir=`cd $ac_aux_dir && pwd`
2275for ac_prog in flex lex
2276do
2277# Extract the first word of "$ac_prog", so it can be a program name with args.
2278set dummy $ac_prog; ac_word=$2
2279echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280echo "configure:2281: checking for $ac_word" >&5
2281if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2282  echo $ac_n "(cached) $ac_c" 1>&6
2283else
2284  if test -n "$LEX"; then
2285  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2286else
2287  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2288  ac_dummy="$PATH"
2289  for ac_dir in $ac_dummy; do
2290    test -z "$ac_dir" && ac_dir=.
2291    if test -f $ac_dir/$ac_word; then
2292      ac_cv_prog_LEX="$ac_prog"
2293      break
2294    fi
2295  done
2296  IFS="$ac_save_ifs"
2297fi
2298fi
2299LEX="$ac_cv_prog_LEX"
2300if test -n "$LEX"; then
2301  echo "$ac_t""$LEX" 1>&6
2302else
2303  echo "$ac_t""no" 1>&6
2304fi
2305
2306test -n "$LEX" && break
2307done
2308test -n "$LEX" || LEX=""$missing_dir/missing flex""
2309
2310# Extract the first word of "flex", so it can be a program name with args.
2311set dummy flex; ac_word=$2
2312echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313echo "configure:2314: checking for $ac_word" >&5
2314if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2315  echo $ac_n "(cached) $ac_c" 1>&6
2316else
2317  if test -n "$LEX"; then
2318  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2319else
2320  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2321  ac_dummy="$PATH"
2322  for ac_dir in $ac_dummy; do
2323    test -z "$ac_dir" && ac_dir=.
2324    if test -f $ac_dir/$ac_word; then
2325      ac_cv_prog_LEX="flex"
2326      break
2327    fi
2328  done
2329  IFS="$ac_save_ifs"
2330  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2331fi
2332fi
2333LEX="$ac_cv_prog_LEX"
2334if test -n "$LEX"; then
2335  echo "$ac_t""$LEX" 1>&6
2336else
2337  echo "$ac_t""no" 1>&6
2338fi
2339
2340if test -z "$LEXLIB"
2341then
2342  case "$LEX" in
2343  flex*) ac_lib=fl ;;
2344  *) ac_lib=l ;;
2345  esac
2346  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2347echo "configure:2348: checking for yywrap in -l$ac_lib" >&5
2348ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350  echo $ac_n "(cached) $ac_c" 1>&6
2351else
2352  ac_save_LIBS="$LIBS"
2353LIBS="-l$ac_lib  $LIBS"
2354cat > conftest.$ac_ext <<EOF
2355#line 2356 "configure"
2356#include "confdefs.h"
2357/* Override any gcc2 internal prototype to avoid an error.  */
2358/* We use char because int might match the return type of a gcc2
2359    builtin and then its argument prototype would still apply.  */
2360char yywrap();
2361
2362int main() {
2363yywrap()
2364; return 0; }
2365EOF
2366if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2367  rm -rf conftest*
2368  eval "ac_cv_lib_$ac_lib_var=yes"
2369else
2370  echo "configure: failed program was:" >&5
2371  cat conftest.$ac_ext >&5
2372  rm -rf conftest*
2373  eval "ac_cv_lib_$ac_lib_var=no"
2374fi
2375rm -f conftest*
2376LIBS="$ac_save_LIBS"
2377
2378fi
2379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380  echo "$ac_t""yes" 1>&6
2381  LEXLIB="-l$ac_lib"
2382else
2383  echo "$ac_t""no" 1>&6
2384fi
2385
2386fi
2387
2388echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2389echo "configure:2390: checking lex output file root" >&5
2390if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2391  echo $ac_n "(cached) $ac_c" 1>&6
2392else
2393  # The minimal lex program is just a single line: %%.  But some broken lexes
2394# (Solaris, I think it was) want two %% lines, so accommodate them.
2395echo '%%
2396%%' | $LEX
2397if test -f lex.yy.c; then
2398  ac_cv_prog_lex_root=lex.yy
2399elif test -f lexyy.c; then
2400  ac_cv_prog_lex_root=lexyy
2401else
2402  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2403fi
2404fi
2405
2406echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2407LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2408
2409echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2410echo "configure:2411: checking whether yytext is a pointer" >&5
2411if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2412  echo $ac_n "(cached) $ac_c" 1>&6
2413else
2414  # POSIX says lex can declare yytext either as a pointer or an array; the
2415# default is implementation-dependent. Figure out which it is, since
2416# not all implementations provide the %pointer and %array declarations.
2417ac_cv_prog_lex_yytext_pointer=no
2418echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2419ac_save_LIBS="$LIBS"
2420LIBS="$LIBS $LEXLIB"
2421cat > conftest.$ac_ext <<EOF
2422#line 2423 "configure"
2423#include "confdefs.h"
2424`cat $LEX_OUTPUT_ROOT.c`
2425int main() {
2426
2427; return 0; }
2428EOF
2429if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2430  rm -rf conftest*
2431  ac_cv_prog_lex_yytext_pointer=yes
2432else
2433  echo "configure: failed program was:" >&5
2434  cat conftest.$ac_ext >&5
2435fi
2436rm -f conftest*
2437LIBS="$ac_save_LIBS"
2438rm -f "${LEX_OUTPUT_ROOT}.c"
2439
2440fi
2441
2442echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2443if test $ac_cv_prog_lex_yytext_pointer = yes; then
2444  cat >> confdefs.h <<\EOF
2445#define YYTEXT_POINTER 1
2446EOF
2447
2448fi
2449
2450for ac_prog in gawk mawk nawk awk
2451do
2452# Extract the first word of "$ac_prog", so it can be a program name with args.
2453set dummy $ac_prog; ac_word=$2
2454echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455echo "configure:2456: checking for $ac_word" >&5
2456if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2457  echo $ac_n "(cached) $ac_c" 1>&6
2458else
2459  if test -n "$AWK"; then
2460  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2461else
2462  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2463  ac_dummy="$PATH"
2464  for ac_dir in $ac_dummy; do
2465    test -z "$ac_dir" && ac_dir=.
2466    if test -f $ac_dir/$ac_word; then
2467      ac_cv_prog_AWK="$ac_prog"
2468      break
2469    fi
2470  done
2471  IFS="$ac_save_ifs"
2472fi
2473fi
2474AWK="$ac_cv_prog_AWK"
2475if test -n "$AWK"; then
2476  echo "$ac_t""$AWK" 1>&6
2477else
2478  echo "$ac_t""no" 1>&6
2479fi
2480
2481test -n "$AWK" && break
2482done
2483
2484
2485echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2486echo "configure:2487: checking for ANSI C header files" >&5
2487if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2488  echo $ac_n "(cached) $ac_c" 1>&6
2489else
2490  cat > conftest.$ac_ext <<EOF
2491#line 2492 "configure"
2492#include "confdefs.h"
2493#include <stdlib.h>
2494#include <stdarg.h>
2495#include <string.h>
2496#include <float.h>
2497EOF
2498ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499{ (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501if test -z "$ac_err"; then
2502  rm -rf conftest*
2503  ac_cv_header_stdc=yes
2504else
2505  echo "$ac_err" >&5
2506  echo "configure: failed program was:" >&5
2507  cat conftest.$ac_ext >&5
2508  rm -rf conftest*
2509  ac_cv_header_stdc=no
2510fi
2511rm -f conftest*
2512
2513if test $ac_cv_header_stdc = yes; then
2514  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2515cat > conftest.$ac_ext <<EOF
2516#line 2517 "configure"
2517#include "confdefs.h"
2518#include <string.h>
2519EOF
2520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2521  egrep "memchr" >/dev/null 2>&1; then
2522  :
2523else
2524  rm -rf conftest*
2525  ac_cv_header_stdc=no
2526fi
2527rm -f conftest*
2528
2529fi
2530
2531if test $ac_cv_header_stdc = yes; then
2532  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2533cat > conftest.$ac_ext <<EOF
2534#line 2535 "configure"
2535#include "confdefs.h"
2536#include <stdlib.h>
2537EOF
2538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2539  egrep "free" >/dev/null 2>&1; then
2540  :
2541else
2542  rm -rf conftest*
2543  ac_cv_header_stdc=no
2544fi
2545rm -f conftest*
2546
2547fi
2548
2549if test $ac_cv_header_stdc = yes; then
2550  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2551if test "$cross_compiling" = yes; then
2552  :
2553else
2554  cat > conftest.$ac_ext <<EOF
2555#line 2556 "configure"
2556#include "confdefs.h"
2557#include <ctype.h>
2558#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2559#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2560#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2561int main () { int i; for (i = 0; i < 256; i++)
2562if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2563exit (0); }
2564
2565EOF
2566if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2567then
2568  :
2569else
2570  echo "configure: failed program was:" >&5
2571  cat conftest.$ac_ext >&5
2572  rm -fr conftest*
2573  ac_cv_header_stdc=no
2574fi
2575rm -fr conftest*
2576fi
2577
2578fi
2579fi
2580
2581echo "$ac_t""$ac_cv_header_stdc" 1>&6
2582if test $ac_cv_header_stdc = yes; then
2583  cat >> confdefs.h <<\EOF
2584#define STDC_HEADERS 1
2585EOF
2586
2587fi
2588
2589for ac_hdr in fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h
2590do
2591ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2592echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2593echo "configure:2594: checking for $ac_hdr" >&5
2594if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2595  echo $ac_n "(cached) $ac_c" 1>&6
2596else
2597  cat > conftest.$ac_ext <<EOF
2598#line 2599 "configure"
2599#include "confdefs.h"
2600#include <$ac_hdr>
2601EOF
2602ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2603{ (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2604ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2605if test -z "$ac_err"; then
2606  rm -rf conftest*
2607  eval "ac_cv_header_$ac_safe=yes"
2608else
2609  echo "$ac_err" >&5
2610  echo "configure: failed program was:" >&5
2611  cat conftest.$ac_ext >&5
2612  rm -rf conftest*
2613  eval "ac_cv_header_$ac_safe=no"
2614fi
2615rm -f conftest*
2616fi
2617if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2618  echo "$ac_t""yes" 1>&6
2619    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2620  cat >> confdefs.h <<EOF
2621#define $ac_tr_hdr 1
2622EOF
2623 
2624else
2625  echo "$ac_t""no" 1>&6
2626fi
2627done
2628
2629for ac_hdr in stddef.h wchar.h wcstr.h wctype.h machine/types.h tcpd.h
2630do
2631ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2632echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2633echo "configure:2634: checking for $ac_hdr" >&5
2634if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2635  echo $ac_n "(cached) $ac_c" 1>&6
2636else
2637  cat > conftest.$ac_ext <<EOF
2638#line 2639 "configure"
2639#include "confdefs.h"
2640#include <$ac_hdr>
2641EOF
2642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2643{ (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2645if test -z "$ac_err"; then
2646  rm -rf conftest*
2647  eval "ac_cv_header_$ac_safe=yes"
2648else
2649  echo "$ac_err" >&5
2650  echo "configure: failed program was:" >&5
2651  cat conftest.$ac_ext >&5
2652  rm -rf conftest*
2653  eval "ac_cv_header_$ac_safe=no"
2654fi
2655rm -f conftest*
2656fi
2657if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2658  echo "$ac_t""yes" 1>&6
2659    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2660  cat >> confdefs.h <<EOF
2661#define $ac_tr_hdr 1
2662EOF
2663 
2664else
2665  echo "$ac_t""no" 1>&6
2666fi
2667done
2668
2669
2670echo $ac_n "checking for working const""... $ac_c" 1>&6
2671echo "configure:2672: checking for working const" >&5
2672if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2673  echo $ac_n "(cached) $ac_c" 1>&6
2674else
2675  cat > conftest.$ac_ext <<EOF
2676#line 2677 "configure"
2677#include "confdefs.h"
2678
2679int main() {
2680
2681/* Ultrix mips cc rejects this.  */
2682typedef int charset[2]; const charset x;
2683/* SunOS 4.1.1 cc rejects this.  */
2684char const *const *ccp;
2685char **p;
2686/* NEC SVR4.0.2 mips cc rejects this.  */
2687struct point {int x, y;};
2688static struct point const zero = {0,0};
2689/* AIX XL C 1.02.0.0 rejects this.
2690   It does not let you subtract one const X* pointer from another in an arm
2691   of an if-expression whose if-part is not a constant expression */
2692const char *g = "string";
2693ccp = &g + (g ? g-g : 0);
2694/* HPUX 7.0 cc rejects these. */
2695++ccp;
2696p = (char**) ccp;
2697ccp = (char const *const *) p;
2698{ /* SCO 3.2v4 cc rejects this.  */
2699  char *t;
2700  char const *s = 0 ? (char *) 0 : (char const *) 0;
2701
2702  *t++ = 0;
2703}
2704{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2705  int x[] = {25, 17};
2706  const int *foo = &x[0];
2707  ++foo;
2708}
2709{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2710  typedef const int *iptr;
2711  iptr p = 0;
2712  ++p;
2713}
2714{ /* AIX XL C 1.02.0.0 rejects this saying
2715     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2716  struct s { int j; const int *ap[3]; };
2717  struct s *b; b->j = 5;
2718}
2719{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2720  const int foo = 10;
2721}
2722
2723; return 0; }
2724EOF
2725if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2726  rm -rf conftest*
2727  ac_cv_c_const=yes
2728else
2729  echo "configure: failed program was:" >&5
2730  cat conftest.$ac_ext >&5
2731  rm -rf conftest*
2732  ac_cv_c_const=no
2733fi
2734rm -f conftest*
2735fi
2736
2737echo "$ac_t""$ac_cv_c_const" 1>&6
2738if test $ac_cv_c_const = no; then
2739  cat >> confdefs.h <<\EOF
2740#define const
2741EOF
2742
2743fi
2744
2745echo $ac_n "checking for inline""... $ac_c" 1>&6
2746echo "configure:2747: checking for inline" >&5
2747if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2748  echo $ac_n "(cached) $ac_c" 1>&6
2749else
2750  ac_cv_c_inline=no
2751for ac_kw in inline __inline__ __inline; do
2752  cat > conftest.$ac_ext <<EOF
2753#line 2754 "configure"
2754#include "confdefs.h"
2755
2756int main() {
2757} $ac_kw foo() {
2758; return 0; }
2759EOF
2760if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2761  rm -rf conftest*
2762  ac_cv_c_inline=$ac_kw; break
2763else
2764  echo "configure: failed program was:" >&5
2765  cat conftest.$ac_ext >&5
2766fi
2767rm -f conftest*
2768done
2769
2770fi
2771
2772echo "$ac_t""$ac_cv_c_inline" 1>&6
2773case "$ac_cv_c_inline" in
2774  inline | yes) ;;
2775  no) cat >> confdefs.h <<\EOF
2776#define inline
2777EOF
2778 ;;
2779  *)  cat >> confdefs.h <<EOF
2780#define inline $ac_cv_c_inline
2781EOF
2782 ;;
2783esac
2784
2785echo $ac_n "checking for size_t""... $ac_c" 1>&6
2786echo "configure:2787: checking for size_t" >&5
2787if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2788  echo $ac_n "(cached) $ac_c" 1>&6
2789else
2790  cat > conftest.$ac_ext <<EOF
2791#line 2792 "configure"
2792#include "confdefs.h"
2793#include <sys/types.h>
2794#if STDC_HEADERS
2795#include <stdlib.h>
2796#include <stddef.h>
2797#endif
2798EOF
2799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2801  rm -rf conftest*
2802  ac_cv_type_size_t=yes
2803else
2804  rm -rf conftest*
2805  ac_cv_type_size_t=no
2806fi
2807rm -f conftest*
2808
2809fi
2810echo "$ac_t""$ac_cv_type_size_t" 1>&6
2811if test $ac_cv_type_size_t = no; then
2812  cat >> confdefs.h <<\EOF
2813#define size_t unsigned
2814EOF
2815
2816fi
2817
2818
2819echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2820echo "configure:2821: checking for vprintf" >&5
2821if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2822  echo $ac_n "(cached) $ac_c" 1>&6
2823else
2824  cat > conftest.$ac_ext <<EOF
2825#line 2826 "configure"
2826#include "confdefs.h"
2827/* System header to define __stub macros and hopefully few prototypes,
2828    which can conflict with char vprintf(); below.  */
2829#include <assert.h>
2830/* Override any gcc2 internal prototype to avoid an error.  */
2831/* We use char because int might match the return type of a gcc2
2832    builtin and then its argument prototype would still apply.  */
2833char vprintf();
2834
2835int main() {
2836
2837/* The GNU C library defines this for functions which it implements
2838    to always fail with ENOSYS.  Some functions are actually named
2839    something starting with __ and the normal name is an alias.  */
2840#if defined (__stub_vprintf) || defined (__stub___vprintf)
2841choke me
2842#else
2843vprintf();
2844#endif
2845
2846; return 0; }
2847EOF
2848if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2849  rm -rf conftest*
2850  eval "ac_cv_func_vprintf=yes"
2851else
2852  echo "configure: failed program was:" >&5
2853  cat conftest.$ac_ext >&5
2854  rm -rf conftest*
2855  eval "ac_cv_func_vprintf=no"
2856fi
2857rm -f conftest*
2858fi
2859
2860if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2861  echo "$ac_t""yes" 1>&6
2862  cat >> confdefs.h <<\EOF
2863#define HAVE_VPRINTF 1
2864EOF
2865
2866else
2867  echo "$ac_t""no" 1>&6
2868fi
2869
2870if test "$ac_cv_func_vprintf" != yes; then
2871echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2872echo "configure:2873: checking for _doprnt" >&5
2873if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2874  echo $ac_n "(cached) $ac_c" 1>&6
2875else
2876  cat > conftest.$ac_ext <<EOF
2877#line 2878 "configure"
2878#include "confdefs.h"
2879/* System header to define __stub macros and hopefully few prototypes,
2880    which can conflict with char _doprnt(); below.  */
2881#include <assert.h>
2882/* Override any gcc2 internal prototype to avoid an error.  */
2883/* We use char because int might match the return type of a gcc2
2884    builtin and then its argument prototype would still apply.  */
2885char _doprnt();
2886
2887int main() {
2888
2889/* The GNU C library defines this for functions which it implements
2890    to always fail with ENOSYS.  Some functions are actually named
2891    something starting with __ and the normal name is an alias.  */
2892#if defined (__stub__doprnt) || defined (__stub____doprnt)
2893choke me
2894#else
2895_doprnt();
2896#endif
2897
2898; return 0; }
2899EOF
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2901  rm -rf conftest*
2902  eval "ac_cv_func__doprnt=yes"
2903else
2904  echo "configure: failed program was:" >&5
2905  cat conftest.$ac_ext >&5
2906  rm -rf conftest*
2907  eval "ac_cv_func__doprnt=no"
2908fi
2909rm -f conftest*
2910fi
2911
2912if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2913  echo "$ac_t""yes" 1>&6
2914  cat >> confdefs.h <<\EOF
2915#define HAVE_DOPRNT 1
2916EOF
2917
2918else
2919  echo "$ac_t""no" 1>&6
2920fi
2921
2922fi
2923
2924# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2925# for constant arguments.  Useless!
2926echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2927echo "configure:2928: checking for working alloca.h" >&5
2928if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2929  echo $ac_n "(cached) $ac_c" 1>&6
2930else
2931  cat > conftest.$ac_ext <<EOF
2932#line 2933 "configure"
2933#include "confdefs.h"
2934#include <alloca.h>
2935int main() {
2936char *p = alloca(2 * sizeof(int));
2937; return 0; }
2938EOF
2939if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2940  rm -rf conftest*
2941  ac_cv_header_alloca_h=yes
2942else
2943  echo "configure: failed program was:" >&5
2944  cat conftest.$ac_ext >&5
2945  rm -rf conftest*
2946  ac_cv_header_alloca_h=no
2947fi
2948rm -f conftest*
2949fi
2950
2951echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2952if test $ac_cv_header_alloca_h = yes; then
2953  cat >> confdefs.h <<\EOF
2954#define HAVE_ALLOCA_H 1
2955EOF
2956
2957fi
2958
2959echo $ac_n "checking for alloca""... $ac_c" 1>&6
2960echo "configure:2961: checking for alloca" >&5
2961if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2962  echo $ac_n "(cached) $ac_c" 1>&6
2963else
2964  cat > conftest.$ac_ext <<EOF
2965#line 2966 "configure"
2966#include "confdefs.h"
2967
2968#ifdef __GNUC__
2969# define alloca __builtin_alloca
2970#else
2971# ifdef _MSC_VER
2972#  include <malloc.h>
2973#  define alloca _alloca
2974# else
2975#  if HAVE_ALLOCA_H
2976#   include <alloca.h>
2977#  else
2978#   ifdef _AIX
2979 #pragma alloca
2980#   else
2981#    ifndef alloca /* predefined by HP cc +Olibcalls */
2982char *alloca ();
2983#    endif
2984#   endif
2985#  endif
2986# endif
2987#endif
2988
2989int main() {
2990char *p = (char *) alloca(1);
2991; return 0; }
2992EOF
2993if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2994  rm -rf conftest*
2995  ac_cv_func_alloca_works=yes
2996else
2997  echo "configure: failed program was:" >&5
2998  cat conftest.$ac_ext >&5
2999  rm -rf conftest*
3000  ac_cv_func_alloca_works=no
3001fi
3002rm -f conftest*
3003fi
3004
3005echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3006if test $ac_cv_func_alloca_works = yes; then
3007  cat >> confdefs.h <<\EOF
3008#define HAVE_ALLOCA 1
3009EOF
3010
3011fi
3012
3013if test $ac_cv_func_alloca_works = no; then
3014  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3015  # that cause trouble.  Some versions do not even contain alloca or
3016  # contain a buggy version.  If you still want to use their alloca,
3017  # use ar to extract alloca.o from them instead of compiling alloca.c.
3018  ALLOCA=alloca.${ac_objext}
3019  cat >> confdefs.h <<\EOF
3020#define C_ALLOCA 1
3021EOF
3022
3023
3024echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3025echo "configure:3026: checking whether alloca needs Cray hooks" >&5
3026if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3027  echo $ac_n "(cached) $ac_c" 1>&6
3028else
3029  cat > conftest.$ac_ext <<EOF
3030#line 3031 "configure"
3031#include "confdefs.h"
3032#if defined(CRAY) && ! defined(CRAY2)
3033webecray
3034#else
3035wenotbecray
3036#endif
3037
3038EOF
3039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3040  egrep "webecray" >/dev/null 2>&1; then
3041  rm -rf conftest*
3042  ac_cv_os_cray=yes
3043else
3044  rm -rf conftest*
3045  ac_cv_os_cray=no
3046fi
3047rm -f conftest*
3048
3049fi
3050
3051echo "$ac_t""$ac_cv_os_cray" 1>&6
3052if test $ac_cv_os_cray = yes; then
3053for ac_func in _getb67 GETB67 getb67; do
3054  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3055echo "configure:3056: checking for $ac_func" >&5
3056if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3057  echo $ac_n "(cached) $ac_c" 1>&6
3058else
3059  cat > conftest.$ac_ext <<EOF
3060#line 3061 "configure"
3061#include "confdefs.h"
3062/* System header to define __stub macros and hopefully few prototypes,
3063    which can conflict with char $ac_func(); below.  */
3064#include <assert.h>
3065/* Override any gcc2 internal prototype to avoid an error.  */
3066/* We use char because int might match the return type of a gcc2
3067    builtin and then its argument prototype would still apply.  */
3068char $ac_func();
3069
3070int main() {
3071
3072/* The GNU C library defines this for functions which it implements
3073    to always fail with ENOSYS.  Some functions are actually named
3074    something starting with __ and the normal name is an alias.  */
3075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3076choke me
3077#else
3078$ac_func();
3079#endif
3080
3081; return 0; }
3082EOF
3083if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3084  rm -rf conftest*
3085  eval "ac_cv_func_$ac_func=yes"
3086else
3087  echo "configure: failed program was:" >&5
3088  cat conftest.$ac_ext >&5
3089  rm -rf conftest*
3090  eval "ac_cv_func_$ac_func=no"
3091fi
3092rm -f conftest*
3093fi
3094
3095if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3096  echo "$ac_t""yes" 1>&6
3097  cat >> confdefs.h <<EOF
3098#define CRAY_STACKSEG_END $ac_func
3099EOF
3100
3101  break
3102else
3103  echo "$ac_t""no" 1>&6
3104fi
3105
3106done
3107fi
3108
3109echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3110echo "configure:3111: checking stack direction for C alloca" >&5
3111if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3112  echo $ac_n "(cached) $ac_c" 1>&6
3113else
3114  if test "$cross_compiling" = yes; then
3115  ac_cv_c_stack_direction=0
3116else
3117  cat > conftest.$ac_ext <<EOF
3118#line 3119 "configure"
3119#include "confdefs.h"
3120find_stack_direction ()
3121{
3122  static char *addr = 0;
3123  auto char dummy;
3124  if (addr == 0)
3125    {
3126      addr = &dummy;
3127      return find_stack_direction ();
3128    }
3129  else
3130    return (&dummy > addr) ? 1 : -1;
3131}
3132main ()
3133{
3134  exit (find_stack_direction() < 0);
3135}
3136EOF
3137if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3138then
3139  ac_cv_c_stack_direction=1
3140else
3141  echo "configure: failed program was:" >&5
3142  cat conftest.$ac_ext >&5
3143  rm -fr conftest*
3144  ac_cv_c_stack_direction=-1
3145fi
3146rm -fr conftest*
3147fi
3148
3149fi
3150
3151echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3152cat >> confdefs.h <<EOF
3153#define STACK_DIRECTION $ac_cv_c_stack_direction
3154EOF
3155
3156fi
3157
3158if test $ac_cv_header_alloca_h = yes; then
3159        ORBIT_HAVE_ALLOCA_H=1
3160else
3161        ORBIT_HAVE_ALLOCA_H=0
3162fi
3163
3164
3165for ac_func in poll basename
3166do
3167echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3168echo "configure:3169: checking for $ac_func" >&5
3169if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3170  echo $ac_n "(cached) $ac_c" 1>&6
3171else
3172  cat > conftest.$ac_ext <<EOF
3173#line 3174 "configure"
3174#include "confdefs.h"
3175/* System header to define __stub macros and hopefully few prototypes,
3176    which can conflict with char $ac_func(); below.  */
3177#include <assert.h>
3178/* Override any gcc2 internal prototype to avoid an error.  */
3179/* We use char because int might match the return type of a gcc2
3180    builtin and then its argument prototype would still apply.  */
3181char $ac_func();
3182
3183int main() {
3184
3185/* The GNU C library defines this for functions which it implements
3186    to always fail with ENOSYS.  Some functions are actually named
3187    something starting with __ and the normal name is an alias.  */
3188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3189choke me
3190#else
3191$ac_func();
3192#endif
3193
3194; return 0; }
3195EOF
3196if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3197  rm -rf conftest*
3198  eval "ac_cv_func_$ac_func=yes"
3199else
3200  echo "configure: failed program was:" >&5
3201  cat conftest.$ac_ext >&5
3202  rm -rf conftest*
3203  eval "ac_cv_func_$ac_func=no"
3204fi
3205rm -f conftest*
3206fi
3207
3208if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3209  echo "$ac_t""yes" 1>&6
3210    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3211  cat >> confdefs.h <<EOF
3212#define $ac_tr_func 1
3213EOF
3214 
3215else
3216  echo "$ac_t""no" 1>&6
3217fi
3218done
3219
3220echo $ac_n "checking for socket""... $ac_c" 1>&6
3221echo "configure:3222: checking for socket" >&5
3222if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3223  echo $ac_n "(cached) $ac_c" 1>&6
3224else
3225  cat > conftest.$ac_ext <<EOF
3226#line 3227 "configure"
3227#include "confdefs.h"
3228/* System header to define __stub macros and hopefully few prototypes,
3229    which can conflict with char socket(); below.  */
3230#include <assert.h>
3231/* Override any gcc2 internal prototype to avoid an error.  */
3232/* We use char because int might match the return type of a gcc2
3233    builtin and then its argument prototype would still apply.  */
3234char socket();
3235
3236int main() {
3237
3238/* The GNU C library defines this for functions which it implements
3239    to always fail with ENOSYS.  Some functions are actually named
3240    something starting with __ and the normal name is an alias.  */
3241#if defined (__stub_socket) || defined (__stub___socket)
3242choke me
3243#else
3244socket();
3245#endif
3246
3247; return 0; }
3248EOF
3249if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3250  rm -rf conftest*
3251  eval "ac_cv_func_socket=yes"
3252else
3253  echo "configure: failed program was:" >&5
3254  cat conftest.$ac_ext >&5
3255  rm -rf conftest*
3256  eval "ac_cv_func_socket=no"
3257fi
3258rm -f conftest*
3259fi
3260
3261if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3262  echo "$ac_t""yes" 1>&6
3263  :
3264else
3265  echo "$ac_t""no" 1>&6
3266echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3267echo "configure:3268: checking for socket in -lsocket" >&5
3268ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3269if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3270  echo $ac_n "(cached) $ac_c" 1>&6
3271else
3272  ac_save_LIBS="$LIBS"
3273LIBS="-lsocket  $LIBS"
3274cat > conftest.$ac_ext <<EOF
3275#line 3276 "configure"
3276#include "confdefs.h"
3277/* Override any gcc2 internal prototype to avoid an error.  */
3278/* We use char because int might match the return type of a gcc2
3279    builtin and then its argument prototype would still apply.  */
3280char socket();
3281
3282int main() {
3283socket()
3284; return 0; }
3285EOF
3286if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3287  rm -rf conftest*
3288  eval "ac_cv_lib_$ac_lib_var=yes"
3289else
3290  echo "configure: failed program was:" >&5
3291  cat conftest.$ac_ext >&5
3292  rm -rf conftest*
3293  eval "ac_cv_lib_$ac_lib_var=no"
3294fi
3295rm -f conftest*
3296LIBS="$ac_save_LIBS"
3297
3298fi
3299if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3300  echo "$ac_t""yes" 1>&6
3301    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3302    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3303  cat >> confdefs.h <<EOF
3304#define $ac_tr_lib 1
3305EOF
3306
3307  LIBS="-lsocket $LIBS"
3308
3309else
3310  echo "$ac_t""no" 1>&6
3311fi
3312
3313fi
3314
3315echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3316echo "configure:3317: checking for gethostbyname" >&5
3317if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3318  echo $ac_n "(cached) $ac_c" 1>&6
3319else
3320  cat > conftest.$ac_ext <<EOF
3321#line 3322 "configure"
3322#include "confdefs.h"
3323/* System header to define __stub macros and hopefully few prototypes,
3324    which can conflict with char gethostbyname(); below.  */
3325#include <assert.h>
3326/* Override any gcc2 internal prototype to avoid an error.  */
3327/* We use char because int might match the return type of a gcc2
3328    builtin and then its argument prototype would still apply.  */
3329char gethostbyname();
3330
3331int main() {
3332
3333/* The GNU C library defines this for functions which it implements
3334    to always fail with ENOSYS.  Some functions are actually named
3335    something starting with __ and the normal name is an alias.  */
3336#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3337choke me
3338#else
3339gethostbyname();
3340#endif
3341
3342; return 0; }
3343EOF
3344if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3345  rm -rf conftest*
3346  eval "ac_cv_func_gethostbyname=yes"
3347else
3348  echo "configure: failed program was:" >&5
3349  cat conftest.$ac_ext >&5
3350  rm -rf conftest*
3351  eval "ac_cv_func_gethostbyname=no"
3352fi
3353rm -f conftest*
3354fi
3355
3356if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3357  echo "$ac_t""yes" 1>&6
3358  :
3359else
3360  echo "$ac_t""no" 1>&6
3361echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3362echo "configure:3363: checking for gethostbyname in -lnsl" >&5
3363ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3364if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3365  echo $ac_n "(cached) $ac_c" 1>&6
3366else
3367  ac_save_LIBS="$LIBS"
3368LIBS="-lnsl  $LIBS"
3369cat > conftest.$ac_ext <<EOF
3370#line 3371 "configure"
3371#include "confdefs.h"
3372/* Override any gcc2 internal prototype to avoid an error.  */
3373/* We use char because int might match the return type of a gcc2
3374    builtin and then its argument prototype would still apply.  */
3375char gethostbyname();
3376
3377int main() {
3378gethostbyname()
3379; return 0; }
3380EOF
3381if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3382  rm -rf conftest*
3383  eval "ac_cv_lib_$ac_lib_var=yes"
3384else
3385  echo "configure: failed program was:" >&5
3386  cat conftest.$ac_ext >&5
3387  rm -rf conftest*
3388  eval "ac_cv_lib_$ac_lib_var=no"
3389fi
3390rm -f conftest*
3391LIBS="$ac_save_LIBS"
3392
3393fi
3394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3395  echo "$ac_t""yes" 1>&6
3396    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3397    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3398  cat >> confdefs.h <<EOF
3399#define $ac_tr_lib 1
3400EOF
3401
3402  LIBS="-lnsl $LIBS"
3403
3404else
3405  echo "$ac_t""no" 1>&6
3406fi
3407
3408fi
3409
3410
3411# AC_CHECK_TYPE doesn't work here.
3412echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3413echo "configure:3414: checking for socklen_t" >&5
3414cat > conftest.$ac_ext <<EOF
3415#line 3416 "configure"
3416#include "confdefs.h"
3417#include <sys/types.h>
3418#include <sys/socket.h>
3419int main() {
3420socklen_t len;
3421; return 0; }
3422EOF
3423if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3424  rm -rf conftest*
3425  echo "$ac_t""yes" 1>&6
3426else
3427  echo "configure: failed program was:" >&5
3428  cat conftest.$ac_ext >&5
3429  rm -rf conftest*
3430  cat >> confdefs.h <<\EOF
3431#define socklen_t size_t
3432EOF
3433
3434   echo "$ac_t""no" 1>&6
3435fi
3436rm -f conftest*
3437
3438# This is a hack. This is a bad hack in order to work around libtool not letting us
3439# link a .a (libwrap.a) into a libtool library (libIIOP.la) for internal use by that
3440# libtool library.
3441
3442# Modified to prefer shared libwrap by Adam Powell
3443
3444echo $ac_n "checking "whether to use TCP wrappers"""... $ac_c" 1>&6
3445echo "configure:3446: checking "whether to use TCP wrappers"" >&5
3446LIBWRAP_PATH=""
3447LIB_WRAP=""
3448for I in $LDFLAGS $LIBS -L/usr/lib; do
3449        case "$I" in
3450        -L*)
3451        THEFILE="`echo $I | sed -e 's,^-L,,'`"
3452        echo "From $I, checking in dir $THEFILE for libwrap.so" 1>&5
3453        if test -f $THEFILE/libwrap.so; then
3454                LIB_WRAP=-lwrap
3455                echo "Found $THEFILE/libwrap.so" 1>&5
3456                break
3457        else
3458                echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5
3459                if test -f $THEFILE/libwrap.a; then
3460                        LIBWRAP_PATH=$THEFILE/libwrap.a
3461                        echo "Found $LIBWRAP_PATH" 1>&5
3462                        break
3463                fi
3464        fi
3465        esac
3466done
3467if test -n "$LIBWRAP_PATH" || test -n "$LIB_WRAP"; then
3468        echo "$ac_t""yes" 1>&6
3469else
3470        echo "$ac_t""no" 1>&6
3471fi
3472
3473if test -n "$LIBWRAP_PATH"; then
3474        nm $LIBWRAP_PATH | grep 'T setenv' && LIBWRAP_PATH=""
3475        if test -z "$LIBWRAP_PATH"; then
3476                echo "*********************************************************"
3477                echo " You have a broken TCP wrappers library (setenv included)"
3478                echo " Please get the latest TCP wrappers package from your OS"
3479                echo " vendor, or recompile TCP wrappers to not include a"
3480                echo " setenv() implementation."
3481                echo
3482                echo "Not using TCP wrappers after all."
3483                echo "*********************************************************"
3484        fi
3485fi
3486
3487LIB_NSL=
3488if test -n "$LIBWRAP_PATH"; then
3489        echo $ac_n "checking whether -lwrap requires -lnsl""... $ac_c" 1>&6
3490echo "configure:3491: checking whether -lwrap requires -lnsl" >&5
3491        ORIG_LIBS="$LIBS"
3492        LIBS="$LIBWRAP_PATH $LIB_WRAP $LIBS"
3493        cat > conftest.$ac_ext <<EOF
3494#line 3495 "configure"
3495#include "confdefs.h"
3496
3497extern int hosts_access;
3498int allow_severity, deny_severity;
3499
3500int main() {
3501return hosts_access;
3502; return 0; }
3503EOF
3504if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3505  :
3506else
3507  echo "configure: failed program was:" >&5
3508  cat conftest.$ac_ext >&5
3509  rm -rf conftest*
3510 
3511OLD_LIBS="$LIBS"
3512LIBS="$LIBS -lnsl"
3513cat > conftest.$ac_ext <<EOF
3514#line 3515 "configure"
3515#include "confdefs.h"
3516
3517extern int hosts_access;
3518int allow_severity, deny_severity;
3519
3520int main() {
3521return hosts_access;
3522; return 0; }
3523EOF
3524if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525  rm -rf conftest*
3526  LIB_NSL="-lnsl"
3527else
3528  echo "configure: failed program was:" >&5
3529  cat conftest.$ac_ext >&5
3530  rm -rf conftest*
3531  LIBWRAP_PATH=""
3532fi
3533rm -f conftest*
3534LIBS="$OLD_LIBS"
3535
3536fi
3537rm -f conftest*
3538        LIBS="$ORIG_LIBS"
3539if test -n "$LIB_NSL"; then
3540        echo "$ac_t""yes" 1>&6
3541        LIBS="$LIBS $LIB_NSL"
3542else
3543        echo "$ac_t""no" 1>&6
3544fi
3545fi
3546
3547
3548
3549
3550
3551if test -n "$LIBWRAP_PATH"; then
3552  HAVE_HOSTS_ACCESS_TRUE=
3553  HAVE_HOSTS_ACCESS_FALSE='#'
3554else
3555  HAVE_HOSTS_ACCESS_TRUE='#'
3556  HAVE_HOSTS_ACCESS_FALSE=
3557fi
3558if test -n "$LIBWRAP_PATH"; then
3559        cat >> confdefs.h <<\EOF
3560#define HAVE_HOSTS_ACCESS 1
3561EOF
3562
3563fi
3564
3565echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3566echo "configure:3567: checking for inet_aton" >&5
3567if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3568  echo $ac_n "(cached) $ac_c" 1>&6
3569else
3570  cat > conftest.$ac_ext <<EOF
3571#line 3572 "configure"
3572#include "confdefs.h"
3573/* System header to define __stub macros and hopefully few prototypes,
3574    which can conflict with char inet_aton(); below.  */
3575#include <assert.h>
3576/* Override any gcc2 internal prototype to avoid an error.  */
3577/* We use char because int might match the return type of a gcc2
3578    builtin and then its argument prototype would still apply.  */
3579char inet_aton();
3580
3581int main() {
3582
3583/* The GNU C library defines this for functions which it implements
3584    to always fail with ENOSYS.  Some functions are actually named
3585    something starting with __ and the normal name is an alias.  */
3586#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3587choke me
3588#else
3589inet_aton();
3590#endif
3591
3592; return 0; }
3593EOF
3594if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595  rm -rf conftest*
3596  eval "ac_cv_func_inet_aton=yes"
3597else
3598  echo "configure: failed program was:" >&5
3599  cat conftest.$ac_ext >&5
3600  rm -rf conftest*
3601  eval "ac_cv_func_inet_aton=no"
3602fi
3603rm -f conftest*
3604fi
3605
3606if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3607  echo "$ac_t""yes" 1>&6
3608  :
3609else
3610  echo "$ac_t""no" 1>&6
3611echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3612echo "configure:3613: checking for inet_aton in -lresolv" >&5
3613ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3614if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3615  echo $ac_n "(cached) $ac_c" 1>&6
3616else
3617  ac_save_LIBS="$LIBS"
3618LIBS="-lresolv  $LIBS"
3619cat > conftest.$ac_ext <<EOF
3620#line 3621 "configure"
3621#include "confdefs.h"
3622/* Override any gcc2 internal prototype to avoid an error.  */
3623/* We use char because int might match the return type of a gcc2
3624    builtin and then its argument prototype would still apply.  */
3625char inet_aton();
3626
3627int main() {
3628inet_aton()
3629; return 0; }
3630EOF
3631if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3632  rm -rf conftest*
3633  eval "ac_cv_lib_$ac_lib_var=yes"
3634else
3635  echo "configure: failed program was:" >&5
3636  cat conftest.$ac_ext >&5
3637  rm -rf conftest*
3638  eval "ac_cv_lib_$ac_lib_var=no"
3639fi
3640rm -f conftest*
3641LIBS="$ac_save_LIBS"
3642
3643fi
3644if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3645  echo "$ac_t""yes" 1>&6
3646    ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3647    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3648  cat >> confdefs.h <<EOF
3649#define $ac_tr_lib 1
3650EOF
3651
3652  LIBS="-lresolv $LIBS"
3653
3654else
3655  echo "$ac_t""no" 1>&6
3656fi
3657
3658fi
3659
3660if test x$ac_cv_func_inet_aton = xno && test x$ac_cv_lib_resolv_inet_aton = xno
3661then :
3662else
3663  cat >> confdefs.h <<\EOF
3664#define HAVE_INET_ATON 1
3665EOF
3666
3667fi
3668
3669echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3670echo "configure:3671: checking whether byte ordering is bigendian" >&5
3671if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3672  echo $ac_n "(cached) $ac_c" 1>&6
3673else
3674  ac_cv_c_bigendian=unknown
3675# See if sys/param.h defines the BYTE_ORDER macro.
3676cat > conftest.$ac_ext <<EOF
3677#line 3678 "configure"
3678#include "confdefs.h"
3679#include <sys/types.h>
3680#include <sys/param.h>
3681int main() {
3682
3683#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3684 bogus endian macros
3685#endif
3686; return 0; }
3687EOF
3688if { (eval echo configure:3689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3689  rm -rf conftest*
3690  # It does; now see whether it defined to BIG_ENDIAN or not.
3691cat > conftest.$ac_ext <<EOF
3692#line 3693 "configure"
3693#include "confdefs.h"
3694#include <sys/types.h>
3695#include <sys/param.h>
3696int main() {
3697
3698#if BYTE_ORDER != BIG_ENDIAN
3699 not big endian
3700#endif
3701; return 0; }
3702EOF
3703if { (eval echo configure:3704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3704  rm -rf conftest*
3705  ac_cv_c_bigendian=yes
3706else
3707  echo "configure: failed program was:" >&5
3708  cat conftest.$ac_ext >&5
3709  rm -rf conftest*
3710  ac_cv_c_bigendian=no
3711fi
3712rm -f conftest*
3713else
3714  echo "configure: failed program was:" >&5
3715  cat conftest.$ac_ext >&5
3716fi
3717rm -f conftest*
3718if test $ac_cv_c_bigendian = unknown; then
3719if test "$cross_compiling" = yes; then
3720    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3721else
3722  cat > conftest.$ac_ext <<EOF
3723#line 3724 "configure"
3724#include "confdefs.h"
3725main () {
3726  /* Are we little or big endian?  From Harbison&Steele.  */
3727  union
3728  {
3729    long l;
3730    char c[sizeof (long)];
3731  } u;
3732  u.l = 1;
3733  exit (u.c[sizeof (long) - 1] == 1);
3734}
3735EOF
3736if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3737then
3738  ac_cv_c_bigendian=no
3739else
3740  echo "configure: failed program was:" >&5
3741  cat conftest.$ac_ext >&5
3742  rm -fr conftest*
3743  ac_cv_c_bigendian=yes
3744fi
3745rm -fr conftest*
3746fi
3747
3748fi
3749fi
3750
3751echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3752if test $ac_cv_c_bigendian = yes; then
3753  cat >> confdefs.h <<\EOF
3754#define WORDS_BIGENDIAN 1
3755EOF
3756
3757fi
3758
3759
3760if test "$cross_compiling" = yes; then
3761  cat >> confdefs.h <<\EOF
3762#define HAVE_LIMITED_WRITEV 1
3763EOF
3764
3765else
3766  cat > conftest.$ac_ext <<EOF
3767#line 3768 "configure"
3768#include "confdefs.h"
3769
3770#include <fcntl.h>
3771#include <sys/uio.h>
3772#define NIOVECS 50
3773int main(int argc, char *argv[])
3774{
3775        char dumbuf[20] = "\n";
3776        struct iovec iovecs[NIOVECS];
3777        int i,fd;
3778
3779        for(i = 0; i < NIOVECS; i++) {
3780                iovecs[i].iov_base = dumbuf;
3781                iovecs[i].iov_len = 1;
3782        }
3783
3784        fd=open("/dev/null", O_WRONLY);
3785        if(fd==-1)
3786                return(1);
3787
3788        if(writev(fd, iovecs, NIOVECS) < 0)
3789                return 1;
3790
3791        close(fd);
3792        return 0;
3793}
3794
3795EOF
3796if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3797then
3798  :
3799else
3800  echo "configure: failed program was:" >&5
3801  cat conftest.$ac_ext >&5
3802  rm -fr conftest*
3803  cat >> confdefs.h <<\EOF
3804#define HAVE_LIMITED_WRITEV 1
3805EOF
3806
3807fi
3808rm -fr conftest*
3809fi
3810
3811
3812
3813#######################
3814# type alignment test #
3815#######################
3816
3817
3818
3819orig_CPPFLAGS=$CPPFLAGS
3820CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
3821echo $ac_n "checking alignment of CORBA_short""... $ac_c" 1>&6
3822echo "configure:3823: checking alignment of CORBA_short" >&5
3823align_save_libs="$LIBS"
3824LIBS="$GLIB_LIBS $LIBS"
3825if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_short'+set}'`\" = set"; then
3826  echo $ac_n "(cached) $ac_c" 1>&6
3827else
3828  if test "$cross_compiling" = yes; then
3829  ac_cv_alignof_CORBA_short=0
3830else
3831  cat > conftest.$ac_ext <<EOF
3832#line 3833 "configure"
3833#include "confdefs.h"
3834
3835#include <stdio.h>
3836#include "$srcdir/src/ORBitutil/basic_types.h"
3837typedef struct {char s1;} CORBA_struct;
3838typedef void *CORBA_pointer;
3839struct test {char s1; CORBA_short s2;};
3840main()
3841{
3842  FILE *f=fopen("conftestval", "w");
3843  if (!f) exit(1);
3844  fprintf(f, "%d\n", &(((struct test*)0)->s2));
3845  exit(0);
3846}
3847EOF
3848if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3849then
3850  ac_cv_alignof_CORBA_short=`cat conftestval`
3851else
3852  echo "configure: failed program was:" >&5
3853  cat conftest.$ac_ext >&5
3854  rm -fr conftest*
3855  ac_cv_alignof_CORBA_short=0
3856fi
3857rm -fr conftest*
3858fi
3859
3860fi
3861echo "$ac_t""$ac_cv_alignof_CORBA_short" 1>&6
3862LIBS="$align_save_libs"
3863cat >> confdefs.h <<EOF
3864#define ALIGNOF_CORBA_SHORT $ac_cv_alignof_CORBA_short
3865EOF
3866
3867
3868echo $ac_n "checking alignment of CORBA_long""... $ac_c" 1>&6
3869echo "configure:3870: checking alignment of CORBA_long" >&5
3870align_save_libs="$LIBS"
3871LIBS="$GLIB_LIBS $LIBS"
3872if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_long'+set}'`\" = set"; then
3873  echo $ac_n "(cached) $ac_c" 1>&6
3874else
3875  if test "$cross_compiling" = yes; then
3876  ac_cv_alignof_CORBA_long=0
3877else
3878  cat > conftest.$ac_ext <<EOF
3879#line 3880 "configure"
3880#include "confdefs.h"
3881
3882#include <stdio.h>
3883#include "$srcdir/src/ORBitutil/basic_types.h"
3884typedef struct {char s1;} CORBA_struct;
3885typedef void *CORBA_pointer;
3886struct test {char s1; CORBA_long s2;};
3887main()
3888{
3889  FILE *f=fopen("conftestval", "w");
3890  if (!f) exit(1);
3891  fprintf(f, "%d\n", &(((struct test*)0)->s2));
3892  exit(0);
3893}
3894EOF
3895if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3896then
3897  ac_cv_alignof_CORBA_long=`cat conftestval`
3898else
3899  echo "configure: failed program was:" >&5
3900  cat conftest.$ac_ext >&5
3901  rm -fr conftest*
3902  ac_cv_alignof_CORBA_long=0
3903fi
3904rm -fr conftest*
3905fi
3906
3907fi
3908echo "$ac_t""$ac_cv_alignof_CORBA_long" 1>&6
3909LIBS="$align_save_libs"
3910cat >> confdefs.h <<EOF
3911#define ALIGNOF_CORBA_LONG $ac_cv_alignof_CORBA_long
3912EOF
3913
3914
3915echo $ac_n "checking alignment of CORBA_unsigned_short""... $ac_c" 1>&6
3916echo "configure:3917: checking alignment of CORBA_unsigned_short" >&5
3917align_save_libs="$LIBS"
3918LIBS="$GLIB_LIBS $LIBS"
3919if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_unsigned_short'+set}'`\" = set"; then
3920  echo $ac_n "(cached) $ac_c" 1>&6
3921else
3922  if test "$cross_compiling" = yes; then
3923  ac_cv_alignof_CORBA_unsigned_short=0
3924else
3925  cat > conftest.$ac_ext <<EOF
3926#line 3927 "configure"
3927#include "confdefs.h"
3928
3929#include <stdio.h>
3930#include "$srcdir/src/ORBitutil/basic_types.h"
3931typedef struct {char s1;} CORBA_struct;
3932typedef void *CORBA_pointer;
3933struct test {char s1; CORBA_unsigned_short s2;};
3934main()
3935{
3936  FILE *f=fopen("conftestval", "w");
3937  if (!f) exit(1);
3938  fprintf(f, "%d\n", &(((struct test*)0)->s2));
3939  exit(0);
3940}
3941EOF
3942if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3943then
3944  ac_cv_alignof_CORBA_unsigned_short=`cat conftestval`
3945else
3946  echo "configure: failed program was:" >&5
3947  cat conftest.$ac_ext >&5
3948  rm -fr conftest*
3949  ac_cv_alignof_CORBA_unsigned_short=0
3950fi
3951rm -fr conftest*
3952fi
3953
3954fi
3955echo "$ac_t""$ac_cv_alignof_CORBA_unsigned_short" 1>&6
3956LIBS="$align_save_libs"
3957cat >> confdefs.h <<EOF
3958#define ALIGNOF_CORBA_UNSIGNED_SHORT $ac_cv_alignof_CORBA_unsigned_short
3959EOF
3960
3961
3962echo $ac_n "checking alignment of CORBA_unsigned_long""... $ac_c" 1>&6
3963echo "configure:3964: checking alignment of CORBA_unsigned_long" >&5
3964align_save_libs="$LIBS"
3965LIBS="$GLIB_LIBS $LIBS"
3966if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_unsigned_long'+set}'`\" = set"; then
3967  echo $ac_n "(cached) $ac_c" 1>&6
3968else
3969  if test "$cross_compiling" = yes; then
3970  ac_cv_alignof_CORBA_unsigned_long=0
3971else
3972  cat > conftest.$ac_ext <<EOF
3973#line 3974 "configure"
3974#include "confdefs.h"
3975
3976#include <stdio.h>
3977#include "$srcdir/src/ORBitutil/basic_types.h"
3978typedef struct {char s1;} CORBA_struct;
3979typedef void *CORBA_pointer;
3980struct test {char s1; CORBA_unsigned_long s2;};
3981main()
3982{
3983  FILE *f=fopen("conftestval", "w");
3984  if (!f) exit(1);
3985  fprintf(f, "%d\n", &(((struct test*)0)->s2));
3986  exit(0);
3987}
3988EOF
3989if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3990then
3991  ac_cv_alignof_CORBA_unsigned_long=`cat conftestval`
3992else
3993  echo "configure: failed program was:" >&5
3994  cat conftest.$ac_ext >&5
3995  rm -fr conftest*
3996  ac_cv_alignof_CORBA_unsigned_long=0
3997fi
3998rm -fr conftest*
3999fi
4000
4001fi
4002echo "$ac_t""$ac_cv_alignof_CORBA_unsigned_long" 1>&6
4003LIBS="$align_save_libs"
4004cat >> confdefs.h <<EOF
4005#define ALIGNOF_CORBA_UNSIGNED_LONG $ac_cv_alignof_CORBA_unsigned_long
4006EOF
4007
4008
4009echo $ac_n "checking alignment of CORBA_float""... $ac_c" 1>&6
4010echo "configure:4011: checking alignment of CORBA_float" >&5
4011align_save_libs="$LIBS"
4012LIBS="$GLIB_LIBS $LIBS"
4013if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_float'+set}'`\" = set"; then
4014  echo $ac_n "(cached) $ac_c" 1>&6
4015else
4016  if test "$cross_compiling" = yes; then
4017  ac_cv_alignof_CORBA_float=0
4018else
4019  cat > conftest.$ac_ext <<EOF
4020#line 4021 "configure"
4021#include "confdefs.h"
4022
4023#include <stdio.h>
4024#include "$srcdir/src/ORBitutil/basic_types.h"
4025typedef struct {char s1;} CORBA_struct;
4026typedef void *CORBA_pointer;
4027struct test {char s1; CORBA_float s2;};
4028main()
4029{
4030  FILE *f=fopen("conftestval", "w");
4031  if (!f) exit(1);
4032  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4033  exit(0);
4034}
4035EOF
4036if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4037then
4038  ac_cv_alignof_CORBA_float=`cat conftestval`
4039else
4040  echo "configure: failed program was:" >&5
4041  cat conftest.$ac_ext >&5
4042  rm -fr conftest*
4043  ac_cv_alignof_CORBA_float=0
4044fi
4045rm -fr conftest*
4046fi
4047
4048fi
4049echo "$ac_t""$ac_cv_alignof_CORBA_float" 1>&6
4050LIBS="$align_save_libs"
4051cat >> confdefs.h <<EOF
4052#define ALIGNOF_CORBA_FLOAT $ac_cv_alignof_CORBA_float
4053EOF
4054
4055
4056echo $ac_n "checking alignment of CORBA_double""... $ac_c" 1>&6
4057echo "configure:4058: checking alignment of CORBA_double" >&5
4058align_save_libs="$LIBS"
4059LIBS="$GLIB_LIBS $LIBS"
4060if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_double'+set}'`\" = set"; then
4061  echo $ac_n "(cached) $ac_c" 1>&6
4062else
4063  if test "$cross_compiling" = yes; then
4064  ac_cv_alignof_CORBA_double=0
4065else
4066  cat > conftest.$ac_ext <<EOF
4067#line 4068 "configure"
4068#include "confdefs.h"
4069
4070#include <stdio.h>
4071#include "$srcdir/src/ORBitutil/basic_types.h"
4072typedef struct {char s1;} CORBA_struct;
4073typedef void *CORBA_pointer;
4074struct test {char s1; CORBA_double s2;};
4075main()
4076{
4077  FILE *f=fopen("conftestval", "w");
4078  if (!f) exit(1);
4079  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4080  exit(0);
4081}
4082EOF
4083if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4084then
4085  ac_cv_alignof_CORBA_double=`cat conftestval`
4086else
4087  echo "configure: failed program was:" >&5
4088  cat conftest.$ac_ext >&5
4089  rm -fr conftest*
4090  ac_cv_alignof_CORBA_double=0
4091fi
4092rm -fr conftest*
4093fi
4094
4095fi
4096echo "$ac_t""$ac_cv_alignof_CORBA_double" 1>&6
4097LIBS="$align_save_libs"
4098cat >> confdefs.h <<EOF
4099#define ALIGNOF_CORBA_DOUBLE $ac_cv_alignof_CORBA_double
4100EOF
4101
4102
4103echo $ac_n "checking alignment of CORBA_char""... $ac_c" 1>&6
4104echo "configure:4105: checking alignment of CORBA_char" >&5
4105align_save_libs="$LIBS"
4106LIBS="$GLIB_LIBS $LIBS"
4107if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_char'+set}'`\" = set"; then
4108  echo $ac_n "(cached) $ac_c" 1>&6
4109else
4110  if test "$cross_compiling" = yes; then
4111  ac_cv_alignof_CORBA_char=0
4112else
4113  cat > conftest.$ac_ext <<EOF
4114#line 4115 "configure"
4115#include "confdefs.h"
4116
4117#include <stdio.h>
4118#include "$srcdir/src/ORBitutil/basic_types.h"
4119typedef struct {char s1;} CORBA_struct;
4120typedef void *CORBA_pointer;
4121struct test {char s1; CORBA_char s2;};
4122main()
4123{
4124  FILE *f=fopen("conftestval", "w");
4125  if (!f) exit(1);
4126  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4127  exit(0);
4128}
4129EOF
4130if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4131then
4132  ac_cv_alignof_CORBA_char=`cat conftestval`
4133else
4134  echo "configure: failed program was:" >&5
4135  cat conftest.$ac_ext >&5
4136  rm -fr conftest*
4137  ac_cv_alignof_CORBA_char=0
4138fi
4139rm -fr conftest*
4140fi
4141
4142fi
4143echo "$ac_t""$ac_cv_alignof_CORBA_char" 1>&6
4144LIBS="$align_save_libs"
4145cat >> confdefs.h <<EOF
4146#define ALIGNOF_CORBA_CHAR $ac_cv_alignof_CORBA_char
4147EOF
4148
4149
4150echo $ac_n "checking alignment of CORBA_boolean""... $ac_c" 1>&6
4151echo "configure:4152: checking alignment of CORBA_boolean" >&5
4152align_save_libs="$LIBS"
4153LIBS="$GLIB_LIBS $LIBS"
4154if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_boolean'+set}'`\" = set"; then
4155  echo $ac_n "(cached) $ac_c" 1>&6
4156else
4157  if test "$cross_compiling" = yes; then
4158  ac_cv_alignof_CORBA_boolean=0
4159else
4160  cat > conftest.$ac_ext <<EOF
4161#line 4162 "configure"
4162#include "confdefs.h"
4163
4164#include <stdio.h>
4165#include "$srcdir/src/ORBitutil/basic_types.h"
4166typedef struct {char s1;} CORBA_struct;
4167typedef void *CORBA_pointer;
4168struct test {char s1; CORBA_boolean s2;};
4169main()
4170{
4171  FILE *f=fopen("conftestval", "w");
4172  if (!f) exit(1);
4173  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4174  exit(0);
4175}
4176EOF
4177if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4178then
4179  ac_cv_alignof_CORBA_boolean=`cat conftestval`
4180else
4181  echo "configure: failed program was:" >&5
4182  cat conftest.$ac_ext >&5
4183  rm -fr conftest*
4184  ac_cv_alignof_CORBA_boolean=0
4185fi
4186rm -fr conftest*
4187fi
4188
4189fi
4190echo "$ac_t""$ac_cv_alignof_CORBA_boolean" 1>&6
4191LIBS="$align_save_libs"
4192cat >> confdefs.h <<EOF
4193#define ALIGNOF_CORBA_BOOLEAN $ac_cv_alignof_CORBA_boolean
4194EOF
4195
4196
4197echo $ac_n "checking alignment of CORBA_octet""... $ac_c" 1>&6
4198echo "configure:4199: checking alignment of CORBA_octet" >&5
4199align_save_libs="$LIBS"
4200LIBS="$GLIB_LIBS $LIBS"
4201if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_octet'+set}'`\" = set"; then
4202  echo $ac_n "(cached) $ac_c" 1>&6
4203else
4204  if test "$cross_compiling" = yes; then
4205  ac_cv_alignof_CORBA_octet=0
4206else
4207  cat > conftest.$ac_ext <<EOF
4208#line 4209 "configure"
4209#include "confdefs.h"
4210
4211#include <stdio.h>
4212#include "$srcdir/src/ORBitutil/basic_types.h"
4213typedef struct {char s1;} CORBA_struct;
4214typedef void *CORBA_pointer;
4215struct test {char s1; CORBA_octet s2;};
4216main()
4217{
4218  FILE *f=fopen("conftestval", "w");
4219  if (!f) exit(1);
4220  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4221  exit(0);
4222}
4223EOF
4224if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4225then
4226  ac_cv_alignof_CORBA_octet=`cat conftestval`
4227else
4228  echo "configure: failed program was:" >&5
4229  cat conftest.$ac_ext >&5
4230  rm -fr conftest*
4231  ac_cv_alignof_CORBA_octet=0
4232fi
4233rm -fr conftest*
4234fi
4235
4236fi
4237echo "$ac_t""$ac_cv_alignof_CORBA_octet" 1>&6
4238LIBS="$align_save_libs"
4239cat >> confdefs.h <<EOF
4240#define ALIGNOF_CORBA_OCTET $ac_cv_alignof_CORBA_octet
4241EOF
4242
4243
4244echo $ac_n "checking alignment of CORBA_long_double""... $ac_c" 1>&6
4245echo "configure:4246: checking alignment of CORBA_long_double" >&5
4246align_save_libs="$LIBS"
4247LIBS="$GLIB_LIBS $LIBS"
4248if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_long_double'+set}'`\" = set"; then
4249  echo $ac_n "(cached) $ac_c" 1>&6
4250else
4251  if test "$cross_compiling" = yes; then
4252  ac_cv_alignof_CORBA_long_double=0
4253else
4254  cat > conftest.$ac_ext <<EOF
4255#line 4256 "configure"
4256#include "confdefs.h"
4257
4258#include <stdio.h>
4259#include "$srcdir/src/ORBitutil/basic_types.h"
4260typedef struct {char s1;} CORBA_struct;
4261typedef void *CORBA_pointer;
4262struct test {char s1; CORBA_long_double s2;};
4263main()
4264{
4265  FILE *f=fopen("conftestval", "w");
4266  if (!f) exit(1);
4267  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4268  exit(0);
4269}
4270EOF
4271if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4272then
4273  ac_cv_alignof_CORBA_long_double=`cat conftestval`
4274else
4275  echo "configure: failed program was:" >&5
4276  cat conftest.$ac_ext >&5
4277  rm -fr conftest*
4278  ac_cv_alignof_CORBA_long_double=0
4279fi
4280rm -fr conftest*
4281fi
4282
4283fi
4284echo "$ac_t""$ac_cv_alignof_CORBA_long_double" 1>&6
4285LIBS="$align_save_libs"
4286cat >> confdefs.h <<EOF
4287#define ALIGNOF_CORBA_LONG_DOUBLE $ac_cv_alignof_CORBA_long_double
4288EOF
4289
4290
4291echo $ac_n "checking alignment of CORBA_wchar""... $ac_c" 1>&6
4292echo "configure:4293: checking alignment of CORBA_wchar" >&5
4293align_save_libs="$LIBS"
4294LIBS="$GLIB_LIBS $LIBS"
4295if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_wchar'+set}'`\" = set"; then
4296  echo $ac_n "(cached) $ac_c" 1>&6
4297else
4298  if test "$cross_compiling" = yes; then
4299  ac_cv_alignof_CORBA_wchar=0
4300else
4301  cat > conftest.$ac_ext <<EOF
4302#line 4303 "configure"
4303#include "confdefs.h"
4304
4305#include <stdio.h>
4306#include "$srcdir/src/ORBitutil/basic_types.h"
4307typedef struct {char s1;} CORBA_struct;
4308typedef void *CORBA_pointer;
4309struct test {char s1; CORBA_wchar s2;};
4310main()
4311{
4312  FILE *f=fopen("conftestval", "w");
4313  if (!f) exit(1);
4314  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4315  exit(0);
4316}
4317EOF
4318if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4319then
4320  ac_cv_alignof_CORBA_wchar=`cat conftestval`
4321else
4322  echo "configure: failed program was:" >&5
4323  cat conftest.$ac_ext >&5
4324  rm -fr conftest*
4325  ac_cv_alignof_CORBA_wchar=0
4326fi
4327rm -fr conftest*
4328fi
4329
4330fi
4331echo "$ac_t""$ac_cv_alignof_CORBA_wchar" 1>&6
4332LIBS="$align_save_libs"
4333cat >> confdefs.h <<EOF
4334#define ALIGNOF_CORBA_WCHAR $ac_cv_alignof_CORBA_wchar
4335EOF
4336
4337
4338echo $ac_n "checking alignment of CORBA_long_long""... $ac_c" 1>&6
4339echo "configure:4340: checking alignment of CORBA_long_long" >&5
4340align_save_libs="$LIBS"
4341LIBS="$GLIB_LIBS $LIBS"
4342if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_long_long'+set}'`\" = set"; then
4343  echo $ac_n "(cached) $ac_c" 1>&6
4344else
4345  if test "$cross_compiling" = yes; then
4346  ac_cv_alignof_CORBA_long_long=0
4347else
4348  cat > conftest.$ac_ext <<EOF
4349#line 4350 "configure"
4350#include "confdefs.h"
4351
4352#include <stdio.h>
4353#include "$srcdir/src/ORBitutil/basic_types.h"
4354typedef struct {char s1;} CORBA_struct;
4355typedef void *CORBA_pointer;
4356struct test {char s1; CORBA_long_long s2;};
4357main()
4358{
4359  FILE *f=fopen("conftestval", "w");
4360  if (!f) exit(1);
4361  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4362  exit(0);
4363}
4364EOF
4365if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4366then
4367  ac_cv_alignof_CORBA_long_long=`cat conftestval`
4368else
4369  echo "configure: failed program was:" >&5
4370  cat conftest.$ac_ext >&5
4371  rm -fr conftest*
4372  ac_cv_alignof_CORBA_long_long=0
4373fi
4374rm -fr conftest*
4375fi
4376
4377fi
4378echo "$ac_t""$ac_cv_alignof_CORBA_long_long" 1>&6
4379LIBS="$align_save_libs"
4380cat >> confdefs.h <<EOF
4381#define ALIGNOF_CORBA_LONG_LONG $ac_cv_alignof_CORBA_long_long
4382EOF
4383
4384
4385echo $ac_n "checking alignment of CORBA_unsigned_long_long""... $ac_c" 1>&6
4386echo "configure:4387: checking alignment of CORBA_unsigned_long_long" >&5
4387align_save_libs="$LIBS"
4388LIBS="$GLIB_LIBS $LIBS"
4389if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_unsigned_long_long'+set}'`\" = set"; then
4390  echo $ac_n "(cached) $ac_c" 1>&6
4391else
4392  if test "$cross_compiling" = yes; then
4393  ac_cv_alignof_CORBA_unsigned_long_long=0
4394else
4395  cat > conftest.$ac_ext <<EOF
4396#line 4397 "configure"
4397#include "confdefs.h"
4398
4399#include <stdio.h>
4400#include "$srcdir/src/ORBitutil/basic_types.h"
4401typedef struct {char s1;} CORBA_struct;
4402typedef void *CORBA_pointer;
4403struct test {char s1; CORBA_unsigned_long_long s2;};
4404main()
4405{
4406  FILE *f=fopen("conftestval", "w");
4407  if (!f) exit(1);
4408  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4409  exit(0);
4410}
4411EOF
4412if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4413then
4414  ac_cv_alignof_CORBA_unsigned_long_long=`cat conftestval`
4415else
4416  echo "configure: failed program was:" >&5
4417  cat conftest.$ac_ext >&5
4418  rm -fr conftest*
4419  ac_cv_alignof_CORBA_unsigned_long_long=0
4420fi
4421rm -fr conftest*
4422fi
4423
4424fi
4425echo "$ac_t""$ac_cv_alignof_CORBA_unsigned_long_long" 1>&6
4426LIBS="$align_save_libs"
4427cat >> confdefs.h <<EOF
4428#define ALIGNOF_CORBA_UNSIGNED_LONG_LONG $ac_cv_alignof_CORBA_unsigned_long_long
4429EOF
4430
4431
4432echo $ac_n "checking alignment of CORBA_struct""... $ac_c" 1>&6
4433echo "configure:4434: checking alignment of CORBA_struct" >&5
4434align_save_libs="$LIBS"
4435LIBS="$GLIB_LIBS $LIBS"
4436if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_struct'+set}'`\" = set"; then
4437  echo $ac_n "(cached) $ac_c" 1>&6
4438else
4439  if test "$cross_compiling" = yes; then
4440  ac_cv_alignof_CORBA_struct=0
4441else
4442  cat > conftest.$ac_ext <<EOF
4443#line 4444 "configure"
4444#include "confdefs.h"
4445
4446#include <stdio.h>
4447#include "$srcdir/src/ORBitutil/basic_types.h"
4448typedef struct {char s1;} CORBA_struct;
4449typedef void *CORBA_pointer;
4450struct test {char s1; CORBA_struct s2;};
4451main()
4452{
4453  FILE *f=fopen("conftestval", "w");
4454  if (!f) exit(1);
4455  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4456  exit(0);
4457}
4458EOF
4459if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4460then
4461  ac_cv_alignof_CORBA_struct=`cat conftestval`
4462else
4463  echo "configure: failed program was:" >&5
4464  cat conftest.$ac_ext >&5
4465  rm -fr conftest*
4466  ac_cv_alignof_CORBA_struct=0
4467fi
4468rm -fr conftest*
4469fi
4470
4471fi
4472echo "$ac_t""$ac_cv_alignof_CORBA_struct" 1>&6
4473LIBS="$align_save_libs"
4474cat >> confdefs.h <<EOF
4475#define ALIGNOF_CORBA_STRUCT $ac_cv_alignof_CORBA_struct
4476EOF
4477
4478
4479echo $ac_n "checking alignment of CORBA_pointer""... $ac_c" 1>&6
4480echo "configure:4481: checking alignment of CORBA_pointer" >&5
4481align_save_libs="$LIBS"
4482LIBS="$GLIB_LIBS $LIBS"
4483if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_pointer'+set}'`\" = set"; then
4484  echo $ac_n "(cached) $ac_c" 1>&6
4485else
4486  if test "$cross_compiling" = yes; then
4487  ac_cv_alignof_CORBA_pointer=0
4488else
4489  cat > conftest.$ac_ext <<EOF
4490#line 4491 "configure"
4491#include "confdefs.h"
4492
4493#include <stdio.h>
4494#include "$srcdir/src/ORBitutil/basic_types.h"
4495typedef struct {char s1;} CORBA_struct;
4496typedef void *CORBA_pointer;
4497struct test {char s1; CORBA_pointer s2;};
4498main()
4499{
4500  FILE *f=fopen("conftestval", "w");
4501  if (!f) exit(1);
4502  fprintf(f, "%d\n", &(((struct test*)0)->s2));
4503  exit(0);
4504}
4505EOF
4506if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4507then
4508  ac_cv_alignof_CORBA_pointer=`cat conftestval`
4509else
4510  echo "configure: failed program was:" >&5
4511  cat conftest.$ac_ext >&5
4512  rm -fr conftest*
4513  ac_cv_alignof_CORBA_pointer=0
4514fi
4515rm -fr conftest*
4516fi
4517
4518fi
4519echo "$ac_t""$ac_cv_alignof_CORBA_pointer" 1>&6
4520LIBS="$align_save_libs"
4521cat >> confdefs.h <<EOF
4522#define ALIGNOF_CORBA_POINTER $ac_cv_alignof_CORBA_pointer
4523EOF
4524
4525
4526CPPFLAGS=$orig_CPPFLAGS
4527
4528subdirs="libIDL"
4529
4530subdirs="libIDL popt"
4531
4532
4533
4534
4535trap '' 1 2 15
4536cat > confcache <<\EOF
4537# This file is a shell script that caches the results of configure
4538# tests run on this system so they can be shared between configure
4539# scripts and configure runs.  It is not useful on other systems.
4540# If it contains results you don't want to keep, you may remove or edit it.
4541#
4542# By default, configure uses ./config.cache as the cache file,
4543# creating it if it does not exist already.  You can give configure
4544# the --cache-file=FILE option to use a different cache file; that is
4545# what configure does when it calls configure scripts in
4546# subdirectories, so they share the cache.
4547# Giving --cache-file=/dev/null disables caching, for debugging configure.
4548# config.status only pays attention to the cache file if you give it the
4549# --recheck option to rerun configure.
4550#
4551EOF
4552# The following way of writing the cache mishandles newlines in values,
4553# but we know of no workaround that is simple, portable, and efficient.
4554# So, don't put newlines in cache variables' values.
4555# Ultrix sh set writes to stderr and can't be redirected directly,
4556# and sets the high bit in the cache file unless we assign to the vars.
4557(set) 2>&1 |
4558  case `(ac_space=' '; set | grep ac_space) 2>&1` in
4559  *ac_space=\ *)
4560    # `set' does not quote correctly, so add quotes (double-quote substitution
4561    # turns \\\\ into \\, and sed turns \\ into \).
4562    sed -n \
4563      -e "s/'/'\\\\''/g" \
4564      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4565    ;;
4566  *)
4567    # `set' quotes correctly as required by POSIX, so do not add quotes.
4568    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4569    ;;
4570  esac >> confcache
4571if cmp -s $cache_file confcache; then
4572  :
4573else
4574  if test -w $cache_file; then
4575    echo "updating cache $cache_file"
4576    cat confcache > $cache_file
4577  else
4578    echo "not updating unwritable cache $cache_file"
4579  fi
4580fi
4581rm -f confcache
4582
4583trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4584
4585test "x$prefix" = xNONE && prefix=$ac_default_prefix
4586# Let make expand exec_prefix.
4587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4588
4589# Any assignment to VPATH causes Sun make to only execute
4590# the first set of double-colon rules, so remove it if not needed.
4591# If there is a colon in the path, we need to keep it.
4592if test "x$srcdir" = x.; then
4593  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4594fi
4595
4596trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4597
4598DEFS=-DHAVE_CONFIG_H
4599
4600# Without the "./", some shells look in PATH for config.status.
4601: ${CONFIG_STATUS=./config.status}
4602
4603echo creating $CONFIG_STATUS
4604rm -f $CONFIG_STATUS
4605cat > $CONFIG_STATUS <<EOF
4606#! /bin/sh
4607# Generated automatically by configure.
4608# Run this file to recreate the current configuration.
4609# This directory was configured as follows,
4610# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4611#
4612# $0 $ac_configure_args
4613#
4614# Compiler output produced by configure, useful for debugging
4615# configure, is in ./config.log if it exists.
4616
4617ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4618for ac_option
4619do
4620  case "\$ac_option" in
4621  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4622    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4623    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4624  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4625    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4626    exit 0 ;;
4627  -help | --help | --hel | --he | --h)
4628    echo "\$ac_cs_usage"; exit 0 ;;
4629  *) echo "\$ac_cs_usage"; exit 1 ;;
4630  esac
4631done
4632
4633ac_given_srcdir=$srcdir
4634ac_given_INSTALL="$INSTALL"
4635
4636trap 'rm -fr `echo "Makefile
4637orbit-config
4638src/Makefile
4639src/ORBitutil/Makefile
4640src/ORBitutil/orbit-os-config.h
4641src/IIOP/Makefile
4642src/orb/orbit.h
4643src/orb/Makefile
4644src/orbit-idl-compiler/Makefile
4645src/orbit-idl-compiler/backends/Makefile
4646src/orbit-idl-compiler/backends/c/Makefile
4647src/services/Makefile
4648src/services/name/Makefile
4649src/services/event/Makefile
4650src/daemons/Makefile
4651src/daemons/interface_repository/Makefile
4652test/Makefile
4653test/idl/Makefile
4654test/test-poa/Makefile
4655ORBit.pc
4656ORBit.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4657EOF
4658cat >> $CONFIG_STATUS <<EOF
4659
4660# Protect against being on the right side of a sed subst in config.status.
4661sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4662 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4663$ac_vpsub
4664$extrasub
4665s%@SHELL@%$SHELL%g
4666s%@CFLAGS@%$CFLAGS%g
4667s%@CPPFLAGS@%$CPPFLAGS%g
4668s%@CXXFLAGS@%$CXXFLAGS%g
4669s%@FFLAGS@%$FFLAGS%g
4670s%@DEFS@%$DEFS%g
4671s%@LDFLAGS@%$LDFLAGS%g
4672s%@LIBS@%$LIBS%g
4673s%@exec_prefix@%$exec_prefix%g
4674s%@prefix@%$prefix%g
4675s%@program_transform_name@%$program_transform_name%g
4676s%@bindir@%$bindir%g
4677s%@sbindir@%$sbindir%g
4678s%@libexecdir@%$libexecdir%g
4679s%@datadir@%$datadir%g
4680s%@sysconfdir@%$sysconfdir%g
4681s%@sharedstatedir@%$sharedstatedir%g
4682s%@localstatedir@%$localstatedir%g
4683s%@libdir@%$libdir%g
4684s%@includedir@%$includedir%g
4685s%@oldincludedir@%$oldincludedir%g
4686s%@infodir@%$infodir%g
4687s%@mandir@%$mandir%g
4688s%@ORBIT_MAJOR_VERSION@%$ORBIT_MAJOR_VERSION%g
4689s%@ORBIT_MINOR_VERSION@%$ORBIT_MINOR_VERSION%g
4690s%@ORBIT_MICRO_VERSION@%$ORBIT_MICRO_VERSION%g
4691s%@ORBIT_VERSION@%$ORBIT_VERSION%g
4692s%@LT_RELEASE@%$LT_RELEASE%g
4693s%@LT_CURRENT@%$LT_CURRENT%g
4694s%@LT_REVISION@%$LT_REVISION%g
4695s%@LT_AGE@%$LT_AGE%g
4696s%@ORBIT_SERIAL@%$ORBIT_SERIAL%g
4697s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4698s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4699s%@INSTALL_DATA@%$INSTALL_DATA%g
4700s%@PACKAGE@%$PACKAGE%g
4701s%@VERSION@%$VERSION%g
4702s%@ACLOCAL@%$ACLOCAL%g
4703s%@AUTOCONF@%$AUTOCONF%g
4704s%@AUTOMAKE@%$AUTOMAKE%g
4705s%@AUTOHEADER@%$AUTOHEADER%g
4706s%@MAKEINFO@%$MAKEINFO%g
4707s%@SET_MAKE@%$SET_MAKE%g
4708s%@host@%$host%g
4709s%@host_alias@%$host_alias%g
4710s%@host_cpu@%$host_cpu%g
4711s%@host_vendor@%$host_vendor%g
4712s%@host_os@%$host_os%g
4713s%@build@%$build%g
4714s%@build_alias@%$build_alias%g
4715s%@build_cpu@%$build_cpu%g
4716s%@build_vendor@%$build_vendor%g
4717s%@build_os@%$build_os%g
4718s%@RANLIB@%$RANLIB%g
4719s%@CC@%$CC%g
4720s%@LN_S@%$LN_S%g
4721s%@LIBTOOL@%$LIBTOOL%g
4722s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4723s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4724s%@MAINT@%$MAINT%g
4725s%@GLIB_CONFIG@%$GLIB_CONFIG%g
4726s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
4727s%@GLIB_LIBS@%$GLIB_LIBS%g
4728s%@GMODULE_CFLAGS@%$GMODULE_CFLAGS%g
4729s%@GMODULE_LIBS@%$GMODULE_LIBS%g
4730s%@YACC@%$YACC%g
4731s%@LEX@%$LEX%g
4732s%@LEXLIB@%$LEXLIB%g
4733s%@CPP@%$CPP%g
4734s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4735s%@AWK@%$AWK%g
4736s%@ALLOCA@%$ALLOCA%g
4737s%@ORBIT_HAVE_ALLOCA_H@%$ORBIT_HAVE_ALLOCA_H%g
4738s%@LIBWRAP_PATH@%$LIBWRAP_PATH%g
4739s%@LIB_WRAP@%$LIB_WRAP%g
4740s%@HAVE_HOSTS_ACCESS_TRUE@%$HAVE_HOSTS_ACCESS_TRUE%g
4741s%@HAVE_HOSTS_ACCESS_FALSE@%$HAVE_HOSTS_ACCESS_FALSE%g
4742s%@HAVE_LIMITED_WRITEV@%$HAVE_LIMITED_WRITEV%g
4743s%@subdirs@%$subdirs%g
4744s%@pkglibdir@%$pkglibdir%g
4745
4746CEOF
4747EOF
4748
4749cat >> $CONFIG_STATUS <<\EOF
4750
4751# Split the substitutions into bite-sized pieces for seds with
4752# small command number limits, like on Digital OSF/1 and HP-UX.
4753ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4754ac_file=1 # Number of current file.
4755ac_beg=1 # First line for current file.
4756ac_end=$ac_max_sed_cmds # Line after last line for current file.
4757ac_more_lines=:
4758ac_sed_cmds=""
4759while $ac_more_lines; do
4760  if test $ac_beg -gt 1; then
4761    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4762  else
4763    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4764  fi
4765  if test ! -s conftest.s$ac_file; then
4766    ac_more_lines=false
4767    rm -f conftest.s$ac_file
4768  else
4769    if test -z "$ac_sed_cmds"; then
4770      ac_sed_cmds="sed -f conftest.s$ac_file"
4771    else
4772      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4773    fi
4774    ac_file=`expr $ac_file + 1`
4775    ac_beg=$ac_end
4776    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4777  fi
4778done
4779if test -z "$ac_sed_cmds"; then
4780  ac_sed_cmds=cat
4781fi
4782EOF
4783
4784cat >> $CONFIG_STATUS <<EOF
4785
4786CONFIG_FILES=\${CONFIG_FILES-"Makefile
4787orbit-config
4788src/Makefile
4789src/ORBitutil/Makefile
4790src/ORBitutil/orbit-os-config.h
4791src/IIOP/Makefile
4792src/orb/orbit.h
4793src/orb/Makefile
4794src/orbit-idl-compiler/Makefile
4795src/orbit-idl-compiler/backends/Makefile
4796src/orbit-idl-compiler/backends/c/Makefile
4797src/services/Makefile
4798src/services/name/Makefile
4799src/services/event/Makefile
4800src/daemons/Makefile
4801src/daemons/interface_repository/Makefile
4802test/Makefile
4803test/idl/Makefile
4804test/test-poa/Makefile
4805ORBit.pc
4806ORBit.spec"}
4807EOF
4808cat >> $CONFIG_STATUS <<\EOF
4809for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4810  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4811  case "$ac_file" in
4812  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4813       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4814  *) ac_file_in="${ac_file}.in" ;;
4815  esac
4816
4817  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4818
4819  # Remove last slash and all that follows it.  Not all systems have dirname.
4820  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4821  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4822    # The file is in a subdirectory.
4823    test ! -d "$ac_dir" && mkdir "$ac_dir"
4824    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4825    # A "../" for each directory in $ac_dir_suffix.
4826    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4827  else
4828    ac_dir_suffix= ac_dots=
4829  fi
4830
4831  case "$ac_given_srcdir" in
4832  .)  srcdir=.
4833      if test -z "$ac_dots"; then top_srcdir=.
4834      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4835  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4836  *) # Relative path.
4837    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4838    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4839  esac
4840
4841  case "$ac_given_INSTALL" in
4842  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4843  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4844  esac
4845
4846  echo creating "$ac_file"
4847  rm -f "$ac_file"
4848  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4849  case "$ac_file" in
4850  *Makefile*) ac_comsub="1i\\
4851# $configure_input" ;;
4852  *) ac_comsub= ;;
4853  esac
4854
4855  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4856  sed -e "$ac_comsub
4857s%@configure_input@%$configure_input%g
4858s%@srcdir@%$srcdir%g
4859s%@top_srcdir@%$top_srcdir%g
4860s%@INSTALL@%$INSTALL%g
4861" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4862fi; done
4863rm -f conftest.s*
4864
4865# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4866# NAME is the cpp macro being defined and VALUE is the value it is being given.
4867#
4868# ac_d sets the value in "#define NAME VALUE" lines.
4869ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4870ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4871ac_dC='\3'
4872ac_dD='%g'
4873# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4874ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4875ac_uB='\([      ]\)%\1#\2define\3'
4876ac_uC=' '
4877ac_uD='\4%g'
4878# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4879ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4880ac_eB='$%\1#\2define\3'
4881ac_eC=' '
4882ac_eD='%g'
4883
4884if test "${CONFIG_HEADERS+set}" != set; then
4885EOF
4886cat >> $CONFIG_STATUS <<EOF
4887  CONFIG_HEADERS="config.h"
4888EOF
4889cat >> $CONFIG_STATUS <<\EOF
4890fi
4891for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4892  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4893  case "$ac_file" in
4894  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4895       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4896  *) ac_file_in="${ac_file}.in" ;;
4897  esac
4898
4899  echo creating $ac_file
4900
4901  rm -f conftest.frag conftest.in conftest.out
4902  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4903  cat $ac_file_inputs > conftest.in
4904
4905EOF
4906
4907# Transform confdefs.h into a sed script conftest.vals that substitutes
4908# the proper values into config.h.in to produce config.h.  And first:
4909# Protect against being on the right side of a sed subst in config.status.
4910# Protect against being in an unquoted here document in config.status.
4911rm -f conftest.vals
4912cat > conftest.hdr <<\EOF
4913s/[\\&%]/\\&/g
4914s%[\\$`]%\\&%g
4915s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4916s%ac_d%ac_u%gp
4917s%ac_u%ac_e%gp
4918EOF
4919sed -n -f conftest.hdr confdefs.h > conftest.vals
4920rm -f conftest.hdr
4921
4922# This sed command replaces #undef with comments.  This is necessary, for
4923# example, in the case of _POSIX_SOURCE, which is predefined and required
4924# on some systems where configure will not decide to define it.
4925cat >> conftest.vals <<\EOF
4926s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4927EOF
4928
4929# Break up conftest.vals because some shells have a limit on
4930# the size of here documents, and old seds have small limits too.
4931
4932rm -f conftest.tail
4933while :
4934do
4935  ac_lines=`grep -c . conftest.vals`
4936  # grep -c gives empty output for an empty file on some AIX systems.
4937  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4938  # Write a limited-size here document to conftest.frag.
4939  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4940  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4941  echo 'CEOF
4942  sed -f conftest.frag conftest.in > conftest.out
4943  rm -f conftest.in
4944  mv conftest.out conftest.in
4945' >> $CONFIG_STATUS
4946  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4947  rm -f conftest.vals
4948  mv conftest.tail conftest.vals
4949done
4950rm -f conftest.vals
4951
4952cat >> $CONFIG_STATUS <<\EOF
4953  rm -f conftest.frag conftest.h
4954  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4955  cat conftest.in >> conftest.h
4956  rm -f conftest.in
4957  if cmp -s $ac_file conftest.h 2>/dev/null; then
4958    echo "$ac_file is unchanged"
4959    rm -f conftest.h
4960  else
4961    # Remove last slash and all that follows it.  Not all systems have dirname.
4962      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4963      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4964      # The file is in a subdirectory.
4965      test ! -d "$ac_dir" && mkdir "$ac_dir"
4966    fi
4967    rm -f $ac_file
4968    mv conftest.h $ac_file
4969  fi
4970fi; done
4971
4972EOF
4973cat >> $CONFIG_STATUS <<EOF
4974
4975
4976EOF
4977cat >> $CONFIG_STATUS <<\EOF
4978test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4979
4980exit 0
4981EOF
4982chmod +x $CONFIG_STATUS
4983rm -fr confdefs* $ac_clean_files
4984test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4985
4986if test "$no_recursion" != yes; then
4987
4988  # Remove --cache-file and --srcdir arguments so they do not pile up.
4989  ac_sub_configure_args=
4990  ac_prev=
4991  for ac_arg in $ac_configure_args; do
4992    if test -n "$ac_prev"; then
4993      ac_prev=
4994      continue
4995    fi
4996    case "$ac_arg" in
4997    -cache-file | --cache-file | --cache-fil | --cache-fi \
4998    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4999      ac_prev=cache_file ;;
5000    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5001    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5002      ;;
5003    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5004      ac_prev=srcdir ;;
5005    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5006      ;;
5007    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5008    esac
5009  done
5010
5011  for ac_config_dir in libIDL popt; do
5012
5013    # Do not complain, so a configure script can configure whichever
5014    # parts of a large source tree are present.
5015    if test ! -d $srcdir/$ac_config_dir; then
5016      continue
5017    fi
5018
5019    echo configuring in $ac_config_dir
5020
5021    case "$srcdir" in
5022    .) ;;
5023    *)
5024      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5025      else
5026        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5027      fi
5028      ;;
5029    esac
5030
5031    ac_popdir=`pwd`
5032    cd $ac_config_dir
5033
5034      # A "../" for each directory in /$ac_config_dir.
5035      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5036
5037    case "$srcdir" in
5038    .) # No --srcdir option.  We are building in place.
5039      ac_sub_srcdir=$srcdir ;;
5040    /*) # Absolute path.
5041      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5042    *) # Relative path.
5043      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5044    esac
5045
5046    # Check for guested configure; otherwise get Cygnus style configure.
5047    if test -f $ac_sub_srcdir/configure; then
5048      ac_sub_configure=$ac_sub_srcdir/configure
5049    elif test -f $ac_sub_srcdir/configure.in; then
5050      ac_sub_configure=$ac_configure
5051    else
5052      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5053      ac_sub_configure=
5054    fi
5055
5056    # The recursion is here.
5057    if test -n "$ac_sub_configure"; then
5058
5059      # Make the cache file name correct relative to the subdirectory.
5060      case "$cache_file" in
5061      /*) ac_sub_cache_file=$cache_file ;;
5062      *) # Relative path.
5063        ac_sub_cache_file="$ac_dots$cache_file" ;;
5064      esac
5065  case "$ac_given_INSTALL" in
5066        [/$]*) INSTALL="$ac_given_INSTALL" ;;
5067        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5068        esac
5069
5070      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5071      # The eval makes quoting arguments work.
5072      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5073      then :
5074      else
5075        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5076      fi
5077    fi
5078
5079    cd $ac_popdir
5080  done
5081fi
5082
Note: See TracBrowser for help on using the repository browser.