Commit f910f54ea562be8ca597eb7e5bf281e131240e16
1 parent
0a873f23
Exists in
master
Implementando autoconf.
Showing
4 changed files
with
3824 additions
and
76 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,74 @@ |
| 1 | +# Copyright 2008 by Perry Werneck. | |
| 2 | +# Permission to use, copy, modify, and distribute this software and its | |
| 3 | +# documentation for any purpose and without fee is hereby granted, | |
| 4 | +# provided that the above copyright notice appear in all copies and that | |
| 5 | +# both that copyright notice and this permission notice appear in | |
| 6 | +# supporting documentation. | |
| 7 | +# | |
| 8 | +# MusicCenter is distributed in the hope that it will be useful, but WITHOUT ANY | |
| 9 | +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 10 | +# FOR A PARTICULAR PURPOSE. See the file LICENSE for more details. | |
| 11 | + | |
| 12 | +PKGMODULES=gtk+-2.0 gdk-2.0 glib-2.0 gthread-2.0 libgnomeui-2.0 | |
| 13 | +include src/sources.mak | |
| 14 | + | |
| 15 | +CC = @CC@ | |
| 16 | +LD = @CC@ | |
| 17 | +CFLAGS = @CFLAGS@ `@PKGCONFIG@ --cflags $(PKGMODULES)` -Isrc -Wall | |
| 18 | +LFLAGS = `@PKGCONFIG@ --libs $(PKGMODULES)` -l3270 | |
| 19 | + | |
| 20 | +DEBUG_OBJECTS=$(foreach SRC, $(basename $(SOURCES)), obj/Debug/src/$(SRC).o)) | |
| 21 | +RELEASE_OBJECTS=$(foreach SRC, $(basename $(SOURCES)), obj/Release/src/$(SRC).o) | |
| 22 | +PREREQS=Makefile src/*.h | |
| 23 | + | |
| 24 | +#---[ Rules ]--------------------------------------------------------------------- | |
| 25 | + | |
| 26 | +obj/Debug/src/%.o: src/%.c $(PREREQS) | |
| 27 | + @echo $< ... | |
| 28 | + @mkdir -p `dirname $@` | |
| 29 | + @$(CC) -DDEBUG=1 -DG3270_CORE -DG_ERRORCHECK_MUTEXES $(CFLAGS) -ggdb -o $@ -c $< | |
| 30 | + | |
| 31 | +obj/Release/src/%.o: src/%.c $(PREREQS) | |
| 32 | + @echo $< ... | |
| 33 | + @mkdir -p `dirname $@` | |
| 34 | + @$(CC) -Lbin/Release -DG3270_CORE -DNDEBUG=1 $(CFLAGS) -Werror -o $@ -c $< | |
| 35 | + | |
| 36 | +bin/Debug/$(PROJECT_NAME)$(BINEXT): $(DEBUG_OBJECTS) | |
| 37 | + @echo $@ ... | |
| 38 | + @mkdir -p `dirname $@` | |
| 39 | + @$(LD) -Lbin/Debug -o $@ $^ $(LFLAGS) | |
| 40 | + @echo $@ Ok! | |
| 41 | + | |
| 42 | +#---[ Targets ]------------------------------------------------------------------- | |
| 43 | + | |
| 44 | +Debug: bin/Debug/@PACKAGE_NAME@ | |
| 45 | + | |
| 46 | +Release: bin/Release/@PACKAGE_NAME@ | |
| 47 | + | |
| 48 | +zip: @PACKAGE_TARNAME@.zip | |
| 49 | + | |
| 50 | +run: bin/Debug/@PACKAGE_NAME@ | |
| 51 | + @./bin/Debug/@PACKAGE_NAME@ | |
| 52 | + | |
| 53 | +clean: | |
| 54 | + @rm -f $(DEBUG_OBJECTS) | |
| 55 | + @rm -f $(RELEASE_OBJECTS) | |
| 56 | + @rm -f @PACKAGE_TARNAME@.tar.gz | |
| 57 | + @rm -fr obj | |
| 58 | + @rm -fr bin | |
| 59 | + @rm -fr autom4te.cache | |
| 60 | + @rm -f config.status | |
| 61 | + @find . -name "*.save" -exec mv -f {} $(TMPDIR) \; | |
| 62 | + @find . -name "*~" -exec mv -f {} $(TMPDIR) \; | |
| 63 | + @find . -name "*.bak" -exec mv -f {} $(TMPDIR) \; | |
| 64 | + @find . -name "*.log" -exec mv -f {} $(TMPDIR) \; | |
| 65 | + @find . -name "leak.out" -exec mv -f {} $(TMPDIR) \; | |
| 66 | + | |
| 67 | +tgz: @PACKAGE_TARNAME@.tar.gz | |
| 68 | + | |
| 69 | +@PACKAGE_TARNAME@.tar.gz: clean | |
| 70 | + @rm -f $@ | |
| 71 | + @tar --create --gzip --verbose --directory .. --file=$@ `basename $(PWD)` | |
| 72 | + | |
| 73 | + | |
| 74 | + | ... | ... |
configure
| 1 | -#!/bin/sh | |
| 1 | +#! /bin/sh | |
| 2 | +# Guess values for system-dependent variables and create Makefiles. | |
| 3 | +# Generated by GNU Autoconf 2.60 for g3270 3.3.4. | |
| 4 | +# | |
| 5 | +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
| 6 | +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
| 7 | +# This configure script is free software; the Free Software Foundation | |
| 8 | +# gives unlimited permission to copy, distribute and modify it. | |
| 9 | +## --------------------- ## | |
| 10 | +## M4sh Initialization. ## | |
| 11 | +## --------------------- ## | |
| 12 | + | |
| 13 | +# Be Bourne compatible | |
| 14 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
| 15 | + emulate sh | |
| 16 | + NULLCMD=: | |
| 17 | + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
| 18 | + # is contrary to our usage. Disable this feature. | |
| 19 | + alias -g '${1+"$@"}'='"$@"' | |
| 20 | + setopt NO_GLOB_SUBST | |
| 21 | +else | |
| 22 | + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
| 23 | +fi | |
| 24 | +BIN_SH=xpg4; export BIN_SH # for Tru64 | |
| 25 | +DUALCASE=1; export DUALCASE # for MKS sh | |
| 26 | + | |
| 27 | + | |
| 28 | +# PATH needs CR | |
| 29 | +# Avoid depending upon Character Ranges. | |
| 30 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
| 31 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| 32 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
| 33 | +as_cr_digits='0123456789' | |
| 34 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
| 35 | + | |
| 36 | +# The user is always right. | |
| 37 | +if test "${PATH_SEPARATOR+set}" != set; then | |
| 38 | + echo "#! /bin/sh" >conf$$.sh | |
| 39 | + echo "exit 0" >>conf$$.sh | |
| 40 | + chmod +x conf$$.sh | |
| 41 | + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
| 42 | + PATH_SEPARATOR=';' | |
| 43 | + else | |
| 44 | + PATH_SEPARATOR=: | |
| 45 | + fi | |
| 46 | + rm -f conf$$.sh | |
| 47 | +fi | |
| 48 | + | |
| 49 | +# Support unset when possible. | |
| 50 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
| 51 | + as_unset=unset | |
| 52 | +else | |
| 53 | + as_unset=false | |
| 54 | +fi | |
| 55 | + | |
| 56 | + | |
| 57 | +# IFS | |
| 58 | +# We need space, tab and new line, in precisely that order. Quoting is | |
| 59 | +# there to prevent editors from complaining about space-tab. | |
| 60 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
| 61 | +# splitting by setting IFS to empty value.) | |
| 62 | +as_nl=' | |
| 63 | +' | |
| 64 | +IFS=" "" $as_nl" | |
| 65 | + | |
| 66 | +# Find who we are. Look in the path if we contain no directory separator. | |
| 67 | +case $0 in | |
| 68 | + *[\\/]* ) as_myself=$0 ;; | |
| 69 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 70 | +for as_dir in $PATH | |
| 71 | +do | |
| 72 | + IFS=$as_save_IFS | |
| 73 | + test -z "$as_dir" && as_dir=. | |
| 74 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
| 75 | +done | |
| 76 | +IFS=$as_save_IFS | |
| 77 | + | |
| 78 | + ;; | |
| 79 | +esac | |
| 80 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
| 81 | +# in which case we are not to be found in the path. | |
| 82 | +if test "x$as_myself" = x; then | |
| 83 | + as_myself=$0 | |
| 84 | +fi | |
| 85 | +if test ! -f "$as_myself"; then | |
| 86 | + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
| 87 | + { (exit 1); exit 1; } | |
| 88 | +fi | |
| 89 | + | |
| 90 | +# Work around bugs in pre-3.0 UWIN ksh. | |
| 91 | +for as_var in ENV MAIL MAILPATH | |
| 92 | +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
| 93 | +done | |
| 94 | +PS1='$ ' | |
| 95 | +PS2='> ' | |
| 96 | +PS4='+ ' | |
| 97 | + | |
| 98 | +# NLS nuisances. | |
| 99 | +for as_var in \ | |
| 100 | + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
| 101 | + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
| 102 | + LC_TELEPHONE LC_TIME | |
| 103 | +do | |
| 104 | + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
| 105 | + eval $as_var=C; export $as_var | |
| 106 | + else | |
| 107 | + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
| 108 | + fi | |
| 109 | +done | |
| 110 | + | |
| 111 | +# Required to use basename. | |
| 112 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 113 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 114 | + as_expr=expr | |
| 115 | +else | |
| 116 | + as_expr=false | |
| 117 | +fi | |
| 118 | + | |
| 119 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
| 120 | + as_basename=basename | |
| 121 | +else | |
| 122 | + as_basename=false | |
| 123 | +fi | |
| 124 | + | |
| 125 | + | |
| 126 | +# Name of the executable. | |
| 127 | +as_me=`$as_basename -- "$0" || | |
| 128 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
| 129 | + X"$0" : 'X\(//\)$' \| \ | |
| 130 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
| 131 | +echo X/"$0" | | |
| 132 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
| 133 | + s//\1/ | |
| 134 | + q | |
| 135 | + } | |
| 136 | + /^X\/\(\/\/\)$/{ | |
| 137 | + s//\1/ | |
| 138 | + q | |
| 139 | + } | |
| 140 | + /^X\/\(\/\).*/{ | |
| 141 | + s//\1/ | |
| 142 | + q | |
| 143 | + } | |
| 144 | + s/.*/./; q'` | |
| 145 | + | |
| 146 | +# CDPATH. | |
| 147 | +$as_unset CDPATH | |
| 148 | + | |
| 149 | + | |
| 150 | +if test "x$CONFIG_SHELL" = x; then | |
| 151 | + if (eval ":") 2>/dev/null; then | |
| 152 | + as_have_required=yes | |
| 153 | +else | |
| 154 | + as_have_required=no | |
| 155 | +fi | |
| 156 | + | |
| 157 | + if test $as_have_required = yes && (eval ": | |
| 158 | +(as_func_return () { | |
| 159 | + (exit \$1) | |
| 160 | +} | |
| 161 | +as_func_success () { | |
| 162 | + as_func_return 0 | |
| 163 | +} | |
| 164 | +as_func_failure () { | |
| 165 | + as_func_return 1 | |
| 166 | +} | |
| 167 | +as_func_ret_success () { | |
| 168 | + return 0 | |
| 169 | +} | |
| 170 | +as_func_ret_failure () { | |
| 171 | + return 1 | |
| 172 | +} | |
| 173 | + | |
| 174 | +exitcode=0 | |
| 175 | +if as_func_success; then | |
| 176 | + : | |
| 177 | +else | |
| 178 | + exitcode=1 | |
| 179 | + echo as_func_success failed. | |
| 180 | +fi | |
| 181 | + | |
| 182 | +if as_func_failure; then | |
| 183 | + exitcode=1 | |
| 184 | + echo as_func_failure succeeded. | |
| 185 | +fi | |
| 186 | + | |
| 187 | +if as_func_ret_success; then | |
| 188 | + : | |
| 189 | +else | |
| 190 | + exitcode=1 | |
| 191 | + echo as_func_ret_success failed. | |
| 192 | +fi | |
| 193 | + | |
| 194 | +if as_func_ret_failure; then | |
| 195 | + exitcode=1 | |
| 196 | + echo as_func_ret_failure succeeded. | |
| 197 | +fi | |
| 198 | + | |
| 199 | +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
| 200 | + : | |
| 201 | +else | |
| 202 | + exitcode=1 | |
| 203 | + echo positional parameters were not saved. | |
| 204 | +fi | |
| 205 | + | |
| 206 | +test \$exitcode = 0) || { (exit 1); exit 1; } | |
| 207 | + | |
| 208 | +( | |
| 209 | + as_lineno_1=\$LINENO | |
| 210 | + as_lineno_2=\$LINENO | |
| 211 | + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
| 212 | + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
| 213 | +") 2> /dev/null; then | |
| 214 | + : | |
| 215 | +else | |
| 216 | + as_candidate_shells= | |
| 217 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 218 | +for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
| 219 | +do | |
| 220 | + IFS=$as_save_IFS | |
| 221 | + test -z "$as_dir" && as_dir=. | |
| 222 | + case $as_dir in | |
| 223 | + /*) | |
| 224 | + for as_base in sh bash ksh sh5; do | |
| 225 | + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
| 226 | + done;; | |
| 227 | + esac | |
| 228 | +done | |
| 229 | +IFS=$as_save_IFS | |
| 230 | + | |
| 231 | + | |
| 232 | + for as_shell in $as_candidate_shells $SHELL; do | |
| 233 | + # Try only shells that exist, to save several forks. | |
| 234 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
| 235 | + { ("$as_shell") 2> /dev/null <<\_ASEOF | |
| 236 | +# Be Bourne compatible | |
| 237 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
| 238 | + emulate sh | |
| 239 | + NULLCMD=: | |
| 240 | + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
| 241 | + # is contrary to our usage. Disable this feature. | |
| 242 | + alias -g '${1+"$@"}'='"$@"' | |
| 243 | + setopt NO_GLOB_SUBST | |
| 244 | +else | |
| 245 | + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
| 246 | +fi | |
| 247 | +BIN_SH=xpg4; export BIN_SH # for Tru64 | |
| 248 | +DUALCASE=1; export DUALCASE # for MKS sh | |
| 249 | + | |
| 250 | +: | |
| 251 | +_ASEOF | |
| 252 | +}; then | |
| 253 | + CONFIG_SHELL=$as_shell | |
| 254 | + as_have_required=yes | |
| 255 | + if { "$as_shell" 2> /dev/null <<\_ASEOF | |
| 256 | +# Be Bourne compatible | |
| 257 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
| 258 | + emulate sh | |
| 259 | + NULLCMD=: | |
| 260 | + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
| 261 | + # is contrary to our usage. Disable this feature. | |
| 262 | + alias -g '${1+"$@"}'='"$@"' | |
| 263 | + setopt NO_GLOB_SUBST | |
| 264 | +else | |
| 265 | + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
| 266 | +fi | |
| 267 | +BIN_SH=xpg4; export BIN_SH # for Tru64 | |
| 268 | +DUALCASE=1; export DUALCASE # for MKS sh | |
| 269 | + | |
| 270 | +: | |
| 271 | +(as_func_return () { | |
| 272 | + (exit $1) | |
| 273 | +} | |
| 274 | +as_func_success () { | |
| 275 | + as_func_return 0 | |
| 276 | +} | |
| 277 | +as_func_failure () { | |
| 278 | + as_func_return 1 | |
| 279 | +} | |
| 280 | +as_func_ret_success () { | |
| 281 | + return 0 | |
| 282 | +} | |
| 283 | +as_func_ret_failure () { | |
| 284 | + return 1 | |
| 285 | +} | |
| 286 | + | |
| 287 | +exitcode=0 | |
| 288 | +if as_func_success; then | |
| 289 | + : | |
| 290 | +else | |
| 291 | + exitcode=1 | |
| 292 | + echo as_func_success failed. | |
| 293 | +fi | |
| 294 | + | |
| 295 | +if as_func_failure; then | |
| 296 | + exitcode=1 | |
| 297 | + echo as_func_failure succeeded. | |
| 298 | +fi | |
| 299 | + | |
| 300 | +if as_func_ret_success; then | |
| 301 | + : | |
| 302 | +else | |
| 303 | + exitcode=1 | |
| 304 | + echo as_func_ret_success failed. | |
| 305 | +fi | |
| 306 | + | |
| 307 | +if as_func_ret_failure; then | |
| 308 | + exitcode=1 | |
| 309 | + echo as_func_ret_failure succeeded. | |
| 310 | +fi | |
| 311 | + | |
| 312 | +if ( set x; as_func_ret_success y && test x = "$1" ); then | |
| 313 | + : | |
| 314 | +else | |
| 315 | + exitcode=1 | |
| 316 | + echo positional parameters were not saved. | |
| 317 | +fi | |
| 318 | + | |
| 319 | +test $exitcode = 0) || { (exit 1); exit 1; } | |
| 320 | + | |
| 321 | +( | |
| 322 | + as_lineno_1=$LINENO | |
| 323 | + as_lineno_2=$LINENO | |
| 324 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
| 325 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
| 326 | + | |
| 327 | +_ASEOF | |
| 328 | +}; then | |
| 329 | + break | |
| 330 | +fi | |
| 331 | + | |
| 332 | +fi | |
| 333 | + | |
| 334 | + done | |
| 335 | + | |
| 336 | + if test "x$CONFIG_SHELL" != x; then | |
| 337 | + for as_var in BASH_ENV ENV | |
| 338 | + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
| 339 | + done | |
| 340 | + export CONFIG_SHELL | |
| 341 | + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
| 342 | +fi | |
| 343 | + | |
| 344 | + | |
| 345 | + if test $as_have_required = no; then | |
| 346 | + echo This script requires a shell more modern than all the | |
| 347 | + echo shells that I found on your system. Please install a | |
| 348 | + echo modern shell, or manually run the script under such a | |
| 349 | + echo shell if you do have one. | |
| 350 | + { (exit 1); exit 1; } | |
| 351 | +fi | |
| 352 | + | |
| 353 | + | |
| 354 | +fi | |
| 355 | + | |
| 356 | +fi | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | +(eval "as_func_return () { | |
| 361 | + (exit \$1) | |
| 362 | +} | |
| 363 | +as_func_success () { | |
| 364 | + as_func_return 0 | |
| 365 | +} | |
| 366 | +as_func_failure () { | |
| 367 | + as_func_return 1 | |
| 368 | +} | |
| 369 | +as_func_ret_success () { | |
| 370 | + return 0 | |
| 371 | +} | |
| 372 | +as_func_ret_failure () { | |
| 373 | + return 1 | |
| 374 | +} | |
| 375 | + | |
| 376 | +exitcode=0 | |
| 377 | +if as_func_success; then | |
| 378 | + : | |
| 379 | +else | |
| 380 | + exitcode=1 | |
| 381 | + echo as_func_success failed. | |
| 382 | +fi | |
| 383 | + | |
| 384 | +if as_func_failure; then | |
| 385 | + exitcode=1 | |
| 386 | + echo as_func_failure succeeded. | |
| 387 | +fi | |
| 388 | + | |
| 389 | +if as_func_ret_success; then | |
| 390 | + : | |
| 391 | +else | |
| 392 | + exitcode=1 | |
| 393 | + echo as_func_ret_success failed. | |
| 394 | +fi | |
| 395 | + | |
| 396 | +if as_func_ret_failure; then | |
| 397 | + exitcode=1 | |
| 398 | + echo as_func_ret_failure succeeded. | |
| 399 | +fi | |
| 400 | + | |
| 401 | +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
| 402 | + : | |
| 403 | +else | |
| 404 | + exitcode=1 | |
| 405 | + echo positional parameters were not saved. | |
| 406 | +fi | |
| 407 | + | |
| 408 | +test \$exitcode = 0") || { | |
| 409 | + echo No shell found that supports shell functions. | |
| 410 | + echo Please tell autoconf@gnu.org about your system, | |
| 411 | + echo including any error possibly output before this | |
| 412 | + echo message | |
| 413 | +} | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + as_lineno_1=$LINENO | |
| 418 | + as_lineno_2=$LINENO | |
| 419 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
| 420 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
| 421 | + | |
| 422 | + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
| 423 | + # uniformly replaced by the line number. The first 'sed' inserts a | |
| 424 | + # line-number line after each line using $LINENO; the second 'sed' | |
| 425 | + # does the real work. The second script uses 'N' to pair each | |
| 426 | + # line-number line with the line containing $LINENO, and appends | |
| 427 | + # trailing '-' during substitution so that $LINENO is not a special | |
| 428 | + # case at line end. | |
| 429 | + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
| 430 | + # scripts with optimization help from Paolo Bonzini. Blame Lee | |
| 431 | + # E. McMahon (1931-1989) for sed's syntax. :-) | |
| 432 | + sed -n ' | |
| 433 | + p | |
| 434 | + /[$]LINENO/= | |
| 435 | + ' <$as_myself | | |
| 436 | + sed ' | |
| 437 | + s/[$]LINENO.*/&-/ | |
| 438 | + t lineno | |
| 439 | + b | |
| 440 | + :lineno | |
| 441 | + N | |
| 442 | + :loop | |
| 443 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
| 444 | + t loop | |
| 445 | + s/-\n.*// | |
| 446 | + ' >$as_me.lineno && | |
| 447 | + chmod +x "$as_me.lineno" || | |
| 448 | + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
| 449 | + { (exit 1); exit 1; }; } | |
| 450 | + | |
| 451 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
| 452 | + # (the dirname of $[0] is not the place where we might find the | |
| 453 | + # original and so on. Autoconf is especially sensitive to this). | |
| 454 | + . "./$as_me.lineno" | |
| 455 | + # Exit status is that of the last command. | |
| 456 | + exit | |
| 457 | +} | |
| 458 | + | |
| 459 | + | |
| 460 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
| 461 | + as_dirname=dirname | |
| 462 | +else | |
| 463 | + as_dirname=false | |
| 464 | +fi | |
| 465 | + | |
| 466 | +ECHO_C= ECHO_N= ECHO_T= | |
| 467 | +case `echo -n x` in | |
| 468 | +-n*) | |
| 469 | + case `echo 'x\c'` in | |
| 470 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
| 471 | + *) ECHO_C='\c';; | |
| 472 | + esac;; | |
| 473 | +*) | |
| 474 | + ECHO_N='-n';; | |
| 475 | +esac | |
| 476 | + | |
| 477 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 478 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 479 | + as_expr=expr | |
| 480 | +else | |
| 481 | + as_expr=false | |
| 482 | +fi | |
| 483 | + | |
| 484 | +rm -f conf$$ conf$$.exe conf$$.file | |
| 485 | +if test -d conf$$.dir; then | |
| 486 | + rm -f conf$$.dir/conf$$.file | |
| 487 | +else | |
| 488 | + rm -f conf$$.dir | |
| 489 | + mkdir conf$$.dir | |
| 490 | +fi | |
| 491 | +echo >conf$$.file | |
| 492 | +if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 493 | + as_ln_s='ln -s' | |
| 494 | + # ... but there are two gotchas: | |
| 495 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
| 496 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
| 497 | + # In both cases, we have to default to `cp -p'. | |
| 498 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
| 499 | + as_ln_s='cp -p' | |
| 500 | +elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 501 | + as_ln_s=ln | |
| 502 | +else | |
| 503 | + as_ln_s='cp -p' | |
| 504 | +fi | |
| 505 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
| 506 | +rmdir conf$$.dir 2>/dev/null | |
| 507 | + | |
| 508 | +if mkdir -p . 2>/dev/null; then | |
| 509 | + as_mkdir_p=: | |
| 510 | +else | |
| 511 | + test -d ./-p && rmdir ./-p | |
| 512 | + as_mkdir_p=false | |
| 513 | +fi | |
| 514 | + | |
| 515 | +# Find out whether ``test -x'' works. Don't use a zero-byte file, as | |
| 516 | +# systems may use methods other than mode bits to determine executability. | |
| 517 | +cat >conf$$.file <<_ASEOF | |
| 518 | +#! /bin/sh | |
| 519 | +exit 0 | |
| 520 | +_ASEOF | |
| 521 | +chmod +x conf$$.file | |
| 522 | +if test -x conf$$.file >/dev/null 2>&1; then | |
| 523 | + as_executable_p="test -x" | |
| 524 | +else | |
| 525 | + as_executable_p=: | |
| 526 | +fi | |
| 527 | +rm -f conf$$.file | |
| 528 | + | |
| 529 | +# Sed expression to map a string onto a valid CPP name. | |
| 530 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
| 531 | + | |
| 532 | +# Sed expression to map a string onto a valid variable name. | |
| 533 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | +exec 7<&0 </dev/null 6>&1 | |
| 538 | + | |
| 539 | +# Name of the host. | |
| 540 | +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
| 541 | +# so uname gets run too. | |
| 542 | +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 543 | + | |
| 544 | +# | |
| 545 | +# Initializations. | |
| 546 | +# | |
| 547 | +ac_default_prefix=/usr/local | |
| 548 | +ac_clean_files= | |
| 549 | +ac_config_libobj_dir=. | |
| 550 | +LIBOBJS= | |
| 551 | +cross_compiling=no | |
| 552 | +subdirs= | |
| 553 | +MFLAGS= | |
| 554 | +MAKEFLAGS= | |
| 555 | +SHELL=${CONFIG_SHELL-/bin/sh} | |
| 556 | + | |
| 557 | +# Identity of this package. | |
| 558 | +PACKAGE_NAME='g3270' | |
| 559 | +PACKAGE_TARNAME='g3270' | |
| 560 | +PACKAGE_VERSION='3.3.4' | |
| 561 | +PACKAGE_STRING='g3270 3.3.4' | |
| 562 | +PACKAGE_BUGREPORT='' | |
| 563 | + | |
| 564 | +ac_subst_vars='SHELL | |
| 565 | +PATH_SEPARATOR | |
| 566 | +PACKAGE_NAME | |
| 567 | +PACKAGE_TARNAME | |
| 568 | +PACKAGE_VERSION | |
| 569 | +PACKAGE_STRING | |
| 570 | +PACKAGE_BUGREPORT | |
| 571 | +exec_prefix | |
| 572 | +prefix | |
| 573 | +program_transform_name | |
| 574 | +bindir | |
| 575 | +sbindir | |
| 576 | +libexecdir | |
| 577 | +datarootdir | |
| 578 | +datadir | |
| 579 | +sysconfdir | |
| 580 | +sharedstatedir | |
| 581 | +localstatedir | |
| 582 | +includedir | |
| 583 | +oldincludedir | |
| 584 | +docdir | |
| 585 | +infodir | |
| 586 | +htmldir | |
| 587 | +dvidir | |
| 588 | +pdfdir | |
| 589 | +psdir | |
| 590 | +libdir | |
| 591 | +localedir | |
| 592 | +mandir | |
| 593 | +DEFS | |
| 594 | +ECHO_C | |
| 595 | +ECHO_N | |
| 596 | +ECHO_T | |
| 597 | +LIBS | |
| 598 | +build_alias | |
| 599 | +host_alias | |
| 600 | +target_alias | |
| 601 | +CC | |
| 602 | +CFLAGS | |
| 603 | +LDFLAGS | |
| 604 | +CPPFLAGS | |
| 605 | +ac_ct_CC | |
| 606 | +EXEEXT | |
| 607 | +OBJEXT | |
| 608 | +PKGCONFIG | |
| 609 | +LIBOBJS | |
| 610 | +LTLIBOBJS' | |
| 611 | +ac_subst_files='' | |
| 612 | + ac_precious_vars='build_alias | |
| 613 | +host_alias | |
| 614 | +target_alias | |
| 615 | +CC | |
| 616 | +CFLAGS | |
| 617 | +LDFLAGS | |
| 618 | +CPPFLAGS' | |
| 619 | + | |
| 620 | + | |
| 621 | +# Initialize some variables set by options. | |
| 622 | +ac_init_help= | |
| 623 | +ac_init_version=false | |
| 624 | +# The variables have the same names as the options, with | |
| 625 | +# dashes changed to underlines. | |
| 626 | +cache_file=/dev/null | |
| 627 | +exec_prefix=NONE | |
| 628 | +no_create= | |
| 629 | +no_recursion= | |
| 630 | +prefix=NONE | |
| 631 | +program_prefix=NONE | |
| 632 | +program_suffix=NONE | |
| 633 | +program_transform_name=s,x,x, | |
| 634 | +silent= | |
| 635 | +site= | |
| 636 | +srcdir= | |
| 637 | +verbose= | |
| 638 | +x_includes=NONE | |
| 639 | +x_libraries=NONE | |
| 640 | + | |
| 641 | +# Installation directory options. | |
| 642 | +# These are left unexpanded so users can "make install exec_prefix=/foo" | |
| 643 | +# and all the variables that are supposed to be based on exec_prefix | |
| 644 | +# by default will actually change. | |
| 645 | +# Use braces instead of parens because sh, perl, etc. also accept them. | |
| 646 | +# (The list follows the same order as the GNU Coding Standards.) | |
| 647 | +bindir='${exec_prefix}/bin' | |
| 648 | +sbindir='${exec_prefix}/sbin' | |
| 649 | +libexecdir='${exec_prefix}/libexec' | |
| 650 | +datarootdir='${prefix}/share' | |
| 651 | +datadir='${datarootdir}' | |
| 652 | +sysconfdir='${prefix}/etc' | |
| 653 | +sharedstatedir='${prefix}/com' | |
| 654 | +localstatedir='${prefix}/var' | |
| 655 | +includedir='${prefix}/include' | |
| 656 | +oldincludedir='/usr/include' | |
| 657 | +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
| 658 | +infodir='${datarootdir}/info' | |
| 659 | +htmldir='${docdir}' | |
| 660 | +dvidir='${docdir}' | |
| 661 | +pdfdir='${docdir}' | |
| 662 | +psdir='${docdir}' | |
| 663 | +libdir='${exec_prefix}/lib' | |
| 664 | +localedir='${datarootdir}/locale' | |
| 665 | +mandir='${datarootdir}/man' | |
| 666 | + | |
| 667 | +ac_prev= | |
| 668 | +ac_dashdash= | |
| 669 | +for ac_option | |
| 670 | +do | |
| 671 | + # If the previous option needs an argument, assign it. | |
| 672 | + if test -n "$ac_prev"; then | |
| 673 | + eval $ac_prev=\$ac_option | |
| 674 | + ac_prev= | |
| 675 | + continue | |
| 676 | + fi | |
| 677 | + | |
| 678 | + case $ac_option in | |
| 679 | + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
| 680 | + *) ac_optarg=yes ;; | |
| 681 | + esac | |
| 682 | + | |
| 683 | + # Accept the important Cygnus configure options, so we can diagnose typos. | |
| 684 | + | |
| 685 | + case $ac_dashdash$ac_option in | |
| 686 | + --) | |
| 687 | + ac_dashdash=yes ;; | |
| 688 | + | |
| 689 | + -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
| 690 | + ac_prev=bindir ;; | |
| 691 | + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
| 692 | + bindir=$ac_optarg ;; | |
| 693 | + | |
| 694 | + -build | --build | --buil | --bui | --bu) | |
| 695 | + ac_prev=build_alias ;; | |
| 696 | + -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
| 697 | + build_alias=$ac_optarg ;; | |
| 698 | + | |
| 699 | + -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
| 700 | + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
| 701 | + ac_prev=cache_file ;; | |
| 702 | + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
| 703 | + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
| 704 | + cache_file=$ac_optarg ;; | |
| 705 | + | |
| 706 | + --config-cache | -C) | |
| 707 | + cache_file=config.cache ;; | |
| 708 | + | |
| 709 | + -datadir | --datadir | --datadi | --datad) | |
| 710 | + ac_prev=datadir ;; | |
| 711 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
| 712 | + datadir=$ac_optarg ;; | |
| 713 | + | |
| 714 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
| 715 | + | --dataroo | --dataro | --datar) | |
| 716 | + ac_prev=datarootdir ;; | |
| 717 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
| 718 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
| 719 | + datarootdir=$ac_optarg ;; | |
| 720 | + | |
| 721 | + -disable-* | --disable-*) | |
| 722 | + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
| 723 | + # Reject names that are not valid shell variable names. | |
| 724 | + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
| 725 | + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
| 726 | + { (exit 1); exit 1; }; } | |
| 727 | + ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
| 728 | + eval enable_$ac_feature=no ;; | |
| 729 | + | |
| 730 | + -docdir | --docdir | --docdi | --doc | --do) | |
| 731 | + ac_prev=docdir ;; | |
| 732 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
| 733 | + docdir=$ac_optarg ;; | |
| 734 | + | |
| 735 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
| 736 | + ac_prev=dvidir ;; | |
| 737 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
| 738 | + dvidir=$ac_optarg ;; | |
| 739 | + | |
| 740 | + -enable-* | --enable-*) | |
| 741 | + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
| 742 | + # Reject names that are not valid shell variable names. | |
| 743 | + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
| 744 | + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
| 745 | + { (exit 1); exit 1; }; } | |
| 746 | + ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
| 747 | + eval enable_$ac_feature=\$ac_optarg ;; | |
| 748 | + | |
| 749 | + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
| 750 | + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
| 751 | + | --exec | --exe | --ex) | |
| 752 | + ac_prev=exec_prefix ;; | |
| 753 | + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
| 754 | + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
| 755 | + | --exec=* | --exe=* | --ex=*) | |
| 756 | + exec_prefix=$ac_optarg ;; | |
| 757 | + | |
| 758 | + -gas | --gas | --ga | --g) | |
| 759 | + # Obsolete; use --with-gas. | |
| 760 | + with_gas=yes ;; | |
| 761 | + | |
| 762 | + -help | --help | --hel | --he | -h) | |
| 763 | + ac_init_help=long ;; | |
| 764 | + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
| 765 | + ac_init_help=recursive ;; | |
| 766 | + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
| 767 | + ac_init_help=short ;; | |
| 768 | + | |
| 769 | + -host | --host | --hos | --ho) | |
| 770 | + ac_prev=host_alias ;; | |
| 771 | + -host=* | --host=* | --hos=* | --ho=*) | |
| 772 | + host_alias=$ac_optarg ;; | |
| 773 | + | |
| 774 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
| 775 | + ac_prev=htmldir ;; | |
| 776 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
| 777 | + | --ht=*) | |
| 778 | + htmldir=$ac_optarg ;; | |
| 779 | + | |
| 780 | + -includedir | --includedir | --includedi | --included | --include \ | |
| 781 | + | --includ | --inclu | --incl | --inc) | |
| 782 | + ac_prev=includedir ;; | |
| 783 | + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
| 784 | + | --includ=* | --inclu=* | --incl=* | --inc=*) | |
| 785 | + includedir=$ac_optarg ;; | |
| 786 | + | |
| 787 | + -infodir | --infodir | --infodi | --infod | --info | --inf) | |
| 788 | + ac_prev=infodir ;; | |
| 789 | + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
| 790 | + infodir=$ac_optarg ;; | |
| 791 | + | |
| 792 | + -libdir | --libdir | --libdi | --libd) | |
| 793 | + ac_prev=libdir ;; | |
| 794 | + -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
| 795 | + libdir=$ac_optarg ;; | |
| 796 | + | |
| 797 | + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
| 798 | + | --libexe | --libex | --libe) | |
| 799 | + ac_prev=libexecdir ;; | |
| 800 | + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
| 801 | + | --libexe=* | --libex=* | --libe=*) | |
| 802 | + libexecdir=$ac_optarg ;; | |
| 803 | + | |
| 804 | + -localedir | --localedir | --localedi | --localed | --locale) | |
| 805 | + ac_prev=localedir ;; | |
| 806 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
| 807 | + localedir=$ac_optarg ;; | |
| 808 | + | |
| 809 | + -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
| 810 | + | --localstate | --localstat | --localsta | --localst | --locals) | |
| 811 | + ac_prev=localstatedir ;; | |
| 812 | + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
| 813 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
| 814 | + localstatedir=$ac_optarg ;; | |
| 815 | + | |
| 816 | + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
| 817 | + ac_prev=mandir ;; | |
| 818 | + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
| 819 | + mandir=$ac_optarg ;; | |
| 820 | + | |
| 821 | + -nfp | --nfp | --nf) | |
| 822 | + # Obsolete; use --without-fp. | |
| 823 | + with_fp=no ;; | |
| 824 | + | |
| 825 | + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 826 | + | --no-cr | --no-c | -n) | |
| 827 | + no_create=yes ;; | |
| 828 | + | |
| 829 | + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 830 | + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
| 831 | + no_recursion=yes ;; | |
| 832 | + | |
| 833 | + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
| 834 | + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
| 835 | + | --oldin | --oldi | --old | --ol | --o) | |
| 836 | + ac_prev=oldincludedir ;; | |
| 837 | + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
| 838 | + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
| 839 | + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
| 840 | + oldincludedir=$ac_optarg ;; | |
| 841 | + | |
| 842 | + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
| 843 | + ac_prev=prefix ;; | |
| 844 | + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
| 845 | + prefix=$ac_optarg ;; | |
| 846 | + | |
| 847 | + -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
| 848 | + | --program-pre | --program-pr | --program-p) | |
| 849 | + ac_prev=program_prefix ;; | |
| 850 | + -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
| 851 | + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
| 852 | + program_prefix=$ac_optarg ;; | |
| 853 | + | |
| 854 | + -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
| 855 | + | --program-suf | --program-su | --program-s) | |
| 856 | + ac_prev=program_suffix ;; | |
| 857 | + -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
| 858 | + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
| 859 | + program_suffix=$ac_optarg ;; | |
| 860 | + | |
| 861 | + -program-transform-name | --program-transform-name \ | |
| 862 | + | --program-transform-nam | --program-transform-na \ | |
| 863 | + | --program-transform-n | --program-transform- \ | |
| 864 | + | --program-transform | --program-transfor \ | |
| 865 | + | --program-transfo | --program-transf \ | |
| 866 | + | --program-trans | --program-tran \ | |
| 867 | + | --progr-tra | --program-tr | --program-t) | |
| 868 | + ac_prev=program_transform_name ;; | |
| 869 | + -program-transform-name=* | --program-transform-name=* \ | |
| 870 | + | --program-transform-nam=* | --program-transform-na=* \ | |
| 871 | + | --program-transform-n=* | --program-transform-=* \ | |
| 872 | + | --program-transform=* | --program-transfor=* \ | |
| 873 | + | --program-transfo=* | --program-transf=* \ | |
| 874 | + | --program-trans=* | --program-tran=* \ | |
| 875 | + | --progr-tra=* | --program-tr=* | --program-t=*) | |
| 876 | + program_transform_name=$ac_optarg ;; | |
| 877 | + | |
| 878 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
| 879 | + ac_prev=pdfdir ;; | |
| 880 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
| 881 | + pdfdir=$ac_optarg ;; | |
| 882 | + | |
| 883 | + -psdir | --psdir | --psdi | --psd | --ps) | |
| 884 | + ac_prev=psdir ;; | |
| 885 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
| 886 | + psdir=$ac_optarg ;; | |
| 887 | + | |
| 888 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 889 | + | -silent | --silent | --silen | --sile | --sil) | |
| 890 | + silent=yes ;; | |
| 891 | + | |
| 892 | + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
| 893 | + ac_prev=sbindir ;; | |
| 894 | + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| 895 | + | --sbi=* | --sb=*) | |
| 896 | + sbindir=$ac_optarg ;; | |
| 897 | + | |
| 898 | + -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| 899 | + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| 900 | + | --sharedst | --shareds | --shared | --share | --shar \ | |
| 901 | + | --sha | --sh) | |
| 902 | + ac_prev=sharedstatedir ;; | |
| 903 | + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
| 904 | + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
| 905 | + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
| 906 | + | --sha=* | --sh=*) | |
| 907 | + sharedstatedir=$ac_optarg ;; | |
| 908 | + | |
| 909 | + -site | --site | --sit) | |
| 910 | + ac_prev=site ;; | |
| 911 | + -site=* | --site=* | --sit=*) | |
| 912 | + site=$ac_optarg ;; | |
| 913 | + | |
| 914 | + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
| 915 | + ac_prev=srcdir ;; | |
| 916 | + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
| 917 | + srcdir=$ac_optarg ;; | |
| 918 | + | |
| 919 | + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
| 920 | + | --syscon | --sysco | --sysc | --sys | --sy) | |
| 921 | + ac_prev=sysconfdir ;; | |
| 922 | + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
| 923 | + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
| 924 | + sysconfdir=$ac_optarg ;; | |
| 925 | + | |
| 926 | + -target | --target | --targe | --targ | --tar | --ta | --t) | |
| 927 | + ac_prev=target_alias ;; | |
| 928 | + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
| 929 | + target_alias=$ac_optarg ;; | |
| 930 | + | |
| 931 | + -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
| 932 | + verbose=yes ;; | |
| 933 | + | |
| 934 | + -version | --version | --versio | --versi | --vers | -V) | |
| 935 | + ac_init_version=: ;; | |
| 936 | + | |
| 937 | + -with-* | --with-*) | |
| 938 | + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
| 939 | + # Reject names that are not valid shell variable names. | |
| 940 | + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
| 941 | + { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
| 942 | + { (exit 1); exit 1; }; } | |
| 943 | + ac_package=`echo $ac_package| sed 's/-/_/g'` | |
| 944 | + eval with_$ac_package=\$ac_optarg ;; | |
| 945 | + | |
| 946 | + -without-* | --without-*) | |
| 947 | + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
| 948 | + # Reject names that are not valid shell variable names. | |
| 949 | + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
| 950 | + { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
| 951 | + { (exit 1); exit 1; }; } | |
| 952 | + ac_package=`echo $ac_package | sed 's/-/_/g'` | |
| 953 | + eval with_$ac_package=no ;; | |
| 954 | + | |
| 955 | + --x) | |
| 956 | + # Obsolete; use --with-x. | |
| 957 | + with_x=yes ;; | |
| 958 | + | |
| 959 | + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
| 960 | + | --x-incl | --x-inc | --x-in | --x-i) | |
| 961 | + ac_prev=x_includes ;; | |
| 962 | + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
| 963 | + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
| 964 | + x_includes=$ac_optarg ;; | |
| 965 | + | |
| 966 | + -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
| 967 | + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
| 968 | + ac_prev=x_libraries ;; | |
| 969 | + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
| 970 | + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
| 971 | + x_libraries=$ac_optarg ;; | |
| 972 | + | |
| 973 | + -*) { echo "$as_me: error: unrecognized option: $ac_option | |
| 974 | +Try \`$0 --help' for more information." >&2 | |
| 975 | + { (exit 1); exit 1; }; } | |
| 976 | + ;; | |
| 977 | + | |
| 978 | + *=*) | |
| 979 | + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
| 980 | + # Reject names that are not valid shell variable names. | |
| 981 | + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
| 982 | + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
| 983 | + { (exit 1); exit 1; }; } | |
| 984 | + eval $ac_envvar=\$ac_optarg | |
| 985 | + export $ac_envvar ;; | |
| 986 | + | |
| 987 | + *) | |
| 988 | + # FIXME: should be removed in autoconf 3.0. | |
| 989 | + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
| 990 | + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
| 991 | + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
| 992 | + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
| 993 | + ;; | |
| 994 | + | |
| 995 | + esac | |
| 996 | +done | |
| 997 | + | |
| 998 | +if test -n "$ac_prev"; then | |
| 999 | + ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
| 1000 | + { echo "$as_me: error: missing argument to $ac_option" >&2 | |
| 1001 | + { (exit 1); exit 1; }; } | |
| 1002 | +fi | |
| 1003 | + | |
| 1004 | +# Be sure to have absolute directory names. | |
| 1005 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
| 1006 | + datadir sysconfdir sharedstatedir localstatedir includedir \ | |
| 1007 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
| 1008 | + libdir localedir mandir | |
| 1009 | +do | |
| 1010 | + eval ac_val=\$$ac_var | |
| 1011 | + case $ac_val in | |
| 1012 | + [\\/$]* | ?:[\\/]* ) continue;; | |
| 1013 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
| 1014 | + esac | |
| 1015 | + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
| 1016 | + { (exit 1); exit 1; }; } | |
| 1017 | +done | |
| 1018 | + | |
| 1019 | +# There might be people who depend on the old broken behavior: `$host' | |
| 1020 | +# used to hold the argument of --host etc. | |
| 1021 | +# FIXME: To remove some day. | |
| 1022 | +build=$build_alias | |
| 1023 | +host=$host_alias | |
| 1024 | +target=$target_alias | |
| 1025 | + | |
| 1026 | +# FIXME: To remove some day. | |
| 1027 | +if test "x$host_alias" != x; then | |
| 1028 | + if test "x$build_alias" = x; then | |
| 1029 | + cross_compiling=maybe | |
| 1030 | + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
| 1031 | + If a cross compiler is detected then cross compile mode will be used." >&2 | |
| 1032 | + elif test "x$build_alias" != "x$host_alias"; then | |
| 1033 | + cross_compiling=yes | |
| 1034 | + fi | |
| 1035 | +fi | |
| 1036 | + | |
| 1037 | +ac_tool_prefix= | |
| 1038 | +test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
| 1039 | + | |
| 1040 | +test "$silent" = yes && exec 6>/dev/null | |
| 1041 | + | |
| 1042 | + | |
| 1043 | +ac_pwd=`pwd` && test -n "$ac_pwd" && | |
| 1044 | +ac_ls_di=`ls -di .` && | |
| 1045 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
| 1046 | + { echo "$as_me: error: Working directory cannot be determined" >&2 | |
| 1047 | + { (exit 1); exit 1; }; } | |
| 1048 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
| 1049 | + { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
| 1050 | + { (exit 1); exit 1; }; } | |
| 1051 | + | |
| 1052 | + | |
| 1053 | +# Find the source files, if location was not specified. | |
| 1054 | +if test -z "$srcdir"; then | |
| 1055 | + ac_srcdir_defaulted=yes | |
| 1056 | + # Try the directory containing this script, then the parent directory. | |
| 1057 | + ac_confdir=`$as_dirname -- "$0" || | |
| 1058 | +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 1059 | + X"$0" : 'X\(//\)[^/]' \| \ | |
| 1060 | + X"$0" : 'X\(//\)$' \| \ | |
| 1061 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
| 1062 | +echo X"$0" | | |
| 1063 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 1064 | + s//\1/ | |
| 1065 | + q | |
| 1066 | + } | |
| 1067 | + /^X\(\/\/\)[^/].*/{ | |
| 1068 | + s//\1/ | |
| 1069 | + q | |
| 1070 | + } | |
| 1071 | + /^X\(\/\/\)$/{ | |
| 1072 | + s//\1/ | |
| 1073 | + q | |
| 1074 | + } | |
| 1075 | + /^X\(\/\).*/{ | |
| 1076 | + s//\1/ | |
| 1077 | + q | |
| 1078 | + } | |
| 1079 | + s/.*/./; q'` | |
| 1080 | + srcdir=$ac_confdir | |
| 1081 | + if test ! -r "$srcdir/$ac_unique_file"; then | |
| 1082 | + srcdir=.. | |
| 1083 | + fi | |
| 1084 | +else | |
| 1085 | + ac_srcdir_defaulted=no | |
| 1086 | +fi | |
| 1087 | +if test ! -r "$srcdir/$ac_unique_file"; then | |
| 1088 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
| 1089 | + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
| 1090 | + { (exit 1); exit 1; }; } | |
| 1091 | +fi | |
| 1092 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
| 1093 | +ac_abs_confdir=`( | |
| 1094 | + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
| 1095 | + { (exit 1); exit 1; }; } | |
| 1096 | + pwd)` | |
| 1097 | +# When building in place, set srcdir=. | |
| 1098 | +if test "$ac_abs_confdir" = "$ac_pwd"; then | |
| 1099 | + srcdir=. | |
| 1100 | +fi | |
| 1101 | +# Remove unnecessary trailing slashes from srcdir. | |
| 1102 | +# Double slashes in file names in object file debugging info | |
| 1103 | +# mess up M-x gdb in Emacs. | |
| 1104 | +case $srcdir in | |
| 1105 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
| 1106 | +esac | |
| 1107 | +for ac_var in $ac_precious_vars; do | |
| 1108 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
| 1109 | + eval ac_env_${ac_var}_value=\$${ac_var} | |
| 1110 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
| 1111 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
| 1112 | +done | |
| 1113 | + | |
| 1114 | +# | |
| 1115 | +# Report the --help message. | |
| 1116 | +# | |
| 1117 | +if test "$ac_init_help" = "long"; then | |
| 1118 | + # Omit some internal or obsolete options to make the list less imposing. | |
| 1119 | + # This message is too long to be a string in the A/UX 3.1 sh. | |
| 1120 | + cat <<_ACEOF | |
| 1121 | +\`configure' configures g3270 3.3.4 to adapt to many kinds of systems. | |
| 1122 | + | |
| 1123 | +Usage: $0 [OPTION]... [VAR=VALUE]... | |
| 1124 | + | |
| 1125 | +To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
| 1126 | +VAR=VALUE. See below for descriptions of some of the useful variables. | |
| 1127 | + | |
| 1128 | +Defaults for the options are specified in brackets. | |
| 1129 | + | |
| 1130 | +Configuration: | |
| 1131 | + -h, --help display this help and exit | |
| 1132 | + --help=short display options specific to this package | |
| 1133 | + --help=recursive display the short help of all the included packages | |
| 1134 | + -V, --version display version information and exit | |
| 1135 | + -q, --quiet, --silent do not print \`checking...' messages | |
| 1136 | + --cache-file=FILE cache test results in FILE [disabled] | |
| 1137 | + -C, --config-cache alias for \`--cache-file=config.cache' | |
| 1138 | + -n, --no-create do not create output files | |
| 1139 | + --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
| 1140 | + | |
| 1141 | +Installation directories: | |
| 1142 | + --prefix=PREFIX install architecture-independent files in PREFIX | |
| 1143 | + [$ac_default_prefix] | |
| 1144 | + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
| 1145 | + [PREFIX] | |
| 1146 | + | |
| 1147 | +By default, \`make install' will install all the files in | |
| 1148 | +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
| 1149 | +an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
| 1150 | +for instance \`--prefix=\$HOME'. | |
| 1151 | + | |
| 1152 | +For better control, use the options below. | |
| 1153 | + | |
| 1154 | +Fine tuning of the installation directories: | |
| 1155 | + --bindir=DIR user executables [EPREFIX/bin] | |
| 1156 | + --sbindir=DIR system admin executables [EPREFIX/sbin] | |
| 1157 | + --libexecdir=DIR program executables [EPREFIX/libexec] | |
| 1158 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
| 1159 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
| 1160 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
| 1161 | + --libdir=DIR object code libraries [EPREFIX/lib] | |
| 1162 | + --includedir=DIR C header files [PREFIX/include] | |
| 1163 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
| 1164 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
| 1165 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
| 1166 | + --infodir=DIR info documentation [DATAROOTDIR/info] | |
| 1167 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
| 1168 | + --mandir=DIR man documentation [DATAROOTDIR/man] | |
| 1169 | + --docdir=DIR documentation root [DATAROOTDIR/doc/g3270] | |
| 1170 | + --htmldir=DIR html documentation [DOCDIR] | |
| 1171 | + --dvidir=DIR dvi documentation [DOCDIR] | |
| 1172 | + --pdfdir=DIR pdf documentation [DOCDIR] | |
| 1173 | + --psdir=DIR ps documentation [DOCDIR] | |
| 1174 | +_ACEOF | |
| 1175 | + | |
| 1176 | + cat <<\_ACEOF | |
| 1177 | +_ACEOF | |
| 1178 | +fi | |
| 1179 | + | |
| 1180 | +if test -n "$ac_init_help"; then | |
| 1181 | + case $ac_init_help in | |
| 1182 | + short | recursive ) echo "Configuration of g3270 3.3.4:";; | |
| 1183 | + esac | |
| 1184 | + cat <<\_ACEOF | |
| 1185 | + | |
| 1186 | +Some influential environment variables: | |
| 1187 | + CC C compiler command | |
| 1188 | + CFLAGS C compiler flags | |
| 1189 | + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
| 1190 | + nonstandard directory <lib dir> | |
| 1191 | + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
| 1192 | + you have headers in a nonstandard directory <include dir> | |
| 1193 | + | |
| 1194 | +Use these variables to override the choices made by `configure' or to help | |
| 1195 | +it to find libraries and programs with nonstandard names/locations. | |
| 1196 | + | |
| 1197 | +_ACEOF | |
| 1198 | +ac_status=$? | |
| 1199 | +fi | |
| 1200 | + | |
| 1201 | +if test "$ac_init_help" = "recursive"; then | |
| 1202 | + # If there are subdirs, report their specific --help. | |
| 1203 | + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
| 1204 | + test -d "$ac_dir" || continue | |
| 1205 | + ac_builddir=. | |
| 1206 | + | |
| 1207 | +case "$ac_dir" in | |
| 1208 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 1209 | +*) | |
| 1210 | + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
| 1211 | + # A ".." for each directory in $ac_dir_suffix. | |
| 1212 | + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
| 1213 | + case $ac_top_builddir_sub in | |
| 1214 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 1215 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
| 1216 | + esac ;; | |
| 1217 | +esac | |
| 1218 | +ac_abs_top_builddir=$ac_pwd | |
| 1219 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
| 1220 | +# for backward compatibility: | |
| 1221 | +ac_top_builddir=$ac_top_build_prefix | |
| 1222 | + | |
| 1223 | +case $srcdir in | |
| 1224 | + .) # We are building in place. | |
| 1225 | + ac_srcdir=. | |
| 1226 | + ac_top_srcdir=$ac_top_builddir_sub | |
| 1227 | + ac_abs_top_srcdir=$ac_pwd ;; | |
| 1228 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
| 1229 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
| 1230 | + ac_top_srcdir=$srcdir | |
| 1231 | + ac_abs_top_srcdir=$srcdir ;; | |
| 1232 | + *) # Relative name. | |
| 1233 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
| 1234 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
| 1235 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
| 1236 | +esac | |
| 1237 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
| 1238 | + | |
| 1239 | + cd "$ac_dir" || { ac_status=$?; continue; } | |
| 1240 | + # Check for guested configure. | |
| 1241 | + if test -f "$ac_srcdir/configure.gnu"; then | |
| 1242 | + echo && | |
| 1243 | + $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
| 1244 | + elif test -f "$ac_srcdir/configure"; then | |
| 1245 | + echo && | |
| 1246 | + $SHELL "$ac_srcdir/configure" --help=recursive | |
| 1247 | + else | |
| 1248 | + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
| 1249 | + fi || ac_status=$? | |
| 1250 | + cd "$ac_pwd" || { ac_status=$?; break; } | |
| 1251 | + done | |
| 1252 | +fi | |
| 1253 | + | |
| 1254 | +test -n "$ac_init_help" && exit $ac_status | |
| 1255 | +if $ac_init_version; then | |
| 1256 | + cat <<\_ACEOF | |
| 1257 | +g3270 configure 3.3.4 | |
| 1258 | +generated by GNU Autoconf 2.60 | |
| 1259 | + | |
| 1260 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
| 1261 | +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
| 1262 | +This configure script is free software; the Free Software Foundation | |
| 1263 | +gives unlimited permission to copy, distribute and modify it. | |
| 1264 | +_ACEOF | |
| 1265 | + exit | |
| 1266 | +fi | |
| 1267 | +cat >config.log <<_ACEOF | |
| 1268 | +This file contains any messages produced by compilers while | |
| 1269 | +running configure, to aid debugging if configure makes a mistake. | |
| 1270 | + | |
| 1271 | +It was created by g3270 $as_me 3.3.4, which was | |
| 1272 | +generated by GNU Autoconf 2.60. Invocation command line was | |
| 1273 | + | |
| 1274 | + $ $0 $@ | |
| 1275 | + | |
| 1276 | +_ACEOF | |
| 1277 | +exec 5>>config.log | |
| 1278 | +{ | |
| 1279 | +cat <<_ASUNAME | |
| 1280 | +## --------- ## | |
| 1281 | +## Platform. ## | |
| 1282 | +## --------- ## | |
| 1283 | + | |
| 1284 | +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 1285 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
| 1286 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
| 1287 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
| 1288 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
| 1289 | + | |
| 1290 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
| 1291 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
| 1292 | + | |
| 1293 | +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
| 1294 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
| 1295 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
| 1296 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
| 1297 | +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
| 1298 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
| 1299 | +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
| 1300 | + | |
| 1301 | +_ASUNAME | |
| 1302 | + | |
| 1303 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1304 | +for as_dir in $PATH | |
| 1305 | +do | |
| 1306 | + IFS=$as_save_IFS | |
| 1307 | + test -z "$as_dir" && as_dir=. | |
| 1308 | + echo "PATH: $as_dir" | |
| 1309 | +done | |
| 1310 | +IFS=$as_save_IFS | |
| 1311 | + | |
| 1312 | +} >&5 | |
| 1313 | + | |
| 1314 | +cat >&5 <<_ACEOF | |
| 1315 | + | |
| 1316 | + | |
| 1317 | +## ----------- ## | |
| 1318 | +## Core tests. ## | |
| 1319 | +## ----------- ## | |
| 1320 | + | |
| 1321 | +_ACEOF | |
| 1322 | + | |
| 1323 | + | |
| 1324 | +# Keep a trace of the command line. | |
| 1325 | +# Strip out --no-create and --no-recursion so they do not pile up. | |
| 1326 | +# Strip out --silent because we don't want to record it for future runs. | |
| 1327 | +# Also quote any args containing shell meta-characters. | |
| 1328 | +# Make two passes to allow for proper duplicate-argument suppression. | |
| 1329 | +ac_configure_args= | |
| 1330 | +ac_configure_args0= | |
| 1331 | +ac_configure_args1= | |
| 1332 | +ac_must_keep_next=false | |
| 1333 | +for ac_pass in 1 2 | |
| 1334 | +do | |
| 1335 | + for ac_arg | |
| 1336 | + do | |
| 1337 | + case $ac_arg in | |
| 1338 | + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
| 1339 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 1340 | + | -silent | --silent | --silen | --sile | --sil) | |
| 1341 | + continue ;; | |
| 1342 | + *\'*) | |
| 1343 | + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 1344 | + esac | |
| 1345 | + case $ac_pass in | |
| 1346 | + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
| 1347 | + 2) | |
| 1348 | + ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
| 1349 | + if test $ac_must_keep_next = true; then | |
| 1350 | + ac_must_keep_next=false # Got value, back to normal. | |
| 1351 | + else | |
| 1352 | + case $ac_arg in | |
| 1353 | + *=* | --config-cache | -C | -disable-* | --disable-* \ | |
| 1354 | + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
| 1355 | + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
| 1356 | + | -with-* | --with-* | -without-* | --without-* | --x) | |
| 1357 | + case "$ac_configure_args0 " in | |
| 1358 | + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
| 1359 | + esac | |
| 1360 | + ;; | |
| 1361 | + -* ) ac_must_keep_next=true ;; | |
| 1362 | + esac | |
| 1363 | + fi | |
| 1364 | + ac_configure_args="$ac_configure_args '$ac_arg'" | |
| 1365 | + ;; | |
| 1366 | + esac | |
| 1367 | + done | |
| 1368 | +done | |
| 1369 | +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
| 1370 | +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
| 1371 | + | |
| 1372 | +# When interrupted or exit'd, cleanup temporary files, and complete | |
| 1373 | +# config.log. We remove comments because anyway the quotes in there | |
| 1374 | +# would cause problems or look ugly. | |
| 1375 | +# WARNING: Use '\'' to represent an apostrophe within the trap. | |
| 1376 | +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
| 1377 | +trap 'exit_status=$? | |
| 1378 | + # Save into config.log some information that might help in debugging. | |
| 1379 | + { | |
| 1380 | + echo | |
| 1381 | + | |
| 1382 | + cat <<\_ASBOX | |
| 1383 | +## ---------------- ## | |
| 1384 | +## Cache variables. ## | |
| 1385 | +## ---------------- ## | |
| 1386 | +_ASBOX | |
| 1387 | + echo | |
| 1388 | + # The following way of writing the cache mishandles newlines in values, | |
| 1389 | +( | |
| 1390 | + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
| 1391 | + eval ac_val=\$$ac_var | |
| 1392 | + case $ac_val in #( | |
| 1393 | + *${as_nl}*) | |
| 1394 | + case $ac_var in #( | |
| 1395 | + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
| 1396 | +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
| 1397 | + esac | |
| 1398 | + case $ac_var in #( | |
| 1399 | + _ | IFS | as_nl) ;; #( | |
| 1400 | + *) $as_unset $ac_var ;; | |
| 1401 | + esac ;; | |
| 1402 | + esac | |
| 1403 | + done | |
| 1404 | + (set) 2>&1 | | |
| 1405 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
| 1406 | + *${as_nl}ac_space=\ *) | |
| 1407 | + sed -n \ | |
| 1408 | + "s/'\''/'\''\\\\'\'''\''/g; | |
| 1409 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
| 1410 | + ;; #( | |
| 1411 | + *) | |
| 1412 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
| 1413 | + ;; | |
| 1414 | + esac | | |
| 1415 | + sort | |
| 1416 | +) | |
| 1417 | + echo | |
| 1418 | + | |
| 1419 | + cat <<\_ASBOX | |
| 1420 | +## ----------------- ## | |
| 1421 | +## Output variables. ## | |
| 1422 | +## ----------------- ## | |
| 1423 | +_ASBOX | |
| 1424 | + echo | |
| 1425 | + for ac_var in $ac_subst_vars | |
| 1426 | + do | |
| 1427 | + eval ac_val=\$$ac_var | |
| 1428 | + case $ac_val in | |
| 1429 | + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
| 1430 | + esac | |
| 1431 | + echo "$ac_var='\''$ac_val'\''" | |
| 1432 | + done | sort | |
| 1433 | + echo | |
| 1434 | + | |
| 1435 | + if test -n "$ac_subst_files"; then | |
| 1436 | + cat <<\_ASBOX | |
| 1437 | +## ------------------- ## | |
| 1438 | +## File substitutions. ## | |
| 1439 | +## ------------------- ## | |
| 1440 | +_ASBOX | |
| 1441 | + echo | |
| 1442 | + for ac_var in $ac_subst_files | |
| 1443 | + do | |
| 1444 | + eval ac_val=\$$ac_var | |
| 1445 | + case $ac_val in | |
| 1446 | + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
| 1447 | + esac | |
| 1448 | + echo "$ac_var='\''$ac_val'\''" | |
| 1449 | + done | sort | |
| 1450 | + echo | |
| 1451 | + fi | |
| 1452 | + | |
| 1453 | + if test -s confdefs.h; then | |
| 1454 | + cat <<\_ASBOX | |
| 1455 | +## ----------- ## | |
| 1456 | +## confdefs.h. ## | |
| 1457 | +## ----------- ## | |
| 1458 | +_ASBOX | |
| 1459 | + echo | |
| 1460 | + cat confdefs.h | |
| 1461 | + echo | |
| 1462 | + fi | |
| 1463 | + test "$ac_signal" != 0 && | |
| 1464 | + echo "$as_me: caught signal $ac_signal" | |
| 1465 | + echo "$as_me: exit $exit_status" | |
| 1466 | + } >&5 | |
| 1467 | + rm -f core *.core core.conftest.* && | |
| 1468 | + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
| 1469 | + exit $exit_status | |
| 1470 | +' 0 | |
| 1471 | +for ac_signal in 1 2 13 15; do | |
| 1472 | + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
| 1473 | +done | |
| 1474 | +ac_signal=0 | |
| 1475 | + | |
| 1476 | +# confdefs.h avoids OS command line length limits that DEFS can exceed. | |
| 1477 | +rm -f -r conftest* confdefs.h | |
| 1478 | + | |
| 1479 | +# Predefined preprocessor variables. | |
| 1480 | + | |
| 1481 | +cat >>confdefs.h <<_ACEOF | |
| 1482 | +#define PACKAGE_NAME "$PACKAGE_NAME" | |
| 1483 | +_ACEOF | |
| 1484 | + | |
| 1485 | + | |
| 1486 | +cat >>confdefs.h <<_ACEOF | |
| 1487 | +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
| 1488 | +_ACEOF | |
| 1489 | + | |
| 1490 | + | |
| 1491 | +cat >>confdefs.h <<_ACEOF | |
| 1492 | +#define PACKAGE_VERSION "$PACKAGE_VERSION" | |
| 1493 | +_ACEOF | |
| 1494 | + | |
| 1495 | + | |
| 1496 | +cat >>confdefs.h <<_ACEOF | |
| 1497 | +#define PACKAGE_STRING "$PACKAGE_STRING" | |
| 1498 | +_ACEOF | |
| 1499 | + | |
| 1500 | + | |
| 1501 | +cat >>confdefs.h <<_ACEOF | |
| 1502 | +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
| 1503 | +_ACEOF | |
| 1504 | + | |
| 1505 | + | |
| 1506 | +# Let the site file select an alternate cache file if it wants to. | |
| 1507 | +# Prefer explicitly selected file to automatically selected ones. | |
| 1508 | +if test -n "$CONFIG_SITE"; then | |
| 1509 | + set x "$CONFIG_SITE" | |
| 1510 | +elif test "x$prefix" != xNONE; then | |
| 1511 | + set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
| 1512 | +else | |
| 1513 | + set x "$ac_default_prefix/share/config.site" \ | |
| 1514 | + "$ac_default_prefix/etc/config.site" | |
| 1515 | +fi | |
| 1516 | +shift | |
| 1517 | +for ac_site_file | |
| 1518 | +do | |
| 1519 | + if test -r "$ac_site_file"; then | |
| 1520 | + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
| 1521 | +echo "$as_me: loading site script $ac_site_file" >&6;} | |
| 1522 | + sed 's/^/| /' "$ac_site_file" >&5 | |
| 1523 | + . "$ac_site_file" | |
| 1524 | + fi | |
| 1525 | +done | |
| 1526 | + | |
| 1527 | +if test -r "$cache_file"; then | |
| 1528 | + # Some versions of bash will fail to source /dev/null (special | |
| 1529 | + # files actually), so we avoid doing that. | |
| 1530 | + if test -f "$cache_file"; then | |
| 1531 | + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
| 1532 | +echo "$as_me: loading cache $cache_file" >&6;} | |
| 1533 | + case $cache_file in | |
| 1534 | + [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
| 1535 | + *) . "./$cache_file";; | |
| 1536 | + esac | |
| 1537 | + fi | |
| 1538 | +else | |
| 1539 | + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
| 1540 | +echo "$as_me: creating cache $cache_file" >&6;} | |
| 1541 | + >$cache_file | |
| 1542 | +fi | |
| 1543 | + | |
| 1544 | +# Check that the precious variables saved in the cache have kept the same | |
| 1545 | +# value. | |
| 1546 | +ac_cache_corrupted=false | |
| 1547 | +for ac_var in $ac_precious_vars; do | |
| 1548 | + eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
| 1549 | + eval ac_new_set=\$ac_env_${ac_var}_set | |
| 1550 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
| 1551 | + eval ac_new_val=\$ac_env_${ac_var}_value | |
| 1552 | + case $ac_old_set,$ac_new_set in | |
| 1553 | + set,) | |
| 1554 | + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
| 1555 | +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
| 1556 | + ac_cache_corrupted=: ;; | |
| 1557 | + ,set) | |
| 1558 | + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
| 1559 | +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
| 1560 | + ac_cache_corrupted=: ;; | |
| 1561 | + ,);; | |
| 1562 | + *) | |
| 1563 | + if test "x$ac_old_val" != "x$ac_new_val"; then | |
| 1564 | + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
| 1565 | +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
| 1566 | + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
| 1567 | +echo "$as_me: former value: $ac_old_val" >&2;} | |
| 1568 | + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
| 1569 | +echo "$as_me: current value: $ac_new_val" >&2;} | |
| 1570 | + ac_cache_corrupted=: | |
| 1571 | + fi;; | |
| 1572 | + esac | |
| 1573 | + # Pass precious variables to config.status. | |
| 1574 | + if test "$ac_new_set" = set; then | |
| 1575 | + case $ac_new_val in | |
| 1576 | + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 1577 | + *) ac_arg=$ac_var=$ac_new_val ;; | |
| 1578 | + esac | |
| 1579 | + case " $ac_configure_args " in | |
| 1580 | + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
| 1581 | + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
| 1582 | + esac | |
| 1583 | + fi | |
| 1584 | +done | |
| 1585 | +if $ac_cache_corrupted; then | |
| 1586 | + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
| 1587 | +echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
| 1588 | + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
| 1589 | +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
| 1590 | + { (exit 1); exit 1; }; } | |
| 1591 | +fi | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | +ac_ext=c | |
| 1618 | +ac_cpp='$CPP $CPPFLAGS' | |
| 1619 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 1620 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 1621 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | +ac_config_headers="$ac_config_headers src/config.h" | |
| 1627 | + | |
| 1628 | + | |
| 1629 | +ac_ext=c | |
| 1630 | +ac_cpp='$CPP $CPPFLAGS' | |
| 1631 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 1632 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 1633 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 1634 | +if test -n "$ac_tool_prefix"; then | |
| 1635 | + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
| 1636 | +set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
| 1637 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
| 1638 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
| 1639 | +if test "${ac_cv_prog_CC+set}" = set; then | |
| 1640 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1641 | +else | |
| 1642 | + if test -n "$CC"; then | |
| 1643 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 1644 | +else | |
| 1645 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1646 | +for as_dir in $PATH | |
| 1647 | +do | |
| 1648 | + IFS=$as_save_IFS | |
| 1649 | + test -z "$as_dir" && as_dir=. | |
| 1650 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
| 1651 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
| 1652 | + ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
| 1653 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 1654 | + break 2 | |
| 1655 | + fi | |
| 1656 | +done | |
| 1657 | +done | |
| 1658 | +IFS=$as_save_IFS | |
| 1659 | + | |
| 1660 | +fi | |
| 1661 | +fi | |
| 1662 | +CC=$ac_cv_prog_CC | |
| 1663 | +if test -n "$CC"; then | |
| 1664 | + { echo "$as_me:$LINENO: result: $CC" >&5 | |
| 1665 | +echo "${ECHO_T}$CC" >&6; } | |
| 1666 | +else | |
| 1667 | + { echo "$as_me:$LINENO: result: no" >&5 | |
| 1668 | +echo "${ECHO_T}no" >&6; } | |
| 1669 | +fi | |
| 1670 | + | |
| 1671 | + | |
| 1672 | +fi | |
| 1673 | +if test -z "$ac_cv_prog_CC"; then | |
| 1674 | + ac_ct_CC=$CC | |
| 1675 | + # Extract the first word of "gcc", so it can be a program name with args. | |
| 1676 | +set dummy gcc; ac_word=$2 | |
| 1677 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
| 1678 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
| 1679 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
| 1680 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1681 | +else | |
| 1682 | + if test -n "$ac_ct_CC"; then | |
| 1683 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 1684 | +else | |
| 1685 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1686 | +for as_dir in $PATH | |
| 1687 | +do | |
| 1688 | + IFS=$as_save_IFS | |
| 1689 | + test -z "$as_dir" && as_dir=. | |
| 1690 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
| 1691 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
| 1692 | + ac_cv_prog_ac_ct_CC="gcc" | |
| 1693 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 1694 | + break 2 | |
| 1695 | + fi | |
| 1696 | +done | |
| 1697 | +done | |
| 1698 | +IFS=$as_save_IFS | |
| 1699 | + | |
| 1700 | +fi | |
| 1701 | +fi | |
| 1702 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 1703 | +if test -n "$ac_ct_CC"; then | |
| 1704 | + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
| 1705 | +echo "${ECHO_T}$ac_ct_CC" >&6; } | |
| 1706 | +else | |
| 1707 | + { echo "$as_me:$LINENO: result: no" >&5 | |
| 1708 | +echo "${ECHO_T}no" >&6; } | |
| 1709 | +fi | |
| 1710 | + | |
| 1711 | + if test "x$ac_ct_CC" = x; then | |
| 1712 | + CC="" | |
| 1713 | + else | |
| 1714 | + case $cross_compiling:$ac_tool_warned in | |
| 1715 | +yes:) | |
| 1716 | +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
| 1717 | +whose name does not start with the host triplet. If you think this | |
| 1718 | +configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
| 1719 | +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
| 1720 | +whose name does not start with the host triplet. If you think this | |
| 1721 | +configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
| 1722 | +ac_tool_warned=yes ;; | |
| 1723 | +esac | |
| 1724 | + CC=$ac_ct_CC | |
| 1725 | + fi | |
| 1726 | +else | |
| 1727 | + CC="$ac_cv_prog_CC" | |
| 1728 | +fi | |
| 1729 | + | |
| 1730 | +if test -z "$CC"; then | |
| 1731 | + if test -n "$ac_tool_prefix"; then | |
| 1732 | + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
| 1733 | +set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
| 1734 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
| 1735 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
| 1736 | +if test "${ac_cv_prog_CC+set}" = set; then | |
| 1737 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1738 | +else | |
| 1739 | + if test -n "$CC"; then | |
| 1740 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 1741 | +else | |
| 1742 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1743 | +for as_dir in $PATH | |
| 1744 | +do | |
| 1745 | + IFS=$as_save_IFS | |
| 1746 | + test -z "$as_dir" && as_dir=. | |
| 1747 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
| 1748 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
| 1749 | + ac_cv_prog_CC="${ac_tool_prefix}cc" | |
| 1750 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 1751 | + break 2 | |
| 1752 | + fi | |
| 1753 | +done | |
| 1754 | +done | |
| 1755 | +IFS=$as_save_IFS | |
| 1756 | + | |
| 1757 | +fi | |
| 1758 | +fi | |
| 1759 | +CC=$ac_cv_prog_CC | |
| 1760 | +if test -n "$CC"; then | |
| 1761 | + { echo "$as_me:$LINENO: result: $CC" >&5 | |
| 1762 | +echo "${ECHO_T}$CC" >&6; } | |
| 1763 | +else | |
| 1764 | + { echo "$as_me:$LINENO: result: no" >&5 | |
| 1765 | +echo "${ECHO_T}no" >&6; } | |
| 1766 | +fi | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + fi | |
| 1770 | +fi | |
| 1771 | +if test -z "$CC"; then | |
| 1772 | + # Extract the first word of "cc", so it can be a program name with args. | |
| 1773 | +set dummy cc; ac_word=$2 | |
| 1774 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
| 1775 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
| 1776 | +if test "${ac_cv_prog_CC+set}" = set; then | |
| 1777 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1778 | +else | |
| 1779 | + if test -n "$CC"; then | |
| 1780 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 1781 | +else | |
| 1782 | + ac_prog_rejected=no | |
| 1783 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1784 | +for as_dir in $PATH | |
| 1785 | +do | |
| 1786 | + IFS=$as_save_IFS | |
| 1787 | + test -z "$as_dir" && as_dir=. | |
| 1788 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
| 1789 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
| 1790 | + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
| 1791 | + ac_prog_rejected=yes | |
| 1792 | + continue | |
| 1793 | + fi | |
| 1794 | + ac_cv_prog_CC="cc" | |
| 1795 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 1796 | + break 2 | |
| 1797 | + fi | |
| 1798 | +done | |
| 1799 | +done | |
| 1800 | +IFS=$as_save_IFS | |
| 1801 | + | |
| 1802 | +if test $ac_prog_rejected = yes; then | |
| 1803 | + # We found a bogon in the path, so make sure we never use it. | |
| 1804 | + set dummy $ac_cv_prog_CC | |
| 1805 | + shift | |
| 1806 | + if test $# != 0; then | |
| 1807 | + # We chose a different compiler from the bogus one. | |
| 1808 | + # However, it has the same basename, so the bogon will be chosen | |
| 1809 | + # first if we set CC to just the basename; use the full file name. | |
| 1810 | + shift | |
| 1811 | + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
| 1812 | + fi | |
| 1813 | +fi | |
| 1814 | +fi | |
| 1815 | +fi | |
| 1816 | +CC=$ac_cv_prog_CC | |
| 1817 | +if test -n "$CC"; then | |
| 1818 | + { echo "$as_me:$LINENO: result: $CC" >&5 | |
| 1819 | +echo "${ECHO_T}$CC" >&6; } | |
| 1820 | +else | |
| 1821 | + { echo "$as_me:$LINENO: result: no" >&5 | |
| 1822 | +echo "${ECHO_T}no" >&6; } | |
| 1823 | +fi | |
| 1824 | + | |
| 1825 | + | |
| 1826 | +fi | |
| 1827 | +if test -z "$CC"; then | |
| 1828 | + if test -n "$ac_tool_prefix"; then | |
| 1829 | + for ac_prog in cl.exe | |
| 1830 | + do | |
| 1831 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 1832 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 1833 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
| 1834 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
| 1835 | +if test "${ac_cv_prog_CC+set}" = set; then | |
| 1836 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1837 | +else | |
| 1838 | + if test -n "$CC"; then | |
| 1839 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 1840 | +else | |
| 1841 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1842 | +for as_dir in $PATH | |
| 1843 | +do | |
| 1844 | + IFS=$as_save_IFS | |
| 1845 | + test -z "$as_dir" && as_dir=. | |
| 1846 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
| 1847 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
| 1848 | + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
| 1849 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 1850 | + break 2 | |
| 1851 | + fi | |
| 1852 | +done | |
| 1853 | +done | |
| 1854 | +IFS=$as_save_IFS | |
| 1855 | + | |
| 1856 | +fi | |
| 1857 | +fi | |
| 1858 | +CC=$ac_cv_prog_CC | |
| 1859 | +if test -n "$CC"; then | |
| 1860 | + { echo "$as_me:$LINENO: result: $CC" >&5 | |
| 1861 | +echo "${ECHO_T}$CC" >&6; } | |
| 1862 | +else | |
| 1863 | + { echo "$as_me:$LINENO: result: no" >&5 | |
| 1864 | +echo "${ECHO_T}no" >&6; } | |
| 1865 | +fi | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + test -n "$CC" && break | |
| 1869 | + done | |
| 1870 | +fi | |
| 1871 | +if test -z "$CC"; then | |
| 1872 | + ac_ct_CC=$CC | |
| 1873 | + for ac_prog in cl.exe | |
| 1874 | +do | |
| 1875 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 1876 | +set dummy $ac_prog; ac_word=$2 | |
| 1877 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
| 1878 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
| 1879 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
| 1880 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1881 | +else | |
| 1882 | + if test -n "$ac_ct_CC"; then | |
| 1883 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 1884 | +else | |
| 1885 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 1886 | +for as_dir in $PATH | |
| 1887 | +do | |
| 1888 | + IFS=$as_save_IFS | |
| 1889 | + test -z "$as_dir" && as_dir=. | |
| 1890 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
| 1891 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
| 1892 | + ac_cv_prog_ac_ct_CC="$ac_prog" | |
| 1893 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 1894 | + break 2 | |
| 1895 | + fi | |
| 1896 | +done | |
| 1897 | +done | |
| 1898 | +IFS=$as_save_IFS | |
| 1899 | + | |
| 1900 | +fi | |
| 1901 | +fi | |
| 1902 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 1903 | +if test -n "$ac_ct_CC"; then | |
| 1904 | + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
| 1905 | +echo "${ECHO_T}$ac_ct_CC" >&6; } | |
| 1906 | +else | |
| 1907 | + { echo "$as_me:$LINENO: result: no" >&5 | |
| 1908 | +echo "${ECHO_T}no" >&6; } | |
| 1909 | +fi | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + test -n "$ac_ct_CC" && break | |
| 1913 | +done | |
| 1914 | + | |
| 1915 | + if test "x$ac_ct_CC" = x; then | |
| 1916 | + CC="" | |
| 1917 | + else | |
| 1918 | + case $cross_compiling:$ac_tool_warned in | |
| 1919 | +yes:) | |
| 1920 | +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
| 1921 | +whose name does not start with the host triplet. If you think this | |
| 1922 | +configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
| 1923 | +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
| 1924 | +whose name does not start with the host triplet. If you think this | |
| 1925 | +configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
| 1926 | +ac_tool_warned=yes ;; | |
| 1927 | +esac | |
| 1928 | + CC=$ac_ct_CC | |
| 1929 | + fi | |
| 1930 | +fi | |
| 1931 | + | |
| 1932 | +fi | |
| 1933 | + | |
| 1934 | + | |
| 1935 | +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
| 1936 | +See \`config.log' for more details." >&5 | |
| 1937 | +echo "$as_me: error: no acceptable C compiler found in \$PATH | |
| 1938 | +See \`config.log' for more details." >&2;} | |
| 1939 | + { (exit 1); exit 1; }; } | |
| 1940 | + | |
| 1941 | +# Provide some information about the compiler. | |
| 1942 | +echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
| 1943 | +ac_compiler=`set X $ac_compile; echo $2` | |
| 1944 | +{ (ac_try="$ac_compiler --version >&5" | |
| 1945 | +case "(($ac_try" in | |
| 1946 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1947 | + *) ac_try_echo=$ac_try;; | |
| 1948 | +esac | |
| 1949 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 1950 | + (eval "$ac_compiler --version >&5") 2>&5 | |
| 1951 | + ac_status=$? | |
| 1952 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 1953 | + (exit $ac_status); } | |
| 1954 | +{ (ac_try="$ac_compiler -v >&5" | |
| 1955 | +case "(($ac_try" in | |
| 1956 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1957 | + *) ac_try_echo=$ac_try;; | |
| 1958 | +esac | |
| 1959 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 1960 | + (eval "$ac_compiler -v >&5") 2>&5 | |
| 1961 | + ac_status=$? | |
| 1962 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 1963 | + (exit $ac_status); } | |
| 1964 | +{ (ac_try="$ac_compiler -V >&5" | |
| 1965 | +case "(($ac_try" in | |
| 1966 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1967 | + *) ac_try_echo=$ac_try;; | |
| 1968 | +esac | |
| 1969 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 1970 | + (eval "$ac_compiler -V >&5") 2>&5 | |
| 1971 | + ac_status=$? | |
| 1972 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 1973 | + (exit $ac_status); } | |
| 1974 | + | |
| 1975 | +cat >conftest.$ac_ext <<_ACEOF | |
| 1976 | +/* confdefs.h. */ | |
| 1977 | +_ACEOF | |
| 1978 | +cat confdefs.h >>conftest.$ac_ext | |
| 1979 | +cat >>conftest.$ac_ext <<_ACEOF | |
| 1980 | +/* end confdefs.h. */ | |
| 1981 | + | |
| 1982 | +int | |
| 1983 | +main () | |
| 1984 | +{ | |
| 1985 | + | |
| 1986 | + ; | |
| 1987 | + return 0; | |
| 1988 | +} | |
| 1989 | +_ACEOF | |
| 1990 | +ac_clean_files_save=$ac_clean_files | |
| 1991 | +ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
| 1992 | +# Try to create an executable without -o first, disregard a.out. | |
| 1993 | +# It will help us diagnose broken compilers, and finding out an intuition | |
| 1994 | +# of exeext. | |
| 1995 | +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
| 1996 | +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
| 1997 | +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
| 1998 | +# | |
| 1999 | +# List of possible output files, starting from the most likely. | |
| 2000 | +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
| 2001 | +# only as a last resort. b.out is created by i960 compilers. | |
| 2002 | +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
| 2003 | +# | |
| 2004 | +# The IRIX 6 linker writes into existing files which may not be | |
| 2005 | +# executable, retaining their permissions. Remove them first so a | |
| 2006 | +# subsequent execution test works. | |
| 2007 | +ac_rmfiles= | |
| 2008 | +for ac_file in $ac_files | |
| 2009 | +do | |
| 2010 | + case $ac_file in | |
| 2011 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
| 2012 | + * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
| 2013 | + esac | |
| 2014 | +done | |
| 2015 | +rm -f $ac_rmfiles | |
| 2016 | + | |
| 2017 | +if { (ac_try="$ac_link_default" | |
| 2018 | +case "(($ac_try" in | |
| 2019 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2020 | + *) ac_try_echo=$ac_try;; | |
| 2021 | +esac | |
| 2022 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2023 | + (eval "$ac_link_default") 2>&5 | |
| 2024 | + ac_status=$? | |
| 2025 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2026 | + (exit $ac_status); }; then | |
| 2027 | + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
| 2028 | +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
| 2029 | +# in a Makefile. We should not override ac_cv_exeext if it was cached, | |
| 2030 | +# so that the user can short-circuit this test for compilers unknown to | |
| 2031 | +# Autoconf. | |
| 2032 | +for ac_file in $ac_files | |
| 2033 | +do | |
| 2034 | + test -f "$ac_file" || continue | |
| 2035 | + case $ac_file in | |
| 2036 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
| 2037 | + ;; | |
| 2038 | + [ab].out ) | |
| 2039 | + # We found the default executable, but exeext='' is most | |
| 2040 | + # certainly right. | |
| 2041 | + break;; | |
| 2042 | + *.* ) | |
| 2043 | + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
| 2044 | + then :; else | |
| 2045 | + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 2046 | + fi | |
| 2047 | + # We set ac_cv_exeext here because the later test for it is not | |
| 2048 | + # safe: cross compilers may not add the suffix if given an `-o' | |
| 2049 | + # argument, so we may need to know it at that point already. | |
| 2050 | + # Even if this section looks crufty: it has the advantage of | |
| 2051 | + # actually working. | |
| 2052 | + break;; | |
| 2053 | + * ) | |
| 2054 | + break;; | |
| 2055 | + esac | |
| 2056 | +done | |
| 2057 | +test "$ac_cv_exeext" = no && ac_cv_exeext= | |
| 2058 | + | |
| 2059 | +else | |
| 2060 | + echo "$as_me: failed program was:" >&5 | |
| 2061 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2062 | + | |
| 2063 | +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
| 2064 | +See \`config.log' for more details." >&5 | |
| 2065 | +echo "$as_me: error: C compiler cannot create executables | |
| 2066 | +See \`config.log' for more details." >&2;} | |
| 2067 | + { (exit 77); exit 77; }; } | |
| 2068 | +fi | |
| 2069 | + | |
| 2070 | +ac_exeext=$ac_cv_exeext | |
| 2071 | +{ echo "$as_me:$LINENO: result: $ac_file" >&5 | |
| 2072 | +echo "${ECHO_T}$ac_file" >&6; } | |
| 2073 | + | |
| 2074 | +# Check that the compiler produces executables we can run. If not, either | |
| 2075 | +# the compiler is broken, or we cross compile. | |
| 2076 | +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
| 2077 | +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
| 2078 | +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
| 2079 | +# If not cross compiling, check that we can run a simple program. | |
| 2080 | +if test "$cross_compiling" != yes; then | |
| 2081 | + if { ac_try='./$ac_file' | |
| 2082 | + { (case "(($ac_try" in | |
| 2083 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2084 | + *) ac_try_echo=$ac_try;; | |
| 2085 | +esac | |
| 2086 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2087 | + (eval "$ac_try") 2>&5 | |
| 2088 | + ac_status=$? | |
| 2089 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2090 | + (exit $ac_status); }; }; then | |
| 2091 | + cross_compiling=no | |
| 2092 | + else | |
| 2093 | + if test "$cross_compiling" = maybe; then | |
| 2094 | + cross_compiling=yes | |
| 2095 | + else | |
| 2096 | + { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
| 2097 | +If you meant to cross compile, use \`--host'. | |
| 2098 | +See \`config.log' for more details." >&5 | |
| 2099 | +echo "$as_me: error: cannot run C compiled programs. | |
| 2100 | +If you meant to cross compile, use \`--host'. | |
| 2101 | +See \`config.log' for more details." >&2;} | |
| 2102 | + { (exit 1); exit 1; }; } | |
| 2103 | + fi | |
| 2104 | + fi | |
| 2105 | +fi | |
| 2106 | +{ echo "$as_me:$LINENO: result: yes" >&5 | |
| 2107 | +echo "${ECHO_T}yes" >&6; } | |
| 2108 | + | |
| 2109 | +rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
| 2110 | +ac_clean_files=$ac_clean_files_save | |
| 2111 | +# Check that the compiler produces executables we can run. If not, either | |
| 2112 | +# the compiler is broken, or we cross compile. | |
| 2113 | +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
| 2114 | +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
| 2115 | +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
| 2116 | +echo "${ECHO_T}$cross_compiling" >&6; } | |
| 2117 | + | |
| 2118 | +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
| 2119 | +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
| 2120 | +if { (ac_try="$ac_link" | |
| 2121 | +case "(($ac_try" in | |
| 2122 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2123 | + *) ac_try_echo=$ac_try;; | |
| 2124 | +esac | |
| 2125 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2126 | + (eval "$ac_link") 2>&5 | |
| 2127 | + ac_status=$? | |
| 2128 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2129 | + (exit $ac_status); }; then | |
| 2130 | + # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
| 2131 | +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
| 2132 | +# work properly (i.e., refer to `conftest.exe'), while it won't with | |
| 2133 | +# `rm'. | |
| 2134 | +for ac_file in conftest.exe conftest conftest.*; do | |
| 2135 | + test -f "$ac_file" || continue | |
| 2136 | + case $ac_file in | |
| 2137 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
| 2138 | + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 2139 | + break;; | |
| 2140 | + * ) break;; | |
| 2141 | + esac | |
| 2142 | +done | |
| 2143 | +else | |
| 2144 | + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
| 2145 | +See \`config.log' for more details." >&5 | |
| 2146 | +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
| 2147 | +See \`config.log' for more details." >&2;} | |
| 2148 | + { (exit 1); exit 1; }; } | |
| 2149 | +fi | |
| 2150 | + | |
| 2151 | +rm -f conftest$ac_cv_exeext | |
| 2152 | +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
| 2153 | +echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
| 2154 | + | |
| 2155 | +rm -f conftest.$ac_ext | |
| 2156 | +EXEEXT=$ac_cv_exeext | |
| 2157 | +ac_exeext=$EXEEXT | |
| 2158 | +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
| 2159 | +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
| 2160 | +if test "${ac_cv_objext+set}" = set; then | |
| 2161 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2162 | +else | |
| 2163 | + cat >conftest.$ac_ext <<_ACEOF | |
| 2164 | +/* confdefs.h. */ | |
| 2165 | +_ACEOF | |
| 2166 | +cat confdefs.h >>conftest.$ac_ext | |
| 2167 | +cat >>conftest.$ac_ext <<_ACEOF | |
| 2168 | +/* end confdefs.h. */ | |
| 2169 | + | |
| 2170 | +int | |
| 2171 | +main () | |
| 2172 | +{ | |
| 2173 | + | |
| 2174 | + ; | |
| 2175 | + return 0; | |
| 2176 | +} | |
| 2177 | +_ACEOF | |
| 2178 | +rm -f conftest.o conftest.obj | |
| 2179 | +if { (ac_try="$ac_compile" | |
| 2180 | +case "(($ac_try" in | |
| 2181 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2182 | + *) ac_try_echo=$ac_try;; | |
| 2183 | +esac | |
| 2184 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2185 | + (eval "$ac_compile") 2>&5 | |
| 2186 | + ac_status=$? | |
| 2187 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2188 | + (exit $ac_status); }; then | |
| 2189 | + for ac_file in conftest.o conftest.obj conftest.*; do | |
| 2190 | + test -f "$ac_file" || continue; | |
| 2191 | + case $ac_file in | |
| 2192 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
| 2193 | + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
| 2194 | + break;; | |
| 2195 | + esac | |
| 2196 | +done | |
| 2197 | +else | |
| 2198 | + echo "$as_me: failed program was:" >&5 | |
| 2199 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2200 | + | |
| 2201 | +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
| 2202 | +See \`config.log' for more details." >&5 | |
| 2203 | +echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
| 2204 | +See \`config.log' for more details." >&2;} | |
| 2205 | + { (exit 1); exit 1; }; } | |
| 2206 | +fi | |
| 2207 | + | |
| 2208 | +rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
| 2209 | +fi | |
| 2210 | +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
| 2211 | +echo "${ECHO_T}$ac_cv_objext" >&6; } | |
| 2212 | +OBJEXT=$ac_cv_objext | |
| 2213 | +ac_objext=$OBJEXT | |
| 2214 | +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
| 2215 | +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
| 2216 | +if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
| 2217 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2218 | +else | |
| 2219 | + cat >conftest.$ac_ext <<_ACEOF | |
| 2220 | +/* confdefs.h. */ | |
| 2221 | +_ACEOF | |
| 2222 | +cat confdefs.h >>conftest.$ac_ext | |
| 2223 | +cat >>conftest.$ac_ext <<_ACEOF | |
| 2224 | +/* end confdefs.h. */ | |
| 2225 | + | |
| 2226 | +int | |
| 2227 | +main () | |
| 2228 | +{ | |
| 2229 | +#ifndef __GNUC__ | |
| 2230 | + choke me | |
| 2231 | +#endif | |
| 2232 | + | |
| 2233 | + ; | |
| 2234 | + return 0; | |
| 2235 | +} | |
| 2236 | +_ACEOF | |
| 2237 | +rm -f conftest.$ac_objext | |
| 2238 | +if { (ac_try="$ac_compile" | |
| 2239 | +case "(($ac_try" in | |
| 2240 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2241 | + *) ac_try_echo=$ac_try;; | |
| 2242 | +esac | |
| 2243 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2244 | + (eval "$ac_compile") 2>conftest.er1 | |
| 2245 | + ac_status=$? | |
| 2246 | + grep -v '^ *+' conftest.er1 >conftest.err | |
| 2247 | + rm -f conftest.er1 | |
| 2248 | + cat conftest.err >&5 | |
| 2249 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2250 | + (exit $ac_status); } && | |
| 2251 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
| 2252 | + { (case "(($ac_try" in | |
| 2253 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2254 | + *) ac_try_echo=$ac_try;; | |
| 2255 | +esac | |
| 2256 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2257 | + (eval "$ac_try") 2>&5 | |
| 2258 | + ac_status=$? | |
| 2259 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2260 | + (exit $ac_status); }; } && | |
| 2261 | + { ac_try='test -s conftest.$ac_objext' | |
| 2262 | + { (case "(($ac_try" in | |
| 2263 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2264 | + *) ac_try_echo=$ac_try;; | |
| 2265 | +esac | |
| 2266 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2267 | + (eval "$ac_try") 2>&5 | |
| 2268 | + ac_status=$? | |
| 2269 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2270 | + (exit $ac_status); }; }; then | |
| 2271 | + ac_compiler_gnu=yes | |
| 2272 | +else | |
| 2273 | + echo "$as_me: failed program was:" >&5 | |
| 2274 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2275 | + | |
| 2276 | + ac_compiler_gnu=no | |
| 2277 | +fi | |
| 2278 | + | |
| 2279 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2280 | +ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
| 2281 | + | |
| 2282 | +fi | |
| 2283 | +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
| 2284 | +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
| 2285 | +GCC=`test $ac_compiler_gnu = yes && echo yes` | |
| 2286 | +ac_test_CFLAGS=${CFLAGS+set} | |
| 2287 | +ac_save_CFLAGS=$CFLAGS | |
| 2288 | +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
| 2289 | +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
| 2290 | +if test "${ac_cv_prog_cc_g+set}" = set; then | |
| 2291 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2292 | +else | |
| 2293 | + ac_save_c_werror_flag=$ac_c_werror_flag | |
| 2294 | + ac_c_werror_flag=yes | |
| 2295 | + ac_cv_prog_cc_g=no | |
| 2296 | + CFLAGS="-g" | |
| 2297 | + cat >conftest.$ac_ext <<_ACEOF | |
| 2298 | +/* confdefs.h. */ | |
| 2299 | +_ACEOF | |
| 2300 | +cat confdefs.h >>conftest.$ac_ext | |
| 2301 | +cat >>conftest.$ac_ext <<_ACEOF | |
| 2302 | +/* end confdefs.h. */ | |
| 2303 | + | |
| 2304 | +int | |
| 2305 | +main () | |
| 2306 | +{ | |
| 2307 | + | |
| 2308 | + ; | |
| 2309 | + return 0; | |
| 2310 | +} | |
| 2311 | +_ACEOF | |
| 2312 | +rm -f conftest.$ac_objext | |
| 2313 | +if { (ac_try="$ac_compile" | |
| 2314 | +case "(($ac_try" in | |
| 2315 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2316 | + *) ac_try_echo=$ac_try;; | |
| 2317 | +esac | |
| 2318 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2319 | + (eval "$ac_compile") 2>conftest.er1 | |
| 2320 | + ac_status=$? | |
| 2321 | + grep -v '^ *+' conftest.er1 >conftest.err | |
| 2322 | + rm -f conftest.er1 | |
| 2323 | + cat conftest.err >&5 | |
| 2324 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2325 | + (exit $ac_status); } && | |
| 2326 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
| 2327 | + { (case "(($ac_try" in | |
| 2328 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2329 | + *) ac_try_echo=$ac_try;; | |
| 2330 | +esac | |
| 2331 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2332 | + (eval "$ac_try") 2>&5 | |
| 2333 | + ac_status=$? | |
| 2334 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2335 | + (exit $ac_status); }; } && | |
| 2336 | + { ac_try='test -s conftest.$ac_objext' | |
| 2337 | + { (case "(($ac_try" in | |
| 2338 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2339 | + *) ac_try_echo=$ac_try;; | |
| 2340 | +esac | |
| 2341 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2342 | + (eval "$ac_try") 2>&5 | |
| 2343 | + ac_status=$? | |
| 2344 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2345 | + (exit $ac_status); }; }; then | |
| 2346 | + ac_cv_prog_cc_g=yes | |
| 2347 | +else | |
| 2348 | + echo "$as_me: failed program was:" >&5 | |
| 2349 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2350 | + | |
| 2351 | + CFLAGS="" | |
| 2352 | + cat >conftest.$ac_ext <<_ACEOF | |
| 2353 | +/* confdefs.h. */ | |
| 2354 | +_ACEOF | |
| 2355 | +cat confdefs.h >>conftest.$ac_ext | |
| 2356 | +cat >>conftest.$ac_ext <<_ACEOF | |
| 2357 | +/* end confdefs.h. */ | |
| 2358 | + | |
| 2359 | +int | |
| 2360 | +main () | |
| 2361 | +{ | |
| 2362 | + | |
| 2363 | + ; | |
| 2364 | + return 0; | |
| 2365 | +} | |
| 2366 | +_ACEOF | |
| 2367 | +rm -f conftest.$ac_objext | |
| 2368 | +if { (ac_try="$ac_compile" | |
| 2369 | +case "(($ac_try" in | |
| 2370 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2371 | + *) ac_try_echo=$ac_try;; | |
| 2372 | +esac | |
| 2373 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2374 | + (eval "$ac_compile") 2>conftest.er1 | |
| 2375 | + ac_status=$? | |
| 2376 | + grep -v '^ *+' conftest.er1 >conftest.err | |
| 2377 | + rm -f conftest.er1 | |
| 2378 | + cat conftest.err >&5 | |
| 2379 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2380 | + (exit $ac_status); } && | |
| 2381 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
| 2382 | + { (case "(($ac_try" in | |
| 2383 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2384 | + *) ac_try_echo=$ac_try;; | |
| 2385 | +esac | |
| 2386 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2387 | + (eval "$ac_try") 2>&5 | |
| 2388 | + ac_status=$? | |
| 2389 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2390 | + (exit $ac_status); }; } && | |
| 2391 | + { ac_try='test -s conftest.$ac_objext' | |
| 2392 | + { (case "(($ac_try" in | |
| 2393 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2394 | + *) ac_try_echo=$ac_try;; | |
| 2395 | +esac | |
| 2396 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2397 | + (eval "$ac_try") 2>&5 | |
| 2398 | + ac_status=$? | |
| 2399 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2400 | + (exit $ac_status); }; }; then | |
| 2401 | + : | |
| 2402 | +else | |
| 2403 | + echo "$as_me: failed program was:" >&5 | |
| 2404 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2405 | + | |
| 2406 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
| 2407 | + CFLAGS="-g" | |
| 2408 | + cat >conftest.$ac_ext <<_ACEOF | |
| 2409 | +/* confdefs.h. */ | |
| 2410 | +_ACEOF | |
| 2411 | +cat confdefs.h >>conftest.$ac_ext | |
| 2412 | +cat >>conftest.$ac_ext <<_ACEOF | |
| 2413 | +/* end confdefs.h. */ | |
| 2414 | + | |
| 2415 | +int | |
| 2416 | +main () | |
| 2417 | +{ | |
| 2418 | + | |
| 2419 | + ; | |
| 2420 | + return 0; | |
| 2421 | +} | |
| 2422 | +_ACEOF | |
| 2423 | +rm -f conftest.$ac_objext | |
| 2424 | +if { (ac_try="$ac_compile" | |
| 2425 | +case "(($ac_try" in | |
| 2426 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2427 | + *) ac_try_echo=$ac_try;; | |
| 2428 | +esac | |
| 2429 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2430 | + (eval "$ac_compile") 2>conftest.er1 | |
| 2431 | + ac_status=$? | |
| 2432 | + grep -v '^ *+' conftest.er1 >conftest.err | |
| 2433 | + rm -f conftest.er1 | |
| 2434 | + cat conftest.err >&5 | |
| 2435 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2436 | + (exit $ac_status); } && | |
| 2437 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
| 2438 | + { (case "(($ac_try" in | |
| 2439 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2440 | + *) ac_try_echo=$ac_try;; | |
| 2441 | +esac | |
| 2442 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2443 | + (eval "$ac_try") 2>&5 | |
| 2444 | + ac_status=$? | |
| 2445 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2446 | + (exit $ac_status); }; } && | |
| 2447 | + { ac_try='test -s conftest.$ac_objext' | |
| 2448 | + { (case "(($ac_try" in | |
| 2449 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2450 | + *) ac_try_echo=$ac_try;; | |
| 2451 | +esac | |
| 2452 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2453 | + (eval "$ac_try") 2>&5 | |
| 2454 | + ac_status=$? | |
| 2455 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2456 | + (exit $ac_status); }; }; then | |
| 2457 | + ac_cv_prog_cc_g=yes | |
| 2458 | +else | |
| 2459 | + echo "$as_me: failed program was:" >&5 | |
| 2460 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2461 | + | |
| 2462 | + | |
| 2463 | +fi | |
| 2464 | + | |
| 2465 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2466 | +fi | |
| 2467 | + | |
| 2468 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2469 | +fi | |
| 2470 | + | |
| 2471 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2472 | + ac_c_werror_flag=$ac_save_c_werror_flag | |
| 2473 | +fi | |
| 2474 | +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
| 2475 | +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
| 2476 | +if test "$ac_test_CFLAGS" = set; then | |
| 2477 | + CFLAGS=$ac_save_CFLAGS | |
| 2478 | +elif test $ac_cv_prog_cc_g = yes; then | |
| 2479 | + if test "$GCC" = yes; then | |
| 2480 | + CFLAGS="-g -O2" | |
| 2481 | + else | |
| 2482 | + CFLAGS="-g" | |
| 2483 | + fi | |
| 2484 | +else | |
| 2485 | + if test "$GCC" = yes; then | |
| 2486 | + CFLAGS="-O2" | |
| 2487 | + else | |
| 2488 | + CFLAGS= | |
| 2489 | + fi | |
| 2490 | +fi | |
| 2491 | +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
| 2492 | +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
| 2493 | +if test "${ac_cv_prog_cc_c89+set}" = set; then | |
| 2494 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2495 | +else | |
| 2496 | + ac_cv_prog_cc_c89=no | |
| 2497 | +ac_save_CC=$CC | |
| 2498 | +cat >conftest.$ac_ext <<_ACEOF | |
| 2499 | +/* confdefs.h. */ | |
| 2500 | +_ACEOF | |
| 2501 | +cat confdefs.h >>conftest.$ac_ext | |
| 2502 | +cat >>conftest.$ac_ext <<_ACEOF | |
| 2503 | +/* end confdefs.h. */ | |
| 2504 | +#include <stdarg.h> | |
| 2505 | +#include <stdio.h> | |
| 2506 | +#include <sys/types.h> | |
| 2507 | +#include <sys/stat.h> | |
| 2508 | +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
| 2509 | +struct buf { int x; }; | |
| 2510 | +FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
| 2511 | +static char *e (p, i) | |
| 2512 | + char **p; | |
| 2513 | + int i; | |
| 2514 | +{ | |
| 2515 | + return p[i]; | |
| 2516 | +} | |
| 2517 | +static char *f (char * (*g) (char **, int), char **p, ...) | |
| 2518 | +{ | |
| 2519 | + char *s; | |
| 2520 | + va_list v; | |
| 2521 | + va_start (v,p); | |
| 2522 | + s = g (p, va_arg (v,int)); | |
| 2523 | + va_end (v); | |
| 2524 | + return s; | |
| 2525 | +} | |
| 2526 | + | |
| 2527 | +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
| 2528 | + function prototypes and stuff, but not '\xHH' hex character constants. | |
| 2529 | + These don't provoke an error unfortunately, instead are silently treated | |
| 2530 | + as 'x'. The following induces an error, until -std is added to get | |
| 2531 | + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
| 2532 | + array size at least. It's necessary to write '\x00'==0 to get something | |
| 2533 | + that's true only with -std. */ | |
| 2534 | +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
| 2535 | + | |
| 2536 | +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
| 2537 | + inside strings and character constants. */ | |
| 2538 | +#define FOO(x) 'x' | |
| 2539 | +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
| 2540 | + | |
| 2541 | +int test (int i, double x); | |
| 2542 | +struct s1 {int (*f) (int a);}; | |
| 2543 | +struct s2 {int (*f) (double a);}; | |
| 2544 | +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
| 2545 | +int argc; | |
| 2546 | +char **argv; | |
| 2547 | +int | |
| 2548 | +main () | |
| 2549 | +{ | |
| 2550 | +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
| 2551 | + ; | |
| 2552 | + return 0; | |
| 2553 | +} | |
| 2554 | +_ACEOF | |
| 2555 | +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
| 2556 | + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
| 2557 | +do | |
| 2558 | + CC="$ac_save_CC $ac_arg" | |
| 2559 | + rm -f conftest.$ac_objext | |
| 2560 | +if { (ac_try="$ac_compile" | |
| 2561 | +case "(($ac_try" in | |
| 2562 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2563 | + *) ac_try_echo=$ac_try;; | |
| 2564 | +esac | |
| 2565 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2566 | + (eval "$ac_compile") 2>conftest.er1 | |
| 2567 | + ac_status=$? | |
| 2568 | + grep -v '^ *+' conftest.er1 >conftest.err | |
| 2569 | + rm -f conftest.er1 | |
| 2570 | + cat conftest.err >&5 | |
| 2571 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2572 | + (exit $ac_status); } && | |
| 2573 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
| 2574 | + { (case "(($ac_try" in | |
| 2575 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2576 | + *) ac_try_echo=$ac_try;; | |
| 2577 | +esac | |
| 2578 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2579 | + (eval "$ac_try") 2>&5 | |
| 2580 | + ac_status=$? | |
| 2581 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2582 | + (exit $ac_status); }; } && | |
| 2583 | + { ac_try='test -s conftest.$ac_objext' | |
| 2584 | + { (case "(($ac_try" in | |
| 2585 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2586 | + *) ac_try_echo=$ac_try;; | |
| 2587 | +esac | |
| 2588 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
| 2589 | + (eval "$ac_try") 2>&5 | |
| 2590 | + ac_status=$? | |
| 2591 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 2592 | + (exit $ac_status); }; }; then | |
| 2593 | + ac_cv_prog_cc_c89=$ac_arg | |
| 2594 | +else | |
| 2595 | + echo "$as_me: failed program was:" >&5 | |
| 2596 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2597 | + | |
| 2598 | + | |
| 2599 | +fi | |
| 2600 | + | |
| 2601 | +rm -f core conftest.err conftest.$ac_objext | |
| 2602 | + test "x$ac_cv_prog_cc_c89" != "xno" && break | |
| 2603 | +done | |
| 2604 | +rm -f conftest.$ac_ext | |
| 2605 | +CC=$ac_save_CC | |
| 2606 | + | |
| 2607 | +fi | |
| 2608 | +# AC_CACHE_VAL | |
| 2609 | +case "x$ac_cv_prog_cc_c89" in | |
| 2610 | + x) | |
| 2611 | + { echo "$as_me:$LINENO: result: none needed" >&5 | |
| 2612 | +echo "${ECHO_T}none needed" >&6; } ;; | |
| 2613 | + xno) | |
| 2614 | + { echo "$as_me:$LINENO: result: unsupported" >&5 | |
| 2615 | +echo "${ECHO_T}unsupported" >&6; } ;; | |
| 2616 | + *) | |
| 2617 | + CC="$CC $ac_cv_prog_cc_c89" | |
| 2618 | + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
| 2619 | +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
| 2620 | +esac | |
| 2621 | + | |
| 2622 | + | |
| 2623 | +ac_ext=c | |
| 2624 | +ac_cpp='$CPP $CPPFLAGS' | |
| 2625 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2626 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2627 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 2628 | + | |
| 2629 | +# Extract the first word of "pkg-config", so it can be a program name with args. | |
| 2630 | +set dummy pkg-config; ac_word=$2 | |
| 2631 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
| 2632 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
| 2633 | +if test "${ac_cv_prog_PKGCONFIG+set}" = set; then | |
| 2634 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2635 | +else | |
| 2636 | + if test -n "$PKGCONFIG"; then | |
| 2637 | + ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test. | |
| 2638 | +else | |
| 2639 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2640 | +for as_dir in $PATH | |
| 2641 | +do | |
| 2642 | + IFS=$as_save_IFS | |
| 2643 | + test -z "$as_dir" && as_dir=. | |
| 2644 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2645 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
| 2646 | + ac_cv_prog_PKGCONFIG="`which pkg-config`" | |
| 2647 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 2648 | + break 2 | |
| 2649 | + fi | |
| 2650 | +done | |
| 2651 | +done | |
| 2652 | +IFS=$as_save_IFS | |
| 2653 | + | |
| 2654 | +fi | |
| 2655 | +fi | |
| 2656 | +PKGCONFIG=$ac_cv_prog_PKGCONFIG | |
| 2657 | +if test -n "$PKGCONFIG"; then | |
| 2658 | + { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 | |
| 2659 | +echo "${ECHO_T}$PKGCONFIG" >&6; } | |
| 2660 | +else | |
| 2661 | + { echo "$as_me:$LINENO: result: no" >&5 | |
| 2662 | +echo "${ECHO_T}no" >&6; } | |
| 2663 | +fi | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | +ac_config_files="$ac_config_files Makefile $pr3mf" | |
| 2669 | + | |
| 2670 | +cat >confcache <<\_ACEOF | |
| 2671 | +# This file is a shell script that caches the results of configure | |
| 2672 | +# tests run on this system so they can be shared between configure | |
| 2673 | +# scripts and configure runs, see configure's option --config-cache. | |
| 2674 | +# It is not useful on other systems. If it contains results you don't | |
| 2675 | +# want to keep, you may remove or edit it. | |
| 2676 | +# | |
| 2677 | +# config.status only pays attention to the cache file if you give it | |
| 2678 | +# the --recheck option to rerun configure. | |
| 2679 | +# | |
| 2680 | +# `ac_cv_env_foo' variables (set or unset) will be overridden when | |
| 2681 | +# loading this file, other *unset* `ac_cv_foo' will be assigned the | |
| 2682 | +# following values. | |
| 2683 | + | |
| 2684 | +_ACEOF | |
| 2685 | + | |
| 2686 | +# The following way of writing the cache mishandles newlines in values, | |
| 2687 | +# but we know of no workaround that is simple, portable, and efficient. | |
| 2688 | +# So, we kill variables containing newlines. | |
| 2689 | +# Ultrix sh set writes to stderr and can't be redirected directly, | |
| 2690 | +# and sets the high bit in the cache file unless we assign to the vars. | |
| 2691 | +( | |
| 2692 | + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
| 2693 | + eval ac_val=\$$ac_var | |
| 2694 | + case $ac_val in #( | |
| 2695 | + *${as_nl}*) | |
| 2696 | + case $ac_var in #( | |
| 2697 | + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
| 2698 | +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
| 2699 | + esac | |
| 2700 | + case $ac_var in #( | |
| 2701 | + _ | IFS | as_nl) ;; #( | |
| 2702 | + *) $as_unset $ac_var ;; | |
| 2703 | + esac ;; | |
| 2704 | + esac | |
| 2705 | + done | |
| 2706 | + | |
| 2707 | + (set) 2>&1 | | |
| 2708 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
| 2709 | + *${as_nl}ac_space=\ *) | |
| 2710 | + # `set' does not quote correctly, so add quotes (double-quote | |
| 2711 | + # substitution turns \\\\ into \\, and sed turns \\ into \). | |
| 2712 | + sed -n \ | |
| 2713 | + "s/'/'\\\\''/g; | |
| 2714 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
| 2715 | + ;; #( | |
| 2716 | + *) | |
| 2717 | + # `set' quotes correctly as required by POSIX, so do not add quotes. | |
| 2718 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
| 2719 | + ;; | |
| 2720 | + esac | | |
| 2721 | + sort | |
| 2722 | +) | | |
| 2723 | + sed ' | |
| 2724 | + /^ac_cv_env_/b end | |
| 2725 | + t clear | |
| 2726 | + :clear | |
| 2727 | + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
| 2728 | + t end | |
| 2729 | + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
| 2730 | + :end' >>confcache | |
| 2731 | +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
| 2732 | + if test -w "$cache_file"; then | |
| 2733 | + test "x$cache_file" != "x/dev/null" && | |
| 2734 | + { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
| 2735 | +echo "$as_me: updating cache $cache_file" >&6;} | |
| 2736 | + cat confcache >$cache_file | |
| 2737 | + else | |
| 2738 | + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
| 2739 | +echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
| 2740 | + fi | |
| 2741 | +fi | |
| 2742 | +rm -f confcache | |
| 2743 | + | |
| 2744 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
| 2745 | +# Let make expand exec_prefix. | |
| 2746 | +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
| 2747 | + | |
| 2748 | +DEFS=-DHAVE_CONFIG_H | |
| 2749 | + | |
| 2750 | +ac_libobjs= | |
| 2751 | +ac_ltlibobjs= | |
| 2752 | +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
| 2753 | + # 1. Remove the extension, and $U if already installed. | |
| 2754 | + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
| 2755 | + ac_i=`echo "$ac_i" | sed "$ac_script"` | |
| 2756 | + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
| 2757 | + # will be set to the directory where LIBOBJS objects are built. | |
| 2758 | + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
| 2759 | + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
| 2760 | +done | |
| 2761 | +LIBOBJS=$ac_libobjs | |
| 2762 | + | |
| 2763 | +LTLIBOBJS=$ac_ltlibobjs | |
| 2 | 2764 | |
| 3 | -#!/bin/bash | |
| 4 | 2765 | |
| 5 | -MyDir=$PWD | |
| 6 | 2766 | |
| 7 | -#--[ Set default values ]------------------------------------------------------- | |
| 2767 | +: ${CONFIG_STATUS=./config.status} | |
| 2768 | +ac_clean_files_save=$ac_clean_files | |
| 2769 | +ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
| 2770 | +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
| 2771 | +echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
| 2772 | +cat >$CONFIG_STATUS <<_ACEOF | |
| 2773 | +#! $SHELL | |
| 2774 | +# Generated by $as_me. | |
| 2775 | +# Run this file to recreate the current configuration. | |
| 2776 | +# Compiler output produced by configure, useful for debugging | |
| 2777 | +# configure, is in config.log if it exists. | |
| 8 | 2778 | |
| 9 | -name=g3270 | |
| 10 | -version=3.3.4 | |
| 11 | -sysconfdir=/etc | |
| 12 | -datadir=/usr/share | |
| 13 | -localstatedir=/var | |
| 14 | -tempdir=/tmp | |
| 15 | -libdir=/usr/lib | |
| 16 | -bindir=/usr/bin | |
| 17 | -gtkmodules="gtk+-2.0 gdk-2.0 glib-2.0 gthread-2.0" | |
| 18 | -libgnome="libgnomeui-2.0" | |
| 2779 | +debug=false | |
| 2780 | +ac_cs_recheck=false | |
| 2781 | +ac_cs_silent=false | |
| 2782 | +SHELL=\${CONFIG_SHELL-$SHELL} | |
| 2783 | +_ACEOF | |
| 19 | 2784 | |
| 20 | -#--[ Check for GTK version ]---------------------------------------------------- | |
| 2785 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 2786 | +## --------------------- ## | |
| 2787 | +## M4sh Initialization. ## | |
| 2788 | +## --------------------- ## | |
| 21 | 2789 | |
| 22 | -PKGCONFIG=`which pkg-config` | |
| 23 | -if [ $PKGCONFIG == "" ]; then | |
| 24 | - echo "* Can't find pkg-config" | |
| 25 | - exit 2 | |
| 2790 | +# Be Bourne compatible | |
| 2791 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
| 2792 | + emulate sh | |
| 2793 | + NULLCMD=: | |
| 2794 | + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
| 2795 | + # is contrary to our usage. Disable this feature. | |
| 2796 | + alias -g '${1+"$@"}'='"$@"' | |
| 2797 | + setopt NO_GLOB_SUBST | |
| 2798 | +else | |
| 2799 | + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
| 2800 | +fi | |
| 2801 | +BIN_SH=xpg4; export BIN_SH # for Tru64 | |
| 2802 | +DUALCASE=1; export DUALCASE # for MKS sh | |
| 2803 | + | |
| 2804 | + | |
| 2805 | +# PATH needs CR | |
| 2806 | +# Avoid depending upon Character Ranges. | |
| 2807 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
| 2808 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| 2809 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
| 2810 | +as_cr_digits='0123456789' | |
| 2811 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
| 2812 | + | |
| 2813 | +# The user is always right. | |
| 2814 | +if test "${PATH_SEPARATOR+set}" != set; then | |
| 2815 | + echo "#! /bin/sh" >conf$$.sh | |
| 2816 | + echo "exit 0" >>conf$$.sh | |
| 2817 | + chmod +x conf$$.sh | |
| 2818 | + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
| 2819 | + PATH_SEPARATOR=';' | |
| 2820 | + else | |
| 2821 | + PATH_SEPARATOR=: | |
| 2822 | + fi | |
| 2823 | + rm -f conf$$.sh | |
| 2824 | +fi | |
| 2825 | + | |
| 2826 | +# Support unset when possible. | |
| 2827 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
| 2828 | + as_unset=unset | |
| 2829 | +else | |
| 2830 | + as_unset=false | |
| 26 | 2831 | fi |
| 27 | 2832 | |
| 28 | -$PKGCONFIG --modversion $gtkmodules > /dev/null 2>&1 | |
| 29 | -if [ "$?" != "0" ]; then | |
| 30 | - echo "* Can't find required gtkmodules: $gtkmodules" | |
| 31 | - exit 2 | |
| 2833 | + | |
| 2834 | +# IFS | |
| 2835 | +# We need space, tab and new line, in precisely that order. Quoting is | |
| 2836 | +# there to prevent editors from complaining about space-tab. | |
| 2837 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
| 2838 | +# splitting by setting IFS to empty value.) | |
| 2839 | +as_nl=' | |
| 2840 | +' | |
| 2841 | +IFS=" "" $as_nl" | |
| 2842 | + | |
| 2843 | +# Find who we are. Look in the path if we contain no directory separator. | |
| 2844 | +case $0 in | |
| 2845 | + *[\\/]* ) as_myself=$0 ;; | |
| 2846 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2847 | +for as_dir in $PATH | |
| 2848 | +do | |
| 2849 | + IFS=$as_save_IFS | |
| 2850 | + test -z "$as_dir" && as_dir=. | |
| 2851 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
| 2852 | +done | |
| 2853 | +IFS=$as_save_IFS | |
| 2854 | + | |
| 2855 | + ;; | |
| 2856 | +esac | |
| 2857 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
| 2858 | +# in which case we are not to be found in the path. | |
| 2859 | +if test "x$as_myself" = x; then | |
| 2860 | + as_myself=$0 | |
| 2861 | +fi | |
| 2862 | +if test ! -f "$as_myself"; then | |
| 2863 | + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
| 2864 | + { (exit 1); exit 1; } | |
| 32 | 2865 | fi |
| 33 | 2866 | |
| 34 | -#--[ Read configuration options ]----------------------------------------------- | |
| 2867 | +# Work around bugs in pre-3.0 UWIN ksh. | |
| 2868 | +for as_var in ENV MAIL MAILPATH | |
| 2869 | +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
| 2870 | +done | |
| 2871 | +PS1='$ ' | |
| 2872 | +PS2='> ' | |
| 2873 | +PS4='+ ' | |
| 35 | 2874 | |
| 36 | -until [ -z "$1" ] | |
| 2875 | +# NLS nuisances. | |
| 2876 | +for as_var in \ | |
| 2877 | + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
| 2878 | + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
| 2879 | + LC_TELEPHONE LC_TIME | |
| 37 | 2880 | do |
| 38 | - if [ ${1:0:2} = '--' ]; then | |
| 39 | - tmp=${1:2} | |
| 40 | - parameter=${tmp%%=*} | |
| 41 | - value=${tmp##*=} | |
| 42 | - eval "$parameter=$value" > /dev/null 2>&1 | |
| 43 | - fi | |
| 44 | - shift | |
| 2881 | + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
| 2882 | + eval $as_var=C; export $as_var | |
| 2883 | + else | |
| 2884 | + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
| 2885 | + fi | |
| 45 | 2886 | done |
| 46 | 2887 | |
| 47 | -#--[ Basic configuration ]------------------------------------------------------ | |
| 2888 | +# Required to use basename. | |
| 2889 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 2890 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 2891 | + as_expr=expr | |
| 2892 | +else | |
| 2893 | + as_expr=false | |
| 2894 | +fi | |
| 2895 | + | |
| 2896 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
| 2897 | + as_basename=basename | |
| 2898 | +else | |
| 2899 | + as_basename=false | |
| 2900 | +fi | |
| 2901 | + | |
| 2902 | + | |
| 2903 | +# Name of the executable. | |
| 2904 | +as_me=`$as_basename -- "$0" || | |
| 2905 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
| 2906 | + X"$0" : 'X\(//\)$' \| \ | |
| 2907 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
| 2908 | +echo X/"$0" | | |
| 2909 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
| 2910 | + s//\1/ | |
| 2911 | + q | |
| 2912 | + } | |
| 2913 | + /^X\/\(\/\/\)$/{ | |
| 2914 | + s//\1/ | |
| 2915 | + q | |
| 2916 | + } | |
| 2917 | + /^X\/\(\/\).*/{ | |
| 2918 | + s//\1/ | |
| 2919 | + q | |
| 2920 | + } | |
| 2921 | + s/.*/./; q'` | |
| 2922 | + | |
| 2923 | +# CDPATH. | |
| 2924 | +$as_unset CDPATH | |
| 2925 | + | |
| 48 | 2926 | |
| 49 | -PKGMODULES=$gtkmodules | |
| 50 | -$PKGCONFIG --modversion $libgnome > /dev/null 2>&1 | |
| 51 | -if [ "$?" == "0" ]; then | |
| 52 | - EnableGnome=1 | |
| 53 | - PKGMODULES="$PKGMODULES $libgnome" | |
| 2927 | + | |
| 2928 | + as_lineno_1=$LINENO | |
| 2929 | + as_lineno_2=$LINENO | |
| 2930 | + test "x$as_lineno_1" != "x$as_lineno_2" && | |
| 2931 | + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
| 2932 | + | |
| 2933 | + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
| 2934 | + # uniformly replaced by the line number. The first 'sed' inserts a | |
| 2935 | + # line-number line after each line using $LINENO; the second 'sed' | |
| 2936 | + # does the real work. The second script uses 'N' to pair each | |
| 2937 | + # line-number line with the line containing $LINENO, and appends | |
| 2938 | + # trailing '-' during substitution so that $LINENO is not a special | |
| 2939 | + # case at line end. | |
| 2940 | + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
| 2941 | + # scripts with optimization help from Paolo Bonzini. Blame Lee | |
| 2942 | + # E. McMahon (1931-1989) for sed's syntax. :-) | |
| 2943 | + sed -n ' | |
| 2944 | + p | |
| 2945 | + /[$]LINENO/= | |
| 2946 | + ' <$as_myself | | |
| 2947 | + sed ' | |
| 2948 | + s/[$]LINENO.*/&-/ | |
| 2949 | + t lineno | |
| 2950 | + b | |
| 2951 | + :lineno | |
| 2952 | + N | |
| 2953 | + :loop | |
| 2954 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
| 2955 | + t loop | |
| 2956 | + s/-\n.*// | |
| 2957 | + ' >$as_me.lineno && | |
| 2958 | + chmod +x "$as_me.lineno" || | |
| 2959 | + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
| 2960 | + { (exit 1); exit 1; }; } | |
| 2961 | + | |
| 2962 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
| 2963 | + # (the dirname of $[0] is not the place where we might find the | |
| 2964 | + # original and so on. Autoconf is especially sensitive to this). | |
| 2965 | + . "./$as_me.lineno" | |
| 2966 | + # Exit status is that of the last command. | |
| 2967 | + exit | |
| 2968 | +} | |
| 2969 | + | |
| 2970 | + | |
| 2971 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
| 2972 | + as_dirname=dirname | |
| 2973 | +else | |
| 2974 | + as_dirname=false | |
| 2975 | +fi | |
| 2976 | + | |
| 2977 | +ECHO_C= ECHO_N= ECHO_T= | |
| 2978 | +case `echo -n x` in | |
| 2979 | +-n*) | |
| 2980 | + case `echo 'x\c'` in | |
| 2981 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
| 2982 | + *) ECHO_C='\c';; | |
| 2983 | + esac;; | |
| 2984 | +*) | |
| 2985 | + ECHO_N='-n';; | |
| 2986 | +esac | |
| 2987 | + | |
| 2988 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 2989 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 2990 | + as_expr=expr | |
| 2991 | +else | |
| 2992 | + as_expr=false | |
| 2993 | +fi | |
| 2994 | + | |
| 2995 | +rm -f conf$$ conf$$.exe conf$$.file | |
| 2996 | +if test -d conf$$.dir; then | |
| 2997 | + rm -f conf$$.dir/conf$$.file | |
| 2998 | +else | |
| 2999 | + rm -f conf$$.dir | |
| 3000 | + mkdir conf$$.dir | |
| 3001 | +fi | |
| 3002 | +echo >conf$$.file | |
| 3003 | +if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 3004 | + as_ln_s='ln -s' | |
| 3005 | + # ... but there are two gotchas: | |
| 3006 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
| 3007 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
| 3008 | + # In both cases, we have to default to `cp -p'. | |
| 3009 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
| 3010 | + as_ln_s='cp -p' | |
| 3011 | +elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 3012 | + as_ln_s=ln | |
| 3013 | +else | |
| 3014 | + as_ln_s='cp -p' | |
| 3015 | +fi | |
| 3016 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
| 3017 | +rmdir conf$$.dir 2>/dev/null | |
| 3018 | + | |
| 3019 | +if mkdir -p . 2>/dev/null; then | |
| 3020 | + as_mkdir_p=: | |
| 3021 | +else | |
| 3022 | + test -d ./-p && rmdir ./-p | |
| 3023 | + as_mkdir_p=false | |
| 3024 | +fi | |
| 3025 | + | |
| 3026 | +# Find out whether ``test -x'' works. Don't use a zero-byte file, as | |
| 3027 | +# systems may use methods other than mode bits to determine executability. | |
| 3028 | +cat >conf$$.file <<_ASEOF | |
| 3029 | +#! /bin/sh | |
| 3030 | +exit 0 | |
| 3031 | +_ASEOF | |
| 3032 | +chmod +x conf$$.file | |
| 3033 | +if test -x conf$$.file >/dev/null 2>&1; then | |
| 3034 | + as_executable_p="test -x" | |
| 54 | 3035 | else |
| 55 | - EnableGnome=0 | |
| 3036 | + as_executable_p=: | |
| 3037 | +fi | |
| 3038 | +rm -f conf$$.file | |
| 3039 | + | |
| 3040 | +# Sed expression to map a string onto a valid CPP name. | |
| 3041 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
| 3042 | + | |
| 3043 | +# Sed expression to map a string onto a valid variable name. | |
| 3044 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
| 3045 | + | |
| 3046 | + | |
| 3047 | +exec 6>&1 | |
| 3048 | + | |
| 3049 | +# Save the log message, to keep $[0] and so on meaningful, and to | |
| 3050 | +# report actual input values of CONFIG_FILES etc. instead of their | |
| 3051 | +# values after options handling. | |
| 3052 | +ac_log=" | |
| 3053 | +This file was extended by g3270 $as_me 3.3.4, which was | |
| 3054 | +generated by GNU Autoconf 2.60. Invocation command line was | |
| 3055 | + | |
| 3056 | + CONFIG_FILES = $CONFIG_FILES | |
| 3057 | + CONFIG_HEADERS = $CONFIG_HEADERS | |
| 3058 | + CONFIG_LINKS = $CONFIG_LINKS | |
| 3059 | + CONFIG_COMMANDS = $CONFIG_COMMANDS | |
| 3060 | + $ $0 $@ | |
| 3061 | + | |
| 3062 | +on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 3063 | +" | |
| 3064 | + | |
| 3065 | +_ACEOF | |
| 3066 | + | |
| 3067 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3068 | +# Files that config.status was made for. | |
| 3069 | +config_files="$ac_config_files" | |
| 3070 | +config_headers="$ac_config_headers" | |
| 3071 | + | |
| 3072 | +_ACEOF | |
| 3073 | + | |
| 3074 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 3075 | +ac_cs_usage="\ | |
| 3076 | +\`$as_me' instantiates files from templates according to the | |
| 3077 | +current configuration. | |
| 3078 | + | |
| 3079 | +Usage: $0 [OPTIONS] [FILE]... | |
| 3080 | + | |
| 3081 | + -h, --help print this help, then exit | |
| 3082 | + -V, --version print version number, then exit | |
| 3083 | + -q, --quiet do not print progress messages | |
| 3084 | + -d, --debug don't remove temporary files | |
| 3085 | + --recheck update $as_me by reconfiguring in the same conditions | |
| 3086 | + --file=FILE[:TEMPLATE] | |
| 3087 | + instantiate the configuration file FILE | |
| 3088 | + --header=FILE[:TEMPLATE] | |
| 3089 | + instantiate the configuration header FILE | |
| 3090 | + | |
| 3091 | +Configuration files: | |
| 3092 | +$config_files | |
| 3093 | + | |
| 3094 | +Configuration headers: | |
| 3095 | +$config_headers | |
| 3096 | + | |
| 3097 | +Report bugs to <bug-autoconf@gnu.org>." | |
| 3098 | + | |
| 3099 | +_ACEOF | |
| 3100 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3101 | +ac_cs_version="\\ | |
| 3102 | +g3270 config.status 3.3.4 | |
| 3103 | +configured by $0, generated by GNU Autoconf 2.60, | |
| 3104 | + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
| 3105 | + | |
| 3106 | +Copyright (C) 2006 Free Software Foundation, Inc. | |
| 3107 | +This config.status script is free software; the Free Software Foundation | |
| 3108 | +gives unlimited permission to copy, distribute and modify it." | |
| 3109 | + | |
| 3110 | +ac_pwd='$ac_pwd' | |
| 3111 | +srcdir='$srcdir' | |
| 3112 | +_ACEOF | |
| 3113 | + | |
| 3114 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 3115 | +# If no file are specified by the user, then we need to provide default | |
| 3116 | +# value. By we need to know if files were specified by the user. | |
| 3117 | +ac_need_defaults=: | |
| 3118 | +while test $# != 0 | |
| 3119 | +do | |
| 3120 | + case $1 in | |
| 3121 | + --*=*) | |
| 3122 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
| 3123 | + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
| 3124 | + ac_shift=: | |
| 3125 | + ;; | |
| 3126 | + *) | |
| 3127 | + ac_option=$1 | |
| 3128 | + ac_optarg=$2 | |
| 3129 | + ac_shift=shift | |
| 3130 | + ;; | |
| 3131 | + esac | |
| 3132 | + | |
| 3133 | + case $ac_option in | |
| 3134 | + # Handling of the options. | |
| 3135 | + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
| 3136 | + ac_cs_recheck=: ;; | |
| 3137 | + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
| 3138 | + echo "$ac_cs_version"; exit ;; | |
| 3139 | + --debug | --debu | --deb | --de | --d | -d ) | |
| 3140 | + debug=: ;; | |
| 3141 | + --file | --fil | --fi | --f ) | |
| 3142 | + $ac_shift | |
| 3143 | + CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
| 3144 | + ac_need_defaults=false;; | |
| 3145 | + --header | --heade | --head | --hea ) | |
| 3146 | + $ac_shift | |
| 3147 | + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
| 3148 | + ac_need_defaults=false;; | |
| 3149 | + --he | --h) | |
| 3150 | + # Conflict between --help and --header | |
| 3151 | + { echo "$as_me: error: ambiguous option: $1 | |
| 3152 | +Try \`$0 --help' for more information." >&2 | |
| 3153 | + { (exit 1); exit 1; }; };; | |
| 3154 | + --help | --hel | -h ) | |
| 3155 | + echo "$ac_cs_usage"; exit ;; | |
| 3156 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 3157 | + | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
| 3158 | + ac_cs_silent=: ;; | |
| 3159 | + | |
| 3160 | + # This is an error. | |
| 3161 | + -*) { echo "$as_me: error: unrecognized option: $1 | |
| 3162 | +Try \`$0 --help' for more information." >&2 | |
| 3163 | + { (exit 1); exit 1; }; } ;; | |
| 3164 | + | |
| 3165 | + *) ac_config_targets="$ac_config_targets $1" | |
| 3166 | + ac_need_defaults=false ;; | |
| 3167 | + | |
| 3168 | + esac | |
| 3169 | + shift | |
| 3170 | +done | |
| 3171 | + | |
| 3172 | +ac_configure_extra_args= | |
| 3173 | + | |
| 3174 | +if $ac_cs_silent; then | |
| 3175 | + exec 6>/dev/null | |
| 3176 | + ac_configure_extra_args="$ac_configure_extra_args --silent" | |
| 3177 | +fi | |
| 3178 | + | |
| 3179 | +_ACEOF | |
| 3180 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3181 | +if \$ac_cs_recheck; then | |
| 3182 | + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
| 3183 | + CONFIG_SHELL=$SHELL | |
| 3184 | + export CONFIG_SHELL | |
| 3185 | + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
| 56 | 3186 | fi |
| 57 | 3187 | |
| 58 | -#--[ Configuration for Makefile ]----------------------------------------------- | |
| 3188 | +_ACEOF | |
| 3189 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 3190 | +exec 5>>config.log | |
| 3191 | +{ | |
| 3192 | + echo | |
| 3193 | + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
| 3194 | +## Running $as_me. ## | |
| 3195 | +_ASBOX | |
| 3196 | + echo "$ac_log" | |
| 3197 | +} >&5 | |
| 3198 | + | |
| 3199 | +_ACEOF | |
| 3200 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3201 | +_ACEOF | |
| 59 | 3202 | |
| 60 | -cd $MyDir | |
| 3203 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 61 | 3204 | |
| 3205 | +# Handling of arguments. | |
| 3206 | +for ac_config_target in $ac_config_targets | |
| 3207 | +do | |
| 3208 | + case $ac_config_target in | |
| 3209 | + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
| 3210 | + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
| 3211 | + "$pr3mf") CONFIG_FILES="$CONFIG_FILES $pr3mf" ;; | |
| 62 | 3212 | |
| 63 | -CONFIG_FILE=Makefile | |
| 64 | -rm -f $CONFIG_FILE | |
| 3213 | + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
| 3214 | +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
| 3215 | + { (exit 1); exit 1; }; };; | |
| 3216 | + esac | |
| 3217 | +done | |
| 65 | 3218 | |
| 66 | -echo PROJECT_NAME=$name >> $CONFIG_FILE | |
| 67 | -echo OS=linux >> $CONFIG_FILE | |
| 68 | -echo BUILD=\`date +%G%m%d%H%M\` >> $CONFIG_FILE | |
| 69 | -echo OBJEXT=o >> $CONFIG_FILE | |
| 70 | -echo CC=gcc >> $CONFIG_FILE | |
| 71 | -echo LD=gcc >> $CONFIG_FILE | |
| 72 | -echo LIBDIR=$libdir >> $CONFIG_FILE | |
| 73 | -echo BINDIR=$bindir >> $CONFIG_FILE | |
| 74 | -echo DATADIR=$datadir >> $CONFIG_FILE | |
| 75 | -echo INSTALL=install >> $CONFIG_FILE | |
| 76 | 3219 | |
| 77 | -if [ -n "$debug" ]; then | |
| 78 | - echo ifndef DEBUG >> $CONFIG_FILE | |
| 79 | - echo DEBUG=$debug >> $CONFIG_FILE | |
| 80 | - echo endif >> $CONFIG_FILE | |
| 3220 | +# If the user did not use the arguments to specify the items to instantiate, | |
| 3221 | +# then the envvar interface is used. Set only those that are not. | |
| 3222 | +# We use the long form for the default assignment because of an extremely | |
| 3223 | +# bizarre bug on SunOS 4.1.3. | |
| 3224 | +if $ac_need_defaults; then | |
| 3225 | + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
| 3226 | + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
| 81 | 3227 | fi |
| 82 | 3228 | |
| 83 | -echo CFLAGS= -c -DEAPI -Wall -fPIC \`$PKGCONFIG --cflags $PKGMODULES\` \ | |
| 84 | - -DGTK=2 -DBUILD=\\\"\$\(BUILD\)\\\" >> $CONFIG_FILE | |
| 3229 | +# Have a temporary directory for convenience. Make it in the build tree | |
| 3230 | +# simply because there is no reason against having it here, and in addition, | |
| 3231 | +# creating and moving files from /tmp can sometimes cause problems. | |
| 3232 | +# Hook for its removal unless debugging. | |
| 3233 | +# Note that there is a small window in which the directory will not be cleaned: | |
| 3234 | +# after its creation but before its name has been assigned to `$tmp'. | |
| 3235 | +$debug || | |
| 3236 | +{ | |
| 3237 | + tmp= | |
| 3238 | + trap 'exit_status=$? | |
| 3239 | + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
| 3240 | +' 0 | |
| 3241 | + trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
| 3242 | +} | |
| 3243 | +# Create a (secure) tmp directory for tmp files. | |
| 3244 | + | |
| 3245 | +{ | |
| 3246 | + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
| 3247 | + test -n "$tmp" && test -d "$tmp" | |
| 3248 | +} || | |
| 3249 | +{ | |
| 3250 | + tmp=./conf$$-$RANDOM | |
| 3251 | + (umask 077 && mkdir "$tmp") | |
| 3252 | +} || | |
| 3253 | +{ | |
| 3254 | + echo "$me: cannot create a temporary directory in ." >&2 | |
| 3255 | + { (exit 1); exit 1; } | |
| 3256 | +} | |
| 3257 | + | |
| 3258 | +# | |
| 3259 | +# Set up the sed scripts for CONFIG_FILES section. | |
| 3260 | +# | |
| 85 | 3261 | |
| 86 | -echo LFLAGS=\`$PKGCONFIG --libs $PKGMODULES\` >> $CONFIG_FILE | |
| 3262 | +# No need to generate the scripts if there are no CONFIG_FILES. | |
| 3263 | +# This happens for instance when ./config.status config.h | |
| 3264 | +if test -n "$CONFIG_FILES"; then | |
| 87 | 3265 | |
| 88 | -cat src/Makefile.linux >> $CONFIG_FILE | |
| 3266 | +_ACEOF | |
| 89 | 3267 | |
| 90 | -#--[ Configuration for C/C++ Code ]--------------------------------------------- | |
| 91 | 3268 | |
| 92 | -CONFIG_FILE=src/config.h | |
| 93 | -rm -f $CONFIG_FILE | |
| 94 | 3269 | |
| 95 | -echo "#ifndef CONFIG_H_INCLUDED" >> $CONFIG_FILE | |
| 96 | -echo " #define CONFIG_H_INCLUDED 1" >> $CONFIG_FILE | |
| 97 | -echo " #define PROJECT_NAME \"$name\"" >> $CONFIG_FILE | |
| 98 | -echo " #define PROJECT_VERSION \"$version\"" >> $CONFIG_FILE | |
| 99 | -echo " #define DATADIR \"$datadir/$name\"" >> $CONFIG_FILE | |
| 100 | -echo " #define ENABLE_THREADS \"$threads\"" >> $CONFIG_FILE | |
| 101 | -echo " #define LOCALEDIR \"$datadir/locale\"" >> $CONFIG_FILE | |
| 102 | -if [ "$EnableGnome" != "0" ]; then | |
| 103 | - echo " #define USE_GNOME \"`$PKGCONFIG --modversion $libgnome`\"" >> $CONFIG_FILE | |
| 3270 | +ac_delim='%!_!# ' | |
| 3271 | +for ac_last_try in false false false false false :; do | |
| 3272 | + cat >conf$$subs.sed <<_ACEOF | |
| 3273 | +SHELL!$SHELL$ac_delim | |
| 3274 | +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
| 3275 | +PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
| 3276 | +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
| 3277 | +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
| 3278 | +PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
| 3279 | +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
| 3280 | +exec_prefix!$exec_prefix$ac_delim | |
| 3281 | +prefix!$prefix$ac_delim | |
| 3282 | +program_transform_name!$program_transform_name$ac_delim | |
| 3283 | +bindir!$bindir$ac_delim | |
| 3284 | +sbindir!$sbindir$ac_delim | |
| 3285 | +libexecdir!$libexecdir$ac_delim | |
| 3286 | +datarootdir!$datarootdir$ac_delim | |
| 3287 | +datadir!$datadir$ac_delim | |
| 3288 | +sysconfdir!$sysconfdir$ac_delim | |
| 3289 | +sharedstatedir!$sharedstatedir$ac_delim | |
| 3290 | +localstatedir!$localstatedir$ac_delim | |
| 3291 | +includedir!$includedir$ac_delim | |
| 3292 | +oldincludedir!$oldincludedir$ac_delim | |
| 3293 | +docdir!$docdir$ac_delim | |
| 3294 | +infodir!$infodir$ac_delim | |
| 3295 | +htmldir!$htmldir$ac_delim | |
| 3296 | +dvidir!$dvidir$ac_delim | |
| 3297 | +pdfdir!$pdfdir$ac_delim | |
| 3298 | +psdir!$psdir$ac_delim | |
| 3299 | +libdir!$libdir$ac_delim | |
| 3300 | +localedir!$localedir$ac_delim | |
| 3301 | +mandir!$mandir$ac_delim | |
| 3302 | +DEFS!$DEFS$ac_delim | |
| 3303 | +ECHO_C!$ECHO_C$ac_delim | |
| 3304 | +ECHO_N!$ECHO_N$ac_delim | |
| 3305 | +ECHO_T!$ECHO_T$ac_delim | |
| 3306 | +LIBS!$LIBS$ac_delim | |
| 3307 | +build_alias!$build_alias$ac_delim | |
| 3308 | +host_alias!$host_alias$ac_delim | |
| 3309 | +target_alias!$target_alias$ac_delim | |
| 3310 | +CC!$CC$ac_delim | |
| 3311 | +CFLAGS!$CFLAGS$ac_delim | |
| 3312 | +LDFLAGS!$LDFLAGS$ac_delim | |
| 3313 | +CPPFLAGS!$CPPFLAGS$ac_delim | |
| 3314 | +ac_ct_CC!$ac_ct_CC$ac_delim | |
| 3315 | +EXEEXT!$EXEEXT$ac_delim | |
| 3316 | +OBJEXT!$OBJEXT$ac_delim | |
| 3317 | +PKGCONFIG!$PKGCONFIG$ac_delim | |
| 3318 | +LIBOBJS!$LIBOBJS$ac_delim | |
| 3319 | +LTLIBOBJS!$LTLIBOBJS$ac_delim | |
| 3320 | +_ACEOF | |
| 3321 | + | |
| 3322 | + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then | |
| 3323 | + break | |
| 3324 | + elif $ac_last_try; then | |
| 3325 | + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
| 3326 | +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
| 3327 | + { (exit 1); exit 1; }; } | |
| 3328 | + else | |
| 3329 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
| 3330 | + fi | |
| 3331 | +done | |
| 3332 | + | |
| 3333 | +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
| 3334 | +if test -n "$ac_eof"; then | |
| 3335 | + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
| 3336 | + ac_eof=`expr $ac_eof + 1` | |
| 3337 | +fi | |
| 3338 | + | |
| 3339 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3340 | +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
| 3341 | +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
| 3342 | +_ACEOF | |
| 3343 | +sed ' | |
| 3344 | +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
| 3345 | +s/^/s,@/; s/!/@,|#_!!_#|/ | |
| 3346 | +:n | |
| 3347 | +t n | |
| 3348 | +s/'"$ac_delim"'$/,g/; t | |
| 3349 | +s/$/\\/; p | |
| 3350 | +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
| 3351 | +' >>$CONFIG_STATUS <conf$$subs.sed | |
| 3352 | +rm -f conf$$subs.sed | |
| 3353 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3354 | +:end | |
| 3355 | +s/|#_!!_#|//g | |
| 3356 | +CEOF$ac_eof | |
| 3357 | +_ACEOF | |
| 3358 | + | |
| 3359 | + | |
| 3360 | +# VPATH may cause trouble with some makes, so we remove $(srcdir), | |
| 3361 | +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
| 3362 | +# trailing colons and then remove the whole line if VPATH becomes empty | |
| 3363 | +# (actually we leave an empty line to preserve line numbers). | |
| 3364 | +if test "x$srcdir" = x.; then | |
| 3365 | + ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
| 3366 | +s/:*\$(srcdir):*/:/ | |
| 3367 | +s/:*\${srcdir}:*/:/ | |
| 3368 | +s/:*@srcdir@:*/:/ | |
| 3369 | +s/^\([^=]*=[ ]*\):*/\1/ | |
| 3370 | +s/:*$// | |
| 3371 | +s/^[^=]*=[ ]*$// | |
| 3372 | +}' | |
| 104 | 3373 | fi |
| 105 | -echo "#endif" >> $CONFIG_FILE | |
| 106 | 3374 | |
| 107 | -#--[ Finalize ]----------------------------------------------------------------- | |
| 3375 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 3376 | +fi # test -n "$CONFIG_FILES" | |
| 3377 | + | |
| 108 | 3378 | |
| 109 | -echo $name version $version Configured | |
| 3379 | +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
| 3380 | +do | |
| 3381 | + case $ac_tag in | |
| 3382 | + :[FHLC]) ac_mode=$ac_tag; continue;; | |
| 3383 | + esac | |
| 3384 | + case $ac_mode$ac_tag in | |
| 3385 | + :[FHL]*:*);; | |
| 3386 | + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
| 3387 | +echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
| 3388 | + { (exit 1); exit 1; }; };; | |
| 3389 | + :[FH]-) ac_tag=-:-;; | |
| 3390 | + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
| 3391 | + esac | |
| 3392 | + ac_save_IFS=$IFS | |
| 3393 | + IFS=: | |
| 3394 | + set x $ac_tag | |
| 3395 | + IFS=$ac_save_IFS | |
| 3396 | + shift | |
| 3397 | + ac_file=$1 | |
| 3398 | + shift | |
| 3399 | + | |
| 3400 | + case $ac_mode in | |
| 3401 | + :L) ac_source=$1;; | |
| 3402 | + :[FH]) | |
| 3403 | + ac_file_inputs= | |
| 3404 | + for ac_f | |
| 3405 | + do | |
| 3406 | + case $ac_f in | |
| 3407 | + -) ac_f="$tmp/stdin";; | |
| 3408 | + *) # Look for the file first in the build tree, then in the source tree | |
| 3409 | + # (if the path is not absolute). The absolute path cannot be DOS-style, | |
| 3410 | + # because $ac_f cannot contain `:'. | |
| 3411 | + test -f "$ac_f" || | |
| 3412 | + case $ac_f in | |
| 3413 | + [\\/$]*) false;; | |
| 3414 | + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
| 3415 | + esac || | |
| 3416 | + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
| 3417 | +echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
| 3418 | + { (exit 1); exit 1; }; };; | |
| 3419 | + esac | |
| 3420 | + ac_file_inputs="$ac_file_inputs $ac_f" | |
| 3421 | + done | |
| 3422 | + | |
| 3423 | + # Let's still pretend it is `configure' which instantiates (i.e., don't | |
| 3424 | + # use $as_me), people would be surprised to read: | |
| 3425 | + # /* config.h. Generated by config.status. */ | |
| 3426 | + configure_input="Generated from "`IFS=: | |
| 3427 | + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
| 3428 | + if test x"$ac_file" != x-; then | |
| 3429 | + configure_input="$ac_file. $configure_input" | |
| 3430 | + { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
| 3431 | +echo "$as_me: creating $ac_file" >&6;} | |
| 3432 | + fi | |
| 3433 | + | |
| 3434 | + case $ac_tag in | |
| 3435 | + *:-:* | *:-) cat >"$tmp/stdin";; | |
| 3436 | + esac | |
| 3437 | + ;; | |
| 3438 | + esac | |
| 3439 | + | |
| 3440 | + ac_dir=`$as_dirname -- "$ac_file" || | |
| 3441 | +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 3442 | + X"$ac_file" : 'X\(//\)[^/]' \| \ | |
| 3443 | + X"$ac_file" : 'X\(//\)$' \| \ | |
| 3444 | + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
| 3445 | +echo X"$ac_file" | | |
| 3446 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 3447 | + s//\1/ | |
| 3448 | + q | |
| 3449 | + } | |
| 3450 | + /^X\(\/\/\)[^/].*/{ | |
| 3451 | + s//\1/ | |
| 3452 | + q | |
| 3453 | + } | |
| 3454 | + /^X\(\/\/\)$/{ | |
| 3455 | + s//\1/ | |
| 3456 | + q | |
| 3457 | + } | |
| 3458 | + /^X\(\/\).*/{ | |
| 3459 | + s//\1/ | |
| 3460 | + q | |
| 3461 | + } | |
| 3462 | + s/.*/./; q'` | |
| 3463 | + { as_dir="$ac_dir" | |
| 3464 | + case $as_dir in #( | |
| 3465 | + -*) as_dir=./$as_dir;; | |
| 3466 | + esac | |
| 3467 | + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
| 3468 | + as_dirs= | |
| 3469 | + while :; do | |
| 3470 | + case $as_dir in #( | |
| 3471 | + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
| 3472 | + *) as_qdir=$as_dir;; | |
| 3473 | + esac | |
| 3474 | + as_dirs="'$as_qdir' $as_dirs" | |
| 3475 | + as_dir=`$as_dirname -- "$as_dir" || | |
| 3476 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 3477 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
| 3478 | + X"$as_dir" : 'X\(//\)$' \| \ | |
| 3479 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
| 3480 | +echo X"$as_dir" | | |
| 3481 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 3482 | + s//\1/ | |
| 3483 | + q | |
| 3484 | + } | |
| 3485 | + /^X\(\/\/\)[^/].*/{ | |
| 3486 | + s//\1/ | |
| 3487 | + q | |
| 3488 | + } | |
| 3489 | + /^X\(\/\/\)$/{ | |
| 3490 | + s//\1/ | |
| 3491 | + q | |
| 3492 | + } | |
| 3493 | + /^X\(\/\).*/{ | |
| 3494 | + s//\1/ | |
| 3495 | + q | |
| 3496 | + } | |
| 3497 | + s/.*/./; q'` | |
| 3498 | + test -d "$as_dir" && break | |
| 3499 | + done | |
| 3500 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
| 3501 | + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
| 3502 | +echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
| 3503 | + { (exit 1); exit 1; }; }; } | |
| 3504 | + ac_builddir=. | |
| 3505 | + | |
| 3506 | +case "$ac_dir" in | |
| 3507 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 3508 | +*) | |
| 3509 | + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
| 3510 | + # A ".." for each directory in $ac_dir_suffix. | |
| 3511 | + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
| 3512 | + case $ac_top_builddir_sub in | |
| 3513 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 3514 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
| 3515 | + esac ;; | |
| 3516 | +esac | |
| 3517 | +ac_abs_top_builddir=$ac_pwd | |
| 3518 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
| 3519 | +# for backward compatibility: | |
| 3520 | +ac_top_builddir=$ac_top_build_prefix | |
| 3521 | + | |
| 3522 | +case $srcdir in | |
| 3523 | + .) # We are building in place. | |
| 3524 | + ac_srcdir=. | |
| 3525 | + ac_top_srcdir=$ac_top_builddir_sub | |
| 3526 | + ac_abs_top_srcdir=$ac_pwd ;; | |
| 3527 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
| 3528 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
| 3529 | + ac_top_srcdir=$srcdir | |
| 3530 | + ac_abs_top_srcdir=$srcdir ;; | |
| 3531 | + *) # Relative name. | |
| 3532 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
| 3533 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
| 3534 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
| 3535 | +esac | |
| 3536 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + case $ac_mode in | |
| 3540 | + :F) | |
| 3541 | + # | |
| 3542 | + # CONFIG_FILE | |
| 3543 | + # | |
| 3544 | + | |
| 3545 | +_ACEOF | |
| 3546 | + | |
| 3547 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 3548 | +# If the template does not know about datarootdir, expand it. | |
| 3549 | +# FIXME: This hack should be removed a few years after 2.60. | |
| 3550 | +ac_datarootdir_hack=; ac_datarootdir_seen= | |
| 3551 | + | |
| 3552 | +case `sed -n '/datarootdir/ { | |
| 3553 | + p | |
| 3554 | + q | |
| 3555 | +} | |
| 3556 | +/@datadir@/p | |
| 3557 | +/@docdir@/p | |
| 3558 | +/@infodir@/p | |
| 3559 | +/@localedir@/p | |
| 3560 | +/@mandir@/p | |
| 3561 | +' $ac_file_inputs` in | |
| 3562 | +*datarootdir*) ac_datarootdir_seen=yes;; | |
| 3563 | +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
| 3564 | + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
| 3565 | +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
| 3566 | +_ACEOF | |
| 3567 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3568 | + ac_datarootdir_hack=' | |
| 3569 | + s&@datadir@&$datadir&g | |
| 3570 | + s&@docdir@&$docdir&g | |
| 3571 | + s&@infodir@&$infodir&g | |
| 3572 | + s&@localedir@&$localedir&g | |
| 3573 | + s&@mandir@&$mandir&g | |
| 3574 | + s&\\\${datarootdir}&$datarootdir&g' ;; | |
| 3575 | +esac | |
| 3576 | +_ACEOF | |
| 3577 | + | |
| 3578 | +# Neutralize VPATH when `$srcdir' = `.'. | |
| 3579 | +# Shell code in configure.ac might set extrasub. | |
| 3580 | +# FIXME: do we really want to maintain this feature? | |
| 3581 | +cat >>$CONFIG_STATUS <<_ACEOF | |
| 3582 | + sed "$ac_vpsub | |
| 3583 | +$extrasub | |
| 3584 | +_ACEOF | |
| 3585 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 3586 | +:t | |
| 3587 | +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
| 3588 | +s&@configure_input@&$configure_input&;t t | |
| 3589 | +s&@top_builddir@&$ac_top_builddir_sub&;t t | |
| 3590 | +s&@srcdir@&$ac_srcdir&;t t | |
| 3591 | +s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
| 3592 | +s&@top_srcdir@&$ac_top_srcdir&;t t | |
| 3593 | +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
| 3594 | +s&@builddir@&$ac_builddir&;t t | |
| 3595 | +s&@abs_builddir@&$ac_abs_builddir&;t t | |
| 3596 | +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
| 3597 | +$ac_datarootdir_hack | |
| 3598 | +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
| 3599 | + | |
| 3600 | +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
| 3601 | + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
| 3602 | + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
| 3603 | + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
| 3604 | +which seems to be undefined. Please make sure it is defined." >&5 | |
| 3605 | +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
| 3606 | +which seems to be undefined. Please make sure it is defined." >&2;} | |
| 3607 | + | |
| 3608 | + rm -f "$tmp/stdin" | |
| 3609 | + case $ac_file in | |
| 3610 | + -) cat "$tmp/out"; rm -f "$tmp/out";; | |
| 3611 | + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
| 3612 | + esac | |
| 3613 | + ;; | |
| 3614 | + :H) | |
| 3615 | + # | |
| 3616 | + # CONFIG_HEADER | |
| 3617 | + # | |
| 3618 | +_ACEOF | |
| 3619 | + | |
| 3620 | +# Transform confdefs.h into a sed script `conftest.defines', that | |
| 3621 | +# substitutes the proper values into config.h.in to produce config.h. | |
| 3622 | +rm -f conftest.defines conftest.tail | |
| 3623 | +# First, append a space to every undef/define line, to ease matching. | |
| 3624 | +echo 's/$/ /' >conftest.defines | |
| 3625 | +# Then, protect against being on the right side of a sed subst, or in | |
| 3626 | +# an unquoted here document, in config.status. If some macros were | |
| 3627 | +# called several times there might be several #defines for the same | |
| 3628 | +# symbol, which is useless. But do not sort them, since the last | |
| 3629 | +# AC_DEFINE must be honored. | |
| 3630 | +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
| 3631 | +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
| 3632 | +# NAME is the cpp macro being defined, VALUE is the value it is being given. | |
| 3633 | +# PARAMS is the parameter list in the macro definition--in most cases, it's | |
| 3634 | +# just an empty string. | |
| 3635 | +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
| 3636 | +ac_dB='\\)[ (].*,\\1define\\2' | |
| 3637 | +ac_dC=' ' | |
| 3638 | +ac_dD=' ,' | |
| 3639 | + | |
| 3640 | +uniq confdefs.h | | |
| 3641 | + sed -n ' | |
| 3642 | + t rset | |
| 3643 | + :rset | |
| 3644 | + s/^[ ]*#[ ]*define[ ][ ]*// | |
| 3645 | + t ok | |
| 3646 | + d | |
| 3647 | + :ok | |
| 3648 | + s/[\\&,]/\\&/g | |
| 3649 | + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
| 3650 | + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
| 3651 | + ' >>conftest.defines | |
| 3652 | + | |
| 3653 | +# Remove the space that was appended to ease matching. | |
| 3654 | +# Then replace #undef with comments. This is necessary, for | |
| 3655 | +# example, in the case of _POSIX_SOURCE, which is predefined and required | |
| 3656 | +# on some systems where configure will not decide to define it. | |
| 3657 | +# (The regexp can be short, since the line contains either #define or #undef.) | |
| 3658 | +echo 's/ $// | |
| 3659 | +s,^[ #]*u.*,/* & */,' >>conftest.defines | |
| 3660 | + | |
| 3661 | +# Break up conftest.defines: | |
| 3662 | +ac_max_sed_lines=50 | |
| 3663 | + | |
| 3664 | +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
| 3665 | +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
| 3666 | +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
| 3667 | +# et cetera. | |
| 3668 | +ac_in='$ac_file_inputs' | |
| 3669 | +ac_out='"$tmp/out1"' | |
| 3670 | +ac_nxt='"$tmp/out2"' | |
| 3671 | + | |
| 3672 | +while : | |
| 3673 | +do | |
| 3674 | + # Write a here document: | |
| 3675 | + cat >>$CONFIG_STATUS <<_ACEOF | |
| 3676 | + # First, check the format of the line: | |
| 3677 | + cat >"\$tmp/defines.sed" <<\\CEOF | |
| 3678 | +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
| 3679 | +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
| 3680 | +b | |
| 3681 | +:def | |
| 3682 | +_ACEOF | |
| 3683 | + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
| 3684 | + echo 'CEOF | |
| 3685 | + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
| 3686 | + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
| 3687 | + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
| 3688 | + grep . conftest.tail >/dev/null || break | |
| 3689 | + rm -f conftest.defines | |
| 3690 | + mv conftest.tail conftest.defines | |
| 3691 | +done | |
| 3692 | +rm -f conftest.defines conftest.tail | |
| 3693 | + | |
| 3694 | +echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
| 3695 | +cat >>$CONFIG_STATUS <<\_ACEOF | |
| 3696 | + if test x"$ac_file" != x-; then | |
| 3697 | + echo "/* $configure_input */" >"$tmp/config.h" | |
| 3698 | + cat "$ac_result" >>"$tmp/config.h" | |
| 3699 | + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
| 3700 | + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
| 3701 | +echo "$as_me: $ac_file is unchanged" >&6;} | |
| 3702 | + else | |
| 3703 | + rm -f $ac_file | |
| 3704 | + mv "$tmp/config.h" $ac_file | |
| 3705 | + fi | |
| 3706 | + else | |
| 3707 | + echo "/* $configure_input */" | |
| 3708 | + cat "$ac_result" | |
| 3709 | + fi | |
| 3710 | + rm -f "$tmp/out12" | |
| 3711 | + ;; | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + esac | |
| 3715 | + | |
| 3716 | +done # for ac_tag | |
| 3717 | + | |
| 3718 | + | |
| 3719 | +{ (exit 0); exit 0; } | |
| 3720 | +_ACEOF | |
| 3721 | +chmod +x $CONFIG_STATUS | |
| 3722 | +ac_clean_files=$ac_clean_files_save | |
| 3723 | + | |
| 3724 | + | |
| 3725 | +# configure is writing to config.log, and then calls config.status. | |
| 3726 | +# config.status does its own redirection, appending to config.log. | |
| 3727 | +# Unfortunately, on DOS this fails, as config.log is still kept open | |
| 3728 | +# by configure, so config.status won't be able to write to it; its | |
| 3729 | +# output is simply discarded. So we exec the FD to /dev/null, | |
| 3730 | +# effectively closing config.log, so it can be properly (re)opened and | |
| 3731 | +# appended to by config.status. When coming back to configure, we | |
| 3732 | +# need to make the FD available again. | |
| 3733 | +if test "$no_create" != yes; then | |
| 3734 | + ac_cs_success=: | |
| 3735 | + ac_config_status_args= | |
| 3736 | + test "$silent" = yes && | |
| 3737 | + ac_config_status_args="$ac_config_status_args --quiet" | |
| 3738 | + exec 5>/dev/null | |
| 3739 | + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
| 3740 | + exec 5>>config.log | |
| 3741 | + # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
| 3742 | + # would make configure fail if this is the last instruction. | |
| 3743 | + $ac_cs_success || { (exit 1); exit 1; } | |
| 3744 | +fi | |
| 110 | 3745 | ... | ... |
| ... | ... | @@ -0,0 +1,28 @@ |
| 1 | +dnl Copyright 2008 By Perry Werneck | |
| 2 | +dnl Permission to use, copy, modify, and distribute this software and its | |
| 3 | +dnl documentation for any purpose and without fee is hereby granted, | |
| 4 | +dnl provided that the above copyright notice appear in all copies and that | |
| 5 | +dnl both that copyright notice and this permission notice appear in | |
| 6 | +dnl supporting documentation. | |
| 7 | +dnl | |
| 8 | +dnl MusicCenter is distributed in the hope that it will be useful, but WITHOUT ANY | |
| 9 | +dnl WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 10 | +dnl FOR A PARTICULAR PURPOSE. See the file LICENSE for more details. | |
| 11 | +dnl | |
| 12 | +dnl http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_toc.html | |
| 13 | +dnl | |
| 14 | + | |
| 15 | + | |
| 16 | +dnl Process this file with autoconf to produce a configure script. | |
| 17 | +AC_INIT(g3270,3.3.4) | |
| 18 | + | |
| 19 | +AC_PREREQ(2.50) | |
| 20 | +AC_CONFIG_HEADER(src/config.h) | |
| 21 | + | |
| 22 | +dnl Checks for programs. | |
| 23 | +AC_PROG_CC | |
| 24 | +AC_CHECK_PROG(PKGCONFIG, pkg-config, `which pkg-config`) | |
| 25 | + | |
| 26 | + | |
| 27 | +dnl Generate the Makefile. | |
| 28 | +AC_OUTPUT(Makefile $pr3mf) | ... | ... |