root/branches/jons-gtk-gui/jons-gtk-gui/configure

Revision 794, 64.3 kB (checked in by graham, 9 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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-maintainer-mode enable make rules and dependencies not useful
16                          (and sometimes confusing) to the casual installer"
17ac_help="$ac_help
18  --enable-shared         build shared libraries [default=yes]
19  --enable-shared=PKGS    only build shared libraries if the current package
20                          appears as an element in the PKGS list"
21ac_help="$ac_help
22  --enable-static         build static libraries [default=yes]
23  --enable-static=PKGS    only build shared libraries if the current package
24                          appears as an element in the PKGS list"
25ac_help="$ac_help
26  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
49bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
61
62# Initialize some other variables.
63subdirs=
64MFLAGS= MAKEFLAGS=
65SHELL=${CONFIG_SHELL-/bin/sh}
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
68
69ac_prev=
70for ac_option
71do
72
73  # If the previous option needs an argument, assign it.
74  if test -n "$ac_prev"; then
75    eval "$ac_prev=\$ac_option"
76    ac_prev=
77    continue
78  fi
79
80  case "$ac_option" in
81  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82  *) ac_optarg= ;;
83  esac
84
85  # Accept the important Cygnus configure options, so we can diagnose typos.
86
87  case "$ac_option" in
88
89  -bindir | --bindir | --bindi | --bind | --bin | --bi)
90    ac_prev=bindir ;;
91  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92    bindir="$ac_optarg" ;;
93
94  -build | --build | --buil | --bui | --bu)
95    ac_prev=build ;;
96  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97    build="$ac_optarg" ;;
98
99  -cache-file | --cache-file | --cache-fil | --cache-fi \
100  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101    ac_prev=cache_file ;;
102  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104    cache_file="$ac_optarg" ;;
105
106  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107    ac_prev=datadir ;;
108  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109  | --da=*)
110    datadir="$ac_optarg" ;;
111
112  -disable-* | --disable-*)
113    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114    # Reject names that are not valid shell variable names.
115    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117    fi
118    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119    eval "enable_${ac_feature}=no" ;;
120
121  -enable-* | --enable-*)
122    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123    # Reject names that are not valid shell variable names.
124    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126    fi
127    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128    case "$ac_option" in
129      *=*) ;;
130      *) ac_optarg=yes ;;
131    esac
132    eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136  | --exec | --exe | --ex)
137    ac_prev=exec_prefix ;;
138  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140  | --exec=* | --exe=* | --ex=*)
141    exec_prefix="$ac_optarg" ;;
142
143  -gas | --gas | --ga | --g)
144    # Obsolete; use --with-gas.
145    with_gas=yes ;;
146
147  -help | --help | --hel | --he)
148    # Omit some internal or obsolete options to make the list less imposing.
149    # This message is too long to be a string in the A/UX 3.1 sh.
150    cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154  --cache-file=FILE       cache test results in FILE
155  --help                  print this message
156  --no-create             do not create output files
157  --quiet, --silent       do not print \`checking...' messages
158  --version               print the version of autoconf that created configure
159Directory and file names:
160  --prefix=PREFIX         install architecture-independent files in PREFIX
161                          [$ac_default_prefix]
162  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163                          [same as prefix]
164  --bindir=DIR            user executables in DIR [EPREFIX/bin]
165  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167  --datadir=DIR           read-only architecture-independent data in DIR
168                          [PREFIX/share]
169  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171                          [PREFIX/com]
172  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174  --includedir=DIR        C header files in DIR [PREFIX/include]
175  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176  --infodir=DIR           info documentation in DIR [PREFIX/info]
177  --mandir=DIR            man documentation in DIR [PREFIX/man]
178  --srcdir=DIR            find the sources in DIR [configure dir or ..]
179  --program-prefix=PREFIX prepend PREFIX to installed program names
180  --program-suffix=SUFFIX append SUFFIX to installed program names
181  --program-transform-name=PROGRAM
182                          run sed PROGRAM on installed program names
183EOF
184    cat << EOF
185Host type:
186  --build=BUILD           configure for building on BUILD [BUILD=HOST]
187  --host=HOST             configure for HOST [guessed]
188  --target=TARGET         configure for TARGET [TARGET=HOST]
189Features and packages:
190  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194  --x-includes=DIR        X include files are in DIR
195  --x-libraries=DIR       X library files are in DIR
196EOF
197    if test -n "$ac_help"; then
198      echo "--enable and --with options recognized:$ac_help"
199    fi
200    exit 0 ;;
201
202  -host | --host | --hos | --ho)
203    ac_prev=host ;;
204  -host=* | --host=* | --hos=* | --ho=*)
205    host="$ac_optarg" ;;
206
207  -includedir | --includedir | --includedi | --included | --include \
208  | --includ | --inclu | --incl | --inc)
209    ac_prev=includedir ;;
210  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211  | --includ=* | --inclu=* | --incl=* | --inc=*)
212    includedir="$ac_optarg" ;;
213
214  -infodir | --infodir | --infodi | --infod | --info | --inf)
215    ac_prev=infodir ;;
216  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217    infodir="$ac_optarg" ;;
218
219  -libdir | --libdir | --libdi | --libd)
220    ac_prev=libdir ;;
221  -libdir=* | --libdir=* | --libdi=* | --libd=*)
222    libdir="$ac_optarg" ;;
223
224  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225  | --libexe | --libex | --libe)
226    ac_prev=libexecdir ;;
227  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228  | --libexe=* | --libex=* | --libe=*)
229    libexecdir="$ac_optarg" ;;
230
231  -localstatedir | --localstatedir | --localstatedi | --localstated \
232  | --localstate | --localstat | --localsta | --localst \
233  | --locals | --local | --loca | --loc | --lo)
234    ac_prev=localstatedir ;;
235  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238    localstatedir="$ac_optarg" ;;
239
240  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241    ac_prev=mandir ;;
242  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243    mandir="$ac_optarg" ;;
244
245  -nfp | --nfp | --nf)
246    # Obsolete; use --without-fp.
247    with_fp=no ;;
248
249  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250  | --no-cr | --no-c)
251    no_create=yes ;;
252
253  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255    no_recursion=yes ;;
256
257  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259  | --oldin | --oldi | --old | --ol | --o)
260    ac_prev=oldincludedir ;;
261  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264    oldincludedir="$ac_optarg" ;;
265
266  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267    ac_prev=prefix ;;
268  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269    prefix="$ac_optarg" ;;
270
271  -program-prefix | --program-prefix | --program-prefi | --program-pref \
272  | --program-pre | --program-pr | --program-p)
273    ac_prev=program_prefix ;;
274  -program-prefix=* | --program-prefix=* | --program-prefi=* \
275  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276    program_prefix="$ac_optarg" ;;
277
278  -program-suffix | --program-suffix | --program-suffi | --program-suff \
279  | --program-suf | --program-su | --program-s)
280    ac_prev=program_suffix ;;
281  -program-suffix=* | --program-suffix=* | --program-suffi=* \
282  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283    program_suffix="$ac_optarg" ;;
284
285  -program-transform-name | --program-transform-name \
286  | --program-transform-nam | --program-transform-na \
287  | --program-transform-n | --program-transform- \
288  | --program-transform | --program-transfor \
289  | --program-transfo | --program-transf \
290  | --program-trans | --program-tran \
291  | --progr-tra | --program-tr | --program-t)
292    ac_prev=program_transform_name ;;
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    program_transform_name="$ac_optarg" ;;
301
302  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303  | -silent | --silent | --silen | --sile | --sil)
304    silent=yes ;;
305
306  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307    ac_prev=sbindir ;;
308  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309  | --sbi=* | --sb=*)
310    sbindir="$ac_optarg" ;;
311
312  -sharedstatedir | --sharedstatedir | --sharedstatedi \
313  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314  | --sharedst | --shareds | --shared | --share | --shar \
315  | --sha | --sh)
316    ac_prev=sharedstatedir ;;
317  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320  | --sha=* | --sh=*)
321    sharedstatedir="$ac_optarg" ;;
322
323  -site | --site | --sit)
324    ac_prev=site ;;
325  -site=* | --site=* | --sit=*)
326    site="$ac_optarg" ;;
327
328  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329    ac_prev=srcdir ;;
330  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331    srcdir="$ac_optarg" ;;
332
333  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334  | --syscon | --sysco | --sysc | --sys | --sy)
335    ac_prev=sysconfdir ;;
336  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338    sysconfdir="$ac_optarg" ;;
339
340  -target | --target | --targe | --targ | --tar | --ta | --t)
341    ac_prev=target ;;
342  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343    target="$ac_optarg" ;;
344
345  -v | -verbose | --verbose | --verbos | --verbo | --verb)
346    verbose=yes ;;
347
348  -version | --version | --versio | --versi | --vers)
349    echo "configure generated by autoconf version 2.13"
350    exit 0 ;;
351
352  -with-* | --with-*)
353    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    case "$ac_option" in
360      *=*) ;;
361      *) ac_optarg=yes ;;
362    esac
363    eval "with_${ac_package}='$ac_optarg'" ;;
364
365  -without-* | --without-*)
366    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367    # Reject names that are not valid shell variable names.
368    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370    fi
371    ac_package=`echo $ac_package| sed 's/-/_/g'`
372    eval "with_${ac_package}=no" ;;
373
374  --x)
375    # Obsolete; use --with-x.
376    with_x=yes ;;
377
378  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379  | --x-incl | --x-inc | --x-in | --x-i)
380    ac_prev=x_includes ;;
381  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383    x_includes="$ac_optarg" ;;
384
385  -x-libraries | --x-libraries | --x-librarie | --x-librari \
386  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387    ac_prev=x_libraries ;;
388  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390    x_libraries="$ac_optarg" ;;
391
392  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393    ;;
394
395  *)
396    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397      echo "configure: warning: $ac_option: invalid host type" 1>&2
398    fi
399    if test "x$nonopt" != xNONE; then
400      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401    fi
402    nonopt="$ac_option"
403    ;;
404
405  esac
406done
407
408if test -n "$ac_prev"; then
409  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423  exec 6>/dev/null
424else
425  exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439  case "$ac_arg" in
440  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441  | --no-cr | --no-c) ;;
442  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447  esac
448done
449
450# NLS nuisances.
451# Only set these to C if already set.  These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
455if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=src/contact_list.cpp
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471  ac_srcdir_defaulted=yes
472  # Try the directory containing this script, then its parent.
473  ac_prog=$0
474  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476  srcdir=$ac_confdir
477  if test ! -r $srcdir/$ac_unique_file; then
478    srcdir=..
479  fi
480else
481  ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484  if test "$ac_srcdir_defaulted" = yes; then
485    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486  else
487    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488  fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494  if test "x$prefix" != xNONE; then
495    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496  else
497    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498  fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501  if test -r "$ac_site_file"; then
502    echo "loading site script $ac_site_file"
503    . "$ac_site_file"
504  fi
505done
506
507if test -r "$cache_file"; then
508  echo "loading cache $cache_file"
509  . $cache_file
510else
511  echo "creating cache $cache_file"
512  > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520cross_compiling=$ac_cv_prog_cc_cross
521
522ac_exeext=
523ac_objext=o
524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527    ac_n= ac_c='
528' ac_t='    '
529  else
530    ac_n=-n ac_c= ac_t=
531  fi
532else
533  ac_n= ac_c='\c' ac_t=
534fi
535
536
537
538
539
540
541
542ac_aux_dir=
543for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544  if test -f $ac_dir/install-sh; then
545    ac_aux_dir=$ac_dir
546    ac_install_sh="$ac_aux_dir/install-sh -c"
547    break
548  elif test -f $ac_dir/install.sh; then
549    ac_aux_dir=$ac_dir
550    ac_install_sh="$ac_aux_dir/install.sh -c"
551    break
552  fi
553done
554if test -z "$ac_aux_dir"; then
555  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556fi
557ac_config_guess=$ac_aux_dir/config.guess
558ac_config_sub=$ac_aux_dir/config.sub
559ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
561# Find a good install program.  We prefer a C program (faster),
562# so one script is as good as another.  But avoid the broken or
563# incompatible versions:
564# SysV /etc/install, /usr/sbin/install
565# SunOS /usr/etc/install
566# IRIX /sbin/install
567# AIX /bin/install
568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
569# AFS /usr/afsws/bin/install, which mishandles nonexistent args
570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
571# ./install, which can be erroneously created by make from ./install.sh.
572echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
573echo "configure:574: checking for a BSD compatible install" >&5
574if test -z "$INSTALL"; then
575if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
576  echo $ac_n "(cached) $ac_c" 1>&6
577else
578    IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
579  for ac_dir in $PATH; do
580    # Account for people who put trailing slashes in PATH elements.
581    case "$ac_dir/" in
582    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
583    *)
584      # OSF1 and SCO ODT 3.0 have their own names for install.
585      # Don't use installbsd from OSF since it installs stuff as root
586      # by default.
587      for ac_prog in ginstall scoinst install; do
588        if test -f $ac_dir/$ac_prog; then
589      if test $ac_prog = install &&
590            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
591        # AIX install.  It has an incompatible calling convention.
592        :
593      else
594        ac_cv_path_install="$ac_dir/$ac_prog -c"
595        break 2
596      fi
597    fi
598      done
599      ;;
600    esac
601  done
602  IFS="$ac_save_IFS"
603
604fi
605  if test "${ac_cv_path_install+set}" = set; then
606    INSTALL="$ac_cv_path_install"
607  else
608    # As a last resort, use the slow shell script.  We don't cache a
609    # path for INSTALL within a source directory, because that will
610    # break other packages using the cache if that directory is
611    # removed, or if the path is relative.
612    INSTALL="$ac_install_sh"
613  fi
614fi
615echo "$ac_t""$INSTALL" 1>&6
616
617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
618# It thinks the first close brace ends the variable substitution.
619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
620
621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
622
623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
624
625echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
626echo "configure:627: checking whether build environment is sane" >&5
627# Just in case
628sleep 1
629echo timestamp > conftestfile
630# Do `set' in a subshell so we don't clobber the current shell's
631# arguments.  Must try -L first in case configure is actually a
632# symlink; some systems play weird games with the mod time of symlinks
633# (eg FreeBSD returns the mod time of the symlink's containing
634# directory).
635if (
636   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
637   if test "$*" = "X"; then
638      # -L didn't work.
639      set X `ls -t $srcdir/configure conftestfile`
640   fi
641   if test "$*" != "X $srcdir/configure conftestfile" \
642      && test "$*" != "X conftestfile $srcdir/configure"; then
643
644      # If neither matched, then we have a broken ls.  This can happen
645      # if, for instance, CONFIG_SHELL is bash and it inherits a
646      # broken ls alias from the environment.  This has actually
647      # happened.  Such a system could not be considered "sane".
648      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
649alias in your environment" 1>&2; exit 1; }
650   fi
651
652   test "$2" = conftestfile
653   )
654then
655   # Ok.
656   :
657else
658   { echo "configure: error: newly created file is older than distributed files!
659Check your system clock" 1>&2; exit 1; }
660fi
661rm -f conftest*
662echo "$ac_t""yes" 1>&6
663if test "$program_transform_name" = s,x,x,; then
664  program_transform_name=
665else
666  # Double any \ or $.  echo might interpret backslashes.
667  cat <<\EOF_SED > conftestsed
668s,\\,\\\\,g; s,\$,$$,g
669EOF_SED
670  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
671  rm -f conftestsed
672fi
673test "$program_prefix" != NONE &&
674  program_transform_name="s,^,${program_prefix},; $program_transform_name"
675# Use a double $ so make ignores it.
676test "$program_suffix" != NONE &&
677  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
678
679# sed with no file args requires a program.
680test "$program_transform_name" = "" && program_transform_name="s,x,x,"
681
682echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
683echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
684set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
685if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
686  echo $ac_n "(cached) $ac_c" 1>&6
687else
688  cat > conftestmake <<\EOF
689all:
690    @echo 'ac_maketemp="${MAKE}"'
691EOF
692# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
693eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
694if test -n "$ac_maketemp"; then
695  eval ac_cv_prog_make_${ac_make}_set=yes
696else
697  eval ac_cv_prog_make_${ac_make}_set=no
698fi
699rm -f conftestmake
700fi
701if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
702  echo "$ac_t""yes" 1>&6
703  SET_MAKE=
704else
705  echo "$ac_t""no" 1>&6
706  SET_MAKE="MAKE=${MAKE-make}"
707fi
708
709
710PACKAGE=GtkPlugin
711
712VERSION=0.0.1
713
714if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
715  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
716fi
717cat >> confdefs.h <<EOF
718#define PACKAGE "$PACKAGE"
719EOF
720
721cat >> confdefs.h <<EOF
722#define VERSION "$VERSION"
723EOF
724
725
726
727missing_dir=`cd $ac_aux_dir && pwd`
728echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
729echo "configure:730: checking for working aclocal" >&5
730# Run test in a subshell; some versions of sh will print an error if
731# an executable is not found, even if stderr is redirected.
732# Redirect stdin to placate older versions of autoconf.  Sigh.
733if (aclocal --version) < /dev/null > /dev/null 2>&1; then
734   ACLOCAL=aclocal
735   echo "$ac_t""found" 1>&6
736else
737   ACLOCAL="$missing_dir/missing aclocal"
738   echo "$ac_t""missing" 1>&6
739fi
740
741echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
742echo "configure:743: checking for working autoconf" >&5
743# Run test in a subshell; some versions of sh will print an error if
744# an executable is not found, even if stderr is redirected.
745# Redirect stdin to placate older versions of autoconf.  Sigh.
746if (autoconf --version) < /dev/null > /dev/null 2>&1; then
747   AUTOCONF=autoconf
748   echo "$ac_t""found" 1>&6
749else
750   AUTOCONF="$missing_dir/missing autoconf"
751   echo "$ac_t""missing" 1>&6
752fi
753
754echo $ac_n "checking for working automake""... $ac_c" 1>&6
755echo "configure:756: checking for working automake" >&5
756# Run test in a subshell; some versions of sh will print an error if
757# an executable is not found, even if stderr is redirected.
758# Redirect stdin to placate older versions of autoconf.  Sigh.
759if (automake --version) < /dev/null > /dev/null 2>&1; then
760   AUTOMAKE=automake
761   echo "$ac_t""found" 1>&6
762else
763   AUTOMAKE="$missing_dir/missing automake"
764   echo "$ac_t""missing" 1>&6
765fi
766
767echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
768echo "configure:769: checking for working autoheader" >&5
769# Run test in a subshell; some versions of sh will print an error if
770# an executable is not found, even if stderr is redirected.
771# Redirect stdin to placate older versions of autoconf.  Sigh.
772if (autoheader --version) < /dev/null > /dev/null 2>&1; then
773   AUTOHEADER=autoheader
774   echo "$ac_t""found" 1>&6
775else
776   AUTOHEADER="$missing_dir/missing autoheader"
777   echo "$ac_t""missing" 1>&6
778fi
779
780echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
781echo "configure:782: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
786   MAKEINFO=makeinfo
787   echo "$ac_t""found" 1>&6
788else
789   MAKEINFO="$missing_dir/missing makeinfo"
790   echo "$ac_t""missing" 1>&6
791fi
792
793
794
795echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
796echo "configure:797: checking whether to enable maintainer-specific portions of Makefiles" >&5
797    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
798if test "${enable_maintainer_mode+set}" = set; then
799  enableval="$enable_maintainer_mode"
800  USE_MAINTAINER_MODE=$enableval
801else
802  USE_MAINTAINER_MODE=no
803fi
804
805  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
806 
807
808if test $USE_MAINTAINER_MODE = yes; then
809  MAINTAINER_MODE_TRUE=
810  MAINTAINER_MODE_FALSE='#'
811else
812  MAINTAINER_MODE_TRUE='#'
813  MAINTAINER_MODE_FALSE=
814fi
815  MAINT=$MAINTAINER_MODE_TRUE
816 
817
818
819# Extract the first word of "gcc", so it can be a program name with args.
820set dummy gcc; ac_word=$2
821echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822echo "configure:823: checking for $ac_word" >&5
823if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824  echo $ac_n "(cached) $ac_c" 1>&6
825else
826  if test -n "$CC"; then
827  ac_cv_prog_CC="$CC" # Let the user override the test.
828else
829  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
830  ac_dummy="$PATH"
831  for ac_dir in $ac_dummy; do
832    test -z "$ac_dir" && ac_dir=.
833    if test -f $ac_dir/$ac_word; then
834      ac_cv_prog_CC="gcc"
835      break
836    fi
837  done
838  IFS="$ac_save_ifs"
839fi
840fi
841CC="$ac_cv_prog_CC"
842if test -n "$CC"; then
843  echo "$ac_t""$CC" 1>&6
844else
845  echo "$ac_t""no" 1>&6
846fi
847
848if test -z "$CC"; then
849  # Extract the first word of "cc", so it can be a program name with args.
850set dummy cc; ac_word=$2
851echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852echo "configure:853: checking for $ac_word" >&5
853if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
854  echo $ac_n "(cached) $ac_c" 1>&6
855else
856  if test -n "$CC"; then
857  ac_cv_prog_CC="$CC" # Let the user override the test.
858else
859  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
860  ac_prog_rejected=no
861  ac_dummy="$PATH"
862  for ac_dir in $ac_dummy; do
863    test -z "$ac_dir" && ac_dir=.
864    if test -f $ac_dir/$ac_word; then
865      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
866        ac_prog_rejected=yes
867    continue
868      fi
869      ac_cv_prog_CC="cc"
870      break
871    fi
872  done
873  IFS="$ac_save_ifs"
874if test $ac_prog_rejected = yes; then
875  # We found a bogon in the path, so make sure we never use it.
876  set dummy $ac_cv_prog_CC
877  shift
878  if test $# -gt 0; then
879    # We chose a different compiler from the bogus one.
880    # However, it has the same basename, so the bogon will be chosen
881    # first if we set CC to just the basename; use the full file name.
882    shift
883    set dummy "$ac_dir/$ac_word" "$@"
884    shift
885    ac_cv_prog_CC="$@"
886  fi
887fi
888fi
889fi
890CC="$ac_cv_prog_CC"
891if test -n "$CC"; then
892  echo "$ac_t""$CC" 1>&6
893else
894  echo "$ac_t""no" 1>&6
895fi
896
897  if test -z "$CC"; then
898    case "`uname -s`" in
899    *win32* | *WIN32*)
900      # Extract the first word of "cl", so it can be a program name with args.
901set dummy cl; ac_word=$2
902echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
903echo "configure:904: checking for $ac_word" >&5
904if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
905  echo $ac_n "(cached) $ac_c" 1>&6
906else
907  if test -n "$CC"; then
908  ac_cv_prog_CC="$CC" # Let the user override the test.
909else
910  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
911  ac_dummy="$PATH"
912  for ac_dir in $ac_dummy; do
913    test -z "$ac_dir" && ac_dir=.
914    if test -f $ac_dir/$ac_word; then
915      ac_cv_prog_CC="cl"
916      break
917    fi
918  done
919  IFS="$ac_save_ifs"
920fi
921fi
922CC="$ac_cv_prog_CC"
923if test -n "$CC"; then
924  echo "$ac_t""$CC" 1>&6
925else
926  echo "$ac_t""no" 1>&6
927fi
928 ;;
929    esac
930  fi
931  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
932fi
933
934echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
935echo "configure:936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
936
937ac_ext=c
938# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
939ac_cpp='$CPP $CPPFLAGS'
940ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
941ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
942cross_compiling=$ac_cv_prog_cc_cross
943
944cat > conftest.$ac_ext << EOF
945
946#line 947 "configure"
947#include "confdefs.h"
948
949main(){return(0);}
950EOF
951if { (eval echo configure:952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
952  ac_cv_prog_cc_works=yes
953  # If we can't run a trivial program, we are probably using a cross compiler.
954  if (./conftest; exit) 2>/dev/null; then
955    ac_cv_prog_cc_cross=no
956  else
957    ac_cv_prog_cc_cross=yes
958  fi
959else
960  echo "configure: failed program was:" >&5
961  cat conftest.$ac_ext >&5
962  ac_cv_prog_cc_works=no
963fi
964rm -fr conftest*
965ac_ext=c
966# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
967ac_cpp='$CPP $CPPFLAGS'
968ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
969ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
970cross_compiling=$ac_cv_prog_cc_cross
971
972echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
973if test $ac_cv_prog_cc_works = no; then
974  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
975fi
976echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
977echo "configure:978: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
978echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
979cross_compiling=$ac_cv_prog_cc_cross
980
981echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
982echo "configure:983: checking whether we are using GNU C" >&5
983if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
984  echo $ac_n "(cached) $ac_c" 1>&6
985else
986  cat > conftest.c <<EOF
987#ifdef __GNUC__
988  yes;
989#endif
990EOF
991if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
992  ac_cv_prog_gcc=yes
993else
994  ac_cv_prog_gcc=no
995fi
996fi
997
998echo "$ac_t""$ac_cv_prog_gcc" 1>&6
999
1000if test $ac_cv_prog_gcc = yes; then
1001  GCC=yes
1002else
1003  GCC=
1004fi
1005
1006ac_test_CFLAGS="${CFLAGS+set}"
1007ac_save_CFLAGS="$CFLAGS"
1008CFLAGS=
1009echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1010echo "configure:1011: checking whether ${CC-cc} accepts -g" >&5
1011if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1012  echo $ac_n "(cached) $ac_c" 1>&6
1013else
1014  echo 'void f(){}' > conftest.c
1015if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1016  ac_cv_prog_cc_g=yes
1017else
1018  ac_cv_prog_cc_g=no
1019fi
1020rm -f conftest*
1021
1022fi
1023
1024echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1025if test "$ac_test_CFLAGS" = set; then
1026  CFLAGS="$ac_save_CFLAGS"
1027elif test $ac_cv_prog_cc_g = yes; then
1028  if test "$GCC" = yes; then
1029    CFLAGS="-g -O2"
1030  else
1031    CFLAGS="-g"
1032  fi
1033else
1034  if test "$GCC" = yes; then
1035    CFLAGS="-O2"
1036  else
1037    CFLAGS=
1038  fi
1039fi
1040
1041for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1042do
1043# Extract the first word of "$ac_prog", so it can be a program name with args.
1044set dummy $ac_prog; ac_word=$2
1045echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046echo "configure:1047: checking for $ac_word" >&5
1047if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1048  echo $ac_n "(cached) $ac_c" 1>&6
1049else
1050  if test -n "$CXX"; then
1051  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1052else
1053  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1054  ac_dummy="$PATH"
1055  for ac_dir in $ac_dummy; do
1056    test -z "$ac_dir" && ac_dir=.
1057    if test -f $ac_dir/$ac_word; then
1058      ac_cv_prog_CXX="$ac_prog"
1059      break
1060    fi
1061  done
1062  IFS="$ac_save_ifs"
1063fi
1064fi
1065CXX="$ac_cv_prog_CXX"
1066if test -n "$CXX"; then
1067  echo "$ac_t""$CXX" 1>&6
1068else
1069  echo "$ac_t""no" 1>&6
1070fi
1071
1072test -n "$CXX" && break
1073done
1074test -n "$CXX" || CXX="gcc"
1075
1076
1077echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1078echo "configure:1079: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1079
1080ac_ext=C
1081# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1082ac_cpp='$CXXCPP $CPPFLAGS'
1083ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1084ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1085cross_compiling=$ac_cv_prog_cxx_cross
1086
1087cat > conftest.$ac_ext << EOF
1088
1089#line 1090 "configure"
1090#include "confdefs.h"
1091
1092int main(){return(0);}
1093EOF
1094if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1095  ac_cv_prog_cxx_works=yes
1096  # If we can't run a trivial program, we are probably using a cross compiler.
1097  if (./conftest; exit) 2>/dev/null; then
1098    ac_cv_prog_cxx_cross=no
1099  else
1100    ac_cv_prog_cxx_cross=yes
1101  fi
1102else
1103  echo "configure: failed program was:" >&5
1104  cat conftest.$ac_ext >&5
1105  ac_cv_prog_cxx_works=no
1106fi
1107rm -fr conftest*
1108ac_ext=c
1109# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110ac_cpp='$CPP $CPPFLAGS'
1111ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113cross_compiling=$ac_cv_prog_cc_cross
1114
1115echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1116if test $ac_cv_prog_cxx_works = no; then
1117  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1118fi
1119echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1120echo "configure:1121: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1121echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1122cross_compiling=$ac_cv_prog_cxx_cross
1123
1124echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1125echo "configure:1126: checking whether we are using GNU C++" >&5
1126if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1127  echo $ac_n "(cached) $ac_c" 1>&6
1128else
1129  cat > conftest.C <<EOF
1130#ifdef __GNUC__
1131  yes;
1132#endif
1133EOF
1134if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135  ac_cv_prog_gxx=yes
1136else
1137  ac_cv_prog_gxx=no
1138fi
1139fi
1140
1141echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1142
1143if test $ac_cv_prog_gxx = yes; then
1144  GXX=yes
1145else
1146  GXX=
1147fi
1148
1149ac_test_CXXFLAGS="${CXXFLAGS+set}"
1150ac_save_CXXFLAGS="$CXXFLAGS"
1151CXXFLAGS=
1152echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1153echo "configure:1154: checking whether ${CXX-g++} accepts -g" >&5
1154if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1155  echo $ac_n "(cached) $ac_c" 1>&6
1156else
1157  echo 'void f(){}' > conftest.cc
1158if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1159  ac_cv_prog_cxx_g=yes
1160else
1161  ac_cv_prog_cxx_g=no
1162fi
1163rm -f conftest*
1164
1165fi
1166
1167echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1168if test "$ac_test_CXXFLAGS" = set; then
1169  CXXFLAGS="$ac_save_CXXFLAGS"
1170elif test $ac_cv_prog_cxx_g = yes; then
1171  if test "$GXX" = yes; then
1172    CXXFLAGS="-g -O2"
1173  else
1174    CXXFLAGS="-g"
1175  fi
1176else
1177  if test "$GXX" = yes; then
1178    CXXFLAGS="-O2"
1179  else
1180    CXXFLAGS=
1181  fi
1182fi
1183
1184echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1185echo "configure:1186: checking for POSIXized ISC" >&5
1186if test -d /etc/conf/kconfig.d &&
1187  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1188then
1189  echo "$ac_t""yes" 1>&6
1190  ISC=yes # If later tests want to check for ISC.
1191  cat >> confdefs.h <<\EOF
1192#define _POSIX_SOURCE 1
1193EOF
1194
1195  if test "$GCC" = yes; then
1196    CC="$CC -posix"
1197  else
1198    CC="$CC -Xp"
1199  fi
1200else
1201  echo "$ac_t""no" 1>&6
1202  ISC=
1203fi
1204
1205echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1206echo "configure:1207: checking how to run the C preprocessor" >&5
1207# On Suns, sometimes $CPP names a directory.
1208if test -n "$CPP" && test -d "$CPP"; then
1209  CPP=
1210fi
1211if test -z "$CPP"; then
1212if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then