Annotation of embedaddon/libiconv/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.63.
4: #
5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6: # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
14: DUALCASE=1; export DUALCASE # for MKS sh
15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
18: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
21: setopt NO_GLOB_SUBST
22: else
23: case `(set -o) 2>/dev/null` in
24: *posix*) set -o posix ;;
25: esac
26:
27: fi
28:
29:
30:
31:
32: # PATH needs CR
33: # Avoid depending upon Character Ranges.
34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37: as_cr_digits='0123456789'
38: as_cr_alnum=$as_cr_Letters$as_cr_digits
39:
40: as_nl='
41: '
42: export as_nl
43: # Printing a long string crashes Solaris 7 /usr/bin/printf.
44: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81: # Support unset when possible.
82: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83: as_unset=unset
84: else
85: as_unset=false
86: fi
87:
88:
89: # IFS
90: # We need space, tab and new line, in precisely that order. Quoting is
91: # there to prevent editors from complaining about space-tab.
92: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93: # splitting by setting IFS to empty value.)
94: IFS=" "" $as_nl"
95:
96: # Find who we are. Look in the path if we contain no directory separator.
97: case $0 in
98: *[\\/]* ) as_myself=$0 ;;
99: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100: for as_dir in $PATH
101: do
102: IFS=$as_save_IFS
103: test -z "$as_dir" && as_dir=.
104: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105: done
106: IFS=$as_save_IFS
107:
108: ;;
109: esac
110: # We did not find ourselves, most probably we were run as `sh COMMAND'
111: # in which case we are not to be found in the path.
112: if test "x$as_myself" = x; then
113: as_myself=$0
114: fi
115: if test ! -f "$as_myself"; then
116: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117: { (exit 1); exit 1; }
118: fi
119:
120: # Work around bugs in pre-3.0 UWIN ksh.
121: for as_var in ENV MAIL MAILPATH
122: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # Required to use basename.
135: if expr a : '\(a\)' >/dev/null 2>&1 &&
136: test "X`expr 00001 : '.*\(...\)'`" = X001; then
137: as_expr=expr
138: else
139: as_expr=false
140: fi
141:
142: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143: as_basename=basename
144: else
145: as_basename=false
146: fi
147:
148:
149: # Name of the executable.
150: as_me=`$as_basename -- "$0" ||
151: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152: X"$0" : 'X\(//\)$' \| \
153: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154: $as_echo X/"$0" |
155: sed '/^.*\/\([^/][^/]*\)\/*$/{
156: s//\1/
157: q
158: }
159: /^X\/\(\/\/\)$/{
160: s//\1/
161: q
162: }
163: /^X\/\(\/\).*/{
164: s//\1/
165: q
166: }
167: s/.*/./; q'`
168:
169: # CDPATH.
170: $as_unset CDPATH
171:
172:
173: if test "x$CONFIG_SHELL" = x; then
174: if (eval ":") 2>/dev/null; then
175: as_have_required=yes
176: else
177: as_have_required=no
178: fi
179:
180: if test $as_have_required = yes && (eval ":
181: (as_func_return () {
182: (exit \$1)
183: }
184: as_func_success () {
185: as_func_return 0
186: }
187: as_func_failure () {
188: as_func_return 1
189: }
190: as_func_ret_success () {
191: return 0
192: }
193: as_func_ret_failure () {
194: return 1
195: }
196:
197: exitcode=0
198: if as_func_success; then
199: :
200: else
201: exitcode=1
202: echo as_func_success failed.
203: fi
204:
205: if as_func_failure; then
206: exitcode=1
207: echo as_func_failure succeeded.
208: fi
209:
210: if as_func_ret_success; then
211: :
212: else
213: exitcode=1
214: echo as_func_ret_success failed.
215: fi
216:
217: if as_func_ret_failure; then
218: exitcode=1
219: echo as_func_ret_failure succeeded.
220: fi
221:
222: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223: :
224: else
225: exitcode=1
226: echo positional parameters were not saved.
227: fi
228:
229: test \$exitcode = 0) || { (exit 1); exit 1; }
230:
231: (
232: as_lineno_1=\$LINENO
233: as_lineno_2=\$LINENO
234: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236: ") 2> /dev/null; then
237: :
238: else
239: as_candidate_shells=
240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242: do
243: IFS=$as_save_IFS
244: test -z "$as_dir" && as_dir=.
245: case $as_dir in
246: /*)
247: for as_base in sh bash ksh sh5; do
248: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249: done;;
250: esac
251: done
252: IFS=$as_save_IFS
253:
254:
255: for as_shell in $as_candidate_shells $SHELL; do
256: # Try only shells that exist, to save several forks.
257: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258: { ("$as_shell") 2> /dev/null <<\_ASEOF
259: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260: emulate sh
261: NULLCMD=:
262: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263: # is contrary to our usage. Disable this feature.
264: alias -g '${1+"$@"}'='"$@"'
265: setopt NO_GLOB_SUBST
266: else
267: case `(set -o) 2>/dev/null` in
268: *posix*) set -o posix ;;
269: esac
270:
271: fi
272:
273:
274: :
275: _ASEOF
276: }; then
277: CONFIG_SHELL=$as_shell
278: as_have_required=yes
279: if { "$as_shell" 2> /dev/null <<\_ASEOF
280: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281: emulate sh
282: NULLCMD=:
283: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284: # is contrary to our usage. Disable this feature.
285: alias -g '${1+"$@"}'='"$@"'
286: setopt NO_GLOB_SUBST
287: else
288: case `(set -o) 2>/dev/null` in
289: *posix*) set -o posix ;;
290: esac
291:
292: fi
293:
294:
295: :
296: (as_func_return () {
297: (exit $1)
298: }
299: as_func_success () {
300: as_func_return 0
301: }
302: as_func_failure () {
303: as_func_return 1
304: }
305: as_func_ret_success () {
306: return 0
307: }
308: as_func_ret_failure () {
309: return 1
310: }
311:
312: exitcode=0
313: if as_func_success; then
314: :
315: else
316: exitcode=1
317: echo as_func_success failed.
318: fi
319:
320: if as_func_failure; then
321: exitcode=1
322: echo as_func_failure succeeded.
323: fi
324:
325: if as_func_ret_success; then
326: :
327: else
328: exitcode=1
329: echo as_func_ret_success failed.
330: fi
331:
332: if as_func_ret_failure; then
333: exitcode=1
334: echo as_func_ret_failure succeeded.
335: fi
336:
337: if ( set x; as_func_ret_success y && test x = "$1" ); then
338: :
339: else
340: exitcode=1
341: echo positional parameters were not saved.
342: fi
343:
344: test $exitcode = 0) || { (exit 1); exit 1; }
345:
346: (
347: as_lineno_1=$LINENO
348: as_lineno_2=$LINENO
349: test "x$as_lineno_1" != "x$as_lineno_2" &&
350: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351:
352: _ASEOF
353: }; then
354: break
355: fi
356:
357: fi
358:
359: done
360:
361: if test "x$CONFIG_SHELL" != x; then
362: for as_var in BASH_ENV ENV
363: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364: done
365: export CONFIG_SHELL
366: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367: fi
368:
369:
370: if test $as_have_required = no; then
371: echo This script requires a shell more modern than all the
372: echo shells that I found on your system. Please install a
373: echo modern shell, or manually run the script under such a
374: echo shell if you do have one.
375: { (exit 1); exit 1; }
376: fi
377:
378:
379: fi
380:
381: fi
382:
383:
384:
385: (eval "as_func_return () {
386: (exit \$1)
387: }
388: as_func_success () {
389: as_func_return 0
390: }
391: as_func_failure () {
392: as_func_return 1
393: }
394: as_func_ret_success () {
395: return 0
396: }
397: as_func_ret_failure () {
398: return 1
399: }
400:
401: exitcode=0
402: if as_func_success; then
403: :
404: else
405: exitcode=1
406: echo as_func_success failed.
407: fi
408:
409: if as_func_failure; then
410: exitcode=1
411: echo as_func_failure succeeded.
412: fi
413:
414: if as_func_ret_success; then
415: :
416: else
417: exitcode=1
418: echo as_func_ret_success failed.
419: fi
420:
421: if as_func_ret_failure; then
422: exitcode=1
423: echo as_func_ret_failure succeeded.
424: fi
425:
426: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427: :
428: else
429: exitcode=1
430: echo positional parameters were not saved.
431: fi
432:
433: test \$exitcode = 0") || {
434: echo No shell found that supports shell functions.
435: echo Please tell bug-autoconf@gnu.org about your system,
436: echo including any error possibly output before this message.
437: echo This can help us improve future autoconf versions.
438: echo Configuration will now proceed without shell functions.
439: }
440:
441:
442:
443: as_lineno_1=$LINENO
444: as_lineno_2=$LINENO
445: test "x$as_lineno_1" != "x$as_lineno_2" &&
446: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447:
448: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449: # uniformly replaced by the line number. The first 'sed' inserts a
450: # line-number line after each line using $LINENO; the second 'sed'
451: # does the real work. The second script uses 'N' to pair each
452: # line-number line with the line containing $LINENO, and appends
453: # trailing '-' during substitution so that $LINENO is not a special
454: # case at line end.
455: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456: # scripts with optimization help from Paolo Bonzini. Blame Lee
457: # E. McMahon (1931-1989) for sed's syntax. :-)
458: sed -n '
459: p
460: /[$]LINENO/=
461: ' <$as_myself |
462: sed '
463: s/[$]LINENO.*/&-/
464: t lineno
465: b
466: :lineno
467: N
468: :loop
469: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470: t loop
471: s/-\n.*//
472: ' >$as_me.lineno &&
473: chmod +x "$as_me.lineno" ||
474: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475: { (exit 1); exit 1; }; }
476:
477: # Don't try to exec as it changes $[0], causing all sort of problems
478: # (the dirname of $[0] is not the place where we might find the
479: # original and so on. Autoconf is especially sensitive to this).
480: . "./$as_me.lineno"
481: # Exit status is that of the last command.
482: exit
483: }
484:
485:
486: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487: as_dirname=dirname
488: else
489: as_dirname=false
490: fi
491:
492: ECHO_C= ECHO_N= ECHO_T=
493: case `echo -n x` in
494: -n*)
495: case `echo 'x\c'` in
496: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497: *) ECHO_C='\c';;
498: esac;;
499: *)
500: ECHO_N='-n';;
501: esac
502: if expr a : '\(a\)' >/dev/null 2>&1 &&
503: test "X`expr 00001 : '.*\(...\)'`" = X001; then
504: as_expr=expr
505: else
506: as_expr=false
507: fi
508:
509: rm -f conf$$ conf$$.exe conf$$.file
510: if test -d conf$$.dir; then
511: rm -f conf$$.dir/conf$$.file
512: else
513: rm -f conf$$.dir
514: mkdir conf$$.dir 2>/dev/null
515: fi
516: if (echo >conf$$.file) 2>/dev/null; then
517: if ln -s conf$$.file conf$$ 2>/dev/null; then
518: as_ln_s='ln -s'
519: # ... but there are two gotchas:
520: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522: # In both cases, we have to default to `cp -p'.
523: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524: as_ln_s='cp -p'
525: elif ln conf$$.file conf$$ 2>/dev/null; then
526: as_ln_s=ln
527: else
528: as_ln_s='cp -p'
529: fi
530: else
531: as_ln_s='cp -p'
532: fi
533: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534: rmdir conf$$.dir 2>/dev/null
535:
536: if mkdir -p . 2>/dev/null; then
537: as_mkdir_p=:
538: else
539: test -d ./-p && rmdir ./-p
540: as_mkdir_p=false
541: fi
542:
543: if test -x / >/dev/null 2>&1; then
544: as_test_x='test -x'
545: else
546: if ls -dL / >/dev/null 2>&1; then
547: as_ls_L_option=L
548: else
549: as_ls_L_option=
550: fi
551: as_test_x='
552: eval sh -c '\''
553: if test -d "$1"; then
554: test -d "$1/.";
555: else
556: case $1 in
557: -*)set "./$1";;
558: esac;
559: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560: ???[sx]*):;;*)false;;esac;fi
561: '\'' sh
562: '
563: fi
564: as_executable_p=$as_test_x
565:
566: # Sed expression to map a string onto a valid CPP name.
567: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568:
569: # Sed expression to map a string onto a valid variable name.
570: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571:
572:
573:
574:
575: # Check that we are running under the correct shell.
576: SHELL=${CONFIG_SHELL-/bin/sh}
577:
578: case X$lt_ECHO in
579: X*--fallback-echo)
580: # Remove one level of quotation (which was required for Make).
581: ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582: ;;
583: esac
584:
585: ECHO=${lt_ECHO-echo}
586: if test "X$1" = X--no-reexec; then
587: # Discard the --no-reexec flag, and continue.
588: shift
589: elif test "X$1" = X--fallback-echo; then
590: # Avoid inline document here, it may be left over
591: :
592: elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593: # Yippee, $ECHO works!
594: :
595: else
596: # Restart under the correct shell.
597: exec $SHELL "$0" --no-reexec ${1+"$@"}
598: fi
599:
600: if test "X$1" = X--fallback-echo; then
601: # used as fallback echo
602: shift
603: cat <<_LT_EOF
604: $*
605: _LT_EOF
606: exit 0
607: fi
608:
609: # The HP-UX ksh and POSIX shell print the target directory to stdout
610: # if CDPATH is set.
611: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612:
613: if test -z "$lt_ECHO"; then
614: if test "X${echo_test_string+set}" != Xset; then
615: # find a string as large as possible, as long as the shell can cope with it
616: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618: if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619: { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620: then
621: break
622: fi
623: done
624: fi
625:
626: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628: test "X$echo_testing_string" = "X$echo_test_string"; then
629: :
630: else
631: # The Solaris, AIX, and Digital Unix default echo programs unquote
632: # backslashes. This makes it impossible to quote backslashes using
633: # echo "$something" | sed 's/\\/\\\\/g'
634: #
635: # So, first we look for a working echo in the user's PATH.
636:
637: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638: for dir in $PATH /usr/ucb; do
639: IFS="$lt_save_ifs"
640: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643: test "X$echo_testing_string" = "X$echo_test_string"; then
644: ECHO="$dir/echo"
645: break
646: fi
647: done
648: IFS="$lt_save_ifs"
649:
650: if test "X$ECHO" = Xecho; then
651: # We didn't find a better echo, so look for alternatives.
652: if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653: echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654: test "X$echo_testing_string" = "X$echo_test_string"; then
655: # This shell has a builtin print -r that does the trick.
656: ECHO='print -r'
657: elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658: test "X$CONFIG_SHELL" != X/bin/ksh; then
659: # If we have ksh, try running configure again with it.
660: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661: export ORIGINAL_CONFIG_SHELL
662: CONFIG_SHELL=/bin/ksh
663: export CONFIG_SHELL
664: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665: else
666: # Try using printf.
667: ECHO='printf %s\n'
668: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670: test "X$echo_testing_string" = "X$echo_test_string"; then
671: # Cool, printf works
672: :
673: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674: test "X$echo_testing_string" = 'X\t' &&
675: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676: test "X$echo_testing_string" = "X$echo_test_string"; then
677: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678: export CONFIG_SHELL
679: SHELL="$CONFIG_SHELL"
680: export SHELL
681: ECHO="$CONFIG_SHELL $0 --fallback-echo"
682: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683: test "X$echo_testing_string" = 'X\t' &&
684: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685: test "X$echo_testing_string" = "X$echo_test_string"; then
686: ECHO="$CONFIG_SHELL $0 --fallback-echo"
687: else
688: # maybe with a smaller string...
689: prev=:
690:
691: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692: if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693: then
694: break
695: fi
696: prev="$cmd"
697: done
698:
699: if test "$prev" != 'sed 50q "$0"'; then
700: echo_test_string=`eval $prev`
701: export echo_test_string
702: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703: else
704: # Oops. We lost completely, so just stick with echo.
705: ECHO=echo
706: fi
707: fi
708: fi
709: fi
710: fi
711: fi
712:
713: # Copy echo and quote the copy suitably for passing to libtool from
714: # the Makefile, instead of quoting the original, which is used later.
715: lt_ECHO=$ECHO
716: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717: lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718: fi
719:
720:
721:
722:
723: exec 7<&0 </dev/null 6>&1
724:
725: # Name of the host.
726: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727: # so uname gets run too.
728: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729:
730: #
731: # Initializations.
732: #
733: ac_default_prefix=/usr/local
734: ac_clean_files=
735: ac_config_libobj_dir=.
736: LIBOBJS=
737: cross_compiling=no
738: subdirs=
739: MFLAGS=
740: MAKEFLAGS=
741: SHELL=${CONFIG_SHELL-/bin/sh}
742:
743: # Identity of this package.
744: PACKAGE_NAME=
745: PACKAGE_TARNAME=
746: PACKAGE_VERSION=
747: PACKAGE_STRING=
748: PACKAGE_BUGREPORT=
749:
750: ac_unique_file="lib/iconv.c"
751: # Factoring default headers for most tests.
752: ac_includes_default="\
753: #include <stdio.h>
754: #ifdef HAVE_SYS_TYPES_H
755: # include <sys/types.h>
756: #endif
757: #ifdef HAVE_SYS_STAT_H
758: # include <sys/stat.h>
759: #endif
760: #ifdef STDC_HEADERS
761: # include <stdlib.h>
762: # include <stddef.h>
763: #else
764: # ifdef HAVE_STDLIB_H
765: # include <stdlib.h>
766: # endif
767: #endif
768: #ifdef HAVE_STRING_H
769: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770: # include <memory.h>
771: # endif
772: # include <string.h>
773: #endif
774: #ifdef HAVE_STRINGS_H
775: # include <strings.h>
776: #endif
777: #ifdef HAVE_INTTYPES_H
778: # include <inttypes.h>
779: #endif
780: #ifdef HAVE_STDINT_H
781: # include <stdint.h>
782: #endif
783: #ifdef HAVE_UNISTD_H
784: # include <unistd.h>
785: #endif"
786:
787: gt_needs=
788: ac_header_list=
789: ac_func_list=
790: enable_option_checking=no
791: ac_subst_vars='gltests_LTLIBOBJS
792: gltests_LIBOBJS
793: gl_LTLIBOBJS
794: gl_LIBOBJS
795: am__EXEEXT_FALSE
796: am__EXEEXT_TRUE
797: LTLIBOBJS
798: LIBOBJS
799: subdirs
800: DLL_VARIABLE
801: WOE32DLL
802: SRCLIBOBJS
803: LIBICRT_LTLIBDEPS
804: LIBICRT_LIBDEPS
805: NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
806: NEXT_WCHAR_H
807: HAVE_WCHAR_H
808: HAVE_WINT_T
809: WCHAR_H
810: REPLACE_WCWIDTH
811: REPLACE_WCSNRTOMBS
812: REPLACE_WCSRTOMBS
813: REPLACE_WCRTOMB
814: REPLACE_MBSNRTOWCS
815: REPLACE_MBSRTOWCS
816: REPLACE_MBRLEN
817: REPLACE_MBRTOWC
818: REPLACE_MBSINIT
819: REPLACE_WCTOB
820: REPLACE_BTOWC
821: REPLACE_MBSTATE_T
822: HAVE_DECL_WCWIDTH
823: HAVE_DECL_WCTOB
824: HAVE_WCSNRTOMBS
825: HAVE_WCSRTOMBS
826: HAVE_WCRTOMB
827: HAVE_MBSNRTOWCS
828: HAVE_MBSRTOWCS
829: HAVE_MBRLEN
830: HAVE_MBRTOWC
831: HAVE_MBSINIT
832: HAVE_BTOWC
833: GNULIB_WCWIDTH
834: GNULIB_WCSNRTOMBS
835: GNULIB_WCSRTOMBS
836: GNULIB_WCRTOMB
837: GNULIB_MBSNRTOWCS
838: GNULIB_MBSRTOWCS
839: GNULIB_MBRLEN
840: GNULIB_MBRTOWC
841: GNULIB_MBSINIT
842: GNULIB_WCTOB
843: GNULIB_BTOWC
844: HAVE_UNISTD_H
845: NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
846: NEXT_UNISTD_H
847: NEXT_AS_FIRST_DIRECTIVE_STRING_H
848: NEXT_STRING_H
849: HAVE_RANDOM_H
850: NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
851: NEXT_STDLIB_H
852: NEXT_AS_FIRST_DIRECTIVE_STDIO_H
853: NEXT_STDIO_H
854: STDINT_H
855: WINT_T_SUFFIX
856: WCHAR_T_SUFFIX
857: SIG_ATOMIC_T_SUFFIX
858: SIZE_T_SUFFIX
859: PTRDIFF_T_SUFFIX
860: HAVE_SIGNED_WINT_T
861: HAVE_SIGNED_WCHAR_T
862: HAVE_SIGNED_SIG_ATOMIC_T
863: BITSIZEOF_WINT_T
864: BITSIZEOF_WCHAR_T
865: BITSIZEOF_SIG_ATOMIC_T
866: BITSIZEOF_SIZE_T
867: BITSIZEOF_PTRDIFF_T
868: HAVE_SYS_BITYPES_H
869: HAVE_SYS_INTTYPES_H
870: HAVE_STDINT_H
871: NEXT_AS_FIRST_DIRECTIVE_STDINT_H
872: NEXT_STDINT_H
873: HAVE_SYS_TYPES_H
874: HAVE_INTTYPES_H
875: HAVE_UNSIGNED_LONG_LONG_INT
876: HAVE_LONG_LONG_INT
877: HAVE__BOOL
878: STDBOOL_H
879: REPLACE_PERROR
880: REPLACE_GETLINE
881: HAVE_DECL_GETLINE
882: HAVE_DECL_GETDELIM
883: REPLACE_FCLOSE
884: HAVE_DECL_FPURGE
885: REPLACE_FPURGE
886: REPLACE_FFLUSH
887: REPLACE_FTELL
888: REPLACE_FTELLO
889: HAVE_FTELLO
890: REPLACE_FSEEK
891: REPLACE_FSEEKO
892: HAVE_FSEEKO
893: REPLACE_FREOPEN
894: REPLACE_FOPEN
895: REPLACE_OBSTACK_PRINTF
896: HAVE_DECL_OBSTACK_PRINTF
897: REPLACE_VASPRINTF
898: HAVE_VASPRINTF
899: REPLACE_VDPRINTF
900: HAVE_VDPRINTF
901: REPLACE_DPRINTF
902: HAVE_DPRINTF
903: REPLACE_VSPRINTF
904: REPLACE_SPRINTF
905: HAVE_DECL_VSNPRINTF
906: REPLACE_VSNPRINTF
907: HAVE_DECL_SNPRINTF
908: REPLACE_SNPRINTF
909: REPLACE_VPRINTF
910: REPLACE_PRINTF
911: REPLACE_VFPRINTF
912: REPLACE_FPRINTF
913: REPLACE_STDIO_WRITE_FUNCS
914: GNULIB_STDIO_H_SIGPIPE
915: GNULIB_PERROR
916: GNULIB_GETLINE
917: GNULIB_GETDELIM
918: GNULIB_FWRITE
919: GNULIB_PUTS
920: GNULIB_FPUTS
921: GNULIB_PUTCHAR
922: GNULIB_PUTC
923: GNULIB_FPUTC
924: GNULIB_FCLOSE
925: GNULIB_FPURGE
926: GNULIB_FFLUSH
927: GNULIB_FTELLO
928: GNULIB_FTELL
929: GNULIB_FSEEKO
930: GNULIB_FSEEK
931: GNULIB_FREOPEN
932: GNULIB_FOPEN
933: GNULIB_OBSTACK_PRINTF_POSIX
934: GNULIB_OBSTACK_PRINTF
935: GNULIB_VASPRINTF
936: GNULIB_VDPRINTF
937: GNULIB_DPRINTF
938: GNULIB_VSPRINTF_POSIX
939: GNULIB_VSNPRINTF
940: GNULIB_VPRINTF_POSIX
941: GNULIB_VPRINTF
942: GNULIB_VFPRINTF_POSIX
943: GNULIB_VFPRINTF
944: GNULIB_SPRINTF_POSIX
945: GNULIB_SNPRINTF
946: GNULIB_PRINTF_POSIX
947: GNULIB_PRINTF
948: GNULIB_FPRINTF_POSIX
949: GNULIB_FPRINTF
950: NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
951: NEXT_SIGNAL_H
952: HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
953: HAVE_STRUCT_SIGACTION_SA_SIGACTION
954: HAVE_SIGACTION
955: HAVE_SIGINFO_T
956: HAVE_SIGSET_T
957: HAVE_POSIX_SIGNALBLOCKING
958: GNULIB_SIGACTION
959: GNULIB_SIGPROCMASK
960: GNULIB_SIGNAL_H_SIGPIPE
961: REPLACE_STRSIGNAL
962: REPLACE_STRERROR
963: REPLACE_STRCASESTR
964: REPLACE_STRSTR
965: REPLACE_STRDUP
966: REPLACE_MEMMEM
967: REPLACE_MEMCHR
968: HAVE_STRVERSCMP
969: HAVE_DECL_STRSIGNAL
970: HAVE_DECL_STRERROR
971: HAVE_DECL_STRTOK_R
972: HAVE_STRCASESTR
973: HAVE_STRSEP
974: HAVE_STRPBRK
975: HAVE_DECL_STRNLEN
976: HAVE_DECL_STRNDUP
977: HAVE_STRNDUP
978: HAVE_DECL_STRDUP
979: HAVE_STRCHRNUL
980: HAVE_STPNCPY
981: HAVE_STPCPY
982: HAVE_RAWMEMCHR
983: HAVE_DECL_MEMRCHR
984: HAVE_MEMPCPY
985: HAVE_DECL_MEMMEM
986: GNULIB_STRVERSCMP
987: GNULIB_STRSIGNAL
988: GNULIB_STRERROR
989: GNULIB_MBSTOK_R
990: GNULIB_MBSSEP
991: GNULIB_MBSSPN
992: GNULIB_MBSPBRK
993: GNULIB_MBSCSPN
994: GNULIB_MBSCASESTR
995: GNULIB_MBSPCASECMP
996: GNULIB_MBSNCASECMP
997: GNULIB_MBSCASECMP
998: GNULIB_MBSSTR
999: GNULIB_MBSRCHR
1000: GNULIB_MBSCHR
1001: GNULIB_MBSNLEN
1002: GNULIB_MBSLEN
1003: GNULIB_STRTOK_R
1004: GNULIB_STRCASESTR
1005: GNULIB_STRSTR
1006: GNULIB_STRSEP
1007: GNULIB_STRPBRK
1008: GNULIB_STRNLEN
1009: GNULIB_STRNDUP
1010: GNULIB_STRDUP
1011: GNULIB_STRCHRNUL
1012: GNULIB_STPNCPY
1013: GNULIB_STPCPY
1014: GNULIB_RAWMEMCHR
1015: GNULIB_MEMRCHR
1016: GNULIB_MEMPCPY
1017: GNULIB_MEMMEM
1018: GNULIB_MEMCHR
1019: APPLE_UNIVERSAL_BUILD
1020: VOID_UNSETENV
1021: REPLACE_STRTOD
1022: REPLACE_PUTENV
1023: REPLACE_MKSTEMP
1024: HAVE_DECL_GETLOADAVG
1025: HAVE_UNSETENV
1026: HAVE_SYS_LOADAVG_H
1027: HAVE_STRUCT_RANDOM_DATA
1028: HAVE_STRTOULL
1029: HAVE_STRTOLL
1030: HAVE_STRTOD
1031: HAVE_SETENV
1032: HAVE_RPMATCH
1033: HAVE_RANDOM_R
1034: HAVE_REALLOC_POSIX
1035: HAVE_MKDTEMP
1036: HAVE_GETSUBOPT
1037: HAVE_CALLOC_POSIX
1038: HAVE_ATOLL
1039: GNULIB_UNSETENV
1040: GNULIB_STRTOULL
1041: GNULIB_STRTOLL
1042: GNULIB_STRTOD
1043: GNULIB_SETENV
1044: GNULIB_RPMATCH
1045: GNULIB_RANDOM_R
1046: GNULIB_PUTENV
1047: GNULIB_MKSTEMP
1048: GNULIB_MKDTEMP
1049: GNULIB_GETSUBOPT
1050: GNULIB_GETLOADAVG
1051: GNULIB_ATOLL
1052: GNULIB_CALLOC_POSIX
1053: GNULIB_REALLOC_POSIX
1054: GNULIB_MALLOC_POSIX
1055: HAVE_MALLOC_POSIX
1056: EOVERFLOW_VALUE
1057: EOVERFLOW_HIDDEN
1058: ENOLINK_VALUE
1059: ENOLINK_HIDDEN
1060: EMULTIHOP_VALUE
1061: EMULTIHOP_HIDDEN
1062: ERRNO_H
1063: NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1064: NEXT_ERRNO_H
1065: PRAGMA_SYSTEM_HEADER
1066: INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1067: INCLUDE_NEXT
1068: UNISTD_H_HAVE_WINSOCK2_H
1069: REPLACE_WRITE
1070: REPLACE_LSEEK
1071: REPLACE_LCHOWN
1072: REPLACE_GETPAGESIZE
1073: REPLACE_GETCWD
1074: REPLACE_FCHDIR
1075: REPLACE_CLOSE
1076: REPLACE_CHOWN
1077: HAVE_SYS_PARAM_H
1078: HAVE_OS_H
1079: HAVE_DECL_GETLOGIN_R
1080: HAVE_DECL_ENVIRON
1081: HAVE_SLEEP
1082: HAVE_READLINK
1083: HAVE_LINK
1084: HAVE_GETUSERSHELL
1085: HAVE_GETPAGESIZE
1086: HAVE_GETHOSTNAME
1087: HAVE_GETDTABLESIZE
1088: HAVE_GETDOMAINNAME
1089: HAVE_FTRUNCATE
1090: HAVE_FSYNC
1091: HAVE_EUIDACCESS
1092: HAVE_DUP2
1093: GNULIB_WRITE
1094: GNULIB_UNISTD_H_SIGPIPE
1095: GNULIB_SLEEP
1096: GNULIB_READLINK
1097: GNULIB_LSEEK
1098: GNULIB_LINK
1099: GNULIB_LCHOWN
1100: GNULIB_GETUSERSHELL
1101: GNULIB_GETPAGESIZE
1102: GNULIB_GETLOGIN_R
1103: GNULIB_GETHOSTNAME
1104: GNULIB_GETDTABLESIZE
1105: GNULIB_GETDOMAINNAME
1106: GNULIB_GETCWD
1107: GNULIB_FTRUNCATE
1108: GNULIB_FSYNC
1109: GNULIB_FCHDIR
1110: GNULIB_EUIDACCESS
1111: GNULIB_ENVIRON
1112: GNULIB_DUP2
1113: GNULIB_CLOSE
1114: GNULIB_CHOWN
1115: ALLOCA_H
1116: ALLOCA
1117: GL_COND_LIBTOOL_FALSE
1118: GL_COND_LIBTOOL_TRUE
1119: EILSEQ
1120: BROKEN_WCHAR_H
1121: USE_MBSTATE_T
1122: HAVE_WCHAR_T
1123: ICONV_CONST
1124: POSUB
1125: LTLIBINTL
1126: LIBINTL
1127: INTLLIBS
1128: INTL_MACOSX_LIBS
1129: XGETTEXT_EXTRA_OPTIONS
1130: MSGMERGE
1131: XGETTEXT_015
1132: XGETTEXT
1133: GMSGFMT_015
1134: MSGFMT_015
1135: GMSGFMT
1136: MSGFMT
1137: GETTEXT_MACRO_VERSION
1138: USE_NLS
1139: LTLIBICONV
1140: LIBICONV
1141: HAVE_VISIBILITY
1142: CFLAG_VISIBILITY
1143: WINDRES
1144: WOE32
1145: RC
1146: OTOOL64
1147: OTOOL
1148: LIPO
1149: NMEDIT
1150: DSYMUTIL
1151: lt_ECHO
1152: AR
1153: NM
1154: ac_ct_DUMPBIN
1155: DUMPBIN
1156: LD
1157: FGREP
1158: SED
1159: LIBTOOL
1160: OBJDUMP
1161: DLLTOOL
1162: AS
1163: LN_S
1164: LN
1165: CP
1166: USE_EXTRA_ENCODINGS
1167: RELOCATABLE_BUILD_DIR
1168: RELOCATABLE_SRC_DIR
1169: RELOCATABLE_CONFIG_H_DIR
1170: RELOCATABLE_LIBRARY_PATH
1171: RELOCATABLE_VIA_LD_FALSE
1172: RELOCATABLE_VIA_LD_TRUE
1173: INSTALL_PROGRAM_ENV
1174: RELOCATABLE_LDFLAGS
1175: RELOCATABLE
1176: EGREP
1177: GREP
1178: RANLIB
1179: host_os
1180: host_vendor
1181: host_cpu
1182: host
1183: build_os
1184: build_vendor
1185: build_cpu
1186: build
1187: CPP
1188: am__fastdepCC_FALSE
1189: am__fastdepCC_TRUE
1190: CCDEPMODE
1191: AMDEPBACKSLASH
1192: AMDEP_FALSE
1193: AMDEP_TRUE
1194: am__quote
1195: am__include
1196: DEPDIR
1197: OBJEXT
1198: EXEEXT
1199: ac_ct_CC
1200: CPPFLAGS
1201: LDFLAGS
1202: CFLAGS
1203: CC
1204: am__untar
1205: am__tar
1206: AMTAR
1207: am__leading_dot
1208: SET_MAKE
1209: AWK
1210: mkdir_p
1211: MKDIR_P
1212: INSTALL_STRIP_PROGRAM
1213: STRIP
1214: install_sh
1215: MAKEINFO
1216: AUTOHEADER
1217: AUTOMAKE
1218: AUTOCONF
1219: ACLOCAL
1220: VERSION
1221: PACKAGE
1222: CYGPATH_W
1223: am__isrc
1224: INSTALL_DATA
1225: INSTALL_SCRIPT
1226: INSTALL_PROGRAM
1227: target_alias
1228: host_alias
1229: build_alias
1230: LIBS
1231: ECHO_T
1232: ECHO_N
1233: ECHO_C
1234: DEFS
1235: mandir
1236: localedir
1237: libdir
1238: psdir
1239: pdfdir
1240: dvidir
1241: htmldir
1242: infodir
1243: docdir
1244: oldincludedir
1245: includedir
1246: localstatedir
1247: sharedstatedir
1248: sysconfdir
1249: datadir
1250: datarootdir
1251: libexecdir
1252: sbindir
1253: bindir
1254: program_transform_name
1255: prefix
1256: exec_prefix
1257: PACKAGE_BUGREPORT
1258: PACKAGE_STRING
1259: PACKAGE_VERSION
1260: PACKAGE_TARNAME
1261: PACKAGE_NAME
1262: PATH_SEPARATOR
1263: SHELL'
1264: ac_subst_files=''
1265: ac_user_opts='
1266: enable_option_checking
1267: enable_dependency_tracking
1268: with_gnu_ld
1269: enable_relocatable
1270: enable_extra_encodings
1271: enable_static
1272: enable_shared
1273: with_pic
1274: enable_fast_install
1275: enable_libtool_lock
1276: enable_rpath
1277: with_libiconv_prefix
1278: enable_nls
1279: with_libintl_prefix
1280: '
1281: ac_precious_vars='build_alias
1282: host_alias
1283: target_alias
1284: CC
1285: CFLAGS
1286: LDFLAGS
1287: LIBS
1288: CPPFLAGS
1289: CPP'
1290: ac_subdirs_all='libcharset
1291: preload'
1292:
1293: # Initialize some variables set by options.
1294: ac_init_help=
1295: ac_init_version=false
1296: ac_unrecognized_opts=
1297: ac_unrecognized_sep=
1298: # The variables have the same names as the options, with
1299: # dashes changed to underlines.
1300: cache_file=/dev/null
1301: exec_prefix=NONE
1302: no_create=
1303: no_recursion=
1304: prefix=NONE
1305: program_prefix=NONE
1306: program_suffix=NONE
1307: program_transform_name=s,x,x,
1308: silent=
1309: site=
1310: srcdir=
1311: verbose=
1312: x_includes=NONE
1313: x_libraries=NONE
1314:
1315: # Installation directory options.
1316: # These are left unexpanded so users can "make install exec_prefix=/foo"
1317: # and all the variables that are supposed to be based on exec_prefix
1318: # by default will actually change.
1319: # Use braces instead of parens because sh, perl, etc. also accept them.
1320: # (The list follows the same order as the GNU Coding Standards.)
1321: bindir='${exec_prefix}/bin'
1322: sbindir='${exec_prefix}/sbin'
1323: libexecdir='${exec_prefix}/libexec'
1324: datarootdir='${prefix}/share'
1325: datadir='${datarootdir}'
1326: sysconfdir='${prefix}/etc'
1327: sharedstatedir='${prefix}/com'
1328: localstatedir='${prefix}/var'
1329: includedir='${prefix}/include'
1330: oldincludedir='/usr/include'
1331: docdir='${datarootdir}/doc/${PACKAGE}'
1332: infodir='${datarootdir}/info'
1333: htmldir='${docdir}'
1334: dvidir='${docdir}'
1335: pdfdir='${docdir}'
1336: psdir='${docdir}'
1337: libdir='${exec_prefix}/lib'
1338: localedir='${datarootdir}/locale'
1339: mandir='${datarootdir}/man'
1340:
1341: ac_prev=
1342: ac_dashdash=
1343: for ac_option
1344: do
1345: # If the previous option needs an argument, assign it.
1346: if test -n "$ac_prev"; then
1347: eval $ac_prev=\$ac_option
1348: ac_prev=
1349: continue
1350: fi
1351:
1352: case $ac_option in
1353: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1354: *) ac_optarg=yes ;;
1355: esac
1356:
1357: # Accept the important Cygnus configure options, so we can diagnose typos.
1358:
1359: case $ac_dashdash$ac_option in
1360: --)
1361: ac_dashdash=yes ;;
1362:
1363: -bindir | --bindir | --bindi | --bind | --bin | --bi)
1364: ac_prev=bindir ;;
1365: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1366: bindir=$ac_optarg ;;
1367:
1368: -build | --build | --buil | --bui | --bu)
1369: ac_prev=build_alias ;;
1370: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1371: build_alias=$ac_optarg ;;
1372:
1373: -cache-file | --cache-file | --cache-fil | --cache-fi \
1374: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1375: ac_prev=cache_file ;;
1376: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1377: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1378: cache_file=$ac_optarg ;;
1379:
1380: --config-cache | -C)
1381: cache_file=config.cache ;;
1382:
1383: -datadir | --datadir | --datadi | --datad)
1384: ac_prev=datadir ;;
1385: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1386: datadir=$ac_optarg ;;
1387:
1388: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1389: | --dataroo | --dataro | --datar)
1390: ac_prev=datarootdir ;;
1391: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1392: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1393: datarootdir=$ac_optarg ;;
1394:
1395: -disable-* | --disable-*)
1396: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1397: # Reject names that are not valid shell variable names.
1398: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1399: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1400: { (exit 1); exit 1; }; }
1401: ac_useropt_orig=$ac_useropt
1402: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1403: case $ac_user_opts in
1404: *"
1405: "enable_$ac_useropt"
1406: "*) ;;
1407: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1408: ac_unrecognized_sep=', ';;
1409: esac
1410: eval enable_$ac_useropt=no ;;
1411:
1412: -docdir | --docdir | --docdi | --doc | --do)
1413: ac_prev=docdir ;;
1414: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1415: docdir=$ac_optarg ;;
1416:
1417: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1418: ac_prev=dvidir ;;
1419: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1420: dvidir=$ac_optarg ;;
1421:
1422: -enable-* | --enable-*)
1423: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1424: # Reject names that are not valid shell variable names.
1425: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1427: { (exit 1); exit 1; }; }
1428: ac_useropt_orig=$ac_useropt
1429: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430: case $ac_user_opts in
1431: *"
1432: "enable_$ac_useropt"
1433: "*) ;;
1434: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435: ac_unrecognized_sep=', ';;
1436: esac
1437: eval enable_$ac_useropt=\$ac_optarg ;;
1438:
1439: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441: | --exec | --exe | --ex)
1442: ac_prev=exec_prefix ;;
1443: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445: | --exec=* | --exe=* | --ex=*)
1446: exec_prefix=$ac_optarg ;;
1447:
1448: -gas | --gas | --ga | --g)
1449: # Obsolete; use --with-gas.
1450: with_gas=yes ;;
1451:
1452: -help | --help | --hel | --he | -h)
1453: ac_init_help=long ;;
1454: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455: ac_init_help=recursive ;;
1456: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457: ac_init_help=short ;;
1458:
1459: -host | --host | --hos | --ho)
1460: ac_prev=host_alias ;;
1461: -host=* | --host=* | --hos=* | --ho=*)
1462: host_alias=$ac_optarg ;;
1463:
1464: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1465: ac_prev=htmldir ;;
1466: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1467: | --ht=*)
1468: htmldir=$ac_optarg ;;
1469:
1470: -includedir | --includedir | --includedi | --included | --include \
1471: | --includ | --inclu | --incl | --inc)
1472: ac_prev=includedir ;;
1473: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474: | --includ=* | --inclu=* | --incl=* | --inc=*)
1475: includedir=$ac_optarg ;;
1476:
1477: -infodir | --infodir | --infodi | --infod | --info | --inf)
1478: ac_prev=infodir ;;
1479: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480: infodir=$ac_optarg ;;
1481:
1482: -libdir | --libdir | --libdi | --libd)
1483: ac_prev=libdir ;;
1484: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485: libdir=$ac_optarg ;;
1486:
1487: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488: | --libexe | --libex | --libe)
1489: ac_prev=libexecdir ;;
1490: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491: | --libexe=* | --libex=* | --libe=*)
1492: libexecdir=$ac_optarg ;;
1493:
1494: -localedir | --localedir | --localedi | --localed | --locale)
1495: ac_prev=localedir ;;
1496: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497: localedir=$ac_optarg ;;
1498:
1499: -localstatedir | --localstatedir | --localstatedi | --localstated \
1500: | --localstate | --localstat | --localsta | --localst | --locals)
1501: ac_prev=localstatedir ;;
1502: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504: localstatedir=$ac_optarg ;;
1505:
1506: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1507: ac_prev=mandir ;;
1508: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509: mandir=$ac_optarg ;;
1510:
1511: -nfp | --nfp | --nf)
1512: # Obsolete; use --without-fp.
1513: with_fp=no ;;
1514:
1515: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516: | --no-cr | --no-c | -n)
1517: no_create=yes ;;
1518:
1519: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1521: no_recursion=yes ;;
1522:
1523: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525: | --oldin | --oldi | --old | --ol | --o)
1526: ac_prev=oldincludedir ;;
1527: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530: oldincludedir=$ac_optarg ;;
1531:
1532: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1533: ac_prev=prefix ;;
1534: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535: prefix=$ac_optarg ;;
1536:
1537: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538: | --program-pre | --program-pr | --program-p)
1539: ac_prev=program_prefix ;;
1540: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542: program_prefix=$ac_optarg ;;
1543:
1544: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545: | --program-suf | --program-su | --program-s)
1546: ac_prev=program_suffix ;;
1547: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549: program_suffix=$ac_optarg ;;
1550:
1551: -program-transform-name | --program-transform-name \
1552: | --program-transform-nam | --program-transform-na \
1553: | --program-transform-n | --program-transform- \
1554: | --program-transform | --program-transfor \
1555: | --program-transfo | --program-transf \
1556: | --program-trans | --program-tran \
1557: | --progr-tra | --program-tr | --program-t)
1558: ac_prev=program_transform_name ;;
1559: -program-transform-name=* | --program-transform-name=* \
1560: | --program-transform-nam=* | --program-transform-na=* \
1561: | --program-transform-n=* | --program-transform-=* \
1562: | --program-transform=* | --program-transfor=* \
1563: | --program-transfo=* | --program-transf=* \
1564: | --program-trans=* | --program-tran=* \
1565: | --progr-tra=* | --program-tr=* | --program-t=*)
1566: program_transform_name=$ac_optarg ;;
1567:
1568: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1569: ac_prev=pdfdir ;;
1570: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571: pdfdir=$ac_optarg ;;
1572:
1573: -psdir | --psdir | --psdi | --psd | --ps)
1574: ac_prev=psdir ;;
1575: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1576: psdir=$ac_optarg ;;
1577:
1578: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579: | -silent | --silent | --silen | --sile | --sil)
1580: silent=yes ;;
1581:
1582: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1583: ac_prev=sbindir ;;
1584: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1585: | --sbi=* | --sb=*)
1586: sbindir=$ac_optarg ;;
1587:
1588: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1589: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1590: | --sharedst | --shareds | --shared | --share | --shar \
1591: | --sha | --sh)
1592: ac_prev=sharedstatedir ;;
1593: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1594: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1595: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1596: | --sha=* | --sh=*)
1597: sharedstatedir=$ac_optarg ;;
1598:
1599: -site | --site | --sit)
1600: ac_prev=site ;;
1601: -site=* | --site=* | --sit=*)
1602: site=$ac_optarg ;;
1603:
1604: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1605: ac_prev=srcdir ;;
1606: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1607: srcdir=$ac_optarg ;;
1608:
1609: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1610: | --syscon | --sysco | --sysc | --sys | --sy)
1611: ac_prev=sysconfdir ;;
1612: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1613: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1614: sysconfdir=$ac_optarg ;;
1615:
1616: -target | --target | --targe | --targ | --tar | --ta | --t)
1617: ac_prev=target_alias ;;
1618: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1619: target_alias=$ac_optarg ;;
1620:
1621: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1622: verbose=yes ;;
1623:
1624: -version | --version | --versio | --versi | --vers | -V)
1625: ac_init_version=: ;;
1626:
1627: -with-* | --with-*)
1628: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1629: # Reject names that are not valid shell variable names.
1630: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1631: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1632: { (exit 1); exit 1; }; }
1633: ac_useropt_orig=$ac_useropt
1634: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1635: case $ac_user_opts in
1636: *"
1637: "with_$ac_useropt"
1638: "*) ;;
1639: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1640: ac_unrecognized_sep=', ';;
1641: esac
1642: eval with_$ac_useropt=\$ac_optarg ;;
1643:
1644: -without-* | --without-*)
1645: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1646: # Reject names that are not valid shell variable names.
1647: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1648: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1649: { (exit 1); exit 1; }; }
1650: ac_useropt_orig=$ac_useropt
1651: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1652: case $ac_user_opts in
1653: *"
1654: "with_$ac_useropt"
1655: "*) ;;
1656: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1657: ac_unrecognized_sep=', ';;
1658: esac
1659: eval with_$ac_useropt=no ;;
1660:
1661: --x)
1662: # Obsolete; use --with-x.
1663: with_x=yes ;;
1664:
1665: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1666: | --x-incl | --x-inc | --x-in | --x-i)
1667: ac_prev=x_includes ;;
1668: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1669: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1670: x_includes=$ac_optarg ;;
1671:
1672: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1673: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1674: ac_prev=x_libraries ;;
1675: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1676: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1677: x_libraries=$ac_optarg ;;
1678:
1679: -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1680: Try \`$0 --help' for more information." >&2
1681: { (exit 1); exit 1; }; }
1682: ;;
1683:
1684: *=*)
1685: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1686: # Reject names that are not valid shell variable names.
1687: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1688: { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1689: { (exit 1); exit 1; }; }
1690: eval $ac_envvar=\$ac_optarg
1691: export $ac_envvar ;;
1692:
1693: *)
1694: # FIXME: should be removed in autoconf 3.0.
1695: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1696: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1697: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1698: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1699: ;;
1700:
1701: esac
1702: done
1703:
1704: if test -n "$ac_prev"; then
1705: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1706: { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1707: { (exit 1); exit 1; }; }
1708: fi
1709:
1710: if test -n "$ac_unrecognized_opts"; then
1711: case $enable_option_checking in
1712: no) ;;
1713: fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1714: { (exit 1); exit 1; }; } ;;
1715: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1716: esac
1717: fi
1718:
1719: # Check all directory arguments for consistency.
1720: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1721: datadir sysconfdir sharedstatedir localstatedir includedir \
1722: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1723: libdir localedir mandir
1724: do
1725: eval ac_val=\$$ac_var
1726: # Remove trailing slashes.
1727: case $ac_val in
1728: */ )
1729: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1730: eval $ac_var=\$ac_val;;
1731: esac
1732: # Be sure to have absolute directory names.
1733: case $ac_val in
1734: [\\/$]* | ?:[\\/]* ) continue;;
1735: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1736: esac
1737: { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1738: { (exit 1); exit 1; }; }
1739: done
1740:
1741: # There might be people who depend on the old broken behavior: `$host'
1742: # used to hold the argument of --host etc.
1743: # FIXME: To remove some day.
1744: build=$build_alias
1745: host=$host_alias
1746: target=$target_alias
1747:
1748: # FIXME: To remove some day.
1749: if test "x$host_alias" != x; then
1750: if test "x$build_alias" = x; then
1751: cross_compiling=maybe
1752: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1753: If a cross compiler is detected then cross compile mode will be used." >&2
1754: elif test "x$build_alias" != "x$host_alias"; then
1755: cross_compiling=yes
1756: fi
1757: fi
1758:
1759: ac_tool_prefix=
1760: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1761:
1762: test "$silent" = yes && exec 6>/dev/null
1763:
1764:
1765: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1766: ac_ls_di=`ls -di .` &&
1767: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1768: { $as_echo "$as_me: error: working directory cannot be determined" >&2
1769: { (exit 1); exit 1; }; }
1770: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1771: { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1772: { (exit 1); exit 1; }; }
1773:
1774:
1775: # Find the source files, if location was not specified.
1776: if test -z "$srcdir"; then
1777: ac_srcdir_defaulted=yes
1778: # Try the directory containing this script, then the parent directory.
1779: ac_confdir=`$as_dirname -- "$as_myself" ||
1780: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1781: X"$as_myself" : 'X\(//\)[^/]' \| \
1782: X"$as_myself" : 'X\(//\)$' \| \
1783: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1784: $as_echo X"$as_myself" |
1785: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1786: s//\1/
1787: q
1788: }
1789: /^X\(\/\/\)[^/].*/{
1790: s//\1/
1791: q
1792: }
1793: /^X\(\/\/\)$/{
1794: s//\1/
1795: q
1796: }
1797: /^X\(\/\).*/{
1798: s//\1/
1799: q
1800: }
1801: s/.*/./; q'`
1802: srcdir=$ac_confdir
1803: if test ! -r "$srcdir/$ac_unique_file"; then
1804: srcdir=..
1805: fi
1806: else
1807: ac_srcdir_defaulted=no
1808: fi
1809: if test ! -r "$srcdir/$ac_unique_file"; then
1810: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1811: { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1812: { (exit 1); exit 1; }; }
1813: fi
1814: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1815: ac_abs_confdir=`(
1816: cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1817: { (exit 1); exit 1; }; }
1818: pwd)`
1819: # When building in place, set srcdir=.
1820: if test "$ac_abs_confdir" = "$ac_pwd"; then
1821: srcdir=.
1822: fi
1823: # Remove unnecessary trailing slashes from srcdir.
1824: # Double slashes in file names in object file debugging info
1825: # mess up M-x gdb in Emacs.
1826: case $srcdir in
1827: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1828: esac
1829: for ac_var in $ac_precious_vars; do
1830: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1831: eval ac_env_${ac_var}_value=\$${ac_var}
1832: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1833: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1834: done
1835:
1836: #
1837: # Report the --help message.
1838: #
1839: if test "$ac_init_help" = "long"; then
1840: # Omit some internal or obsolete options to make the list less imposing.
1841: # This message is too long to be a string in the A/UX 3.1 sh.
1842: cat <<_ACEOF
1843: \`configure' configures this package to adapt to many kinds of systems.
1844:
1845: Usage: $0 [OPTION]... [VAR=VALUE]...
1846:
1847: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1848: VAR=VALUE. See below for descriptions of some of the useful variables.
1849:
1850: Defaults for the options are specified in brackets.
1851:
1852: Configuration:
1853: -h, --help display this help and exit
1854: --help=short display options specific to this package
1855: --help=recursive display the short help of all the included packages
1856: -V, --version display version information and exit
1857: -q, --quiet, --silent do not print \`checking...' messages
1858: --cache-file=FILE cache test results in FILE [disabled]
1859: -C, --config-cache alias for \`--cache-file=config.cache'
1860: -n, --no-create do not create output files
1861: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1862:
1863: Installation directories:
1864: --prefix=PREFIX install architecture-independent files in PREFIX
1865: [$ac_default_prefix]
1866: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1867: [PREFIX]
1868:
1869: By default, \`make install' will install all the files in
1870: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1871: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1872: for instance \`--prefix=\$HOME'.
1873:
1874: For better control, use the options below.
1875:
1876: Fine tuning of the installation directories:
1877: --bindir=DIR user executables [EPREFIX/bin]
1878: --sbindir=DIR system admin executables [EPREFIX/sbin]
1879: --libexecdir=DIR program executables [EPREFIX/libexec]
1880: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1881: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1882: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1883: --libdir=DIR object code libraries [EPREFIX/lib]
1884: --includedir=DIR C header files [PREFIX/include]
1885: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1886: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1887: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1888: --infodir=DIR info documentation [DATAROOTDIR/info]
1889: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1890: --mandir=DIR man documentation [DATAROOTDIR/man]
1891: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1892: --htmldir=DIR html documentation [DOCDIR]
1893: --dvidir=DIR dvi documentation [DOCDIR]
1894: --pdfdir=DIR pdf documentation [DOCDIR]
1895: --psdir=DIR ps documentation [DOCDIR]
1896: _ACEOF
1897:
1898: cat <<\_ACEOF
1899:
1900: Program names:
1901: --program-prefix=PREFIX prepend PREFIX to installed program names
1902: --program-suffix=SUFFIX append SUFFIX to installed program names
1903: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1904:
1905: System types:
1906: --build=BUILD configure for building on BUILD [guessed]
1907: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1908: _ACEOF
1909: fi
1910:
1911: if test -n "$ac_init_help"; then
1912:
1913: cat <<\_ACEOF
1914:
1915: Optional Features:
1916: --disable-option-checking ignore unrecognized --enable/--with options
1917: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1918: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1919: --disable-dependency-tracking speeds up one-time build
1920: --enable-dependency-tracking do not reject slow dependency extractors
1921: --enable-relocatable install a package that can be moved in the filesystem
1922: --enable-extra-encodings
1923: add support for a few rarely used encodings
1924: --enable-static[=PKGS] build static libraries [default=no]
1925: --enable-shared[=PKGS] build shared libraries [default=yes]
1926: --enable-fast-install[=PKGS]
1927: optimize for fast installation [default=yes]
1928: --disable-libtool-lock avoid locking (might break parallel builds)
1929: --disable-rpath do not hardcode runtime library paths
1930: --disable-nls do not use Native Language Support
1931:
1932: Optional Packages:
1933: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1934: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1935: --with-gnu-ld assume the C compiler uses GNU ld default=no
1936: --with-pic try to use only PIC/non-PIC objects [default=use
1937: both]
1938: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1939: --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1940: --without-libiconv-prefix don't search for libiconv in includedir and libdir
1941: --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1942: --without-libintl-prefix don't search for libintl in includedir and libdir
1943:
1944: Some influential environment variables:
1945: CC C compiler command
1946: CFLAGS C compiler flags
1947: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1948: nonstandard directory <lib dir>
1949: LIBS libraries to pass to the linker, e.g. -l<library>
1950: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1951: you have headers in a nonstandard directory <include dir>
1952: CPP C preprocessor
1953:
1954: Use these variables to override the choices made by `configure' or to help
1955: it to find libraries and programs with nonstandard names/locations.
1956:
1957: _ACEOF
1958: ac_status=$?
1959: fi
1960:
1961: if test "$ac_init_help" = "recursive"; then
1962: # If there are subdirs, report their specific --help.
1963: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1964: test -d "$ac_dir" ||
1965: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1966: continue
1967: ac_builddir=.
1968:
1969: case "$ac_dir" in
1970: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971: *)
1972: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1973: # A ".." for each directory in $ac_dir_suffix.
1974: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1975: case $ac_top_builddir_sub in
1976: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1978: esac ;;
1979: esac
1980: ac_abs_top_builddir=$ac_pwd
1981: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1982: # for backward compatibility:
1983: ac_top_builddir=$ac_top_build_prefix
1984:
1985: case $srcdir in
1986: .) # We are building in place.
1987: ac_srcdir=.
1988: ac_top_srcdir=$ac_top_builddir_sub
1989: ac_abs_top_srcdir=$ac_pwd ;;
1990: [\\/]* | ?:[\\/]* ) # Absolute name.
1991: ac_srcdir=$srcdir$ac_dir_suffix;
1992: ac_top_srcdir=$srcdir
1993: ac_abs_top_srcdir=$srcdir ;;
1994: *) # Relative name.
1995: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1996: ac_top_srcdir=$ac_top_build_prefix$srcdir
1997: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1998: esac
1999: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2000:
2001: cd "$ac_dir" || { ac_status=$?; continue; }
2002: # Check for guested configure.
2003: if test -f "$ac_srcdir/configure.gnu"; then
2004: echo &&
2005: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2006: elif test -f "$ac_srcdir/configure"; then
2007: echo &&
2008: $SHELL "$ac_srcdir/configure" --help=recursive
2009: else
2010: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2011: fi || ac_status=$?
2012: cd "$ac_pwd" || { ac_status=$?; break; }
2013: done
2014: fi
2015:
2016: test -n "$ac_init_help" && exit $ac_status
2017: if $ac_init_version; then
2018: cat <<\_ACEOF
2019: configure
2020: generated by GNU Autoconf 2.63
2021:
2022: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2023: 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2024: This configure script is free software; the Free Software Foundation
2025: gives unlimited permission to copy, distribute and modify it.
2026: _ACEOF
2027: exit
2028: fi
2029: cat >config.log <<_ACEOF
2030: This file contains any messages produced by compilers while
2031: running configure, to aid debugging if configure makes a mistake.
2032:
2033: It was created by $as_me, which was
2034: generated by GNU Autoconf 2.63. Invocation command line was
2035:
2036: $ $0 $@
2037:
2038: _ACEOF
2039: exec 5>>config.log
2040: {
2041: cat <<_ASUNAME
2042: ## --------- ##
2043: ## Platform. ##
2044: ## --------- ##
2045:
2046: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051:
2052: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2054:
2055: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2056: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2057: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2059: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2060: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2061: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062:
2063: _ASUNAME
2064:
2065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066: for as_dir in $PATH
2067: do
2068: IFS=$as_save_IFS
2069: test -z "$as_dir" && as_dir=.
2070: $as_echo "PATH: $as_dir"
2071: done
2072: IFS=$as_save_IFS
2073:
2074: } >&5
2075:
2076: cat >&5 <<_ACEOF
2077:
2078:
2079: ## ----------- ##
2080: ## Core tests. ##
2081: ## ----------- ##
2082:
2083: _ACEOF
2084:
2085:
2086: # Keep a trace of the command line.
2087: # Strip out --no-create and --no-recursion so they do not pile up.
2088: # Strip out --silent because we don't want to record it for future runs.
2089: # Also quote any args containing shell meta-characters.
2090: # Make two passes to allow for proper duplicate-argument suppression.
2091: ac_configure_args=
2092: ac_configure_args0=
2093: ac_configure_args1=
2094: ac_must_keep_next=false
2095: for ac_pass in 1 2
2096: do
2097: for ac_arg
2098: do
2099: case $ac_arg in
2100: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102: | -silent | --silent | --silen | --sile | --sil)
2103: continue ;;
2104: *\'*)
2105: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106: esac
2107: case $ac_pass in
2108: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2109: 2)
2110: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2111: if test $ac_must_keep_next = true; then
2112: ac_must_keep_next=false # Got value, back to normal.
2113: else
2114: case $ac_arg in
2115: *=* | --config-cache | -C | -disable-* | --disable-* \
2116: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118: | -with-* | --with-* | -without-* | --without-* | --x)
2119: case "$ac_configure_args0 " in
2120: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121: esac
2122: ;;
2123: -* ) ac_must_keep_next=true ;;
2124: esac
2125: fi
2126: ac_configure_args="$ac_configure_args '$ac_arg'"
2127: ;;
2128: esac
2129: done
2130: done
2131: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2132: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2133:
2134: # When interrupted or exit'd, cleanup temporary files, and complete
2135: # config.log. We remove comments because anyway the quotes in there
2136: # would cause problems or look ugly.
2137: # WARNING: Use '\'' to represent an apostrophe within the trap.
2138: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139: trap 'exit_status=$?
2140: # Save into config.log some information that might help in debugging.
2141: {
2142: echo
2143:
2144: cat <<\_ASBOX
2145: ## ---------------- ##
2146: ## Cache variables. ##
2147: ## ---------------- ##
2148: _ASBOX
2149: echo
2150: # The following way of writing the cache mishandles newlines in values,
2151: (
2152: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153: eval ac_val=\$$ac_var
2154: case $ac_val in #(
2155: *${as_nl}*)
2156: case $ac_var in #(
2157: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2158: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159: esac
2160: case $ac_var in #(
2161: _ | IFS | as_nl) ;; #(
2162: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163: *) $as_unset $ac_var ;;
2164: esac ;;
2165: esac
2166: done
2167: (set) 2>&1 |
2168: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169: *${as_nl}ac_space=\ *)
2170: sed -n \
2171: "s/'\''/'\''\\\\'\'''\''/g;
2172: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173: ;; #(
2174: *)
2175: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2176: ;;
2177: esac |
2178: sort
2179: )
2180: echo
2181:
2182: cat <<\_ASBOX
2183: ## ----------------- ##
2184: ## Output variables. ##
2185: ## ----------------- ##
2186: _ASBOX
2187: echo
2188: for ac_var in $ac_subst_vars
2189: do
2190: eval ac_val=\$$ac_var
2191: case $ac_val in
2192: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193: esac
2194: $as_echo "$ac_var='\''$ac_val'\''"
2195: done | sort
2196: echo
2197:
2198: if test -n "$ac_subst_files"; then
2199: cat <<\_ASBOX
2200: ## ------------------- ##
2201: ## File substitutions. ##
2202: ## ------------------- ##
2203: _ASBOX
2204: echo
2205: for ac_var in $ac_subst_files
2206: do
2207: eval ac_val=\$$ac_var
2208: case $ac_val in
2209: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210: esac
2211: $as_echo "$ac_var='\''$ac_val'\''"
2212: done | sort
2213: echo
2214: fi
2215:
2216: if test -s confdefs.h; then
2217: cat <<\_ASBOX
2218: ## ----------- ##
2219: ## confdefs.h. ##
2220: ## ----------- ##
2221: _ASBOX
2222: echo
2223: cat confdefs.h
2224: echo
2225: fi
2226: test "$ac_signal" != 0 &&
2227: $as_echo "$as_me: caught signal $ac_signal"
2228: $as_echo "$as_me: exit $exit_status"
2229: } >&5
2230: rm -f core *.core core.conftest.* &&
2231: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232: exit $exit_status
2233: ' 0
2234: for ac_signal in 1 2 13 15; do
2235: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2236: done
2237: ac_signal=0
2238:
2239: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240: rm -f -r conftest* confdefs.h
2241:
2242: # Predefined preprocessor variables.
2243:
2244: cat >>confdefs.h <<_ACEOF
2245: #define PACKAGE_NAME "$PACKAGE_NAME"
2246: _ACEOF
2247:
2248:
2249: cat >>confdefs.h <<_ACEOF
2250: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251: _ACEOF
2252:
2253:
2254: cat >>confdefs.h <<_ACEOF
2255: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256: _ACEOF
2257:
2258:
2259: cat >>confdefs.h <<_ACEOF
2260: #define PACKAGE_STRING "$PACKAGE_STRING"
2261: _ACEOF
2262:
2263:
2264: cat >>confdefs.h <<_ACEOF
2265: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266: _ACEOF
2267:
2268:
2269: # Let the site file select an alternate cache file if it wants to.
2270: # Prefer an explicitly selected file to automatically selected ones.
2271: ac_site_file1=NONE
2272: ac_site_file2=NONE
2273: if test -n "$CONFIG_SITE"; then
2274: ac_site_file1=$CONFIG_SITE
2275: elif test "x$prefix" != xNONE; then
2276: ac_site_file1=$prefix/share/config.site
2277: ac_site_file2=$prefix/etc/config.site
2278: else
2279: ac_site_file1=$ac_default_prefix/share/config.site
2280: ac_site_file2=$ac_default_prefix/etc/config.site
2281: fi
2282: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283: do
2284: test "x$ac_site_file" = xNONE && continue
2285: if test -r "$ac_site_file"; then
2286: { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2287: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288: sed 's/^/| /' "$ac_site_file" >&5
2289: . "$ac_site_file"
2290: fi
2291: done
2292:
2293: if test -r "$cache_file"; then
2294: # Some versions of bash will fail to source /dev/null (special
2295: # files actually), so we avoid doing that.
2296: if test -f "$cache_file"; then
2297: { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2298: $as_echo "$as_me: loading cache $cache_file" >&6;}
2299: case $cache_file in
2300: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301: *) . "./$cache_file";;
2302: esac
2303: fi
2304: else
2305: { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2306: $as_echo "$as_me: creating cache $cache_file" >&6;}
2307: >$cache_file
2308: fi
2309:
2310: gt_needs="$gt_needs need-ngettext"
2311: ac_header_list="$ac_header_list stdlib.h"
2312: ac_header_list="$ac_header_list string.h"
2313: ac_func_list="$ac_func_list canonicalize_file_name"
2314: ac_header_list="$ac_header_list sys/param.h"
2315: ac_header_list="$ac_header_list unistd.h"
2316: ac_func_list="$ac_func_list getcwd"
2317: ac_func_list="$ac_func_list readlink"
2318: ac_header_list="$ac_header_list errno.h"
2319: ac_func_list="$ac_func_list pathconf"
2320: ac_func_list="$ac_func_list setenv"
2321: ac_header_list="$ac_header_list sys/socket.h"
2322: ac_header_list="$ac_header_list signal.h"
2323: ac_header_list="$ac_header_list stdint.h"
2324: ac_header_list="$ac_header_list wchar.h"
2325: ac_header_list="$ac_header_list stdio.h"
2326: # Check that the precious variables saved in the cache have kept the same
2327: # value.
2328: ac_cache_corrupted=false
2329: for ac_var in $ac_precious_vars; do
2330: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331: eval ac_new_set=\$ac_env_${ac_var}_set
2332: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333: eval ac_new_val=\$ac_env_${ac_var}_value
2334: case $ac_old_set,$ac_new_set in
2335: set,)
2336: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2337: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2338: ac_cache_corrupted=: ;;
2339: ,set)
2340: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2341: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2342: ac_cache_corrupted=: ;;
2343: ,);;
2344: *)
2345: if test "x$ac_old_val" != "x$ac_new_val"; then
2346: # differences in whitespace do not lead to failure.
2347: ac_old_val_w=`echo x $ac_old_val`
2348: ac_new_val_w=`echo x $ac_new_val`
2349: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350: { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2351: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2352: ac_cache_corrupted=:
2353: else
2354: { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2355: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2356: eval $ac_var=\$ac_old_val
2357: fi
2358: { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2359: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2360: { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2361: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2362: fi;;
2363: esac
2364: # Pass precious variables to config.status.
2365: if test "$ac_new_set" = set; then
2366: case $ac_new_val in
2367: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2368: *) ac_arg=$ac_var=$ac_new_val ;;
2369: esac
2370: case " $ac_configure_args " in
2371: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2372: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2373: esac
2374: fi
2375: done
2376: if $ac_cache_corrupted; then
2377: { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2378: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379: { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2380: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2381: { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2382: $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2383: { (exit 1); exit 1; }; }
2384: fi
2385:
2386:
2387:
2388:
2389:
2390:
2391:
2392:
2393:
2394:
2395:
2396:
2397:
2398:
2399:
2400:
2401:
2402: ac_ext=c
2403: ac_cpp='$CPP $CPPFLAGS'
2404: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2407:
2408:
2409:
2410: ac_aux_dir=
2411: for ac_dir in build-aux "$srcdir"/build-aux; do
2412: if test -f "$ac_dir/install-sh"; then
2413: ac_aux_dir=$ac_dir
2414: ac_install_sh="$ac_aux_dir/install-sh -c"
2415: break
2416: elif test -f "$ac_dir/install.sh"; then
2417: ac_aux_dir=$ac_dir
2418: ac_install_sh="$ac_aux_dir/install.sh -c"
2419: break
2420: elif test -f "$ac_dir/shtool"; then
2421: ac_aux_dir=$ac_dir
2422: ac_install_sh="$ac_aux_dir/shtool install -c"
2423: break
2424: fi
2425: done
2426: if test -z "$ac_aux_dir"; then
2427: { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2428: $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2429: { (exit 1); exit 1; }; }
2430: fi
2431:
2432: # These three variables are undocumented and unsupported,
2433: # and are intended to be withdrawn in a future Autoconf release.
2434: # They can cause serious problems if a builder's source tree is in a directory
2435: # whose full name contains unusual characters.
2436: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2437: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2438: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2439:
2440:
2441: am__api_version='1.11'
2442:
2443: # Find a good install program. We prefer a C program (faster),
2444: # so one script is as good as another. But avoid the broken or
2445: # incompatible versions:
2446: # SysV /etc/install, /usr/sbin/install
2447: # SunOS /usr/etc/install
2448: # IRIX /sbin/install
2449: # AIX /bin/install
2450: # AmigaOS /C/install, which installs bootblocks on floppy discs
2451: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454: # OS/2's system install, which has a completely different semantic
2455: # ./install, which can be erroneously created by make from ./install.sh.
2456: # Reject install programs that cannot install multiple files.
2457: { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2458: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2459: if test -z "$INSTALL"; then
2460: if test "${ac_cv_path_install+set}" = set; then
2461: $as_echo_n "(cached) " >&6
2462: else
2463: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464: for as_dir in $PATH
2465: do
2466: IFS=$as_save_IFS
2467: test -z "$as_dir" && as_dir=.
2468: # Account for people who put trailing slashes in PATH elements.
2469: case $as_dir/ in
2470: ./ | .// | /cC/* | \
2471: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2473: /usr/ucb/* ) ;;
2474: *)
2475: # OSF1 and SCO ODT 3.0 have their own names for install.
2476: # Don't use installbsd from OSF since it installs stuff as root
2477: # by default.
2478: for ac_prog in ginstall scoinst install; do
2479: for ac_exec_ext in '' $ac_executable_extensions; do
2480: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2481: if test $ac_prog = install &&
2482: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483: # AIX install. It has an incompatible calling convention.
2484: :
2485: elif test $ac_prog = install &&
2486: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487: # program-specific install script used by HP pwplus--don't use.
2488: :
2489: else
2490: rm -rf conftest.one conftest.two conftest.dir
2491: echo one > conftest.one
2492: echo two > conftest.two
2493: mkdir conftest.dir
2494: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495: test -s conftest.one && test -s conftest.two &&
2496: test -s conftest.dir/conftest.one &&
2497: test -s conftest.dir/conftest.two
2498: then
2499: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500: break 3
2501: fi
2502: fi
2503: fi
2504: done
2505: done
2506: ;;
2507: esac
2508:
2509: done
2510: IFS=$as_save_IFS
2511:
2512: rm -rf conftest.one conftest.two conftest.dir
2513:
2514: fi
2515: if test "${ac_cv_path_install+set}" = set; then
2516: INSTALL=$ac_cv_path_install
2517: else
2518: # As a last resort, use the slow shell script. Don't cache a
2519: # value for INSTALL within a source directory, because that will
2520: # break other packages using the cache if that directory is
2521: # removed, or if the value is a relative name.
2522: INSTALL=$ac_install_sh
2523: fi
2524: fi
2525: { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2526: $as_echo "$INSTALL" >&6; }
2527:
2528: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529: # It thinks the first close brace ends the variable substitution.
2530: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531:
2532: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533:
2534: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535:
2536: { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2537: $as_echo_n "checking whether build environment is sane... " >&6; }
2538: # Just in case
2539: sleep 1
2540: echo timestamp > conftest.file
2541: # Reject unsafe characters in $srcdir or the absolute working directory
2542: # name. Accept space and tab only in the latter.
2543: am_lf='
2544: '
2545: case `pwd` in
2546: *[\\\"\#\$\&\'\`$am_lf]*)
2547: { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2548: $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2549: { (exit 1); exit 1; }; };;
2550: esac
2551: case $srcdir in
2552: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2553: { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2554: $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2555: { (exit 1); exit 1; }; };;
2556: esac
2557:
2558: # Do `set' in a subshell so we don't clobber the current shell's
2559: # arguments. Must try -L first in case configure is actually a
2560: # symlink; some systems play weird games with the mod time of symlinks
2561: # (eg FreeBSD returns the mod time of the symlink's containing
2562: # directory).
2563: if (
2564: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2565: if test "$*" = "X"; then
2566: # -L didn't work.
2567: set X `ls -t "$srcdir/configure" conftest.file`
2568: fi
2569: rm -f conftest.file
2570: if test "$*" != "X $srcdir/configure conftest.file" \
2571: && test "$*" != "X conftest.file $srcdir/configure"; then
2572:
2573: # If neither matched, then we have a broken ls. This can happen
2574: # if, for instance, CONFIG_SHELL is bash and it inherits a
2575: # broken ls alias from the environment. This has actually
2576: # happened. Such a system could not be considered "sane".
2577: { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2578: alias in your environment" >&5
2579: $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2580: alias in your environment" >&2;}
2581: { (exit 1); exit 1; }; }
2582: fi
2583:
2584: test "$2" = conftest.file
2585: )
2586: then
2587: # Ok.
2588: :
2589: else
2590: { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2591: Check your system clock" >&5
2592: $as_echo "$as_me: error: newly created file is older than distributed files!
2593: Check your system clock" >&2;}
2594: { (exit 1); exit 1; }; }
2595: fi
2596: { $as_echo "$as_me:$LINENO: result: yes" >&5
2597: $as_echo "yes" >&6; }
2598: test "$program_prefix" != NONE &&
2599: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2600: # Use a double $ so make ignores it.
2601: test "$program_suffix" != NONE &&
2602: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2603: # Double any \ or $.
2604: # By default was `s,x,x', remove it if useless.
2605: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2606: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2607:
2608: # expand $ac_aux_dir to an absolute path
2609: am_aux_dir=`cd $ac_aux_dir && pwd`
2610:
2611: if test x"${MISSING+set}" != xset; then
2612: case $am_aux_dir in
2613: *\ * | *\ *)
2614: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2615: *)
2616: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2617: esac
2618: fi
2619: # Use eval to expand $SHELL
2620: if eval "$MISSING --run true"; then
2621: am_missing_run="$MISSING --run "
2622: else
2623: am_missing_run=
2624: { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2625: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2626: fi
2627:
2628: if test x"${install_sh}" != xset; then
2629: case $am_aux_dir in
2630: *\ * | *\ *)
2631: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2632: *)
2633: install_sh="\${SHELL} $am_aux_dir/install-sh"
2634: esac
2635: fi
2636:
2637: # Installed binaries are usually stripped using `strip' when the user
2638: # run `make install-strip'. However `strip' might not be the right
2639: # tool to use in cross-compilation environments, therefore Automake
2640: # will honor the `STRIP' environment variable to overrule this program.
2641: if test "$cross_compiling" != no; then
2642: if test -n "$ac_tool_prefix"; then
2643: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2644: set dummy ${ac_tool_prefix}strip; ac_word=$2
2645: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646: $as_echo_n "checking for $ac_word... " >&6; }
2647: if test "${ac_cv_prog_STRIP+set}" = set; then
2648: $as_echo_n "(cached) " >&6
2649: else
2650: if test -n "$STRIP"; then
2651: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2652: else
2653: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654: for as_dir in $PATH
2655: do
2656: IFS=$as_save_IFS
2657: test -z "$as_dir" && as_dir=.
2658: for ac_exec_ext in '' $ac_executable_extensions; do
2659: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2661: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662: break 2
2663: fi
2664: done
2665: done
2666: IFS=$as_save_IFS
2667:
2668: fi
2669: fi
2670: STRIP=$ac_cv_prog_STRIP
2671: if test -n "$STRIP"; then
2672: { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2673: $as_echo "$STRIP" >&6; }
2674: else
2675: { $as_echo "$as_me:$LINENO: result: no" >&5
2676: $as_echo "no" >&6; }
2677: fi
2678:
2679:
2680: fi
2681: if test -z "$ac_cv_prog_STRIP"; then
2682: ac_ct_STRIP=$STRIP
2683: # Extract the first word of "strip", so it can be a program name with args.
2684: set dummy strip; ac_word=$2
2685: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2686: $as_echo_n "checking for $ac_word... " >&6; }
2687: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2688: $as_echo_n "(cached) " >&6
2689: else
2690: if test -n "$ac_ct_STRIP"; then
2691: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2692: else
2693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694: for as_dir in $PATH
2695: do
2696: IFS=$as_save_IFS
2697: test -z "$as_dir" && as_dir=.
2698: for ac_exec_ext in '' $ac_executable_extensions; do
2699: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700: ac_cv_prog_ac_ct_STRIP="strip"
2701: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702: break 2
2703: fi
2704: done
2705: done
2706: IFS=$as_save_IFS
2707:
2708: fi
2709: fi
2710: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2711: if test -n "$ac_ct_STRIP"; then
2712: { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2713: $as_echo "$ac_ct_STRIP" >&6; }
2714: else
2715: { $as_echo "$as_me:$LINENO: result: no" >&5
2716: $as_echo "no" >&6; }
2717: fi
2718:
2719: if test "x$ac_ct_STRIP" = x; then
2720: STRIP=":"
2721: else
2722: case $cross_compiling:$ac_tool_warned in
2723: yes:)
2724: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2725: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726: ac_tool_warned=yes ;;
2727: esac
2728: STRIP=$ac_ct_STRIP
2729: fi
2730: else
2731: STRIP="$ac_cv_prog_STRIP"
2732: fi
2733:
2734: fi
2735: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2736:
2737: { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2738: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2739: if test -z "$MKDIR_P"; then
2740: if test "${ac_cv_path_mkdir+set}" = set; then
2741: $as_echo_n "(cached) " >&6
2742: else
2743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2745: do
2746: IFS=$as_save_IFS
2747: test -z "$as_dir" && as_dir=.
2748: for ac_prog in mkdir gmkdir; do
2749: for ac_exec_ext in '' $ac_executable_extensions; do
2750: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2751: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2752: 'mkdir (GNU coreutils) '* | \
2753: 'mkdir (coreutils) '* | \
2754: 'mkdir (fileutils) '4.1*)
2755: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2756: break 3;;
2757: esac
2758: done
2759: done
2760: done
2761: IFS=$as_save_IFS
2762:
2763: fi
2764:
2765: if test "${ac_cv_path_mkdir+set}" = set; then
2766: MKDIR_P="$ac_cv_path_mkdir -p"
2767: else
2768: # As a last resort, use the slow shell script. Don't cache a
2769: # value for MKDIR_P within a source directory, because that will
2770: # break other packages using the cache if that directory is
2771: # removed, or if the value is a relative name.
2772: test -d ./--version && rmdir ./--version
2773: MKDIR_P="$ac_install_sh -d"
2774: fi
2775: fi
2776: { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2777: $as_echo "$MKDIR_P" >&6; }
2778:
2779: mkdir_p="$MKDIR_P"
2780: case $mkdir_p in
2781: [\\/$]* | ?:[\\/]*) ;;
2782: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2783: esac
2784:
2785: for ac_prog in gawk mawk nawk awk
2786: do
2787: # Extract the first word of "$ac_prog", so it can be a program name with args.
2788: set dummy $ac_prog; ac_word=$2
2789: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2790: $as_echo_n "checking for $ac_word... " >&6; }
2791: if test "${ac_cv_prog_AWK+set}" = set; then
2792: $as_echo_n "(cached) " >&6
2793: else
2794: if test -n "$AWK"; then
2795: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2796: else
2797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798: for as_dir in $PATH
2799: do
2800: IFS=$as_save_IFS
2801: test -z "$as_dir" && as_dir=.
2802: for ac_exec_ext in '' $ac_executable_extensions; do
2803: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804: ac_cv_prog_AWK="$ac_prog"
2805: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806: break 2
2807: fi
2808: done
2809: done
2810: IFS=$as_save_IFS
2811:
2812: fi
2813: fi
2814: AWK=$ac_cv_prog_AWK
2815: if test -n "$AWK"; then
2816: { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2817: $as_echo "$AWK" >&6; }
2818: else
2819: { $as_echo "$as_me:$LINENO: result: no" >&5
2820: $as_echo "no" >&6; }
2821: fi
2822:
2823:
2824: test -n "$AWK" && break
2825: done
2826:
2827: { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2829: set x ${MAKE-make}
2830: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2832: $as_echo_n "(cached) " >&6
2833: else
2834: cat >conftest.make <<\_ACEOF
2835: SHELL = /bin/sh
2836: all:
2837: @echo '@@@%%%=$(MAKE)=@@@%%%'
2838: _ACEOF
2839: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2840: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2841: *@@@%%%=?*=@@@%%%*)
2842: eval ac_cv_prog_make_${ac_make}_set=yes;;
2843: *)
2844: eval ac_cv_prog_make_${ac_make}_set=no;;
2845: esac
2846: rm -f conftest.make
2847: fi
2848: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849: { $as_echo "$as_me:$LINENO: result: yes" >&5
2850: $as_echo "yes" >&6; }
2851: SET_MAKE=
2852: else
2853: { $as_echo "$as_me:$LINENO: result: no" >&5
2854: $as_echo "no" >&6; }
2855: SET_MAKE="MAKE=${MAKE-make}"
2856: fi
2857:
2858: rm -rf .tst 2>/dev/null
2859: mkdir .tst 2>/dev/null
2860: if test -d .tst; then
2861: am__leading_dot=.
2862: else
2863: am__leading_dot=_
2864: fi
2865: rmdir .tst 2>/dev/null
2866:
2867: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869: # is not polluted with repeated "-I."
2870: am__isrc=' -I$(srcdir)'
2871: # test to see if srcdir already configured
2872: if test -f $srcdir/config.status; then
2873: { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2874: $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2875: { (exit 1); exit 1; }; }
2876: fi
2877: fi
2878:
2879: # test whether we have cygpath
2880: if test -z "$CYGPATH_W"; then
2881: if (cygpath --version) >/dev/null 2>/dev/null; then
2882: CYGPATH_W='cygpath -w'
2883: else
2884: CYGPATH_W=echo
2885: fi
2886: fi
2887:
2888:
2889: # Define the identity of the package.
2890: PACKAGE=libiconv
2891: VERSION=1.13.1
2892:
2893:
2894: cat >>confdefs.h <<_ACEOF
2895: #define PACKAGE "$PACKAGE"
2896: _ACEOF
2897:
2898:
2899: cat >>confdefs.h <<_ACEOF
2900: #define VERSION "$VERSION"
2901: _ACEOF
2902:
2903: # Some tools Automake needs.
2904:
2905: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2906:
2907:
2908: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2909:
2910:
2911: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2912:
2913:
2914: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2915:
2916:
2917: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2918:
2919: # We need awk for the "check" target. The system "awk" is bad on
2920: # some platforms.
2921: # Always define AMTAR for backward compatibility.
2922:
2923: AMTAR=${AMTAR-"${am_missing_run}tar"}
2924:
2925: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2926:
2927:
2928:
2929:
2930:
2931: ac_config_headers="$ac_config_headers config.h lib/config.h"
2932:
2933: { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2934: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2935: set x ${MAKE-make}
2936: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2937: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2938: $as_echo_n "(cached) " >&6
2939: else
2940: cat >conftest.make <<\_ACEOF
2941: SHELL = /bin/sh
2942: all:
2943: @echo '@@@%%%=$(MAKE)=@@@%%%'
2944: _ACEOF
2945: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2946: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2947: *@@@%%%=?*=@@@%%%*)
2948: eval ac_cv_prog_make_${ac_make}_set=yes;;
2949: *)
2950: eval ac_cv_prog_make_${ac_make}_set=no;;
2951: esac
2952: rm -f conftest.make
2953: fi
2954: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2955: { $as_echo "$as_me:$LINENO: result: yes" >&5
2956: $as_echo "yes" >&6; }
2957: SET_MAKE=
2958: else
2959: { $as_echo "$as_me:$LINENO: result: no" >&5
2960: $as_echo "no" >&6; }
2961: SET_MAKE="MAKE=${MAKE-make}"
2962: fi
2963:
2964:
2965:
2966: ac_ext=c
2967: ac_cpp='$CPP $CPPFLAGS'
2968: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971: if test -n "$ac_tool_prefix"; then
2972: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2974: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2975: $as_echo_n "checking for $ac_word... " >&6; }
2976: if test "${ac_cv_prog_CC+set}" = set; then
2977: $as_echo_n "(cached) " >&6
2978: else
2979: if test -n "$CC"; then
2980: ac_cv_prog_CC="$CC" # Let the user override the test.
2981: else
2982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983: for as_dir in $PATH
2984: do
2985: IFS=$as_save_IFS
2986: test -z "$as_dir" && as_dir=.
2987: for ac_exec_ext in '' $ac_executable_extensions; do
2988: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991: break 2
2992: fi
2993: done
2994: done
2995: IFS=$as_save_IFS
2996:
2997: fi
2998: fi
2999: CC=$ac_cv_prog_CC
3000: if test -n "$CC"; then
3001: { $as_echo "$as_me:$LINENO: result: $CC" >&5
3002: $as_echo "$CC" >&6; }
3003: else
3004: { $as_echo "$as_me:$LINENO: result: no" >&5
3005: $as_echo "no" >&6; }
3006: fi
3007:
3008:
3009: fi
3010: if test -z "$ac_cv_prog_CC"; then
3011: ac_ct_CC=$CC
3012: # Extract the first word of "gcc", so it can be a program name with args.
3013: set dummy gcc; ac_word=$2
3014: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3015: $as_echo_n "checking for $ac_word... " >&6; }
3016: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3017: $as_echo_n "(cached) " >&6
3018: else
3019: if test -n "$ac_ct_CC"; then
3020: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021: else
3022: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023: for as_dir in $PATH
3024: do
3025: IFS=$as_save_IFS
3026: test -z "$as_dir" && as_dir=.
3027: for ac_exec_ext in '' $ac_executable_extensions; do
3028: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029: ac_cv_prog_ac_ct_CC="gcc"
3030: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031: break 2
3032: fi
3033: done
3034: done
3035: IFS=$as_save_IFS
3036:
3037: fi
3038: fi
3039: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040: if test -n "$ac_ct_CC"; then
3041: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3042: $as_echo "$ac_ct_CC" >&6; }
3043: else
3044: { $as_echo "$as_me:$LINENO: result: no" >&5
3045: $as_echo "no" >&6; }
3046: fi
3047:
3048: if test "x$ac_ct_CC" = x; then
3049: CC=""
3050: else
3051: case $cross_compiling:$ac_tool_warned in
3052: yes:)
3053: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3054: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055: ac_tool_warned=yes ;;
3056: esac
3057: CC=$ac_ct_CC
3058: fi
3059: else
3060: CC="$ac_cv_prog_CC"
3061: fi
3062:
3063: if test -z "$CC"; then
3064: if test -n "$ac_tool_prefix"; then
3065: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066: set dummy ${ac_tool_prefix}cc; ac_word=$2
3067: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068: $as_echo_n "checking for $ac_word... " >&6; }
3069: if test "${ac_cv_prog_CC+set}" = set; then
3070: $as_echo_n "(cached) " >&6
3071: else
3072: if test -n "$CC"; then
3073: ac_cv_prog_CC="$CC" # Let the user override the test.
3074: else
3075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076: for as_dir in $PATH
3077: do
3078: IFS=$as_save_IFS
3079: test -z "$as_dir" && as_dir=.
3080: for ac_exec_ext in '' $ac_executable_extensions; do
3081: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082: ac_cv_prog_CC="${ac_tool_prefix}cc"
3083: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084: break 2
3085: fi
3086: done
3087: done
3088: IFS=$as_save_IFS
3089:
3090: fi
3091: fi
3092: CC=$ac_cv_prog_CC
3093: if test -n "$CC"; then
3094: { $as_echo "$as_me:$LINENO: result: $CC" >&5
3095: $as_echo "$CC" >&6; }
3096: else
3097: { $as_echo "$as_me:$LINENO: result: no" >&5
3098: $as_echo "no" >&6; }
3099: fi
3100:
3101:
3102: fi
3103: fi
3104: if test -z "$CC"; then
3105: # Extract the first word of "cc", so it can be a program name with args.
3106: set dummy cc; ac_word=$2
3107: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3108: $as_echo_n "checking for $ac_word... " >&6; }
3109: if test "${ac_cv_prog_CC+set}" = set; then
3110: $as_echo_n "(cached) " >&6
3111: else
3112: if test -n "$CC"; then
3113: ac_cv_prog_CC="$CC" # Let the user override the test.
3114: else
3115: ac_prog_rejected=no
3116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117: for as_dir in $PATH
3118: do
3119: IFS=$as_save_IFS
3120: test -z "$as_dir" && as_dir=.
3121: for ac_exec_ext in '' $ac_executable_extensions; do
3122: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3124: ac_prog_rejected=yes
3125: continue
3126: fi
3127: ac_cv_prog_CC="cc"
3128: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129: break 2
3130: fi
3131: done
3132: done
3133: IFS=$as_save_IFS
3134:
3135: if test $ac_prog_rejected = yes; then
3136: # We found a bogon in the path, so make sure we never use it.
3137: set dummy $ac_cv_prog_CC
3138: shift
3139: if test $# != 0; then
3140: # We chose a different compiler from the bogus one.
3141: # However, it has the same basename, so the bogon will be chosen
3142: # first if we set CC to just the basename; use the full file name.
3143: shift
3144: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145: fi
3146: fi
3147: fi
3148: fi
3149: CC=$ac_cv_prog_CC
3150: if test -n "$CC"; then
3151: { $as_echo "$as_me:$LINENO: result: $CC" >&5
3152: $as_echo "$CC" >&6; }
3153: else
3154: { $as_echo "$as_me:$LINENO: result: no" >&5
3155: $as_echo "no" >&6; }
3156: fi
3157:
3158:
3159: fi
3160: if test -z "$CC"; then
3161: if test -n "$ac_tool_prefix"; then
3162: for ac_prog in cl.exe
3163: do
3164: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3167: $as_echo_n "checking for $ac_word... " >&6; }
3168: if test "${ac_cv_prog_CC+set}" = set; then
3169: $as_echo_n "(cached) " >&6
3170: else
3171: if test -n "$CC"; then
3172: ac_cv_prog_CC="$CC" # Let the user override the test.
3173: else
3174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175: for as_dir in $PATH
3176: do
3177: IFS=$as_save_IFS
3178: test -z "$as_dir" && as_dir=.
3179: for ac_exec_ext in '' $ac_executable_extensions; do
3180: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3182: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183: break 2
3184: fi
3185: done
3186: done
3187: IFS=$as_save_IFS
3188:
3189: fi
3190: fi
3191: CC=$ac_cv_prog_CC
3192: if test -n "$CC"; then
3193: { $as_echo "$as_me:$LINENO: result: $CC" >&5
3194: $as_echo "$CC" >&6; }
3195: else
3196: { $as_echo "$as_me:$LINENO: result: no" >&5
3197: $as_echo "no" >&6; }
3198: fi
3199:
3200:
3201: test -n "$CC" && break
3202: done
3203: fi
3204: if test -z "$CC"; then
3205: ac_ct_CC=$CC
3206: for ac_prog in cl.exe
3207: do
3208: # Extract the first word of "$ac_prog", so it can be a program name with args.
3209: set dummy $ac_prog; ac_word=$2
3210: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3211: $as_echo_n "checking for $ac_word... " >&6; }
3212: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3213: $as_echo_n "(cached) " >&6
3214: else
3215: if test -n "$ac_ct_CC"; then
3216: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217: else
3218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219: for as_dir in $PATH
3220: do
3221: IFS=$as_save_IFS
3222: test -z "$as_dir" && as_dir=.
3223: for ac_exec_ext in '' $ac_executable_extensions; do
3224: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225: ac_cv_prog_ac_ct_CC="$ac_prog"
3226: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227: break 2
3228: fi
3229: done
3230: done
3231: IFS=$as_save_IFS
3232:
3233: fi
3234: fi
3235: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236: if test -n "$ac_ct_CC"; then
3237: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3238: $as_echo "$ac_ct_CC" >&6; }
3239: else
3240: { $as_echo "$as_me:$LINENO: result: no" >&5
3241: $as_echo "no" >&6; }
3242: fi
3243:
3244:
3245: test -n "$ac_ct_CC" && break
3246: done
3247:
3248: if test "x$ac_ct_CC" = x; then
3249: CC=""
3250: else
3251: case $cross_compiling:$ac_tool_warned in
3252: yes:)
3253: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3254: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255: ac_tool_warned=yes ;;
3256: esac
3257: CC=$ac_ct_CC
3258: fi
3259: fi
3260:
3261: fi
3262:
3263:
3264: test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3265: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266: { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267: See \`config.log' for more details." >&5
3268: $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3269: See \`config.log' for more details." >&2;}
3270: { (exit 1); exit 1; }; }; }
3271:
3272: # Provide some information about the compiler.
3273: $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3274: set X $ac_compile
3275: ac_compiler=$2
3276: { (ac_try="$ac_compiler --version >&5"
3277: case "(($ac_try" in
3278: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279: *) ac_try_echo=$ac_try;;
3280: esac
3281: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282: $as_echo "$ac_try_echo") >&5
3283: (eval "$ac_compiler --version >&5") 2>&5
3284: ac_status=$?
3285: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286: (exit $ac_status); }
3287: { (ac_try="$ac_compiler -v >&5"
3288: case "(($ac_try" in
3289: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290: *) ac_try_echo=$ac_try;;
3291: esac
3292: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293: $as_echo "$ac_try_echo") >&5
3294: (eval "$ac_compiler -v >&5") 2>&5
3295: ac_status=$?
3296: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297: (exit $ac_status); }
3298: { (ac_try="$ac_compiler -V >&5"
3299: case "(($ac_try" in
3300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301: *) ac_try_echo=$ac_try;;
3302: esac
3303: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304: $as_echo "$ac_try_echo") >&5
3305: (eval "$ac_compiler -V >&5") 2>&5
3306: ac_status=$?
3307: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308: (exit $ac_status); }
3309:
3310: cat >conftest.$ac_ext <<_ACEOF
3311: /* confdefs.h. */
3312: _ACEOF
3313: cat confdefs.h >>conftest.$ac_ext
3314: cat >>conftest.$ac_ext <<_ACEOF
3315: /* end confdefs.h. */
3316:
3317: int
3318: main ()
3319: {
3320:
3321: ;
3322: return 0;
3323: }
3324: _ACEOF
3325: ac_clean_files_save=$ac_clean_files
3326: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3327: # Try to create an executable without -o first, disregard a.out.
3328: # It will help us diagnose broken compilers, and finding out an intuition
3329: # of exeext.
3330: { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3331: $as_echo_n "checking for C compiler default output file name... " >&6; }
3332: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3333:
3334: # The possible output files:
3335: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3336:
3337: ac_rmfiles=
3338: for ac_file in $ac_files
3339: do
3340: case $ac_file in
3341: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3343: esac
3344: done
3345: rm -f $ac_rmfiles
3346:
3347: if { (ac_try="$ac_link_default"
3348: case "(($ac_try" in
3349: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350: *) ac_try_echo=$ac_try;;
3351: esac
3352: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353: $as_echo "$ac_try_echo") >&5
3354: (eval "$ac_link_default") 2>&5
3355: ac_status=$?
3356: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357: (exit $ac_status); }; then
3358: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361: # so that the user can short-circuit this test for compilers unknown to
3362: # Autoconf.
3363: for ac_file in $ac_files ''
3364: do
3365: test -f "$ac_file" || continue
3366: case $ac_file in
3367: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3368: ;;
3369: [ab].out )
3370: # We found the default executable, but exeext='' is most
3371: # certainly right.
3372: break;;
3373: *.* )
3374: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375: then :; else
3376: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377: fi
3378: # We set ac_cv_exeext here because the later test for it is not
3379: # safe: cross compilers may not add the suffix if given an `-o'
3380: # argument, so we may need to know it at that point already.
3381: # Even if this section looks crufty: it has the advantage of
3382: # actually working.
3383: break;;
3384: * )
3385: break;;
3386: esac
3387: done
3388: test "$ac_cv_exeext" = no && ac_cv_exeext=
3389:
3390: else
3391: ac_file=''
3392: fi
3393:
3394: { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3395: $as_echo "$ac_file" >&6; }
3396: if test -z "$ac_file"; then
3397: $as_echo "$as_me: failed program was:" >&5
3398: sed 's/^/| /' conftest.$ac_ext >&5
3399:
3400: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3401: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402: { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3403: See \`config.log' for more details." >&5
3404: $as_echo "$as_me: error: C compiler cannot create executables
3405: See \`config.log' for more details." >&2;}
3406: { (exit 77); exit 77; }; }; }
3407: fi
3408:
3409: ac_exeext=$ac_cv_exeext
3410:
3411: # Check that the compiler produces executables we can run. If not, either
3412: # the compiler is broken, or we cross compile.
3413: { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3414: $as_echo_n "checking whether the C compiler works... " >&6; }
3415: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3416: # If not cross compiling, check that we can run a simple program.
3417: if test "$cross_compiling" != yes; then
3418: if { ac_try='./$ac_file'
3419: { (case "(($ac_try" in
3420: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421: *) ac_try_echo=$ac_try;;
3422: esac
3423: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3424: $as_echo "$ac_try_echo") >&5
3425: (eval "$ac_try") 2>&5
3426: ac_status=$?
3427: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428: (exit $ac_status); }; }; then
3429: cross_compiling=no
3430: else
3431: if test "$cross_compiling" = maybe; then
3432: cross_compiling=yes
3433: else
3434: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3435: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436: { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3437: If you meant to cross compile, use \`--host'.
3438: See \`config.log' for more details." >&5
3439: $as_echo "$as_me: error: cannot run C compiled programs.
3440: If you meant to cross compile, use \`--host'.
3441: See \`config.log' for more details." >&2;}
3442: { (exit 1); exit 1; }; }; }
3443: fi
3444: fi
3445: fi
3446: { $as_echo "$as_me:$LINENO: result: yes" >&5
3447: $as_echo "yes" >&6; }
3448:
3449: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3450: ac_clean_files=$ac_clean_files_save
3451: # Check that the compiler produces executables we can run. If not, either
3452: # the compiler is broken, or we cross compile.
3453: { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3454: $as_echo_n "checking whether we are cross compiling... " >&6; }
3455: { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3456: $as_echo "$cross_compiling" >&6; }
3457:
3458: { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3459: $as_echo_n "checking for suffix of executables... " >&6; }
3460: if { (ac_try="$ac_link"
3461: case "(($ac_try" in
3462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463: *) ac_try_echo=$ac_try;;
3464: esac
3465: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466: $as_echo "$ac_try_echo") >&5
3467: (eval "$ac_link") 2>&5
3468: ac_status=$?
3469: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470: (exit $ac_status); }; then
3471: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3472: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3473: # work properly (i.e., refer to `conftest.exe'), while it won't with
3474: # `rm'.
3475: for ac_file in conftest.exe conftest conftest.*; do
3476: test -f "$ac_file" || continue
3477: case $ac_file in
3478: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480: break;;
3481: * ) break;;
3482: esac
3483: done
3484: else
3485: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3486: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3488: See \`config.log' for more details." >&5
3489: $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3490: See \`config.log' for more details." >&2;}
3491: { (exit 1); exit 1; }; }; }
3492: fi
3493:
3494: rm -f conftest$ac_cv_exeext
3495: { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3496: $as_echo "$ac_cv_exeext" >&6; }
3497:
3498: rm -f conftest.$ac_ext
3499: EXEEXT=$ac_cv_exeext
3500: ac_exeext=$EXEEXT
3501: { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3502: $as_echo_n "checking for suffix of object files... " >&6; }
3503: if test "${ac_cv_objext+set}" = set; then
3504: $as_echo_n "(cached) " >&6
3505: else
3506: cat >conftest.$ac_ext <<_ACEOF
3507: /* confdefs.h. */
3508: _ACEOF
3509: cat confdefs.h >>conftest.$ac_ext
3510: cat >>conftest.$ac_ext <<_ACEOF
3511: /* end confdefs.h. */
3512:
3513: int
3514: main ()
3515: {
3516:
3517: ;
3518: return 0;
3519: }
3520: _ACEOF
3521: rm -f conftest.o conftest.obj
3522: if { (ac_try="$ac_compile"
3523: case "(($ac_try" in
3524: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525: *) ac_try_echo=$ac_try;;
3526: esac
3527: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3528: $as_echo "$ac_try_echo") >&5
3529: (eval "$ac_compile") 2>&5
3530: ac_status=$?
3531: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532: (exit $ac_status); }; then
3533: for ac_file in conftest.o conftest.obj conftest.*; do
3534: test -f "$ac_file" || continue;
3535: case $ac_file in
3536: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3537: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3538: break;;
3539: esac
3540: done
3541: else
3542: $as_echo "$as_me: failed program was:" >&5
3543: sed 's/^/| /' conftest.$ac_ext >&5
3544:
3545: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3546: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3548: See \`config.log' for more details." >&5
3549: $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3550: See \`config.log' for more details." >&2;}
3551: { (exit 1); exit 1; }; }; }
3552: fi
3553:
3554: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3555: fi
3556: { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3557: $as_echo "$ac_cv_objext" >&6; }
3558: OBJEXT=$ac_cv_objext
3559: ac_objext=$OBJEXT
3560: { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3561: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3562: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3563: $as_echo_n "(cached) " >&6
3564: else
3565: cat >conftest.$ac_ext <<_ACEOF
3566: /* confdefs.h. */
3567: _ACEOF
3568: cat confdefs.h >>conftest.$ac_ext
3569: cat >>conftest.$ac_ext <<_ACEOF
3570: /* end confdefs.h. */
3571:
3572: int
3573: main ()
3574: {
3575: #ifndef __GNUC__
3576: choke me
3577: #endif
3578:
3579: ;
3580: return 0;
3581: }
3582: _ACEOF
3583: rm -f conftest.$ac_objext
3584: if { (ac_try="$ac_compile"
3585: case "(($ac_try" in
3586: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587: *) ac_try_echo=$ac_try;;
3588: esac
3589: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3590: $as_echo "$ac_try_echo") >&5
3591: (eval "$ac_compile") 2>conftest.er1
3592: ac_status=$?
3593: grep -v '^ *+' conftest.er1 >conftest.err
3594: rm -f conftest.er1
3595: cat conftest.err >&5
3596: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597: (exit $ac_status); } && {
3598: test -z "$ac_c_werror_flag" ||
3599: test ! -s conftest.err
3600: } && test -s conftest.$ac_objext; then
3601: ac_compiler_gnu=yes
3602: else
3603: $as_echo "$as_me: failed program was:" >&5
3604: sed 's/^/| /' conftest.$ac_ext >&5
3605:
3606: ac_compiler_gnu=no
3607: fi
3608:
3609: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3611:
3612: fi
3613: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3614: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3615: if test $ac_compiler_gnu = yes; then
3616: GCC=yes
3617: else
3618: GCC=
3619: fi
3620: ac_test_CFLAGS=${CFLAGS+set}
3621: ac_save_CFLAGS=$CFLAGS
3622: { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3623: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3624: if test "${ac_cv_prog_cc_g+set}" = set; then
3625: $as_echo_n "(cached) " >&6
3626: else
3627: ac_save_c_werror_flag=$ac_c_werror_flag
3628: ac_c_werror_flag=yes
3629: ac_cv_prog_cc_g=no
3630: CFLAGS="-g"
3631: cat >conftest.$ac_ext <<_ACEOF
3632: /* confdefs.h. */
3633: _ACEOF
3634: cat confdefs.h >>conftest.$ac_ext
3635: cat >>conftest.$ac_ext <<_ACEOF
3636: /* end confdefs.h. */
3637:
3638: int
3639: main ()
3640: {
3641:
3642: ;
3643: return 0;
3644: }
3645: _ACEOF
3646: rm -f conftest.$ac_objext
3647: if { (ac_try="$ac_compile"
3648: case "(($ac_try" in
3649: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650: *) ac_try_echo=$ac_try;;
3651: esac
3652: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653: $as_echo "$ac_try_echo") >&5
3654: (eval "$ac_compile") 2>conftest.er1
3655: ac_status=$?
3656: grep -v '^ *+' conftest.er1 >conftest.err
3657: rm -f conftest.er1
3658: cat conftest.err >&5
3659: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660: (exit $ac_status); } && {
3661: test -z "$ac_c_werror_flag" ||
3662: test ! -s conftest.err
3663: } && test -s conftest.$ac_objext; then
3664: ac_cv_prog_cc_g=yes
3665: else
3666: $as_echo "$as_me: failed program was:" >&5
3667: sed 's/^/| /' conftest.$ac_ext >&5
3668:
3669: CFLAGS=""
3670: cat >conftest.$ac_ext <<_ACEOF
3671: /* confdefs.h. */
3672: _ACEOF
3673: cat confdefs.h >>conftest.$ac_ext
3674: cat >>conftest.$ac_ext <<_ACEOF
3675: /* end confdefs.h. */
3676:
3677: int
3678: main ()
3679: {
3680:
3681: ;
3682: return 0;
3683: }
3684: _ACEOF
3685: rm -f conftest.$ac_objext
3686: if { (ac_try="$ac_compile"
3687: case "(($ac_try" in
3688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689: *) ac_try_echo=$ac_try;;
3690: esac
3691: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3692: $as_echo "$ac_try_echo") >&5
3693: (eval "$ac_compile") 2>conftest.er1
3694: ac_status=$?
3695: grep -v '^ *+' conftest.er1 >conftest.err
3696: rm -f conftest.er1
3697: cat conftest.err >&5
3698: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699: (exit $ac_status); } && {
3700: test -z "$ac_c_werror_flag" ||
3701: test ! -s conftest.err
3702: } && test -s conftest.$ac_objext; then
3703: :
3704: else
3705: $as_echo "$as_me: failed program was:" >&5
3706: sed 's/^/| /' conftest.$ac_ext >&5
3707:
3708: ac_c_werror_flag=$ac_save_c_werror_flag
3709: CFLAGS="-g"
3710: cat >conftest.$ac_ext <<_ACEOF
3711: /* confdefs.h. */
3712: _ACEOF
3713: cat confdefs.h >>conftest.$ac_ext
3714: cat >>conftest.$ac_ext <<_ACEOF
3715: /* end confdefs.h. */
3716:
3717: int
3718: main ()
3719: {
3720:
3721: ;
3722: return 0;
3723: }
3724: _ACEOF
3725: rm -f conftest.$ac_objext
3726: if { (ac_try="$ac_compile"
3727: case "(($ac_try" in
3728: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729: *) ac_try_echo=$ac_try;;
3730: esac
3731: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732: $as_echo "$ac_try_echo") >&5
3733: (eval "$ac_compile") 2>conftest.er1
3734: ac_status=$?
3735: grep -v '^ *+' conftest.er1 >conftest.err
3736: rm -f conftest.er1
3737: cat conftest.err >&5
3738: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739: (exit $ac_status); } && {
3740: test -z "$ac_c_werror_flag" ||
3741: test ! -s conftest.err
3742: } && test -s conftest.$ac_objext; then
3743: ac_cv_prog_cc_g=yes
3744: else
3745: $as_echo "$as_me: failed program was:" >&5
3746: sed 's/^/| /' conftest.$ac_ext >&5
3747:
3748:
3749: fi
3750:
3751: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752: fi
3753:
3754: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755: fi
3756:
3757: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758: ac_c_werror_flag=$ac_save_c_werror_flag
3759: fi
3760: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3761: $as_echo "$ac_cv_prog_cc_g" >&6; }
3762: if test "$ac_test_CFLAGS" = set; then
3763: CFLAGS=$ac_save_CFLAGS
3764: elif test $ac_cv_prog_cc_g = yes; then
3765: if test "$GCC" = yes; then
3766: CFLAGS="-g -O2"
3767: else
3768: CFLAGS="-g"
3769: fi
3770: else
3771: if test "$GCC" = yes; then
3772: CFLAGS="-O2"
3773: else
3774: CFLAGS=
3775: fi
3776: fi
3777: { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3778: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3779: if test "${ac_cv_prog_cc_c89+set}" = set; then
3780: $as_echo_n "(cached) " >&6
3781: else
3782: ac_cv_prog_cc_c89=no
3783: ac_save_CC=$CC
3784: cat >conftest.$ac_ext <<_ACEOF
3785: /* confdefs.h. */
3786: _ACEOF
3787: cat confdefs.h >>conftest.$ac_ext
3788: cat >>conftest.$ac_ext <<_ACEOF
3789: /* end confdefs.h. */
3790: #include <stdarg.h>
3791: #include <stdio.h>
3792: #include <sys/types.h>
3793: #include <sys/stat.h>
3794: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3795: struct buf { int x; };
3796: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3797: static char *e (p, i)
3798: char **p;
3799: int i;
3800: {
3801: return p[i];
3802: }
3803: static char *f (char * (*g) (char **, int), char **p, ...)
3804: {
3805: char *s;
3806: va_list v;
3807: va_start (v,p);
3808: s = g (p, va_arg (v,int));
3809: va_end (v);
3810: return s;
3811: }
3812:
3813: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3814: function prototypes and stuff, but not '\xHH' hex character constants.
3815: These don't provoke an error unfortunately, instead are silently treated
3816: as 'x'. The following induces an error, until -std is added to get
3817: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3818: array size at least. It's necessary to write '\x00'==0 to get something
3819: that's true only with -std. */
3820: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3821:
3822: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3823: inside strings and character constants. */
3824: #define FOO(x) 'x'
3825: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3826:
3827: int test (int i, double x);
3828: struct s1 {int (*f) (int a);};
3829: struct s2 {int (*f) (double a);};
3830: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3831: int argc;
3832: char **argv;
3833: int
3834: main ()
3835: {
3836: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3837: ;
3838: return 0;
3839: }
3840: _ACEOF
3841: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3842: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843: do
3844: CC="$ac_save_CC $ac_arg"
3845: rm -f conftest.$ac_objext
3846: if { (ac_try="$ac_compile"
3847: case "(($ac_try" in
3848: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849: *) ac_try_echo=$ac_try;;
3850: esac
3851: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3852: $as_echo "$ac_try_echo") >&5
3853: (eval "$ac_compile") 2>conftest.er1
3854: ac_status=$?
3855: grep -v '^ *+' conftest.er1 >conftest.err
3856: rm -f conftest.er1
3857: cat conftest.err >&5
3858: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859: (exit $ac_status); } && {
3860: test -z "$ac_c_werror_flag" ||
3861: test ! -s conftest.err
3862: } && test -s conftest.$ac_objext; then
3863: ac_cv_prog_cc_c89=$ac_arg
3864: else
3865: $as_echo "$as_me: failed program was:" >&5
3866: sed 's/^/| /' conftest.$ac_ext >&5
3867:
3868:
3869: fi
3870:
3871: rm -f core conftest.err conftest.$ac_objext
3872: test "x$ac_cv_prog_cc_c89" != "xno" && break
3873: done
3874: rm -f conftest.$ac_ext
3875: CC=$ac_save_CC
3876:
3877: fi
3878: # AC_CACHE_VAL
3879: case "x$ac_cv_prog_cc_c89" in
3880: x)
3881: { $as_echo "$as_me:$LINENO: result: none needed" >&5
3882: $as_echo "none needed" >&6; } ;;
3883: xno)
3884: { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3885: $as_echo "unsupported" >&6; } ;;
3886: *)
3887: CC="$CC $ac_cv_prog_cc_c89"
3888: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3889: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3890: esac
3891:
3892:
3893: ac_ext=c
3894: ac_cpp='$CPP $CPPFLAGS'
3895: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898: DEPDIR="${am__leading_dot}deps"
3899:
3900: ac_config_commands="$ac_config_commands depfiles"
3901:
3902:
3903: am_make=${MAKE-make}
3904: cat > confinc << 'END'
3905: am__doit:
3906: @echo this is the am__doit target
3907: .PHONY: am__doit
3908: END
3909: # If we don't find an include directive, just comment out the code.
3910: { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3911: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3912: am__include="#"
3913: am__quote=
3914: _am_result=none
3915: # First try GNU make style include.
3916: echo "include confinc" > confmf
3917: # Ignore all kinds of additional output from `make'.
3918: case `$am_make -s -f confmf 2> /dev/null` in #(
3919: *the\ am__doit\ target*)
3920: am__include=include
3921: am__quote=
3922: _am_result=GNU
3923: ;;
3924: esac
3925: # Now try BSD make style include.
3926: if test "$am__include" = "#"; then
3927: echo '.include "confinc"' > confmf
3928: case `$am_make -s -f confmf 2> /dev/null` in #(
3929: *the\ am__doit\ target*)
3930: am__include=.include
3931: am__quote="\""
3932: _am_result=BSD
3933: ;;
3934: esac
3935: fi
3936:
3937:
3938: { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3939: $as_echo "$_am_result" >&6; }
3940: rm -f confinc confmf
3941:
3942: # Check whether --enable-dependency-tracking was given.
3943: if test "${enable_dependency_tracking+set}" = set; then
3944: enableval=$enable_dependency_tracking;
3945: fi
3946:
3947: if test "x$enable_dependency_tracking" != xno; then
3948: am_depcomp="$ac_aux_dir/depcomp"
3949: AMDEPBACKSLASH='\'
3950: fi
3951: if test "x$enable_dependency_tracking" != xno; then
3952: AMDEP_TRUE=
3953: AMDEP_FALSE='#'
3954: else
3955: AMDEP_TRUE='#'
3956: AMDEP_FALSE=
3957: fi
3958:
3959:
3960:
3961: depcc="$CC" am_compiler_list=
3962:
3963: { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3964: $as_echo_n "checking dependency style of $depcc... " >&6; }
3965: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3966: $as_echo_n "(cached) " >&6
3967: else
3968: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3969: # We make a subdir and do the tests there. Otherwise we can end up
3970: # making bogus files that we don't know about and never remove. For
3971: # instance it was reported that on HP-UX the gcc test will end up
3972: # making a dummy file named `D' -- because `-MD' means `put the output
3973: # in D'.
3974: mkdir conftest.dir
3975: # Copy depcomp to subdir because otherwise we won't find it if we're
3976: # using a relative directory.
3977: cp "$am_depcomp" conftest.dir
3978: cd conftest.dir
3979: # We will build objects and dependencies in a subdirectory because
3980: # it helps to detect inapplicable dependency modes. For instance
3981: # both Tru64's cc and ICC support -MD to output dependencies as a
3982: # side effect of compilation, but ICC will put the dependencies in
3983: # the current directory while Tru64 will put them in the object
3984: # directory.
3985: mkdir sub
3986:
3987: am_cv_CC_dependencies_compiler_type=none
3988: if test "$am_compiler_list" = ""; then
3989: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3990: fi
3991: am__universal=false
3992: case " $depcc " in #(
3993: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3994: esac
3995:
3996: for depmode in $am_compiler_list; do
3997: # Setup a source with many dependencies, because some compilers
3998: # like to wrap large dependency lists on column 80 (with \), and
3999: # we should not choose a depcomp mode which is confused by this.
4000: #
4001: # We need to recreate these files for each test, as the compiler may
4002: # overwrite some of them when testing with obscure command lines.
4003: # This happens at least with the AIX C compiler.
4004: : > sub/conftest.c
4005: for i in 1 2 3 4 5 6; do
4006: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4008: # Solaris 8's {/usr,}/bin/sh.
4009: touch sub/conftst$i.h
4010: done
4011: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4012:
4013: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4014: # mode. It turns out that the SunPro C++ compiler does not properly
4015: # handle `-M -o', and we need to detect this. Also, some Intel
4016: # versions had trouble with output in subdirs
4017: am__obj=sub/conftest.${OBJEXT-o}
4018: am__minus_obj="-o $am__obj"
4019: case $depmode in
4020: gcc)
4021: # This depmode causes a compiler race in universal mode.
4022: test "$am__universal" = false || continue
4023: ;;
4024: nosideeffect)
4025: # after this tag, mechanisms are not by side-effect, so they'll
4026: # only be used when explicitly requested
4027: if test "x$enable_dependency_tracking" = xyes; then
4028: continue
4029: else
4030: break
4031: fi
4032: ;;
4033: msvisualcpp | msvcmsys)
4034: # This compiler won't grok `-c -o', but also, the minuso test has
4035: # not run yet. These depmodes are late enough in the game, and
4036: # so weak that their functioning should not be impacted.
4037: am__obj=conftest.${OBJEXT-o}
4038: am__minus_obj=
4039: ;;
4040: none) break ;;
4041: esac
4042: if depmode=$depmode \
4043: source=sub/conftest.c object=$am__obj \
4044: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4045: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4046: >/dev/null 2>conftest.err &&
4047: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4048: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4049: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4050: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4051: # icc doesn't choke on unknown options, it will just issue warnings
4052: # or remarks (even with -Werror). So we grep stderr for any message
4053: # that says an option was ignored or not supported.
4054: # When given -MP, icc 7.0 and 7.1 complain thusly:
4055: # icc: Command line warning: ignoring option '-M'; no argument required
4056: # The diagnosis changed in icc 8.0:
4057: # icc: Command line remark: option '-MP' not supported
4058: if (grep 'ignoring option' conftest.err ||
4059: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4060: am_cv_CC_dependencies_compiler_type=$depmode
4061: break
4062: fi
4063: fi
4064: done
4065:
4066: cd ..
4067: rm -rf conftest.dir
4068: else
4069: am_cv_CC_dependencies_compiler_type=none
4070: fi
4071:
4072: fi
4073: { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4074: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4075: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4076:
4077: if
4078: test "x$enable_dependency_tracking" != xno \
4079: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4080: am__fastdepCC_TRUE=
4081: am__fastdepCC_FALSE='#'
4082: else
4083: am__fastdepCC_TRUE='#'
4084: am__fastdepCC_FALSE=
4085: fi
4086:
4087:
4088: ac_ext=c
4089: ac_cpp='$CPP $CPPFLAGS'
4090: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093: { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4094: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4095: # On Suns, sometimes $CPP names a directory.
4096: if test -n "$CPP" && test -d "$CPP"; then
4097: CPP=
4098: fi
4099: if test -z "$CPP"; then
4100: if test "${ac_cv_prog_CPP+set}" = set; then
4101: $as_echo_n "(cached) " >&6
4102: else
4103: # Double quotes because CPP needs to be expanded
4104: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4105: do
4106: ac_preproc_ok=false
4107: for ac_c_preproc_warn_flag in '' yes
4108: do
4109: # Use a header file that comes with gcc, so configuring glibc
4110: # with a fresh cross-compiler works.
4111: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112: # <limits.h> exists even on freestanding compilers.
4113: # On the NeXT, cc -E runs the code through the compiler's parser,
4114: # not just through cpp. "Syntax error" is here to catch this case.
4115: cat >conftest.$ac_ext <<_ACEOF
4116: /* confdefs.h. */
4117: _ACEOF
4118: cat confdefs.h >>conftest.$ac_ext
4119: cat >>conftest.$ac_ext <<_ACEOF
4120: /* end confdefs.h. */
4121: #ifdef __STDC__
4122: # include <limits.h>
4123: #else
4124: # include <assert.h>
4125: #endif
4126: Syntax error
4127: _ACEOF
4128: if { (ac_try="$ac_cpp conftest.$ac_ext"
4129: case "(($ac_try" in
4130: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131: *) ac_try_echo=$ac_try;;
4132: esac
4133: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4134: $as_echo "$ac_try_echo") >&5
4135: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4136: ac_status=$?
4137: grep -v '^ *+' conftest.er1 >conftest.err
4138: rm -f conftest.er1
4139: cat conftest.err >&5
4140: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141: (exit $ac_status); } >/dev/null && {
4142: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4143: test ! -s conftest.err
4144: }; then
4145: :
4146: else
4147: $as_echo "$as_me: failed program was:" >&5
4148: sed 's/^/| /' conftest.$ac_ext >&5
4149:
4150: # Broken: fails on valid input.
4151: continue
4152: fi
4153:
4154: rm -f conftest.err conftest.$ac_ext
4155:
4156: # OK, works on sane cases. Now check whether nonexistent headers
4157: # can be detected and how.
4158: cat >conftest.$ac_ext <<_ACEOF
4159: /* confdefs.h. */
4160: _ACEOF
4161: cat confdefs.h >>conftest.$ac_ext
4162: cat >>conftest.$ac_ext <<_ACEOF
4163: /* end confdefs.h. */
4164: #include <ac_nonexistent.h>
4165: _ACEOF
4166: if { (ac_try="$ac_cpp conftest.$ac_ext"
4167: case "(($ac_try" in
4168: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169: *) ac_try_echo=$ac_try;;
4170: esac
4171: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4172: $as_echo "$ac_try_echo") >&5
4173: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4174: ac_status=$?
4175: grep -v '^ *+' conftest.er1 >conftest.err
4176: rm -f conftest.er1
4177: cat conftest.err >&5
4178: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179: (exit $ac_status); } >/dev/null && {
4180: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4181: test ! -s conftest.err
4182: }; then
4183: # Broken: success on invalid input.
4184: continue
4185: else
4186: $as_echo "$as_me: failed program was:" >&5
4187: sed 's/^/| /' conftest.$ac_ext >&5
4188:
4189: # Passes both tests.
4190: ac_preproc_ok=:
4191: break
4192: fi
4193:
4194: rm -f conftest.err conftest.$ac_ext
4195:
4196: done
4197: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4198: rm -f conftest.err conftest.$ac_ext
4199: if $ac_preproc_ok; then
4200: break
4201: fi
4202:
4203: done
4204: ac_cv_prog_CPP=$CPP
4205:
4206: fi
4207: CPP=$ac_cv_prog_CPP
4208: else
4209: ac_cv_prog_CPP=$CPP
4210: fi
4211: { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4212: $as_echo "$CPP" >&6; }
4213: ac_preproc_ok=false
4214: for ac_c_preproc_warn_flag in '' yes
4215: do
4216: # Use a header file that comes with gcc, so configuring glibc
4217: # with a fresh cross-compiler works.
4218: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219: # <limits.h> exists even on freestanding compilers.
4220: # On the NeXT, cc -E runs the code through the compiler's parser,
4221: # not just through cpp. "Syntax error" is here to catch this case.
4222: cat >conftest.$ac_ext <<_ACEOF
4223: /* confdefs.h. */
4224: _ACEOF
4225: cat confdefs.h >>conftest.$ac_ext
4226: cat >>conftest.$ac_ext <<_ACEOF
4227: /* end confdefs.h. */
4228: #ifdef __STDC__
4229: # include <limits.h>
4230: #else
4231: # include <assert.h>
4232: #endif
4233: Syntax error
4234: _ACEOF
4235: if { (ac_try="$ac_cpp conftest.$ac_ext"
4236: case "(($ac_try" in
4237: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238: *) ac_try_echo=$ac_try;;
4239: esac
4240: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4241: $as_echo "$ac_try_echo") >&5
4242: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4243: ac_status=$?
4244: grep -v '^ *+' conftest.er1 >conftest.err
4245: rm -f conftest.er1
4246: cat conftest.err >&5
4247: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248: (exit $ac_status); } >/dev/null && {
4249: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250: test ! -s conftest.err
4251: }; then
4252: :
4253: else
4254: $as_echo "$as_me: failed program was:" >&5
4255: sed 's/^/| /' conftest.$ac_ext >&5
4256:
4257: # Broken: fails on valid input.
4258: continue
4259: fi
4260:
4261: rm -f conftest.err conftest.$ac_ext
4262:
4263: # OK, works on sane cases. Now check whether nonexistent headers
4264: # can be detected and how.
4265: cat >conftest.$ac_ext <<_ACEOF
4266: /* confdefs.h. */
4267: _ACEOF
4268: cat confdefs.h >>conftest.$ac_ext
4269: cat >>conftest.$ac_ext <<_ACEOF
4270: /* end confdefs.h. */
4271: #include <ac_nonexistent.h>
4272: _ACEOF
4273: if { (ac_try="$ac_cpp conftest.$ac_ext"
4274: case "(($ac_try" in
4275: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276: *) ac_try_echo=$ac_try;;
4277: esac
4278: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279: $as_echo "$ac_try_echo") >&5
4280: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4281: ac_status=$?
4282: grep -v '^ *+' conftest.er1 >conftest.err
4283: rm -f conftest.er1
4284: cat conftest.err >&5
4285: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286: (exit $ac_status); } >/dev/null && {
4287: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4288: test ! -s conftest.err
4289: }; then
4290: # Broken: success on invalid input.
4291: continue
4292: else
4293: $as_echo "$as_me: failed program was:" >&5
4294: sed 's/^/| /' conftest.$ac_ext >&5
4295:
4296: # Passes both tests.
4297: ac_preproc_ok=:
4298: break
4299: fi
4300:
4301: rm -f conftest.err conftest.$ac_ext
4302:
4303: done
4304: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305: rm -f conftest.err conftest.$ac_ext
4306: if $ac_preproc_ok; then
4307: :
4308: else
4309: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4310: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311: { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4312: See \`config.log' for more details." >&5
4313: $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4314: See \`config.log' for more details." >&2;}
4315: { (exit 1); exit 1; }; }; }
4316: fi
4317:
4318: ac_ext=c
4319: ac_cpp='$CPP $CPPFLAGS'
4320: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323:
4324: # Find a good install program. We prefer a C program (faster),
4325: # so one script is as good as another. But avoid the broken or
4326: # incompatible versions:
4327: # SysV /etc/install, /usr/sbin/install
4328: # SunOS /usr/etc/install
4329: # IRIX /sbin/install
4330: # AIX /bin/install
4331: # AmigaOS /C/install, which installs bootblocks on floppy discs
4332: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4333: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4335: # OS/2's system install, which has a completely different semantic
4336: # ./install, which can be erroneously created by make from ./install.sh.
4337: # Reject install programs that cannot install multiple files.
4338: { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4339: $as_echo_n "checking for a BSD-compatible install... " >&6; }
4340: if test -z "$INSTALL"; then
4341: if test "${ac_cv_path_install+set}" = set; then
4342: $as_echo_n "(cached) " >&6
4343: else
4344: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345: for as_dir in $PATH
4346: do
4347: IFS=$as_save_IFS
4348: test -z "$as_dir" && as_dir=.
4349: # Account for people who put trailing slashes in PATH elements.
4350: case $as_dir/ in
4351: ./ | .// | /cC/* | \
4352: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4353: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4354: /usr/ucb/* ) ;;
4355: *)
4356: # OSF1 and SCO ODT 3.0 have their own names for install.
4357: # Don't use installbsd from OSF since it installs stuff as root
4358: # by default.
4359: for ac_prog in ginstall scoinst install; do
4360: for ac_exec_ext in '' $ac_executable_extensions; do
4361: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4362: if test $ac_prog = install &&
4363: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4364: # AIX install. It has an incompatible calling convention.
4365: :
4366: elif test $ac_prog = install &&
4367: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4368: # program-specific install script used by HP pwplus--don't use.
4369: :
4370: else
4371: rm -rf conftest.one conftest.two conftest.dir
4372: echo one > conftest.one
4373: echo two > conftest.two
4374: mkdir conftest.dir
4375: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4376: test -s conftest.one && test -s conftest.two &&
4377: test -s conftest.dir/conftest.one &&
4378: test -s conftest.dir/conftest.two
4379: then
4380: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4381: break 3
4382: fi
4383: fi
4384: fi
4385: done
4386: done
4387: ;;
4388: esac
4389:
4390: done
4391: IFS=$as_save_IFS
4392:
4393: rm -rf conftest.one conftest.two conftest.dir
4394:
4395: fi
4396: if test "${ac_cv_path_install+set}" = set; then
4397: INSTALL=$ac_cv_path_install
4398: else
4399: # As a last resort, use the slow shell script. Don't cache a
4400: # value for INSTALL within a source directory, because that will
4401: # break other packages using the cache if that directory is
4402: # removed, or if the value is a relative name.
4403: INSTALL=$ac_install_sh
4404: fi
4405: fi
4406: { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4407: $as_echo "$INSTALL" >&6; }
4408:
4409: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4410: # It thinks the first close brace ends the variable substitution.
4411: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4412:
4413: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4414:
4415: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4416:
4417:
4418: # Extract the first word of "strip", so it can be a program name with args.
4419: set dummy strip; ac_word=$2
4420: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4421: $as_echo_n "checking for $ac_word... " >&6; }
4422: if test "${ac_cv_path_STRIP+set}" = set; then
4423: $as_echo_n "(cached) " >&6
4424: else
4425: case $STRIP in
4426: [\\/]* | ?:[\\/]*)
4427: ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
4428: ;;
4429: *)
4430: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431: for as_dir in $PATH
4432: do
4433: IFS=$as_save_IFS
4434: test -z "$as_dir" && as_dir=.
4435: for ac_exec_ext in '' $ac_executable_extensions; do
4436: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437: ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
4438: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439: break 2
4440: fi
4441: done
4442: done
4443: IFS=$as_save_IFS
4444:
4445: test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
4446: ;;
4447: esac
4448: fi
4449: STRIP=$ac_cv_path_STRIP
4450: if test -n "$STRIP"; then
4451: { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4452: $as_echo "$STRIP" >&6; }
4453: else
4454: { $as_echo "$as_me:$LINENO: result: no" >&5
4455: $as_echo "no" >&6; }
4456: fi
4457:
4458: # Installed binaries are usually stripped using `strip' when the user
4459: # run `make install-strip'. However `strip' might not be the right
4460: # tool to use in cross-compilation environments, therefore Automake
4461: # will honor the `STRIP' environment variable to overrule this program.
4462: if test "$cross_compiling" != no; then
4463: if test -n "$ac_tool_prefix"; then
4464: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4465: set dummy ${ac_tool_prefix}strip; ac_word=$2
4466: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4467: $as_echo_n "checking for $ac_word... " >&6; }
4468: if test "${ac_cv_prog_STRIP+set}" = set; then
4469: $as_echo_n "(cached) " >&6
4470: else
4471: if test -n "$STRIP"; then
4472: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4473: else
4474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475: for as_dir in $PATH
4476: do
4477: IFS=$as_save_IFS
4478: test -z "$as_dir" && as_dir=.
4479: for ac_exec_ext in '' $ac_executable_extensions; do
4480: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4482: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483: break 2
4484: fi
4485: done
4486: done
4487: IFS=$as_save_IFS
4488:
4489: fi
4490: fi
4491: STRIP=$ac_cv_prog_STRIP
4492: if test -n "$STRIP"; then
4493: { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4494: $as_echo "$STRIP" >&6; }
4495: else
4496: { $as_echo "$as_me:$LINENO: result: no" >&5
4497: $as_echo "no" >&6; }
4498: fi
4499:
4500:
4501: fi
4502: if test -z "$ac_cv_prog_STRIP"; then
4503: ac_ct_STRIP=$STRIP
4504: # Extract the first word of "strip", so it can be a program name with args.
4505: set dummy strip; ac_word=$2
4506: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4507: $as_echo_n "checking for $ac_word... " >&6; }
4508: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4509: $as_echo_n "(cached) " >&6
4510: else
4511: if test -n "$ac_ct_STRIP"; then
4512: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4513: else
4514: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515: for as_dir in $PATH
4516: do
4517: IFS=$as_save_IFS
4518: test -z "$as_dir" && as_dir=.
4519: for ac_exec_ext in '' $ac_executable_extensions; do
4520: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521: ac_cv_prog_ac_ct_STRIP="strip"
4522: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523: break 2
4524: fi
4525: done
4526: done
4527: IFS=$as_save_IFS
4528:
4529: fi
4530: fi
4531: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4532: if test -n "$ac_ct_STRIP"; then
4533: { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4534: $as_echo "$ac_ct_STRIP" >&6; }
4535: else
4536: { $as_echo "$as_me:$LINENO: result: no" >&5
4537: $as_echo "no" >&6; }
4538: fi
4539:
4540: if test "x$ac_ct_STRIP" = x; then
4541: STRIP=":"
4542: else
4543: case $cross_compiling:$ac_tool_warned in
4544: yes:)
4545: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4546: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547: ac_tool_warned=yes ;;
4548: esac
4549: STRIP=$ac_ct_STRIP
4550: fi
4551: else
4552: STRIP="$ac_cv_prog_STRIP"
4553: fi
4554:
4555: fi
4556: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4557:
4558:
4559: # Make sure we can run config.sub.
4560: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4561: { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4562: $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4563: { (exit 1); exit 1; }; }
4564:
4565: { $as_echo "$as_me:$LINENO: checking build system type" >&5
4566: $as_echo_n "checking build system type... " >&6; }
4567: if test "${ac_cv_build+set}" = set; then
4568: $as_echo_n "(cached) " >&6
4569: else
4570: ac_build_alias=$build_alias
4571: test "x$ac_build_alias" = x &&
4572: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4573: test "x$ac_build_alias" = x &&
4574: { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4575: $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4576: { (exit 1); exit 1; }; }
4577: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4578: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4579: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4580: { (exit 1); exit 1; }; }
4581:
4582: fi
4583: { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4584: $as_echo "$ac_cv_build" >&6; }
4585: case $ac_cv_build in
4586: *-*-*) ;;
4587: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4588: $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4589: { (exit 1); exit 1; }; };;
4590: esac
4591: build=$ac_cv_build
4592: ac_save_IFS=$IFS; IFS='-'
4593: set x $ac_cv_build
4594: shift
4595: build_cpu=$1
4596: build_vendor=$2
4597: shift; shift
4598: # Remember, the first character of IFS is used to create $*,
4599: # except with old shells:
4600: build_os=$*
4601: IFS=$ac_save_IFS
4602: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4603:
4604:
4605: { $as_echo "$as_me:$LINENO: checking host system type" >&5
4606: $as_echo_n "checking host system type... " >&6; }
4607: if test "${ac_cv_host+set}" = set; then
4608: $as_echo_n "(cached) " >&6
4609: else
4610: if test "x$host_alias" = x; then
4611: ac_cv_host=$ac_cv_build
4612: else
4613: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4614: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4615: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4616: { (exit 1); exit 1; }; }
4617: fi
4618:
4619: fi
4620: { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4621: $as_echo "$ac_cv_host" >&6; }
4622: case $ac_cv_host in
4623: *-*-*) ;;
4624: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4625: $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4626: { (exit 1); exit 1; }; };;
4627: esac
4628: host=$ac_cv_host
4629: ac_save_IFS=$IFS; IFS='-'
4630: set x $ac_cv_host
4631: shift
4632: host_cpu=$1
4633: host_vendor=$2
4634: shift; shift
4635: # Remember, the first character of IFS is used to create $*,
4636: # except with old shells:
4637: host_os=$*
4638: IFS=$ac_save_IFS
4639: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4640:
4641:
4642:
4643:
4644:
4645:
4646:
4647:
4648:
4649:
4650: if test -n "$ac_tool_prefix"; then
4651: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4652: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4653: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4654: $as_echo_n "checking for $ac_word... " >&6; }
4655: if test "${ac_cv_prog_RANLIB+set}" = set; then
4656: $as_echo_n "(cached) " >&6
4657: else
4658: if test -n "$RANLIB"; then
4659: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4660: else
4661: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662: for as_dir in $PATH
4663: do
4664: IFS=$as_save_IFS
4665: test -z "$as_dir" && as_dir=.
4666: for ac_exec_ext in '' $ac_executable_extensions; do
4667: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4669: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670: break 2
4671: fi
4672: done
4673: done
4674: IFS=$as_save_IFS
4675:
4676: fi
4677: fi
4678: RANLIB=$ac_cv_prog_RANLIB
4679: if test -n "$RANLIB"; then
4680: { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4681: $as_echo "$RANLIB" >&6; }
4682: else
4683: { $as_echo "$as_me:$LINENO: result: no" >&5
4684: $as_echo "no" >&6; }
4685: fi
4686:
4687:
4688: fi
4689: if test -z "$ac_cv_prog_RANLIB"; then
4690: ac_ct_RANLIB=$RANLIB
4691: # Extract the first word of "ranlib", so it can be a program name with args.
4692: set dummy ranlib; ac_word=$2
4693: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4694: $as_echo_n "checking for $ac_word... " >&6; }
4695: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4696: $as_echo_n "(cached) " >&6
4697: else
4698: if test -n "$ac_ct_RANLIB"; then
4699: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4700: else
4701: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702: for as_dir in $PATH
4703: do
4704: IFS=$as_save_IFS
4705: test -z "$as_dir" && as_dir=.
4706: for ac_exec_ext in '' $ac_executable_extensions; do
4707: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708: ac_cv_prog_ac_ct_RANLIB="ranlib"
4709: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710: break 2
4711: fi
4712: done
4713: done
4714: IFS=$as_save_IFS
4715:
4716: fi
4717: fi
4718: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4719: if test -n "$ac_ct_RANLIB"; then
4720: { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4721: $as_echo "$ac_ct_RANLIB" >&6; }
4722: else
4723: { $as_echo "$as_me:$LINENO: result: no" >&5
4724: $as_echo "no" >&6; }
4725: fi
4726:
4727: if test "x$ac_ct_RANLIB" = x; then
4728: RANLIB=":"
4729: else
4730: case $cross_compiling:$ac_tool_warned in
4731: yes:)
4732: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4733: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734: ac_tool_warned=yes ;;
4735: esac
4736: RANLIB=$ac_ct_RANLIB
4737: fi
4738: else
4739: RANLIB="$ac_cv_prog_RANLIB"
4740: fi
4741:
4742: if test "x$CC" != xcc; then
4743: { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4744: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4745: else
4746: { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4747: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4748: fi
4749: set dummy $CC; ac_cc=`$as_echo "$2" |
4750: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4751: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4752: $as_echo_n "(cached) " >&6
4753: else
4754: cat >conftest.$ac_ext <<_ACEOF
4755: /* confdefs.h. */
4756: _ACEOF
4757: cat confdefs.h >>conftest.$ac_ext
4758: cat >>conftest.$ac_ext <<_ACEOF
4759: /* end confdefs.h. */
4760:
4761: int
4762: main ()
4763: {
4764:
4765: ;
4766: return 0;
4767: }
4768: _ACEOF
4769: # Make sure it works both with $CC and with simple cc.
4770: # We do the test twice because some compilers refuse to overwrite an
4771: # existing .o file with -o, though they will create one.
4772: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4773: rm -f conftest2.*
4774: if { (case "(($ac_try" in
4775: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776: *) ac_try_echo=$ac_try;;
4777: esac
4778: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779: $as_echo "$ac_try_echo") >&5
4780: (eval "$ac_try") 2>&5
4781: ac_status=$?
4782: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783: (exit $ac_status); } &&
4784: test -f conftest2.$ac_objext && { (case "(($ac_try" in
4785: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786: *) ac_try_echo=$ac_try;;
4787: esac
4788: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4789: $as_echo "$ac_try_echo") >&5
4790: (eval "$ac_try") 2>&5
4791: ac_status=$?
4792: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793: (exit $ac_status); };
4794: then
4795: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4796: if test "x$CC" != xcc; then
4797: # Test first that cc exists at all.
4798: if { ac_try='cc -c conftest.$ac_ext >&5'
4799: { (case "(($ac_try" in
4800: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801: *) ac_try_echo=$ac_try;;
4802: esac
4803: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4804: $as_echo "$ac_try_echo") >&5
4805: (eval "$ac_try") 2>&5
4806: ac_status=$?
4807: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808: (exit $ac_status); }; }; then
4809: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4810: rm -f conftest2.*
4811: if { (case "(($ac_try" in
4812: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813: *) ac_try_echo=$ac_try;;
4814: esac
4815: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816: $as_echo "$ac_try_echo") >&5
4817: (eval "$ac_try") 2>&5
4818: ac_status=$?
4819: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820: (exit $ac_status); } &&
4821: test -f conftest2.$ac_objext && { (case "(($ac_try" in
4822: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823: *) ac_try_echo=$ac_try;;
4824: esac
4825: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826: $as_echo "$ac_try_echo") >&5
4827: (eval "$ac_try") 2>&5
4828: ac_status=$?
4829: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830: (exit $ac_status); };
4831: then
4832: # cc works too.
4833: :
4834: else
4835: # cc exists but doesn't like -o.
4836: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4837: fi
4838: fi
4839: fi
4840: else
4841: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4842: fi
4843: rm -f core conftest*
4844:
4845: fi
4846: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4847: { $as_echo "$as_me:$LINENO: result: yes" >&5
4848: $as_echo "yes" >&6; }
4849: else
4850: { $as_echo "$as_me:$LINENO: result: no" >&5
4851: $as_echo "no" >&6; }
4852:
4853: cat >>confdefs.h <<\_ACEOF
4854: #define NO_MINUS_C_MINUS_O 1
4855: _ACEOF
4856:
4857: fi
4858:
4859: # FIXME: we rely on the cache variable name because
4860: # there is no other way.
4861: set dummy $CC
4862: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4863: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4864: if test "$am_t" != yes; then
4865: # Losing compiler, so override with the script.
4866: # FIXME: It is wrong to rewrite CC.
4867: # But if we don't then we get into trouble of one sort or another.
4868: # A longer-term fix would be to have automake use am__CC in this case,
4869: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4870: CC="$am_aux_dir/compile $CC"
4871: fi
4872:
4873:
4874:
4875:
4876: { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4877: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4878: if test "${ac_cv_path_GREP+set}" = set; then
4879: $as_echo_n "(cached) " >&6
4880: else
4881: if test -z "$GREP"; then
4882: ac_path_GREP_found=false
4883: # Loop through the user's path and test for each of PROGNAME-LIST
4884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4886: do
4887: IFS=$as_save_IFS
4888: test -z "$as_dir" && as_dir=.
4889: for ac_prog in grep ggrep; do
4890: for ac_exec_ext in '' $ac_executable_extensions; do
4891: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4892: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4893: # Check for GNU ac_path_GREP and select it if it is found.
4894: # Check for GNU $ac_path_GREP
4895: case `"$ac_path_GREP" --version 2>&1` in
4896: *GNU*)
4897: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4898: *)
4899: ac_count=0
4900: $as_echo_n 0123456789 >"conftest.in"
4901: while :
4902: do
4903: cat "conftest.in" "conftest.in" >"conftest.tmp"
4904: mv "conftest.tmp" "conftest.in"
4905: cp "conftest.in" "conftest.nl"
4906: $as_echo 'GREP' >> "conftest.nl"
4907: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909: ac_count=`expr $ac_count + 1`
4910: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4911: # Best one so far, save it but keep looking for a better one
4912: ac_cv_path_GREP="$ac_path_GREP"
4913: ac_path_GREP_max=$ac_count
4914: fi
4915: # 10*(2^10) chars as input seems more than enough
4916: test $ac_count -gt 10 && break
4917: done
4918: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919: esac
4920:
4921: $ac_path_GREP_found && break 3
4922: done
4923: done
4924: done
4925: IFS=$as_save_IFS
4926: if test -z "$ac_cv_path_GREP"; then
4927: { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4928: $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4929: { (exit 1); exit 1; }; }
4930: fi
4931: else
4932: ac_cv_path_GREP=$GREP
4933: fi
4934:
4935: fi
4936: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4937: $as_echo "$ac_cv_path_GREP" >&6; }
4938: GREP="$ac_cv_path_GREP"
4939:
4940:
4941: { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4942: $as_echo_n "checking for egrep... " >&6; }
4943: if test "${ac_cv_path_EGREP+set}" = set; then
4944: $as_echo_n "(cached) " >&6
4945: else
4946: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4947: then ac_cv_path_EGREP="$GREP -E"
4948: else
4949: if test -z "$EGREP"; then
4950: ac_path_EGREP_found=false
4951: # Loop through the user's path and test for each of PROGNAME-LIST
4952: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4954: do
4955: IFS=$as_save_IFS
4956: test -z "$as_dir" && as_dir=.
4957: for ac_prog in egrep; do
4958: for ac_exec_ext in '' $ac_executable_extensions; do
4959: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4960: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4961: # Check for GNU ac_path_EGREP and select it if it is found.
4962: # Check for GNU $ac_path_EGREP
4963: case `"$ac_path_EGREP" --version 2>&1` in
4964: *GNU*)
4965: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4966: *)
4967: ac_count=0
4968: $as_echo_n 0123456789 >"conftest.in"
4969: while :
4970: do
4971: cat "conftest.in" "conftest.in" >"conftest.tmp"
4972: mv "conftest.tmp" "conftest.in"
4973: cp "conftest.in" "conftest.nl"
4974: $as_echo 'EGREP' >> "conftest.nl"
4975: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977: ac_count=`expr $ac_count + 1`
4978: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4979: # Best one so far, save it but keep looking for a better one
4980: ac_cv_path_EGREP="$ac_path_EGREP"
4981: ac_path_EGREP_max=$ac_count
4982: fi
4983: # 10*(2^10) chars as input seems more than enough
4984: test $ac_count -gt 10 && break
4985: done
4986: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987: esac
4988:
4989: $ac_path_EGREP_found && break 3
4990: done
4991: done
4992: done
4993: IFS=$as_save_IFS
4994: if test -z "$ac_cv_path_EGREP"; then
4995: { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4996: $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4997: { (exit 1); exit 1; }; }
4998: fi
4999: else
5000: ac_cv_path_EGREP=$EGREP
5001: fi
5002:
5003: fi
5004: fi
5005: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5006: $as_echo "$ac_cv_path_EGREP" >&6; }
5007: EGREP="$ac_cv_path_EGREP"
5008:
5009:
5010: { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5011: $as_echo_n "checking for ANSI C header files... " >&6; }
5012: if test "${ac_cv_header_stdc+set}" = set; then
5013: $as_echo_n "(cached) " >&6
5014: else
5015: cat >conftest.$ac_ext <<_ACEOF
5016: /* confdefs.h. */
5017: _ACEOF
5018: cat confdefs.h >>conftest.$ac_ext
5019: cat >>conftest.$ac_ext <<_ACEOF
5020: /* end confdefs.h. */
5021: #include <stdlib.h>
5022: #include <stdarg.h>
5023: #include <string.h>
5024: #include <float.h>
5025:
5026: int
5027: main ()
5028: {
5029:
5030: ;
5031: return 0;
5032: }
5033: _ACEOF
5034: rm -f conftest.$ac_objext
5035: if { (ac_try="$ac_compile"
5036: case "(($ac_try" in
5037: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038: *) ac_try_echo=$ac_try;;
5039: esac
5040: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041: $as_echo "$ac_try_echo") >&5
5042: (eval "$ac_compile") 2>conftest.er1
5043: ac_status=$?
5044: grep -v '^ *+' conftest.er1 >conftest.err
5045: rm -f conftest.er1
5046: cat conftest.err >&5
5047: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048: (exit $ac_status); } && {
5049: test -z "$ac_c_werror_flag" ||
5050: test ! -s conftest.err
5051: } && test -s conftest.$ac_objext; then
5052: ac_cv_header_stdc=yes
5053: else
5054: $as_echo "$as_me: failed program was:" >&5
5055: sed 's/^/| /' conftest.$ac_ext >&5
5056:
5057: ac_cv_header_stdc=no
5058: fi
5059:
5060: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061:
5062: if test $ac_cv_header_stdc = yes; then
5063: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5064: cat >conftest.$ac_ext <<_ACEOF
5065: /* confdefs.h. */
5066: _ACEOF
5067: cat confdefs.h >>conftest.$ac_ext
5068: cat >>conftest.$ac_ext <<_ACEOF
5069: /* end confdefs.h. */
5070: #include <string.h>
5071:
5072: _ACEOF
5073: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5074: $EGREP "memchr" >/dev/null 2>&1; then
5075: :
5076: else
5077: ac_cv_header_stdc=no
5078: fi
5079: rm -f conftest*
5080:
5081: fi
5082:
5083: if test $ac_cv_header_stdc = yes; then
5084: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5085: cat >conftest.$ac_ext <<_ACEOF
5086: /* confdefs.h. */
5087: _ACEOF
5088: cat confdefs.h >>conftest.$ac_ext
5089: cat >>conftest.$ac_ext <<_ACEOF
5090: /* end confdefs.h. */
5091: #include <stdlib.h>
5092:
5093: _ACEOF
5094: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5095: $EGREP "free" >/dev/null 2>&1; then
5096: :
5097: else
5098: ac_cv_header_stdc=no
5099: fi
5100: rm -f conftest*
5101:
5102: fi
5103:
5104: if test $ac_cv_header_stdc = yes; then
5105: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5106: if test "$cross_compiling" = yes; then
5107: :
5108: else
5109: cat >conftest.$ac_ext <<_ACEOF
5110: /* confdefs.h. */
5111: _ACEOF
5112: cat confdefs.h >>conftest.$ac_ext
5113: cat >>conftest.$ac_ext <<_ACEOF
5114: /* end confdefs.h. */
5115: #include <ctype.h>
5116: #include <stdlib.h>
5117: #if ((' ' & 0x0FF) == 0x020)
5118: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5119: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5120: #else
5121: # define ISLOWER(c) \
5122: (('a' <= (c) && (c) <= 'i') \
5123: || ('j' <= (c) && (c) <= 'r') \
5124: || ('s' <= (c) && (c) <= 'z'))
5125: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5126: #endif
5127:
5128: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5129: int
5130: main ()
5131: {
5132: int i;
5133: for (i = 0; i < 256; i++)
5134: if (XOR (islower (i), ISLOWER (i))
5135: || toupper (i) != TOUPPER (i))
5136: return 2;
5137: return 0;
5138: }
5139: _ACEOF
5140: rm -f conftest$ac_exeext
5141: if { (ac_try="$ac_link"
5142: case "(($ac_try" in
5143: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144: *) ac_try_echo=$ac_try;;
5145: esac
5146: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5147: $as_echo "$ac_try_echo") >&5
5148: (eval "$ac_link") 2>&5
5149: ac_status=$?
5150: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5152: { (case "(($ac_try" in
5153: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154: *) ac_try_echo=$ac_try;;
5155: esac
5156: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5157: $as_echo "$ac_try_echo") >&5
5158: (eval "$ac_try") 2>&5
5159: ac_status=$?
5160: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161: (exit $ac_status); }; }; then
5162: :
5163: else
5164: $as_echo "$as_me: program exited with status $ac_status" >&5
5165: $as_echo "$as_me: failed program was:" >&5
5166: sed 's/^/| /' conftest.$ac_ext >&5
5167:
5168: ( exit $ac_status )
5169: ac_cv_header_stdc=no
5170: fi
5171: rm -rf conftest.dSYM
5172: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5173: fi
5174:
5175:
5176: fi
5177: fi
5178: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5179: $as_echo "$ac_cv_header_stdc" >&6; }
5180: if test $ac_cv_header_stdc = yes; then
5181:
5182: cat >>confdefs.h <<\_ACEOF
5183: #define STDC_HEADERS 1
5184: _ACEOF
5185:
5186: fi
5187:
5188: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5189:
5190:
5191:
5192:
5193:
5194:
5195:
5196:
5197:
5198: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5199: inttypes.h stdint.h unistd.h
5200: do
5201: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5202: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5203: $as_echo_n "checking for $ac_header... " >&6; }
5204: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5205: $as_echo_n "(cached) " >&6
5206: else
5207: cat >conftest.$ac_ext <<_ACEOF
5208: /* confdefs.h. */
5209: _ACEOF
5210: cat confdefs.h >>conftest.$ac_ext
5211: cat >>conftest.$ac_ext <<_ACEOF
5212: /* end confdefs.h. */
5213: $ac_includes_default
5214:
5215: #include <$ac_header>
5216: _ACEOF
5217: rm -f conftest.$ac_objext
5218: if { (ac_try="$ac_compile"
5219: case "(($ac_try" in
5220: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221: *) ac_try_echo=$ac_try;;
5222: esac
5223: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5224: $as_echo "$ac_try_echo") >&5
5225: (eval "$ac_compile") 2>conftest.er1
5226: ac_status=$?
5227: grep -v '^ *+' conftest.er1 >conftest.err
5228: rm -f conftest.er1
5229: cat conftest.err >&5
5230: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231: (exit $ac_status); } && {
5232: test -z "$ac_c_werror_flag" ||
5233: test ! -s conftest.err
5234: } && test -s conftest.$ac_objext; then
5235: eval "$as_ac_Header=yes"
5236: else
5237: $as_echo "$as_me: failed program was:" >&5
5238: sed 's/^/| /' conftest.$ac_ext >&5
5239:
5240: eval "$as_ac_Header=no"
5241: fi
5242:
5243: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244: fi
5245: ac_res=`eval 'as_val=${'$as_ac_Header'}
5246: $as_echo "$as_val"'`
5247: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5248: $as_echo "$ac_res" >&6; }
5249: as_val=`eval 'as_val=${'$as_ac_Header'}
5250: $as_echo "$as_val"'`
5251: if test "x$as_val" = x""yes; then
5252: cat >>confdefs.h <<_ACEOF
5253: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5254: _ACEOF
5255:
5256: fi
5257:
5258: done
5259:
5260:
5261:
5262:
5263:
5264: if test "${ac_cv_header_minix_config_h+set}" = set; then
5265: { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5266: $as_echo_n "checking for minix/config.h... " >&6; }
5267: if test "${ac_cv_header_minix_config_h+set}" = set; then
5268: $as_echo_n "(cached) " >&6
5269: fi
5270: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5271: $as_echo "$ac_cv_header_minix_config_h" >&6; }
5272: else
5273: # Is the header compilable?
5274: { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5275: $as_echo_n "checking minix/config.h usability... " >&6; }
5276: cat >conftest.$ac_ext <<_ACEOF
5277: /* confdefs.h. */
5278: _ACEOF
5279: cat confdefs.h >>conftest.$ac_ext
5280: cat >>conftest.$ac_ext <<_ACEOF
5281: /* end confdefs.h. */
5282: $ac_includes_default
5283: #include <minix/config.h>
5284: _ACEOF
5285: rm -f conftest.$ac_objext
5286: if { (ac_try="$ac_compile"
5287: case "(($ac_try" in
5288: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289: *) ac_try_echo=$ac_try;;
5290: esac
5291: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5292: $as_echo "$ac_try_echo") >&5
5293: (eval "$ac_compile") 2>conftest.er1
5294: ac_status=$?
5295: grep -v '^ *+' conftest.er1 >conftest.err
5296: rm -f conftest.er1
5297: cat conftest.err >&5
5298: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299: (exit $ac_status); } && {
5300: test -z "$ac_c_werror_flag" ||
5301: test ! -s conftest.err
5302: } && test -s conftest.$ac_objext; then
5303: ac_header_compiler=yes
5304: else
5305: $as_echo "$as_me: failed program was:" >&5
5306: sed 's/^/| /' conftest.$ac_ext >&5
5307:
5308: ac_header_compiler=no
5309: fi
5310:
5311: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5313: $as_echo "$ac_header_compiler" >&6; }
5314:
5315: # Is the header present?
5316: { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5317: $as_echo_n "checking minix/config.h presence... " >&6; }
5318: cat >conftest.$ac_ext <<_ACEOF
5319: /* confdefs.h. */
5320: _ACEOF
5321: cat confdefs.h >>conftest.$ac_ext
5322: cat >>conftest.$ac_ext <<_ACEOF
5323: /* end confdefs.h. */
5324: #include <minix/config.h>
5325: _ACEOF
5326: if { (ac_try="$ac_cpp conftest.$ac_ext"
5327: case "(($ac_try" in
5328: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329: *) ac_try_echo=$ac_try;;
5330: esac
5331: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5332: $as_echo "$ac_try_echo") >&5
5333: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5334: ac_status=$?
5335: grep -v '^ *+' conftest.er1 >conftest.err
5336: rm -f conftest.er1
5337: cat conftest.err >&5
5338: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339: (exit $ac_status); } >/dev/null && {
5340: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5341: test ! -s conftest.err
5342: }; then
5343: ac_header_preproc=yes
5344: else
5345: $as_echo "$as_me: failed program was:" >&5
5346: sed 's/^/| /' conftest.$ac_ext >&5
5347:
5348: ac_header_preproc=no
5349: fi
5350:
5351: rm -f conftest.err conftest.$ac_ext
5352: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5353: $as_echo "$ac_header_preproc" >&6; }
5354:
5355: # So? What about this header?
5356: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5357: yes:no: )
5358: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5359: $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5360: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5361: $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5362: ac_header_preproc=yes
5363: ;;
5364: no:yes:* )
5365: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5366: $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5367: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5368: $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5369: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5370: $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5371: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5372: $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5373: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5374: $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5375: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5376: $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5377:
5378: ;;
5379: esac
5380: { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5381: $as_echo_n "checking for minix/config.h... " >&6; }
5382: if test "${ac_cv_header_minix_config_h+set}" = set; then
5383: $as_echo_n "(cached) " >&6
5384: else
5385: ac_cv_header_minix_config_h=$ac_header_preproc
5386: fi
5387: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5388: $as_echo "$ac_cv_header_minix_config_h" >&6; }
5389:
5390: fi
5391: if test "x$ac_cv_header_minix_config_h" = x""yes; then
5392: MINIX=yes
5393: else
5394: MINIX=
5395: fi
5396:
5397:
5398: if test "$MINIX" = yes; then
5399:
5400: cat >>confdefs.h <<\_ACEOF
5401: #define _POSIX_SOURCE 1
5402: _ACEOF
5403:
5404:
5405: cat >>confdefs.h <<\_ACEOF
5406: #define _POSIX_1_SOURCE 2
5407: _ACEOF
5408:
5409:
5410: cat >>confdefs.h <<\_ACEOF
5411: #define _MINIX 1
5412: _ACEOF
5413:
5414: fi
5415:
5416: case "$host_os" in
5417: hpux*)
5418:
5419: cat >>confdefs.h <<\_ACEOF
5420: #define _XOPEN_SOURCE 500
5421: _ACEOF
5422:
5423: ;;
5424: esac
5425:
5426:
5427:
5428: { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5429: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5430: if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5431: $as_echo_n "(cached) " >&6
5432: else
5433: cat >conftest.$ac_ext <<_ACEOF
5434: /* confdefs.h. */
5435: _ACEOF
5436: cat confdefs.h >>conftest.$ac_ext
5437: cat >>conftest.$ac_ext <<_ACEOF
5438: /* end confdefs.h. */
5439:
5440: # define __EXTENSIONS__ 1
5441: $ac_includes_default
5442: int
5443: main ()
5444: {
5445:
5446: ;
5447: return 0;
5448: }
5449: _ACEOF
5450: rm -f conftest.$ac_objext
5451: if { (ac_try="$ac_compile"
5452: case "(($ac_try" in
5453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454: *) ac_try_echo=$ac_try;;
5455: esac
5456: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5457: $as_echo "$ac_try_echo") >&5
5458: (eval "$ac_compile") 2>conftest.er1
5459: ac_status=$?
5460: grep -v '^ *+' conftest.er1 >conftest.err
5461: rm -f conftest.er1
5462: cat conftest.err >&5
5463: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464: (exit $ac_status); } && {
5465: test -z "$ac_c_werror_flag" ||
5466: test ! -s conftest.err
5467: } && test -s conftest.$ac_objext; then
5468: ac_cv_safe_to_define___extensions__=yes
5469: else
5470: $as_echo "$as_me: failed program was:" >&5
5471: sed 's/^/| /' conftest.$ac_ext >&5
5472:
5473: ac_cv_safe_to_define___extensions__=no
5474: fi
5475:
5476: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477: fi
5478: { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5479: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5480: test $ac_cv_safe_to_define___extensions__ = yes &&
5481: cat >>confdefs.h <<\_ACEOF
5482: #define __EXTENSIONS__ 1
5483: _ACEOF
5484:
5485: cat >>confdefs.h <<\_ACEOF
5486: #define _ALL_SOURCE 1
5487: _ACEOF
5488:
5489: cat >>confdefs.h <<\_ACEOF
5490: #define _GNU_SOURCE 1
5491: _ACEOF
5492:
5493: cat >>confdefs.h <<\_ACEOF
5494: #define _POSIX_PTHREAD_SEMANTICS 1
5495: _ACEOF
5496:
5497: cat >>confdefs.h <<\_ACEOF
5498: #define _TANDEM_SOURCE 1
5499: _ACEOF
5500:
5501:
5502:
5503:
5504:
5505:
5506:
5507:
5508:
5509:
5510:
5511:
5512:
5513:
5514:
5515:
5516:
5517: # Check whether --with-gnu-ld was given.
5518: if test "${with_gnu_ld+set}" = set; then
5519: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5520: else
5521: with_gnu_ld=no
5522: fi
5523:
5524: # Prepare PATH_SEPARATOR.
5525: # The user is always right.
5526: if test "${PATH_SEPARATOR+set}" != set; then
5527: echo "#! /bin/sh" >conf$$.sh
5528: echo "exit 0" >>conf$$.sh
5529: chmod +x conf$$.sh
5530: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5531: PATH_SEPARATOR=';'
5532: else
5533: PATH_SEPARATOR=:
5534: fi
5535: rm -f conf$$.sh
5536: fi
5537: ac_prog=ld
5538: if test "$GCC" = yes; then
5539: # Check if gcc -print-prog-name=ld gives a path.
5540: { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5541: $as_echo_n "checking for ld used by GCC... " >&6; }
5542: case $host in
5543: *-*-mingw*)
5544: # gcc leaves a trailing carriage return which upsets mingw
5545: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5546: *)
5547: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5548: esac
5549: case $ac_prog in
5550: # Accept absolute paths.
5551: [\\/]* | [A-Za-z]:[\\/]*)
5552: re_direlt='/[^/][^/]*/\.\./'
5553: # Canonicalize the path of ld
5554: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5555: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5556: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5557: done
5558: test -z "$LD" && LD="$ac_prog"
5559: ;;
5560: "")
5561: # If it fails, then pretend we aren't using GCC.
5562: ac_prog=ld
5563: ;;
5564: *)
5565: # If it is relative, then search for the first ld in PATH.
5566: with_gnu_ld=unknown
5567: ;;
5568: esac
5569: elif test "$with_gnu_ld" = yes; then
5570: { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5571: $as_echo_n "checking for GNU ld... " >&6; }
5572: else
5573: { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5574: $as_echo_n "checking for non-GNU ld... " >&6; }
5575: fi
5576: if test "${acl_cv_path_LD+set}" = set; then
5577: $as_echo_n "(cached) " >&6
5578: else
5579: if test -z "$LD"; then
5580: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5581: for ac_dir in $PATH; do
5582: test -z "$ac_dir" && ac_dir=.
5583: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5584: acl_cv_path_LD="$ac_dir/$ac_prog"
5585: # Check to see if the program is GNU ld. I'd rather use --version,
5586: # but apparently some GNU ld's only accept -v.
5587: # Break only if it was the GNU/non-GNU ld that we prefer.
5588: case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5589: *GNU* | *'with BFD'*)
5590: test "$with_gnu_ld" != no && break ;;
5591: *)
5592: test "$with_gnu_ld" != yes && break ;;
5593: esac
5594: fi
5595: done
5596: IFS="$ac_save_ifs"
5597: else
5598: acl_cv_path_LD="$LD" # Let the user override the test with a path.
5599: fi
5600: fi
5601:
5602: LD="$acl_cv_path_LD"
5603: if test -n "$LD"; then
5604: { $as_echo "$as_me:$LINENO: result: $LD" >&5
5605: $as_echo "$LD" >&6; }
5606: else
5607: { $as_echo "$as_me:$LINENO: result: no" >&5
5608: $as_echo "no" >&6; }
5609: fi
5610: test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5611: $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5612: { (exit 1); exit 1; }; }
5613: { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5614: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5615: if test "${acl_cv_prog_gnu_ld+set}" = set; then
5616: $as_echo_n "(cached) " >&6
5617: else
5618: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5619: case `$LD -v 2>&1 </dev/null` in
5620: *GNU* | *'with BFD'*)
5621: acl_cv_prog_gnu_ld=yes ;;
5622: *)
5623: acl_cv_prog_gnu_ld=no ;;
5624: esac
5625: fi
5626: { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5627: $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5628: with_gnu_ld=$acl_cv_prog_gnu_ld
5629:
5630:
5631:
5632: { $as_echo "$as_me:$LINENO: checking for shared library path variable" >&5
5633: $as_echo_n "checking for shared library path variable... " >&6; }
5634: if test "${acl_cv_libpath+set}" = set; then
5635: $as_echo_n "(cached) " >&6
5636: else
5637:
5638: LD="$LD" \
5639: ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
5640: . ./conftest.sh
5641: rm -f ./conftest.sh
5642: acl_cv_libpath=${acl_cv_shlibpath_var:-none}
5643:
5644: fi
5645: { $as_echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
5646: $as_echo "$acl_cv_libpath" >&6; }
5647: shlibpath_var="$acl_cv_shlibpath_var"
5648:
5649:
5650: { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
5651: $as_echo_n "checking whether to activate relocatable installation... " >&6; }
5652: # Check whether --enable-relocatable was given.
5653: if test "${enable_relocatable+set}" = set; then
5654: enableval=$enable_relocatable; if test "$enableval" != no; then
5655: RELOCATABLE=yes
5656: else
5657: RELOCATABLE=no
5658: fi
5659:
5660: else
5661: RELOCATABLE=no
5662: fi
5663:
5664:
5665: { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
5666: $as_echo "$RELOCATABLE" >&6; }
5667:
5668:
5669:
5670: if test "X$prefix" = "XNONE"; then
5671: reloc_final_prefix="$ac_default_prefix"
5672: else
5673: reloc_final_prefix="$prefix"
5674: fi
5675:
5676: cat >>confdefs.h <<_ACEOF
5677: #define INSTALLPREFIX "${reloc_final_prefix}"
5678: _ACEOF
5679:
5680: if test $RELOCATABLE = yes; then
5681:
5682: cat >>confdefs.h <<\_ACEOF
5683: #define ENABLE_RELOCATABLE 1
5684: _ACEOF
5685:
5686: fi
5687:
5688:
5689:
5690:
5691:
5692:
5693: is_noop=no
5694: use_elf_origin_trick=no
5695: if test $RELOCATABLE = yes; then
5696: # --enable-relocatable implies --disable-rpath
5697: enable_rpath=no
5698:
5699: for ac_header in mach-o/dyld.h
5700: do
5701: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5702: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5703: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5704: $as_echo_n "checking for $ac_header... " >&6; }
5705: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5706: $as_echo_n "(cached) " >&6
5707: fi
5708: ac_res=`eval 'as_val=${'$as_ac_Header'}
5709: $as_echo "$as_val"'`
5710: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5711: $as_echo "$ac_res" >&6; }
5712: else
5713: # Is the header compilable?
5714: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5715: $as_echo_n "checking $ac_header usability... " >&6; }
5716: cat >conftest.$ac_ext <<_ACEOF
5717: /* confdefs.h. */
5718: _ACEOF
5719: cat confdefs.h >>conftest.$ac_ext
5720: cat >>conftest.$ac_ext <<_ACEOF
5721: /* end confdefs.h. */
5722: $ac_includes_default
5723: #include <$ac_header>
5724: _ACEOF
5725: rm -f conftest.$ac_objext
5726: if { (ac_try="$ac_compile"
5727: case "(($ac_try" in
5728: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729: *) ac_try_echo=$ac_try;;
5730: esac
5731: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5732: $as_echo "$ac_try_echo") >&5
5733: (eval "$ac_compile") 2>conftest.er1
5734: ac_status=$?
5735: grep -v '^ *+' conftest.er1 >conftest.err
5736: rm -f conftest.er1
5737: cat conftest.err >&5
5738: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739: (exit $ac_status); } && {
5740: test -z "$ac_c_werror_flag" ||
5741: test ! -s conftest.err
5742: } && test -s conftest.$ac_objext; then
5743: ac_header_compiler=yes
5744: else
5745: $as_echo "$as_me: failed program was:" >&5
5746: sed 's/^/| /' conftest.$ac_ext >&5
5747:
5748: ac_header_compiler=no
5749: fi
5750:
5751: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5753: $as_echo "$ac_header_compiler" >&6; }
5754:
5755: # Is the header present?
5756: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5757: $as_echo_n "checking $ac_header presence... " >&6; }
5758: cat >conftest.$ac_ext <<_ACEOF
5759: /* confdefs.h. */
5760: _ACEOF
5761: cat confdefs.h >>conftest.$ac_ext
5762: cat >>conftest.$ac_ext <<_ACEOF
5763: /* end confdefs.h. */
5764: #include <$ac_header>
5765: _ACEOF
5766: if { (ac_try="$ac_cpp conftest.$ac_ext"
5767: case "(($ac_try" in
5768: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769: *) ac_try_echo=$ac_try;;
5770: esac
5771: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5772: $as_echo "$ac_try_echo") >&5
5773: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774: ac_status=$?
5775: grep -v '^ *+' conftest.er1 >conftest.err
5776: rm -f conftest.er1
5777: cat conftest.err >&5
5778: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779: (exit $ac_status); } >/dev/null && {
5780: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5781: test ! -s conftest.err
5782: }; then
5783: ac_header_preproc=yes
5784: else
5785: $as_echo "$as_me: failed program was:" >&5
5786: sed 's/^/| /' conftest.$ac_ext >&5
5787:
5788: ac_header_preproc=no
5789: fi
5790:
5791: rm -f conftest.err conftest.$ac_ext
5792: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5793: $as_echo "$ac_header_preproc" >&6; }
5794:
5795: # So? What about this header?
5796: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5797: yes:no: )
5798: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5799: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5800: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5801: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5802: ac_header_preproc=yes
5803: ;;
5804: no:yes:* )
5805: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5806: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5807: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5808: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5809: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5810: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5811: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5812: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5813: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5814: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5815: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5816: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5817:
5818: ;;
5819: esac
5820: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5821: $as_echo_n "checking for $ac_header... " >&6; }
5822: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5823: $as_echo_n "(cached) " >&6
5824: else
5825: eval "$as_ac_Header=\$ac_header_preproc"
5826: fi
5827: ac_res=`eval 'as_val=${'$as_ac_Header'}
5828: $as_echo "$as_val"'`
5829: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5830: $as_echo "$ac_res" >&6; }
5831:
5832: fi
5833: as_val=`eval 'as_val=${'$as_ac_Header'}
5834: $as_echo "$as_val"'`
5835: if test "x$as_val" = x""yes; then
5836: cat >>confdefs.h <<_ACEOF
5837: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5838: _ACEOF
5839:
5840: fi
5841:
5842: done
5843:
5844:
5845: for ac_func in _NSGetExecutablePath
5846: do
5847: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5848: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5849: $as_echo_n "checking for $ac_func... " >&6; }
5850: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5851: $as_echo_n "(cached) " >&6
5852: else
5853: cat >conftest.$ac_ext <<_ACEOF
5854: /* confdefs.h. */
5855: _ACEOF
5856: cat confdefs.h >>conftest.$ac_ext
5857: cat >>conftest.$ac_ext <<_ACEOF
5858: /* end confdefs.h. */
5859: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5860: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5861: #define $ac_func innocuous_$ac_func
5862:
5863: /* System header to define __stub macros and hopefully few prototypes,
5864: which can conflict with char $ac_func (); below.
5865: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5866: <limits.h> exists even on freestanding compilers. */
5867:
5868: #ifdef __STDC__
5869: # include <limits.h>
5870: #else
5871: # include <assert.h>
5872: #endif
5873:
5874: #undef $ac_func
5875:
5876: /* Override any GCC internal prototype to avoid an error.
5877: Use char because int might match the return type of a GCC
5878: builtin and then its argument prototype would still apply. */
5879: #ifdef __cplusplus
5880: extern "C"
5881: #endif
5882: char $ac_func ();
5883: /* The GNU C library defines this for functions which it implements
5884: to always fail with ENOSYS. Some functions are actually named
5885: something starting with __ and the normal name is an alias. */
5886: #if defined __stub_$ac_func || defined __stub___$ac_func
5887: choke me
5888: #endif
5889:
5890: int
5891: main ()
5892: {
5893: return $ac_func ();
5894: ;
5895: return 0;
5896: }
5897: _ACEOF
5898: rm -f conftest.$ac_objext conftest$ac_exeext
5899: if { (ac_try="$ac_link"
5900: case "(($ac_try" in
5901: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902: *) ac_try_echo=$ac_try;;
5903: esac
5904: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5905: $as_echo "$ac_try_echo") >&5
5906: (eval "$ac_link") 2>conftest.er1
5907: ac_status=$?
5908: grep -v '^ *+' conftest.er1 >conftest.err
5909: rm -f conftest.er1
5910: cat conftest.err >&5
5911: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912: (exit $ac_status); } && {
5913: test -z "$ac_c_werror_flag" ||
5914: test ! -s conftest.err
5915: } && test -s conftest$ac_exeext && {
5916: test "$cross_compiling" = yes ||
5917: $as_test_x conftest$ac_exeext
5918: }; then
5919: eval "$as_ac_var=yes"
5920: else
5921: $as_echo "$as_me: failed program was:" >&5
5922: sed 's/^/| /' conftest.$ac_ext >&5
5923:
5924: eval "$as_ac_var=no"
5925: fi
5926:
5927: rm -rf conftest.dSYM
5928: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5929: conftest$ac_exeext conftest.$ac_ext
5930: fi
5931: ac_res=`eval 'as_val=${'$as_ac_var'}
5932: $as_echo "$as_val"'`
5933: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5934: $as_echo "$ac_res" >&6; }
5935: as_val=`eval 'as_val=${'$as_ac_var'}
5936: $as_echo "$as_val"'`
5937: if test "x$as_val" = x""yes; then
5938: cat >>confdefs.h <<_ACEOF
5939: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5940: _ACEOF
5941:
5942: fi
5943: done
5944:
5945: case "$host_os" in
5946: mingw*) is_noop=yes ;;
5947: linux*) use_elf_origin_trick=yes ;;
5948: esac
5949: if test $is_noop = yes; then
5950: RELOCATABLE_LDFLAGS=:
5951:
5952: else
5953: if test $use_elf_origin_trick = yes; then
5954: case "$ac_aux_dir" in
5955: /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5956: *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5957: esac
5958: RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5959:
5960: else
5961: INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
5962:
5963: case "$ac_aux_dir" in
5964: /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5965: *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5966: esac
5967: fi
5968: fi
5969: fi
5970: if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5971: RELOCATABLE_VIA_LD_TRUE=
5972: RELOCATABLE_VIA_LD_FALSE='#'
5973: else
5974: RELOCATABLE_VIA_LD_TRUE='#'
5975: RELOCATABLE_VIA_LD_FALSE=
5976: fi
5977:
5978:
5979:
5980:
5981:
5982:
5983:
5984:
5985:
5986:
5987:
5988: if test $RELOCATABLE = yes; then
5989: SRCLIBOBJS="$SRCLIBOBJS relocatable.$ac_objext"
5990: fi
5991:
5992: if test $RELOCATABLE = yes; then
5993: SRCLIBOBJS="$SRCLIBOBJS progreloc.$ac_objext"
5994: fi
5995: : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
5996: RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
5997: RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
5998:
5999:
6000: # Check whether --enable-extra-encodings was given.
6001: if test "${enable_extra_encodings+set}" = set; then
6002: enableval=$enable_extra_encodings;
6003: cat >>confdefs.h <<\_ACEOF
6004: #define ENABLE_EXTRA 1
6005: _ACEOF
6006:
6007: USE_EXTRA_ENCODINGS=yes
6008: else
6009: USE_EXTRA_ENCODINGS=no
6010: fi
6011:
6012:
6013:
6014:
6015: { $as_echo "$as_me:$LINENO: checking how to copy files" >&5
6016: $as_echo_n "checking how to copy files... " >&6; }
6017: if test "${cl_cv_prog_cp+set}" = set; then
6018: $as_echo_n "(cached) " >&6
6019: else
6020:
6021: echo "blabla" > conftest.x
6022: err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
6023: if test -z "$err"; then
6024: cl_cv_prog_cp='cp -p'
6025: else
6026: cl_cv_prog_cp='cp'
6027: fi
6028: rm -f conftest*
6029:
6030: fi
6031: { $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cp" >&5
6032: $as_echo "$cl_cv_prog_cp" >&6; }
6033: CP="$cl_cv_prog_cp"
6034:
6035: { $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
6036: $as_echo_n "checking how to make hard links... " >&6; }
6037: if test "${cl_cv_prog_LN+set}" = set; then
6038: $as_echo_n "(cached) " >&6
6039: else
6040:
6041: rm -f conftestdata conftestfile
6042: echo data > conftestfile
6043: if ln conftestfile conftestdata 2>/dev/null; then
6044: cl_cv_prog_LN=ln
6045: else
6046: cl_cv_prog_LN="$cl_cv_prog_cp"
6047: fi
6048: rm -f conftestdata conftestfile
6049:
6050: fi
6051: { $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
6052: $as_echo "$cl_cv_prog_LN" >&6; }
6053: LN="$cl_cv_prog_LN"
6054:
6055: { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6056: $as_echo_n "checking whether ln -s works... " >&6; }
6057: LN_S=$as_ln_s
6058: if test "$LN_S" = "ln -s"; then
6059: { $as_echo "$as_me:$LINENO: result: yes" >&5
6060: $as_echo "yes" >&6; }
6061: else
6062: { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6063: $as_echo "no, using $LN_S" >&6; }
6064: fi
6065:
6066:
6067:
6068:
6069:
6070:
6071:
6072: case `pwd` in
6073: *\ * | *\ *)
6074: { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6075: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6076: esac
6077:
6078:
6079:
6080: macro_version='2.2.6'
6081: macro_revision='1.3012'
6082:
6083:
6084:
6085:
6086:
6087:
6088:
6089:
6090:
6091:
6092:
6093:
6094:
6095: ltmain="$ac_aux_dir/ltmain.sh"
6096:
6097: { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6098: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6099: if test "${ac_cv_path_SED+set}" = set; then
6100: $as_echo_n "(cached) " >&6
6101: else
6102: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6103: for ac_i in 1 2 3 4 5 6 7; do
6104: ac_script="$ac_script$as_nl$ac_script"
6105: done
6106: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6107: $as_unset ac_script || ac_script=
6108: if test -z "$SED"; then
6109: ac_path_SED_found=false
6110: # Loop through the user's path and test for each of PROGNAME-LIST
6111: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112: for as_dir in $PATH
6113: do
6114: IFS=$as_save_IFS
6115: test -z "$as_dir" && as_dir=.
6116: for ac_prog in sed gsed; do
6117: for ac_exec_ext in '' $ac_executable_extensions; do
6118: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6119: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6120: # Check for GNU ac_path_SED and select it if it is found.
6121: # Check for GNU $ac_path_SED
6122: case `"$ac_path_SED" --version 2>&1` in
6123: *GNU*)
6124: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6125: *)
6126: ac_count=0
6127: $as_echo_n 0123456789 >"conftest.in"
6128: while :
6129: do
6130: cat "conftest.in" "conftest.in" >"conftest.tmp"
6131: mv "conftest.tmp" "conftest.in"
6132: cp "conftest.in" "conftest.nl"
6133: $as_echo '' >> "conftest.nl"
6134: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136: ac_count=`expr $ac_count + 1`
6137: if test $ac_count -gt ${ac_path_SED_max-0}; then
6138: # Best one so far, save it but keep looking for a better one
6139: ac_cv_path_SED="$ac_path_SED"
6140: ac_path_SED_max=$ac_count
6141: fi
6142: # 10*(2^10) chars as input seems more than enough
6143: test $ac_count -gt 10 && break
6144: done
6145: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146: esac
6147:
6148: $ac_path_SED_found && break 3
6149: done
6150: done
6151: done
6152: IFS=$as_save_IFS
6153: if test -z "$ac_cv_path_SED"; then
6154: { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6155: $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6156: { (exit 1); exit 1; }; }
6157: fi
6158: else
6159: ac_cv_path_SED=$SED
6160: fi
6161:
6162: fi
6163: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6164: $as_echo "$ac_cv_path_SED" >&6; }
6165: SED="$ac_cv_path_SED"
6166: rm -f conftest.sed
6167:
6168: test -z "$SED" && SED=sed
6169: Xsed="$SED -e 1s/^X//"
6170:
6171:
6172:
6173:
6174:
6175:
6176:
6177:
6178:
6179:
6180:
6181: { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6182: $as_echo_n "checking for fgrep... " >&6; }
6183: if test "${ac_cv_path_FGREP+set}" = set; then
6184: $as_echo_n "(cached) " >&6
6185: else
6186: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6187: then ac_cv_path_FGREP="$GREP -F"
6188: else
6189: if test -z "$FGREP"; then
6190: ac_path_FGREP_found=false
6191: # Loop through the user's path and test for each of PROGNAME-LIST
6192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6194: do
6195: IFS=$as_save_IFS
6196: test -z "$as_dir" && as_dir=.
6197: for ac_prog in fgrep; do
6198: for ac_exec_ext in '' $ac_executable_extensions; do
6199: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6200: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6201: # Check for GNU ac_path_FGREP and select it if it is found.
6202: # Check for GNU $ac_path_FGREP
6203: case `"$ac_path_FGREP" --version 2>&1` in
6204: *GNU*)
6205: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6206: *)
6207: ac_count=0
6208: $as_echo_n 0123456789 >"conftest.in"
6209: while :
6210: do
6211: cat "conftest.in" "conftest.in" >"conftest.tmp"
6212: mv "conftest.tmp" "conftest.in"
6213: cp "conftest.in" "conftest.nl"
6214: $as_echo 'FGREP' >> "conftest.nl"
6215: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6216: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6217: ac_count=`expr $ac_count + 1`
6218: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6219: # Best one so far, save it but keep looking for a better one
6220: ac_cv_path_FGREP="$ac_path_FGREP"
6221: ac_path_FGREP_max=$ac_count
6222: fi
6223: # 10*(2^10) chars as input seems more than enough
6224: test $ac_count -gt 10 && break
6225: done
6226: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6227: esac
6228:
6229: $ac_path_FGREP_found && break 3
6230: done
6231: done
6232: done
6233: IFS=$as_save_IFS
6234: if test -z "$ac_cv_path_FGREP"; then
6235: { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6236: $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6237: { (exit 1); exit 1; }; }
6238: fi
6239: else
6240: ac_cv_path_FGREP=$FGREP
6241: fi
6242:
6243: fi
6244: fi
6245: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6246: $as_echo "$ac_cv_path_FGREP" >&6; }
6247: FGREP="$ac_cv_path_FGREP"
6248:
6249:
6250: test -z "$GREP" && GREP=grep
6251:
6252:
6253:
6254:
6255:
6256:
6257:
6258:
6259:
6260:
6261:
6262:
6263:
6264:
6265:
6266:
6267:
6268:
6269:
6270: # Check whether --with-gnu-ld was given.
6271: if test "${with_gnu_ld+set}" = set; then
6272: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6273: else
6274: with_gnu_ld=no
6275: fi
6276:
6277: ac_prog=ld
6278: if test "$GCC" = yes; then
6279: # Check if gcc -print-prog-name=ld gives a path.
6280: { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6281: $as_echo_n "checking for ld used by $CC... " >&6; }
6282: case $host in
6283: *-*-mingw*)
6284: # gcc leaves a trailing carriage return which upsets mingw
6285: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6286: *)
6287: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6288: esac
6289: case $ac_prog in
6290: # Accept absolute paths.
6291: [\\/]* | ?:[\\/]*)
6292: re_direlt='/[^/][^/]*/\.\./'
6293: # Canonicalize the pathname of ld
6294: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6295: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6296: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6297: done
6298: test -z "$LD" && LD="$ac_prog"
6299: ;;
6300: "")
6301: # If it fails, then pretend we aren't using GCC.
6302: ac_prog=ld
6303: ;;
6304: *)
6305: # If it is relative, then search for the first ld in PATH.
6306: with_gnu_ld=unknown
6307: ;;
6308: esac
6309: elif test "$with_gnu_ld" = yes; then
6310: { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6311: $as_echo_n "checking for GNU ld... " >&6; }
6312: else
6313: { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6314: $as_echo_n "checking for non-GNU ld... " >&6; }
6315: fi
6316: if test "${lt_cv_path_LD+set}" = set; then
6317: $as_echo_n "(cached) " >&6
6318: else
6319: if test -z "$LD"; then
6320: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6321: for ac_dir in $PATH; do
6322: IFS="$lt_save_ifs"
6323: test -z "$ac_dir" && ac_dir=.
6324: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6325: lt_cv_path_LD="$ac_dir/$ac_prog"
6326: # Check to see if the program is GNU ld. I'd rather use --version,
6327: # but apparently some variants of GNU ld only accept -v.
6328: # Break only if it was the GNU/non-GNU ld that we prefer.
6329: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6330: *GNU* | *'with BFD'*)
6331: test "$with_gnu_ld" != no && break
6332: ;;
6333: *)
6334: test "$with_gnu_ld" != yes && break
6335: ;;
6336: esac
6337: fi
6338: done
6339: IFS="$lt_save_ifs"
6340: else
6341: lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342: fi
6343: fi
6344:
6345: LD="$lt_cv_path_LD"
6346: if test -n "$LD"; then
6347: { $as_echo "$as_me:$LINENO: result: $LD" >&5
6348: $as_echo "$LD" >&6; }
6349: else
6350: { $as_echo "$as_me:$LINENO: result: no" >&5
6351: $as_echo "no" >&6; }
6352: fi
6353: test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6354: $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6355: { (exit 1); exit 1; }; }
6356: { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6357: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6358: if test "${lt_cv_prog_gnu_ld+set}" = set; then
6359: $as_echo_n "(cached) " >&6
6360: else
6361: # I'd rather use --version here, but apparently some GNU lds only accept -v.
6362: case `$LD -v 2>&1 </dev/null` in
6363: *GNU* | *'with BFD'*)
6364: lt_cv_prog_gnu_ld=yes
6365: ;;
6366: *)
6367: lt_cv_prog_gnu_ld=no
6368: ;;
6369: esac
6370: fi
6371: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6372: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6373: with_gnu_ld=$lt_cv_prog_gnu_ld
6374:
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383: { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6384: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6385: if test "${lt_cv_path_NM+set}" = set; then
6386: $as_echo_n "(cached) " >&6
6387: else
6388: if test -n "$NM"; then
6389: # Let the user override the test.
6390: lt_cv_path_NM="$NM"
6391: else
6392: lt_nm_to_check="${ac_tool_prefix}nm"
6393: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6394: lt_nm_to_check="$lt_nm_to_check nm"
6395: fi
6396: for lt_tmp_nm in $lt_nm_to_check; do
6397: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6398: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6399: IFS="$lt_save_ifs"
6400: test -z "$ac_dir" && ac_dir=.
6401: tmp_nm="$ac_dir/$lt_tmp_nm"
6402: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6403: # Check to see if the nm accepts a BSD-compat flag.
6404: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6405: # nm: unknown option "B" ignored
6406: # Tru64's nm complains that /dev/null is an invalid object file
6407: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6408: */dev/null* | *'Invalid file or object type'*)
6409: lt_cv_path_NM="$tmp_nm -B"
6410: break
6411: ;;
6412: *)
6413: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6414: */dev/null*)
6415: lt_cv_path_NM="$tmp_nm -p"
6416: break
6417: ;;
6418: *)
6419: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6420: continue # so that we can try to find one that supports BSD flags
6421: ;;
6422: esac
6423: ;;
6424: esac
6425: fi
6426: done
6427: IFS="$lt_save_ifs"
6428: done
6429: : ${lt_cv_path_NM=no}
6430: fi
6431: fi
6432: { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6433: $as_echo "$lt_cv_path_NM" >&6; }
6434: if test "$lt_cv_path_NM" != "no"; then
6435: NM="$lt_cv_path_NM"
6436: else
6437: # Didn't find any BSD compatible name lister, look for dumpbin.
6438: if test -n "$ac_tool_prefix"; then
6439: for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6440: do
6441: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6442: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6443: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444: $as_echo_n "checking for $ac_word... " >&6; }
6445: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6446: $as_echo_n "(cached) " >&6
6447: else
6448: if test -n "$DUMPBIN"; then
6449: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6450: else
6451: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452: for as_dir in $PATH
6453: do
6454: IFS=$as_save_IFS
6455: test -z "$as_dir" && as_dir=.
6456: for ac_exec_ext in '' $ac_executable_extensions; do
6457: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6459: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460: break 2
6461: fi
6462: done
6463: done
6464: IFS=$as_save_IFS
6465:
6466: fi
6467: fi
6468: DUMPBIN=$ac_cv_prog_DUMPBIN
6469: if test -n "$DUMPBIN"; then
6470: { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6471: $as_echo "$DUMPBIN" >&6; }
6472: else
6473: { $as_echo "$as_me:$LINENO: result: no" >&5
6474: $as_echo "no" >&6; }
6475: fi
6476:
6477:
6478: test -n "$DUMPBIN" && break
6479: done
6480: fi
6481: if test -z "$DUMPBIN"; then
6482: ac_ct_DUMPBIN=$DUMPBIN
6483: for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6484: do
6485: # Extract the first word of "$ac_prog", so it can be a program name with args.
6486: set dummy $ac_prog; ac_word=$2
6487: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6488: $as_echo_n "checking for $ac_word... " >&6; }
6489: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6490: $as_echo_n "(cached) " >&6
6491: else
6492: if test -n "$ac_ct_DUMPBIN"; then
6493: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6494: else
6495: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496: for as_dir in $PATH
6497: do
6498: IFS=$as_save_IFS
6499: test -z "$as_dir" && as_dir=.
6500: for ac_exec_ext in '' $ac_executable_extensions; do
6501: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6503: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504: break 2
6505: fi
6506: done
6507: done
6508: IFS=$as_save_IFS
6509:
6510: fi
6511: fi
6512: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6513: if test -n "$ac_ct_DUMPBIN"; then
6514: { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6515: $as_echo "$ac_ct_DUMPBIN" >&6; }
6516: else
6517: { $as_echo "$as_me:$LINENO: result: no" >&5
6518: $as_echo "no" >&6; }
6519: fi
6520:
6521:
6522: test -n "$ac_ct_DUMPBIN" && break
6523: done
6524:
6525: if test "x$ac_ct_DUMPBIN" = x; then
6526: DUMPBIN=":"
6527: else
6528: case $cross_compiling:$ac_tool_warned in
6529: yes:)
6530: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6531: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532: ac_tool_warned=yes ;;
6533: esac
6534: DUMPBIN=$ac_ct_DUMPBIN
6535: fi
6536: fi
6537:
6538:
6539: if test "$DUMPBIN" != ":"; then
6540: NM="$DUMPBIN"
6541: fi
6542: fi
6543: test -z "$NM" && NM=nm
6544:
6545:
6546:
6547:
6548:
6549:
6550: { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6551: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6552: if test "${lt_cv_nm_interface+set}" = set; then
6553: $as_echo_n "(cached) " >&6
6554: else
6555: lt_cv_nm_interface="BSD nm"
6556: echo "int some_variable = 0;" > conftest.$ac_ext
6557: (eval echo "\"\$as_me:6557: $ac_compile\"" >&5)
6558: (eval "$ac_compile" 2>conftest.err)
6559: cat conftest.err >&5
6560: (eval echo "\"\$as_me:6560: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6561: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6562: cat conftest.err >&5
6563: (eval echo "\"\$as_me:6563: output\"" >&5)
6564: cat conftest.out >&5
6565: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6566: lt_cv_nm_interface="MS dumpbin"
6567: fi
6568: rm -f conftest*
6569: fi
6570: { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6571: $as_echo "$lt_cv_nm_interface" >&6; }
6572:
6573: # find the maximum length of command line arguments
6574: { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6575: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6576: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6577: $as_echo_n "(cached) " >&6
6578: else
6579: i=0
6580: teststring="ABCD"
6581:
6582: case $build_os in
6583: msdosdjgpp*)
6584: # On DJGPP, this test can blow up pretty badly due to problems in libc
6585: # (any single argument exceeding 2000 bytes causes a buffer overrun
6586: # during glob expansion). Even if it were fixed, the result of this
6587: # check would be larger than it should be.
6588: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6589: ;;
6590:
6591: gnu*)
6592: # Under GNU Hurd, this test is not required because there is
6593: # no limit to the length of command line arguments.
6594: # Libtool will interpret -1 as no limit whatsoever
6595: lt_cv_sys_max_cmd_len=-1;
6596: ;;
6597:
6598: cygwin* | mingw* | cegcc*)
6599: # On Win9x/ME, this test blows up -- it succeeds, but takes
6600: # about 5 minutes as the teststring grows exponentially.
6601: # Worse, since 9x/ME are not pre-emptively multitasking,
6602: # you end up with a "frozen" computer, even though with patience
6603: # the test eventually succeeds (with a max line length of 256k).
6604: # Instead, let's just punt: use the minimum linelength reported by
6605: # all of the supported platforms: 8192 (on NT/2K/XP).
6606: lt_cv_sys_max_cmd_len=8192;
6607: ;;
6608:
6609: amigaos*)
6610: # On AmigaOS with pdksh, this test takes hours, literally.
6611: # So we just punt and use a minimum line length of 8192.
6612: lt_cv_sys_max_cmd_len=8192;
6613: ;;
6614:
6615: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6616: # This has been around since 386BSD, at least. Likely further.
6617: if test -x /sbin/sysctl; then
6618: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6619: elif test -x /usr/sbin/sysctl; then
6620: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6621: else
6622: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6623: fi
6624: # And add a safety zone
6625: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6626: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6627: ;;
6628:
6629: interix*)
6630: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6631: lt_cv_sys_max_cmd_len=196608
6632: ;;
6633:
6634: osf*)
6635: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6636: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6637: # nice to cause kernel panics so lets avoid the loop below.
6638: # First set a reasonable default.
6639: lt_cv_sys_max_cmd_len=16384
6640: #
6641: if test -x /sbin/sysconfig; then
6642: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6643: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6644: esac
6645: fi
6646: ;;
6647: sco3.2v5*)
6648: lt_cv_sys_max_cmd_len=102400
6649: ;;
6650: sysv5* | sco5v6* | sysv4.2uw2*)
6651: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6652: if test -n "$kargmax"; then
6653: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6654: else
6655: lt_cv_sys_max_cmd_len=32768
6656: fi
6657: ;;
6658: *)
6659: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6660: if test -n "$lt_cv_sys_max_cmd_len"; then
6661: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6662: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6663: else
6664: # Make teststring a little bigger before we do anything with it.
6665: # a 1K string should be a reasonable start.
6666: for i in 1 2 3 4 5 6 7 8 ; do
6667: teststring=$teststring$teststring
6668: done
6669: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6670: # If test is not a shell built-in, we'll probably end up computing a
6671: # maximum length that is only half of the actual maximum length, but
6672: # we can't tell.
6673: while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6674: = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6675: test $i != 17 # 1/2 MB should be enough
6676: do
6677: i=`expr $i + 1`
6678: teststring=$teststring$teststring
6679: done
6680: # Only check the string length outside the loop.
6681: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6682: teststring=
6683: # Add a significant safety factor because C++ compilers can tack on
6684: # massive amounts of additional arguments before passing them to the
6685: # linker. It appears as though 1/2 is a usable value.
6686: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6687: fi
6688: ;;
6689: esac
6690:
6691: fi
6692:
6693: if test -n $lt_cv_sys_max_cmd_len ; then
6694: { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6695: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6696: else
6697: { $as_echo "$as_me:$LINENO: result: none" >&5
6698: $as_echo "none" >&6; }
6699: fi
6700: max_cmd_len=$lt_cv_sys_max_cmd_len
6701:
6702:
6703:
6704:
6705:
6706:
6707: : ${CP="cp -f"}
6708: : ${MV="mv -f"}
6709: : ${RM="rm -f"}
6710:
6711: { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6712: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6713: # Try some XSI features
6714: xsi_shell=no
6715: ( _lt_dummy="a/b/c"
6716: test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6717: = c,a/b,, \
6718: && eval 'test $(( 1 + 1 )) -eq 2 \
6719: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6720: && xsi_shell=yes
6721: { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6722: $as_echo "$xsi_shell" >&6; }
6723:
6724:
6725: { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6726: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6727: lt_shell_append=no
6728: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6729: >/dev/null 2>&1 \
6730: && lt_shell_append=yes
6731: { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6732: $as_echo "$lt_shell_append" >&6; }
6733:
6734:
6735: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6736: lt_unset=unset
6737: else
6738: lt_unset=false
6739: fi
6740:
6741:
6742:
6743:
6744:
6745: # test EBCDIC or ASCII
6746: case `echo X|tr X '\101'` in
6747: A) # ASCII based system
6748: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6749: lt_SP2NL='tr \040 \012'
6750: lt_NL2SP='tr \015\012 \040\040'
6751: ;;
6752: *) # EBCDIC based system
6753: lt_SP2NL='tr \100 \n'
6754: lt_NL2SP='tr \r\n \100\100'
6755: ;;
6756: esac
6757:
6758:
6759:
6760:
6761:
6762:
6763:
6764:
6765:
6766: { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6767: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6768: if test "${lt_cv_ld_reload_flag+set}" = set; then
6769: $as_echo_n "(cached) " >&6
6770: else
6771: lt_cv_ld_reload_flag='-r'
6772: fi
6773: { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6774: $as_echo "$lt_cv_ld_reload_flag" >&6; }
6775: reload_flag=$lt_cv_ld_reload_flag
6776: case $reload_flag in
6777: "" | " "*) ;;
6778: *) reload_flag=" $reload_flag" ;;
6779: esac
6780: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6781: case $host_os in
6782: darwin*)
6783: if test "$GCC" = yes; then
6784: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6785: else
6786: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6787: fi
6788: ;;
6789: esac
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
6799: if test -n "$ac_tool_prefix"; then
6800: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6801: set dummy ${ac_tool_prefix}objdump; ac_word=$2
6802: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6803: $as_echo_n "checking for $ac_word... " >&6; }
6804: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6805: $as_echo_n "(cached) " >&6
6806: else
6807: if test -n "$OBJDUMP"; then
6808: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6809: else
6810: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811: for as_dir in $PATH
6812: do
6813: IFS=$as_save_IFS
6814: test -z "$as_dir" && as_dir=.
6815: for ac_exec_ext in '' $ac_executable_extensions; do
6816: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6818: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819: break 2
6820: fi
6821: done
6822: done
6823: IFS=$as_save_IFS
6824:
6825: fi
6826: fi
6827: OBJDUMP=$ac_cv_prog_OBJDUMP
6828: if test -n "$OBJDUMP"; then
6829: { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6830: $as_echo "$OBJDUMP" >&6; }
6831: else
6832: { $as_echo "$as_me:$LINENO: result: no" >&5
6833: $as_echo "no" >&6; }
6834: fi
6835:
6836:
6837: fi
6838: if test -z "$ac_cv_prog_OBJDUMP"; then
6839: ac_ct_OBJDUMP=$OBJDUMP
6840: # Extract the first word of "objdump", so it can be a program name with args.
6841: set dummy objdump; ac_word=$2
6842: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6843: $as_echo_n "checking for $ac_word... " >&6; }
6844: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6845: $as_echo_n "(cached) " >&6
6846: else
6847: if test -n "$ac_ct_OBJDUMP"; then
6848: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6849: else
6850: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851: for as_dir in $PATH
6852: do
6853: IFS=$as_save_IFS
6854: test -z "$as_dir" && as_dir=.
6855: for ac_exec_ext in '' $ac_executable_extensions; do
6856: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857: ac_cv_prog_ac_ct_OBJDUMP="objdump"
6858: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859: break 2
6860: fi
6861: done
6862: done
6863: IFS=$as_save_IFS
6864:
6865: fi
6866: fi
6867: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6868: if test -n "$ac_ct_OBJDUMP"; then
6869: { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6870: $as_echo "$ac_ct_OBJDUMP" >&6; }
6871: else
6872: { $as_echo "$as_me:$LINENO: result: no" >&5
6873: $as_echo "no" >&6; }
6874: fi
6875:
6876: if test "x$ac_ct_OBJDUMP" = x; then
6877: OBJDUMP="false"
6878: else
6879: case $cross_compiling:$ac_tool_warned in
6880: yes:)
6881: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6882: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883: ac_tool_warned=yes ;;
6884: esac
6885: OBJDUMP=$ac_ct_OBJDUMP
6886: fi
6887: else
6888: OBJDUMP="$ac_cv_prog_OBJDUMP"
6889: fi
6890:
6891: test -z "$OBJDUMP" && OBJDUMP=objdump
6892:
6893:
6894:
6895:
6896:
6897:
6898: { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6899: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6900: if test "${lt_cv_deplibs_check_method+set}" = set; then
6901: $as_echo_n "(cached) " >&6
6902: else
6903: lt_cv_file_magic_cmd='$MAGIC_CMD'
6904: lt_cv_file_magic_test_file=
6905: lt_cv_deplibs_check_method='unknown'
6906: # Need to set the preceding variable on all platforms that support
6907: # interlibrary dependencies.
6908: # 'none' -- dependencies not supported.
6909: # `unknown' -- same as none, but documents that we really don't know.
6910: # 'pass_all' -- all dependencies passed with no checks.
6911: # 'test_compile' -- check by making test program.
6912: # 'file_magic [[regex]]' -- check by looking for files in library path
6913: # which responds to the $file_magic_cmd with a given extended regex.
6914: # If you have `file' or equivalent on your system and you're not sure
6915: # whether `pass_all' will *always* work, you probably want this one.
6916:
6917: case $host_os in
6918: aix[4-9]*)
6919: lt_cv_deplibs_check_method=pass_all
6920: ;;
6921:
6922: beos*)
6923: lt_cv_deplibs_check_method=pass_all
6924: ;;
6925:
6926: bsdi[45]*)
6927: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6928: lt_cv_file_magic_cmd='/usr/bin/file -L'
6929: lt_cv_file_magic_test_file=/shlib/libc.so
6930: ;;
6931:
6932: cygwin*)
6933: # func_win32_libid is a shell function defined in ltmain.sh
6934: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6935: lt_cv_file_magic_cmd='func_win32_libid'
6936: ;;
6937:
6938: mingw* | pw32*)
6939: # Base MSYS/MinGW do not provide the 'file' command needed by
6940: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6941: # unless we find 'file', for example because we are cross-compiling.
6942: if ( file / ) >/dev/null 2>&1; then
6943: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6944: lt_cv_file_magic_cmd='func_win32_libid'
6945: else
6946: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6947: lt_cv_file_magic_cmd='$OBJDUMP -f'
6948: fi
6949: ;;
6950:
6951: cegcc)
6952: # use the weaker test based on 'objdump'. See mingw*.
6953: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6954: lt_cv_file_magic_cmd='$OBJDUMP -f'
6955: ;;
6956:
6957: darwin* | rhapsody*)
6958: lt_cv_deplibs_check_method=pass_all
6959: ;;
6960:
6961: freebsd* | dragonfly*)
6962: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6963: case $host_cpu in
6964: i*86 )
6965: # Not sure whether the presence of OpenBSD here was a mistake.
6966: # Let's accept both of them until this is cleared up.
6967: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6968: lt_cv_file_magic_cmd=/usr/bin/file
6969: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6970: ;;
6971: esac
6972: else
6973: lt_cv_deplibs_check_method=pass_all
6974: fi
6975: ;;
6976:
6977: gnu*)
6978: lt_cv_deplibs_check_method=pass_all
6979: ;;
6980:
6981: hpux10.20* | hpux11*)
6982: lt_cv_file_magic_cmd=/usr/bin/file
6983: case $host_cpu in
6984: ia64*)
6985: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6986: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6987: ;;
6988: hppa*64*)
6989: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6990: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6991: ;;
6992: *)
6993: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6994: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6995: ;;
6996: esac
6997: ;;
6998:
6999: interix[3-9]*)
7000: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7001: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7002: ;;
7003:
7004: irix5* | irix6* | nonstopux*)
7005: case $LD in
7006: *-32|*"-32 ") libmagic=32-bit;;
7007: *-n32|*"-n32 ") libmagic=N32;;
7008: *-64|*"-64 ") libmagic=64-bit;;
7009: *) libmagic=never-match;;
7010: esac
7011: lt_cv_deplibs_check_method=pass_all
7012: ;;
7013:
7014: # This must be Linux ELF.
7015: linux* | k*bsd*-gnu)
7016: lt_cv_deplibs_check_method=pass_all
7017: ;;
7018:
7019: netbsd*)
7020: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7021: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7022: else
7023: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7024: fi
7025: ;;
7026:
7027: newos6*)
7028: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7029: lt_cv_file_magic_cmd=/usr/bin/file
7030: lt_cv_file_magic_test_file=/usr/lib/libnls.so
7031: ;;
7032:
7033: *nto* | *qnx*)
7034: lt_cv_deplibs_check_method=pass_all
7035: ;;
7036:
7037: openbsd*)
7038: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7039: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7040: else
7041: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7042: fi
7043: ;;
7044:
7045: osf3* | osf4* | osf5*)
7046: lt_cv_deplibs_check_method=pass_all
7047: ;;
7048:
7049: rdos*)
7050: lt_cv_deplibs_check_method=pass_all
7051: ;;
7052:
7053: solaris*)
7054: lt_cv_deplibs_check_method=pass_all
7055: ;;
7056:
7057: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7058: lt_cv_deplibs_check_method=pass_all
7059: ;;
7060:
7061: sysv4 | sysv4.3*)
7062: case $host_vendor in
7063: motorola)
7064: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7065: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7066: ;;
7067: ncr)
7068: lt_cv_deplibs_check_method=pass_all
7069: ;;
7070: sequent)
7071: lt_cv_file_magic_cmd='/bin/file'
7072: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7073: ;;
7074: sni)
7075: lt_cv_file_magic_cmd='/bin/file'
7076: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7077: lt_cv_file_magic_test_file=/lib/libc.so
7078: ;;
7079: siemens)
7080: lt_cv_deplibs_check_method=pass_all
7081: ;;
7082: pc)
7083: lt_cv_deplibs_check_method=pass_all
7084: ;;
7085: esac
7086: ;;
7087:
7088: tpf*)
7089: lt_cv_deplibs_check_method=pass_all
7090: ;;
7091: esac
7092:
7093: fi
7094: { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7095: $as_echo "$lt_cv_deplibs_check_method" >&6; }
7096: file_magic_cmd=$lt_cv_file_magic_cmd
7097: deplibs_check_method=$lt_cv_deplibs_check_method
7098: test -z "$deplibs_check_method" && deplibs_check_method=unknown
7099:
7100:
7101:
7102:
7103:
7104:
7105:
7106:
7107:
7108:
7109:
7110:
7111: if test -n "$ac_tool_prefix"; then
7112: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7113: set dummy ${ac_tool_prefix}ar; ac_word=$2
7114: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7115: $as_echo_n "checking for $ac_word... " >&6; }
7116: if test "${ac_cv_prog_AR+set}" = set; then
7117: $as_echo_n "(cached) " >&6
7118: else
7119: if test -n "$AR"; then
7120: ac_cv_prog_AR="$AR" # Let the user override the test.
7121: else
7122: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123: for as_dir in $PATH
7124: do
7125: IFS=$as_save_IFS
7126: test -z "$as_dir" && as_dir=.
7127: for ac_exec_ext in '' $ac_executable_extensions; do
7128: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129: ac_cv_prog_AR="${ac_tool_prefix}ar"
7130: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131: break 2
7132: fi
7133: done
7134: done
7135: IFS=$as_save_IFS
7136:
7137: fi
7138: fi
7139: AR=$ac_cv_prog_AR
7140: if test -n "$AR"; then
7141: { $as_echo "$as_me:$LINENO: result: $AR" >&5
7142: $as_echo "$AR" >&6; }
7143: else
7144: { $as_echo "$as_me:$LINENO: result: no" >&5
7145: $as_echo "no" >&6; }
7146: fi
7147:
7148:
7149: fi
7150: if test -z "$ac_cv_prog_AR"; then
7151: ac_ct_AR=$AR
7152: # Extract the first word of "ar", so it can be a program name with args.
7153: set dummy ar; ac_word=$2
7154: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7155: $as_echo_n "checking for $ac_word... " >&6; }
7156: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7157: $as_echo_n "(cached) " >&6
7158: else
7159: if test -n "$ac_ct_AR"; then
7160: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7161: else
7162: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163: for as_dir in $PATH
7164: do
7165: IFS=$as_save_IFS
7166: test -z "$as_dir" && as_dir=.
7167: for ac_exec_ext in '' $ac_executable_extensions; do
7168: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169: ac_cv_prog_ac_ct_AR="ar"
7170: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171: break 2
7172: fi
7173: done
7174: done
7175: IFS=$as_save_IFS
7176:
7177: fi
7178: fi
7179: ac_ct_AR=$ac_cv_prog_ac_ct_AR
7180: if test -n "$ac_ct_AR"; then
7181: { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7182: $as_echo "$ac_ct_AR" >&6; }
7183: else
7184: { $as_echo "$as_me:$LINENO: result: no" >&5
7185: $as_echo "no" >&6; }
7186: fi
7187:
7188: if test "x$ac_ct_AR" = x; then
7189: AR="false"
7190: else
7191: case $cross_compiling:$ac_tool_warned in
7192: yes:)
7193: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7194: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195: ac_tool_warned=yes ;;
7196: esac
7197: AR=$ac_ct_AR
7198: fi
7199: else
7200: AR="$ac_cv_prog_AR"
7201: fi
7202:
7203: test -z "$AR" && AR=ar
7204: test -z "$AR_FLAGS" && AR_FLAGS=cru
7205:
7206:
7207:
7208:
7209:
7210:
7211:
7212:
7213:
7214:
7215:
7216: if test -n "$ac_tool_prefix"; then
7217: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7218: set dummy ${ac_tool_prefix}strip; ac_word=$2
7219: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7220: $as_echo_n "checking for $ac_word... " >&6; }
7221: if test "${ac_cv_prog_STRIP+set}" = set; then
7222: $as_echo_n "(cached) " >&6
7223: else
7224: if test -n "$STRIP"; then
7225: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7226: else
7227: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228: for as_dir in $PATH
7229: do
7230: IFS=$as_save_IFS
7231: test -z "$as_dir" && as_dir=.
7232: for ac_exec_ext in '' $ac_executable_extensions; do
7233: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7235: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236: break 2
7237: fi
7238: done
7239: done
7240: IFS=$as_save_IFS
7241:
7242: fi
7243: fi
7244: STRIP=$ac_cv_prog_STRIP
7245: if test -n "$STRIP"; then
7246: { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7247: $as_echo "$STRIP" >&6; }
7248: else
7249: { $as_echo "$as_me:$LINENO: result: no" >&5
7250: $as_echo "no" >&6; }
7251: fi
7252:
7253:
7254: fi
7255: if test -z "$ac_cv_prog_STRIP"; then
7256: ac_ct_STRIP=$STRIP
7257: # Extract the first word of "strip", so it can be a program name with args.
7258: set dummy strip; ac_word=$2
7259: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7260: $as_echo_n "checking for $ac_word... " >&6; }
7261: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7262: $as_echo_n "(cached) " >&6
7263: else
7264: if test -n "$ac_ct_STRIP"; then
7265: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7266: else
7267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268: for as_dir in $PATH
7269: do
7270: IFS=$as_save_IFS
7271: test -z "$as_dir" && as_dir=.
7272: for ac_exec_ext in '' $ac_executable_extensions; do
7273: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274: ac_cv_prog_ac_ct_STRIP="strip"
7275: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276: break 2
7277: fi
7278: done
7279: done
7280: IFS=$as_save_IFS
7281:
7282: fi
7283: fi
7284: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7285: if test -n "$ac_ct_STRIP"; then
7286: { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7287: $as_echo "$ac_ct_STRIP" >&6; }
7288: else
7289: { $as_echo "$as_me:$LINENO: result: no" >&5
7290: $as_echo "no" >&6; }
7291: fi
7292:
7293: if test "x$ac_ct_STRIP" = x; then
7294: STRIP=":"
7295: else
7296: case $cross_compiling:$ac_tool_warned in
7297: yes:)
7298: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7299: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300: ac_tool_warned=yes ;;
7301: esac
7302: STRIP=$ac_ct_STRIP
7303: fi
7304: else
7305: STRIP="$ac_cv_prog_STRIP"
7306: fi
7307:
7308: test -z "$STRIP" && STRIP=:
7309:
7310:
7311:
7312:
7313:
7314:
7315: if test -n "$ac_tool_prefix"; then
7316: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7317: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7318: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7319: $as_echo_n "checking for $ac_word... " >&6; }
7320: if test "${ac_cv_prog_RANLIB+set}" = set; then
7321: $as_echo_n "(cached) " >&6
7322: else
7323: if test -n "$RANLIB"; then
7324: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7325: else
7326: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327: for as_dir in $PATH
7328: do
7329: IFS=$as_save_IFS
7330: test -z "$as_dir" && as_dir=.
7331: for ac_exec_ext in '' $ac_executable_extensions; do
7332: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7334: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335: break 2
7336: fi
7337: done
7338: done
7339: IFS=$as_save_IFS
7340:
7341: fi
7342: fi
7343: RANLIB=$ac_cv_prog_RANLIB
7344: if test -n "$RANLIB"; then
7345: { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7346: $as_echo "$RANLIB" >&6; }
7347: else
7348: { $as_echo "$as_me:$LINENO: result: no" >&5
7349: $as_echo "no" >&6; }
7350: fi
7351:
7352:
7353: fi
7354: if test -z "$ac_cv_prog_RANLIB"; then
7355: ac_ct_RANLIB=$RANLIB
7356: # Extract the first word of "ranlib", so it can be a program name with args.
7357: set dummy ranlib; ac_word=$2
7358: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7359: $as_echo_n "checking for $ac_word... " >&6; }
7360: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7361: $as_echo_n "(cached) " >&6
7362: else
7363: if test -n "$ac_ct_RANLIB"; then
7364: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7365: else
7366: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367: for as_dir in $PATH
7368: do
7369: IFS=$as_save_IFS
7370: test -z "$as_dir" && as_dir=.
7371: for ac_exec_ext in '' $ac_executable_extensions; do
7372: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373: ac_cv_prog_ac_ct_RANLIB="ranlib"
7374: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375: break 2
7376: fi
7377: done
7378: done
7379: IFS=$as_save_IFS
7380:
7381: fi
7382: fi
7383: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7384: if test -n "$ac_ct_RANLIB"; then
7385: { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7386: $as_echo "$ac_ct_RANLIB" >&6; }
7387: else
7388: { $as_echo "$as_me:$LINENO: result: no" >&5
7389: $as_echo "no" >&6; }
7390: fi
7391:
7392: if test "x$ac_ct_RANLIB" = x; then
7393: RANLIB=":"
7394: else
7395: case $cross_compiling:$ac_tool_warned in
7396: yes:)
7397: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7398: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399: ac_tool_warned=yes ;;
7400: esac
7401: RANLIB=$ac_ct_RANLIB
7402: fi
7403: else
7404: RANLIB="$ac_cv_prog_RANLIB"
7405: fi
7406:
7407: test -z "$RANLIB" && RANLIB=:
7408:
7409:
7410:
7411:
7412:
7413:
7414: # Determine commands to create old-style static archives.
7415: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7416: old_postinstall_cmds='chmod 644 $oldlib'
7417: old_postuninstall_cmds=
7418:
7419: if test -n "$RANLIB"; then
7420: case $host_os in
7421: openbsd*)
7422: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7423: ;;
7424: *)
7425: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7426: ;;
7427: esac
7428: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7429: fi
7430:
7431:
7432:
7433:
7434:
7435:
7436:
7437:
7438:
7439:
7440:
7441:
7442:
7443:
7444:
7445:
7446:
7447:
7448:
7449:
7450:
7451:
7452:
7453:
7454:
7455:
7456:
7457:
7458:
7459:
7460:
7461:
7462:
7463:
7464: # If no C compiler was specified, use CC.
7465: LTCC=${LTCC-"$CC"}
7466:
7467: # If no C compiler flags were specified, use CFLAGS.
7468: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7469:
7470: # Allow CC to be a program name with arguments.
7471: compiler=$CC
7472:
7473:
7474: # Check for command to grab the raw symbol name followed by C symbol from nm.
7475: { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7476: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7477: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7478: $as_echo_n "(cached) " >&6
7479: else
7480:
7481: # These are sane defaults that work on at least a few old systems.
7482: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7483:
7484: # Character class describing NM global symbol codes.
7485: symcode='[BCDEGRST]'
7486:
7487: # Regexp to match symbols that can be accessed directly from C.
7488: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7489:
7490: # Define system-specific variables.
7491: case $host_os in
7492: aix*)
7493: symcode='[BCDT]'
7494: ;;
7495: cygwin* | mingw* | pw32* | cegcc*)
7496: symcode='[ABCDGISTW]'
7497: ;;
7498: hpux*)
7499: if test "$host_cpu" = ia64; then
7500: symcode='[ABCDEGRST]'
7501: fi
7502: ;;
7503: irix* | nonstopux*)
7504: symcode='[BCDEGRST]'
7505: ;;
7506: osf*)
7507: symcode='[BCDEGQRST]'
7508: ;;
7509: solaris*)
7510: symcode='[BDRT]'
7511: ;;
7512: sco3.2v5*)
7513: symcode='[DT]'
7514: ;;
7515: sysv4.2uw2*)
7516: symcode='[DT]'
7517: ;;
7518: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7519: symcode='[ABDT]'
7520: ;;
7521: sysv4)
7522: symcode='[DFNSTU]'
7523: ;;
7524: esac
7525:
7526: # If we're using GNU nm, then use its standard symbol codes.
7527: case `$NM -V 2>&1` in
7528: *GNU* | *'with BFD'*)
7529: symcode='[ABCDGIRSTW]' ;;
7530: esac
7531:
7532: # Transform an extracted symbol line into a proper C declaration.
7533: # Some systems (esp. on ia64) link data and code symbols differently,
7534: # so use this general approach.
7535: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7536:
7537: # Transform an extracted symbol line into symbol name and symbol address
7538: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7539: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7540:
7541: # Handle CRLF in mingw tool chain
7542: opt_cr=
7543: case $build_os in
7544: mingw*)
7545: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7546: ;;
7547: esac
7548:
7549: # Try without a prefix underscore, then with it.
7550: for ac_symprfx in "" "_"; do
7551:
7552: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7553: symxfrm="\\1 $ac_symprfx\\2 \\2"
7554:
7555: # Write the raw and C identifiers.
7556: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7557: # Fake it for dumpbin and say T for any non-static function
7558: # and D for any global variable.
7559: # Also find C++ and __fastcall symbols from MSVC++,
7560: # which start with @ or ?.
7561: lt_cv_sys_global_symbol_pipe="$AWK '"\
7562: " {last_section=section; section=\$ 3};"\
7563: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7564: " \$ 0!~/External *\|/{next};"\
7565: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7566: " {if(hide[section]) next};"\
7567: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7568: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7569: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7570: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7571: " ' prfx=^$ac_symprfx"
7572: else
7573: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7574: fi
7575:
7576: # Check to see that the pipe works correctly.
7577: pipe_works=no
7578:
7579: rm -f conftest*
7580: cat > conftest.$ac_ext <<_LT_EOF
7581: #ifdef __cplusplus
7582: extern "C" {
7583: #endif
7584: char nm_test_var;
7585: void nm_test_func(void);
7586: void nm_test_func(void){}
7587: #ifdef __cplusplus
7588: }
7589: #endif
7590: int main(){nm_test_var='a';nm_test_func();return(0);}
7591: _LT_EOF
7592:
7593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594: (eval $ac_compile) 2>&5
7595: ac_status=$?
7596: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597: (exit $ac_status); }; then
7598: # Now try to grab the symbols.
7599: nlist=conftest.nm
7600: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7601: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7602: ac_status=$?
7603: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604: (exit $ac_status); } && test -s "$nlist"; then
7605: # Try sorting and uniquifying the output.
7606: if sort "$nlist" | uniq > "$nlist"T; then
7607: mv -f "$nlist"T "$nlist"
7608: else
7609: rm -f "$nlist"T
7610: fi
7611:
7612: # Make sure that we snagged all the symbols we need.
7613: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7614: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7615: cat <<_LT_EOF > conftest.$ac_ext
7616: #ifdef __cplusplus
7617: extern "C" {
7618: #endif
7619:
7620: _LT_EOF
7621: # Now generate the symbol file.
7622: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7623:
7624: cat <<_LT_EOF >> conftest.$ac_ext
7625:
7626: /* The mapping between symbol names and symbols. */
7627: const struct {
7628: const char *name;
7629: void *address;
7630: }
7631: lt__PROGRAM__LTX_preloaded_symbols[] =
7632: {
7633: { "@PROGRAM@", (void *) 0 },
7634: _LT_EOF
7635: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7636: cat <<\_LT_EOF >> conftest.$ac_ext
7637: {0, (void *) 0}
7638: };
7639:
7640: /* This works around a problem in FreeBSD linker */
7641: #ifdef FREEBSD_WORKAROUND
7642: static const void *lt_preloaded_setup() {
7643: return lt__PROGRAM__LTX_preloaded_symbols;
7644: }
7645: #endif
7646:
7647: #ifdef __cplusplus
7648: }
7649: #endif
7650: _LT_EOF
7651: # Now try linking the two files.
7652: mv conftest.$ac_objext conftstm.$ac_objext
7653: lt_save_LIBS="$LIBS"
7654: lt_save_CFLAGS="$CFLAGS"
7655: LIBS="conftstm.$ac_objext"
7656: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7657: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658: (eval $ac_link) 2>&5
7659: ac_status=$?
7660: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661: (exit $ac_status); } && test -s conftest${ac_exeext}; then
7662: pipe_works=yes
7663: fi
7664: LIBS="$lt_save_LIBS"
7665: CFLAGS="$lt_save_CFLAGS"
7666: else
7667: echo "cannot find nm_test_func in $nlist" >&5
7668: fi
7669: else
7670: echo "cannot find nm_test_var in $nlist" >&5
7671: fi
7672: else
7673: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7674: fi
7675: else
7676: echo "$progname: failed program was:" >&5
7677: cat conftest.$ac_ext >&5
7678: fi
7679: rm -rf conftest* conftst*
7680:
7681: # Do not use the global_symbol_pipe unless it works.
7682: if test "$pipe_works" = yes; then
7683: break
7684: else
7685: lt_cv_sys_global_symbol_pipe=
7686: fi
7687: done
7688:
7689: fi
7690:
7691: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7692: lt_cv_sys_global_symbol_to_cdecl=
7693: fi
7694: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7695: { $as_echo "$as_me:$LINENO: result: failed" >&5
7696: $as_echo "failed" >&6; }
7697: else
7698: { $as_echo "$as_me:$LINENO: result: ok" >&5
7699: $as_echo "ok" >&6; }
7700: fi
7701:
7702:
7703:
7704:
7705:
7706:
7707:
7708:
7709:
7710:
7711:
7712:
7713:
7714:
7715:
7716:
7717:
7718:
7719:
7720:
7721:
7722:
7723: # Check whether --enable-libtool-lock was given.
7724: if test "${enable_libtool_lock+set}" = set; then
7725: enableval=$enable_libtool_lock;
7726: fi
7727:
7728: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7729:
7730: # Some flags need to be propagated to the compiler or linker for good
7731: # libtool support.
7732: case $host in
7733: ia64-*-hpux*)
7734: # Find out which ABI we are using.
7735: echo 'int i;' > conftest.$ac_ext
7736: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737: (eval $ac_compile) 2>&5
7738: ac_status=$?
7739: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740: (exit $ac_status); }; then
7741: case `/usr/bin/file conftest.$ac_objext` in
7742: *ELF-32*)
7743: HPUX_IA64_MODE="32"
7744: ;;
7745: *ELF-64*)
7746: HPUX_IA64_MODE="64"
7747: ;;
7748: esac
7749: fi
7750: rm -rf conftest*
7751: ;;
7752: *-*-irix6*)
7753: # Find out which ABI we are using.
7754: echo '#line 7754 "configure"' > conftest.$ac_ext
7755: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7756: (eval $ac_compile) 2>&5
7757: ac_status=$?
7758: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759: (exit $ac_status); }; then
7760: if test "$lt_cv_prog_gnu_ld" = yes; then
7761: case `/usr/bin/file conftest.$ac_objext` in
7762: *32-bit*)
7763: LD="${LD-ld} -melf32bsmip"
7764: ;;
7765: *N32*)
7766: LD="${LD-ld} -melf32bmipn32"
7767: ;;
7768: *64-bit*)
7769: LD="${LD-ld} -melf64bmip"
7770: ;;
7771: esac
7772: else
7773: case `/usr/bin/file conftest.$ac_objext` in
7774: *32-bit*)
7775: LD="${LD-ld} -32"
7776: ;;
7777: *N32*)
7778: LD="${LD-ld} -n32"
7779: ;;
7780: *64-bit*)
7781: LD="${LD-ld} -64"
7782: ;;
7783: esac
7784: fi
7785: fi
7786: rm -rf conftest*
7787: ;;
7788:
7789: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7790: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7791: # Find out which ABI we are using.
7792: echo 'int i;' > conftest.$ac_ext
7793: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794: (eval $ac_compile) 2>&5
7795: ac_status=$?
7796: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797: (exit $ac_status); }; then
7798: case `/usr/bin/file conftest.o` in
7799: *32-bit*)
7800: case $host in
7801: x86_64-*kfreebsd*-gnu)
7802: LD="${LD-ld} -m elf_i386_fbsd"
7803: ;;
7804: x86_64-*linux*)
7805: LD="${LD-ld} -m elf_i386"
7806: ;;
7807: ppc64-*linux*|powerpc64-*linux*)
7808: LD="${LD-ld} -m elf32ppclinux"
7809: ;;
7810: s390x-*linux*)
7811: LD="${LD-ld} -m elf_s390"
7812: ;;
7813: sparc64-*linux*)
7814: LD="${LD-ld} -m elf32_sparc"
7815: ;;
7816: esac
7817: ;;
7818: *64-bit*)
7819: case $host in
7820: x86_64-*kfreebsd*-gnu)
7821: LD="${LD-ld} -m elf_x86_64_fbsd"
7822: ;;
7823: x86_64-*linux*)
7824: LD="${LD-ld} -m elf_x86_64"
7825: ;;
7826: ppc*-*linux*|powerpc*-*linux*)
7827: LD="${LD-ld} -m elf64ppc"
7828: ;;
7829: s390*-*linux*|s390*-*tpf*)
7830: LD="${LD-ld} -m elf64_s390"
7831: ;;
7832: sparc*-*linux*)
7833: LD="${LD-ld} -m elf64_sparc"
7834: ;;
7835: esac
7836: ;;
7837: esac
7838: fi
7839: rm -rf conftest*
7840: ;;
7841:
7842: *-*-sco3.2v5*)
7843: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7844: SAVE_CFLAGS="$CFLAGS"
7845: CFLAGS="$CFLAGS -belf"
7846: { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7847: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7848: if test "${lt_cv_cc_needs_belf+set}" = set; then
7849: $as_echo_n "(cached) " >&6
7850: else
7851: ac_ext=c
7852: ac_cpp='$CPP $CPPFLAGS'
7853: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7854: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7855: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856:
7857: cat >conftest.$ac_ext <<_ACEOF
7858: /* confdefs.h. */
7859: _ACEOF
7860: cat confdefs.h >>conftest.$ac_ext
7861: cat >>conftest.$ac_ext <<_ACEOF
7862: /* end confdefs.h. */
7863:
7864: int
7865: main ()
7866: {
7867:
7868: ;
7869: return 0;
7870: }
7871: _ACEOF
7872: rm -f conftest.$ac_objext conftest$ac_exeext
7873: if { (ac_try="$ac_link"
7874: case "(($ac_try" in
7875: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876: *) ac_try_echo=$ac_try;;
7877: esac
7878: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7879: $as_echo "$ac_try_echo") >&5
7880: (eval "$ac_link") 2>conftest.er1
7881: ac_status=$?
7882: grep -v '^ *+' conftest.er1 >conftest.err
7883: rm -f conftest.er1
7884: cat conftest.err >&5
7885: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886: (exit $ac_status); } && {
7887: test -z "$ac_c_werror_flag" ||
7888: test ! -s conftest.err
7889: } && test -s conftest$ac_exeext && {
7890: test "$cross_compiling" = yes ||
7891: $as_test_x conftest$ac_exeext
7892: }; then
7893: lt_cv_cc_needs_belf=yes
7894: else
7895: $as_echo "$as_me: failed program was:" >&5
7896: sed 's/^/| /' conftest.$ac_ext >&5
7897:
7898: lt_cv_cc_needs_belf=no
7899: fi
7900:
7901: rm -rf conftest.dSYM
7902: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7903: conftest$ac_exeext conftest.$ac_ext
7904: ac_ext=c
7905: ac_cpp='$CPP $CPPFLAGS'
7906: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7909:
7910: fi
7911: { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7912: $as_echo "$lt_cv_cc_needs_belf" >&6; }
7913: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7914: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7915: CFLAGS="$SAVE_CFLAGS"
7916: fi
7917: ;;
7918: sparc*-*solaris*)
7919: # Find out which ABI we are using.
7920: echo 'int i;' > conftest.$ac_ext
7921: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922: (eval $ac_compile) 2>&5
7923: ac_status=$?
7924: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925: (exit $ac_status); }; then
7926: case `/usr/bin/file conftest.o` in
7927: *64-bit*)
7928: case $lt_cv_prog_gnu_ld in
7929: yes*) LD="${LD-ld} -m elf64_sparc" ;;
7930: *)
7931: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7932: LD="${LD-ld} -64"
7933: fi
7934: ;;
7935: esac
7936: ;;
7937: esac
7938: fi
7939: rm -rf conftest*
7940: ;;
7941: esac
7942:
7943: need_locks="$enable_libtool_lock"
7944:
7945:
7946: case $host_os in
7947: rhapsody* | darwin*)
7948: if test -n "$ac_tool_prefix"; then
7949: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7950: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7951: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7952: $as_echo_n "checking for $ac_word... " >&6; }
7953: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7954: $as_echo_n "(cached) " >&6
7955: else
7956: if test -n "$DSYMUTIL"; then
7957: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7958: else
7959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960: for as_dir in $PATH
7961: do
7962: IFS=$as_save_IFS
7963: test -z "$as_dir" && as_dir=.
7964: for ac_exec_ext in '' $ac_executable_extensions; do
7965: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7967: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968: break 2
7969: fi
7970: done
7971: done
7972: IFS=$as_save_IFS
7973:
7974: fi
7975: fi
7976: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7977: if test -n "$DSYMUTIL"; then
7978: { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7979: $as_echo "$DSYMUTIL" >&6; }
7980: else
7981: { $as_echo "$as_me:$LINENO: result: no" >&5
7982: $as_echo "no" >&6; }
7983: fi
7984:
7985:
7986: fi
7987: if test -z "$ac_cv_prog_DSYMUTIL"; then
7988: ac_ct_DSYMUTIL=$DSYMUTIL
7989: # Extract the first word of "dsymutil", so it can be a program name with args.
7990: set dummy dsymutil; ac_word=$2
7991: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7992: $as_echo_n "checking for $ac_word... " >&6; }
7993: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7994: $as_echo_n "(cached) " >&6
7995: else
7996: if test -n "$ac_ct_DSYMUTIL"; then
7997: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7998: else
7999: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000: for as_dir in $PATH
8001: do
8002: IFS=$as_save_IFS
8003: test -z "$as_dir" && as_dir=.
8004: for ac_exec_ext in '' $ac_executable_extensions; do
8005: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8007: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008: break 2
8009: fi
8010: done
8011: done
8012: IFS=$as_save_IFS
8013:
8014: fi
8015: fi
8016: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8017: if test -n "$ac_ct_DSYMUTIL"; then
8018: { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8019: $as_echo "$ac_ct_DSYMUTIL" >&6; }
8020: else
8021: { $as_echo "$as_me:$LINENO: result: no" >&5
8022: $as_echo "no" >&6; }
8023: fi
8024:
8025: if test "x$ac_ct_DSYMUTIL" = x; then
8026: DSYMUTIL=":"
8027: else
8028: case $cross_compiling:$ac_tool_warned in
8029: yes:)
8030: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8031: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032: ac_tool_warned=yes ;;
8033: esac
8034: DSYMUTIL=$ac_ct_DSYMUTIL
8035: fi
8036: else
8037: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8038: fi
8039:
8040: if test -n "$ac_tool_prefix"; then
8041: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8042: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8043: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8044: $as_echo_n "checking for $ac_word... " >&6; }
8045: if test "${ac_cv_prog_NMEDIT+set}" = set; then
8046: $as_echo_n "(cached) " >&6
8047: else
8048: if test -n "$NMEDIT"; then
8049: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8050: else
8051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052: for as_dir in $PATH
8053: do
8054: IFS=$as_save_IFS
8055: test -z "$as_dir" && as_dir=.
8056: for ac_exec_ext in '' $ac_executable_extensions; do
8057: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8059: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060: break 2
8061: fi
8062: done
8063: done
8064: IFS=$as_save_IFS
8065:
8066: fi
8067: fi
8068: NMEDIT=$ac_cv_prog_NMEDIT
8069: if test -n "$NMEDIT"; then
8070: { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8071: $as_echo "$NMEDIT" >&6; }
8072: else
8073: { $as_echo "$as_me:$LINENO: result: no" >&5
8074: $as_echo "no" >&6; }
8075: fi
8076:
8077:
8078: fi
8079: if test -z "$ac_cv_prog_NMEDIT"; then
8080: ac_ct_NMEDIT=$NMEDIT
8081: # Extract the first word of "nmedit", so it can be a program name with args.
8082: set dummy nmedit; ac_word=$2
8083: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8084: $as_echo_n "checking for $ac_word... " >&6; }
8085: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8086: $as_echo_n "(cached) " >&6
8087: else
8088: if test -n "$ac_ct_NMEDIT"; then
8089: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8090: else
8091: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092: for as_dir in $PATH
8093: do
8094: IFS=$as_save_IFS
8095: test -z "$as_dir" && as_dir=.
8096: for ac_exec_ext in '' $ac_executable_extensions; do
8097: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098: ac_cv_prog_ac_ct_NMEDIT="nmedit"
8099: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8100: break 2
8101: fi
8102: done
8103: done
8104: IFS=$as_save_IFS
8105:
8106: fi
8107: fi
8108: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8109: if test -n "$ac_ct_NMEDIT"; then
8110: { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8111: $as_echo "$ac_ct_NMEDIT" >&6; }
8112: else
8113: { $as_echo "$as_me:$LINENO: result: no" >&5
8114: $as_echo "no" >&6; }
8115: fi
8116:
8117: if test "x$ac_ct_NMEDIT" = x; then
8118: NMEDIT=":"
8119: else
8120: case $cross_compiling:$ac_tool_warned in
8121: yes:)
8122: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8123: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124: ac_tool_warned=yes ;;
8125: esac
8126: NMEDIT=$ac_ct_NMEDIT
8127: fi
8128: else
8129: NMEDIT="$ac_cv_prog_NMEDIT"
8130: fi
8131:
8132: if test -n "$ac_tool_prefix"; then
8133: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8134: set dummy ${ac_tool_prefix}lipo; ac_word=$2
8135: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8136: $as_echo_n "checking for $ac_word... " >&6; }
8137: if test "${ac_cv_prog_LIPO+set}" = set; then
8138: $as_echo_n "(cached) " >&6
8139: else
8140: if test -n "$LIPO"; then
8141: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8142: else
8143: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144: for as_dir in $PATH
8145: do
8146: IFS=$as_save_IFS
8147: test -z "$as_dir" && as_dir=.
8148: for ac_exec_ext in '' $ac_executable_extensions; do
8149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8151: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152: break 2
8153: fi
8154: done
8155: done
8156: IFS=$as_save_IFS
8157:
8158: fi
8159: fi
8160: LIPO=$ac_cv_prog_LIPO
8161: if test -n "$LIPO"; then
8162: { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8163: $as_echo "$LIPO" >&6; }
8164: else
8165: { $as_echo "$as_me:$LINENO: result: no" >&5
8166: $as_echo "no" >&6; }
8167: fi
8168:
8169:
8170: fi
8171: if test -z "$ac_cv_prog_LIPO"; then
8172: ac_ct_LIPO=$LIPO
8173: # Extract the first word of "lipo", so it can be a program name with args.
8174: set dummy lipo; ac_word=$2
8175: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8176: $as_echo_n "checking for $ac_word... " >&6; }
8177: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8178: $as_echo_n "(cached) " >&6
8179: else
8180: if test -n "$ac_ct_LIPO"; then
8181: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8182: else
8183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184: for as_dir in $PATH
8185: do
8186: IFS=$as_save_IFS
8187: test -z "$as_dir" && as_dir=.
8188: for ac_exec_ext in '' $ac_executable_extensions; do
8189: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190: ac_cv_prog_ac_ct_LIPO="lipo"
8191: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192: break 2
8193: fi
8194: done
8195: done
8196: IFS=$as_save_IFS
8197:
8198: fi
8199: fi
8200: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8201: if test -n "$ac_ct_LIPO"; then
8202: { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8203: $as_echo "$ac_ct_LIPO" >&6; }
8204: else
8205: { $as_echo "$as_me:$LINENO: result: no" >&5
8206: $as_echo "no" >&6; }
8207: fi
8208:
8209: if test "x$ac_ct_LIPO" = x; then
8210: LIPO=":"
8211: else
8212: case $cross_compiling:$ac_tool_warned in
8213: yes:)
8214: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8215: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8216: ac_tool_warned=yes ;;
8217: esac
8218: LIPO=$ac_ct_LIPO
8219: fi
8220: else
8221: LIPO="$ac_cv_prog_LIPO"
8222: fi
8223:
8224: if test -n "$ac_tool_prefix"; then
8225: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8226: set dummy ${ac_tool_prefix}otool; ac_word=$2
8227: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8228: $as_echo_n "checking for $ac_word... " >&6; }
8229: if test "${ac_cv_prog_OTOOL+set}" = set; then
8230: $as_echo_n "(cached) " >&6
8231: else
8232: if test -n "$OTOOL"; then
8233: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8234: else
8235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236: for as_dir in $PATH
8237: do
8238: IFS=$as_save_IFS
8239: test -z "$as_dir" && as_dir=.
8240: for ac_exec_ext in '' $ac_executable_extensions; do
8241: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8243: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244: break 2
8245: fi
8246: done
8247: done
8248: IFS=$as_save_IFS
8249:
8250: fi
8251: fi
8252: OTOOL=$ac_cv_prog_OTOOL
8253: if test -n "$OTOOL"; then
8254: { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8255: $as_echo "$OTOOL" >&6; }
8256: else
8257: { $as_echo "$as_me:$LINENO: result: no" >&5
8258: $as_echo "no" >&6; }
8259: fi
8260:
8261:
8262: fi
8263: if test -z "$ac_cv_prog_OTOOL"; then
8264: ac_ct_OTOOL=$OTOOL
8265: # Extract the first word of "otool", so it can be a program name with args.
8266: set dummy otool; ac_word=$2
8267: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8268: $as_echo_n "checking for $ac_word... " >&6; }
8269: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8270: $as_echo_n "(cached) " >&6
8271: else
8272: if test -n "$ac_ct_OTOOL"; then
8273: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8274: else
8275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276: for as_dir in $PATH
8277: do
8278: IFS=$as_save_IFS
8279: test -z "$as_dir" && as_dir=.
8280: for ac_exec_ext in '' $ac_executable_extensions; do
8281: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282: ac_cv_prog_ac_ct_OTOOL="otool"
8283: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284: break 2
8285: fi
8286: done
8287: done
8288: IFS=$as_save_IFS
8289:
8290: fi
8291: fi
8292: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8293: if test -n "$ac_ct_OTOOL"; then
8294: { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8295: $as_echo "$ac_ct_OTOOL" >&6; }
8296: else
8297: { $as_echo "$as_me:$LINENO: result: no" >&5
8298: $as_echo "no" >&6; }
8299: fi
8300:
8301: if test "x$ac_ct_OTOOL" = x; then
8302: OTOOL=":"
8303: else
8304: case $cross_compiling:$ac_tool_warned in
8305: yes:)
8306: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8307: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308: ac_tool_warned=yes ;;
8309: esac
8310: OTOOL=$ac_ct_OTOOL
8311: fi
8312: else
8313: OTOOL="$ac_cv_prog_OTOOL"
8314: fi
8315:
8316: if test -n "$ac_tool_prefix"; then
8317: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8318: set dummy ${ac_tool_prefix}otool64; ac_word=$2
8319: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8320: $as_echo_n "checking for $ac_word... " >&6; }
8321: if test "${ac_cv_prog_OTOOL64+set}" = set; then
8322: $as_echo_n "(cached) " >&6
8323: else
8324: if test -n "$OTOOL64"; then
8325: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8326: else
8327: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328: for as_dir in $PATH
8329: do
8330: IFS=$as_save_IFS
8331: test -z "$as_dir" && as_dir=.
8332: for ac_exec_ext in '' $ac_executable_extensions; do
8333: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8334: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8335: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336: break 2
8337: fi
8338: done
8339: done
8340: IFS=$as_save_IFS
8341:
8342: fi
8343: fi
8344: OTOOL64=$ac_cv_prog_OTOOL64
8345: if test -n "$OTOOL64"; then
8346: { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8347: $as_echo "$OTOOL64" >&6; }
8348: else
8349: { $as_echo "$as_me:$LINENO: result: no" >&5
8350: $as_echo "no" >&6; }
8351: fi
8352:
8353:
8354: fi
8355: if test -z "$ac_cv_prog_OTOOL64"; then
8356: ac_ct_OTOOL64=$OTOOL64
8357: # Extract the first word of "otool64", so it can be a program name with args.
8358: set dummy otool64; ac_word=$2
8359: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8360: $as_echo_n "checking for $ac_word... " >&6; }
8361: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8362: $as_echo_n "(cached) " >&6
8363: else
8364: if test -n "$ac_ct_OTOOL64"; then
8365: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8366: else
8367: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368: for as_dir in $PATH
8369: do
8370: IFS=$as_save_IFS
8371: test -z "$as_dir" && as_dir=.
8372: for ac_exec_ext in '' $ac_executable_extensions; do
8373: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374: ac_cv_prog_ac_ct_OTOOL64="otool64"
8375: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376: break 2
8377: fi
8378: done
8379: done
8380: IFS=$as_save_IFS
8381:
8382: fi
8383: fi
8384: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8385: if test -n "$ac_ct_OTOOL64"; then
8386: { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8387: $as_echo "$ac_ct_OTOOL64" >&6; }
8388: else
8389: { $as_echo "$as_me:$LINENO: result: no" >&5
8390: $as_echo "no" >&6; }
8391: fi
8392:
8393: if test "x$ac_ct_OTOOL64" = x; then
8394: OTOOL64=":"
8395: else
8396: case $cross_compiling:$ac_tool_warned in
8397: yes:)
8398: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8399: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8400: ac_tool_warned=yes ;;
8401: esac
8402: OTOOL64=$ac_ct_OTOOL64
8403: fi
8404: else
8405: OTOOL64="$ac_cv_prog_OTOOL64"
8406: fi
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421:
8422:
8423:
8424:
8425:
8426:
8427:
8428:
8429:
8430:
8431:
8432:
8433:
8434: { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8435: $as_echo_n "checking for -single_module linker flag... " >&6; }
8436: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8437: $as_echo_n "(cached) " >&6
8438: else
8439: lt_cv_apple_cc_single_mod=no
8440: if test -z "${LT_MULTI_MODULE}"; then
8441: # By default we will add the -single_module flag. You can override
8442: # by either setting the environment variable LT_MULTI_MODULE
8443: # non-empty at configure time, or by adding -multi_module to the
8444: # link flags.
8445: rm -rf libconftest.dylib*
8446: echo "int foo(void){return 1;}" > conftest.c
8447: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8448: -dynamiclib -Wl,-single_module conftest.c" >&5
8449: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8450: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8451: _lt_result=$?
8452: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8453: lt_cv_apple_cc_single_mod=yes
8454: else
8455: cat conftest.err >&5
8456: fi
8457: rm -rf libconftest.dylib*
8458: rm -f conftest.*
8459: fi
8460: fi
8461: { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8462: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8463: { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8464: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8465: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8466: $as_echo_n "(cached) " >&6
8467: else
8468: lt_cv_ld_exported_symbols_list=no
8469: save_LDFLAGS=$LDFLAGS
8470: echo "_main" > conftest.sym
8471: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8472: cat >conftest.$ac_ext <<_ACEOF
8473: /* confdefs.h. */
8474: _ACEOF
8475: cat confdefs.h >>conftest.$ac_ext
8476: cat >>conftest.$ac_ext <<_ACEOF
8477: /* end confdefs.h. */
8478:
8479: int
8480: main ()
8481: {
8482:
8483: ;
8484: return 0;
8485: }
8486: _ACEOF
8487: rm -f conftest.$ac_objext conftest$ac_exeext
8488: if { (ac_try="$ac_link"
8489: case "(($ac_try" in
8490: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491: *) ac_try_echo=$ac_try;;
8492: esac
8493: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494: $as_echo "$ac_try_echo") >&5
8495: (eval "$ac_link") 2>conftest.er1
8496: ac_status=$?
8497: grep -v '^ *+' conftest.er1 >conftest.err
8498: rm -f conftest.er1
8499: cat conftest.err >&5
8500: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501: (exit $ac_status); } && {
8502: test -z "$ac_c_werror_flag" ||
8503: test ! -s conftest.err
8504: } && test -s conftest$ac_exeext && {
8505: test "$cross_compiling" = yes ||
8506: $as_test_x conftest$ac_exeext
8507: }; then
8508: lt_cv_ld_exported_symbols_list=yes
8509: else
8510: $as_echo "$as_me: failed program was:" >&5
8511: sed 's/^/| /' conftest.$ac_ext >&5
8512:
8513: lt_cv_ld_exported_symbols_list=no
8514: fi
8515:
8516: rm -rf conftest.dSYM
8517: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8518: conftest$ac_exeext conftest.$ac_ext
8519: LDFLAGS="$save_LDFLAGS"
8520:
8521: fi
8522: { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8523: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8524: case $host_os in
8525: rhapsody* | darwin1.[012])
8526: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8527: darwin1.*)
8528: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8529: darwin*) # darwin 5.x on
8530: # if running on 10.5 or later, the deployment target defaults
8531: # to the OS version, if on x86, and 10.4, the deployment
8532: # target defaults to 10.4. Don't you love it?
8533: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8534: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8535: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8536: 10.[012]*)
8537: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8538: 10.*)
8539: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8540: esac
8541: ;;
8542: esac
8543: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8544: _lt_dar_single_mod='$single_module'
8545: fi
8546: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8547: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8548: else
8549: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8550: fi
8551: if test "$DSYMUTIL" != ":"; then
8552: _lt_dsymutil='~$DSYMUTIL $lib || :'
8553: else
8554: _lt_dsymutil=
8555: fi
8556: ;;
8557: esac
8558:
8559:
8560: for ac_header in dlfcn.h
8561: do
8562: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8563: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8564: $as_echo_n "checking for $ac_header... " >&6; }
8565: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8566: $as_echo_n "(cached) " >&6
8567: else
8568: cat >conftest.$ac_ext <<_ACEOF
8569: /* confdefs.h. */
8570: _ACEOF
8571: cat confdefs.h >>conftest.$ac_ext
8572: cat >>conftest.$ac_ext <<_ACEOF
8573: /* end confdefs.h. */
8574: $ac_includes_default
8575:
8576: #include <$ac_header>
8577: _ACEOF
8578: rm -f conftest.$ac_objext
8579: if { (ac_try="$ac_compile"
8580: case "(($ac_try" in
8581: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582: *) ac_try_echo=$ac_try;;
8583: esac
8584: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585: $as_echo "$ac_try_echo") >&5
8586: (eval "$ac_compile") 2>conftest.er1
8587: ac_status=$?
8588: grep -v '^ *+' conftest.er1 >conftest.err
8589: rm -f conftest.er1
8590: cat conftest.err >&5
8591: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592: (exit $ac_status); } && {
8593: test -z "$ac_c_werror_flag" ||
8594: test ! -s conftest.err
8595: } && test -s conftest.$ac_objext; then
8596: eval "$as_ac_Header=yes"
8597: else
8598: $as_echo "$as_me: failed program was:" >&5
8599: sed 's/^/| /' conftest.$ac_ext >&5
8600:
8601: eval "$as_ac_Header=no"
8602: fi
8603:
8604: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605: fi
8606: ac_res=`eval 'as_val=${'$as_ac_Header'}
8607: $as_echo "$as_val"'`
8608: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8609: $as_echo "$ac_res" >&6; }
8610: as_val=`eval 'as_val=${'$as_ac_Header'}
8611: $as_echo "$as_val"'`
8612: if test "x$as_val" = x""yes; then
8613: cat >>confdefs.h <<_ACEOF
8614: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8615: _ACEOF
8616:
8617: fi
8618:
8619: done
8620:
8621:
8622:
8623: # Set options
8624: # Check whether --enable-static was given.
8625: if test "${enable_static+set}" = set; then
8626: enableval=$enable_static; p=${PACKAGE-default}
8627: case $enableval in
8628: yes) enable_static=yes ;;
8629: no) enable_static=no ;;
8630: *)
8631: enable_static=no
8632: # Look at the argument we got. We use all the common list separators.
8633: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8634: for pkg in $enableval; do
8635: IFS="$lt_save_ifs"
8636: if test "X$pkg" = "X$p"; then
8637: enable_static=yes
8638: fi
8639: done
8640: IFS="$lt_save_ifs"
8641: ;;
8642: esac
8643: else
8644: enable_static=no
8645: fi
8646:
8647:
8648:
8649:
8650:
8651:
8652:
8653: enable_win32_dll=yes
8654:
8655: case $host in
8656: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8657: if test -n "$ac_tool_prefix"; then
8658: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8659: set dummy ${ac_tool_prefix}as; ac_word=$2
8660: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8661: $as_echo_n "checking for $ac_word... " >&6; }
8662: if test "${ac_cv_prog_AS+set}" = set; then
8663: $as_echo_n "(cached) " >&6
8664: else
8665: if test -n "$AS"; then
8666: ac_cv_prog_AS="$AS" # Let the user override the test.
8667: else
8668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669: for as_dir in $PATH
8670: do
8671: IFS=$as_save_IFS
8672: test -z "$as_dir" && as_dir=.
8673: for ac_exec_ext in '' $ac_executable_extensions; do
8674: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8675: ac_cv_prog_AS="${ac_tool_prefix}as"
8676: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8677: break 2
8678: fi
8679: done
8680: done
8681: IFS=$as_save_IFS
8682:
8683: fi
8684: fi
8685: AS=$ac_cv_prog_AS
8686: if test -n "$AS"; then
8687: { $as_echo "$as_me:$LINENO: result: $AS" >&5
8688: $as_echo "$AS" >&6; }
8689: else
8690: { $as_echo "$as_me:$LINENO: result: no" >&5
8691: $as_echo "no" >&6; }
8692: fi
8693:
8694:
8695: fi
8696: if test -z "$ac_cv_prog_AS"; then
8697: ac_ct_AS=$AS
8698: # Extract the first word of "as", so it can be a program name with args.
8699: set dummy as; ac_word=$2
8700: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8701: $as_echo_n "checking for $ac_word... " >&6; }
8702: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
8703: $as_echo_n "(cached) " >&6
8704: else
8705: if test -n "$ac_ct_AS"; then
8706: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8707: else
8708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709: for as_dir in $PATH
8710: do
8711: IFS=$as_save_IFS
8712: test -z "$as_dir" && as_dir=.
8713: for ac_exec_ext in '' $ac_executable_extensions; do
8714: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715: ac_cv_prog_ac_ct_AS="as"
8716: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8717: break 2
8718: fi
8719: done
8720: done
8721: IFS=$as_save_IFS
8722:
8723: fi
8724: fi
8725: ac_ct_AS=$ac_cv_prog_ac_ct_AS
8726: if test -n "$ac_ct_AS"; then
8727: { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
8728: $as_echo "$ac_ct_AS" >&6; }
8729: else
8730: { $as_echo "$as_me:$LINENO: result: no" >&5
8731: $as_echo "no" >&6; }
8732: fi
8733:
8734: if test "x$ac_ct_AS" = x; then
8735: AS="false"
8736: else
8737: case $cross_compiling:$ac_tool_warned in
8738: yes:)
8739: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8740: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8741: ac_tool_warned=yes ;;
8742: esac
8743: AS=$ac_ct_AS
8744: fi
8745: else
8746: AS="$ac_cv_prog_AS"
8747: fi
8748:
8749: if test -n "$ac_tool_prefix"; then
8750: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8751: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8752: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8753: $as_echo_n "checking for $ac_word... " >&6; }
8754: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8755: $as_echo_n "(cached) " >&6
8756: else
8757: if test -n "$DLLTOOL"; then
8758: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8759: else
8760: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761: for as_dir in $PATH
8762: do
8763: IFS=$as_save_IFS
8764: test -z "$as_dir" && as_dir=.
8765: for ac_exec_ext in '' $ac_executable_extensions; do
8766: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8767: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8768: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769: break 2
8770: fi
8771: done
8772: done
8773: IFS=$as_save_IFS
8774:
8775: fi
8776: fi
8777: DLLTOOL=$ac_cv_prog_DLLTOOL
8778: if test -n "$DLLTOOL"; then
8779: { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8780: $as_echo "$DLLTOOL" >&6; }
8781: else
8782: { $as_echo "$as_me:$LINENO: result: no" >&5
8783: $as_echo "no" >&6; }
8784: fi
8785:
8786:
8787: fi
8788: if test -z "$ac_cv_prog_DLLTOOL"; then
8789: ac_ct_DLLTOOL=$DLLTOOL
8790: # Extract the first word of "dlltool", so it can be a program name with args.
8791: set dummy dlltool; ac_word=$2
8792: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8793: $as_echo_n "checking for $ac_word... " >&6; }
8794: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8795: $as_echo_n "(cached) " >&6
8796: else
8797: if test -n "$ac_ct_DLLTOOL"; then
8798: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8799: else
8800: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801: for as_dir in $PATH
8802: do
8803: IFS=$as_save_IFS
8804: test -z "$as_dir" && as_dir=.
8805: for ac_exec_ext in '' $ac_executable_extensions; do
8806: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8808: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809: break 2
8810: fi
8811: done
8812: done
8813: IFS=$as_save_IFS
8814:
8815: fi
8816: fi
8817: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8818: if test -n "$ac_ct_DLLTOOL"; then
8819: { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8820: $as_echo "$ac_ct_DLLTOOL" >&6; }
8821: else
8822: { $as_echo "$as_me:$LINENO: result: no" >&5
8823: $as_echo "no" >&6; }
8824: fi
8825:
8826: if test "x$ac_ct_DLLTOOL" = x; then
8827: DLLTOOL="false"
8828: else
8829: case $cross_compiling:$ac_tool_warned in
8830: yes:)
8831: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8832: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8833: ac_tool_warned=yes ;;
8834: esac
8835: DLLTOOL=$ac_ct_DLLTOOL
8836: fi
8837: else
8838: DLLTOOL="$ac_cv_prog_DLLTOOL"
8839: fi
8840:
8841: if test -n "$ac_tool_prefix"; then
8842: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8843: set dummy ${ac_tool_prefix}objdump; ac_word=$2
8844: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8845: $as_echo_n "checking for $ac_word... " >&6; }
8846: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8847: $as_echo_n "(cached) " >&6
8848: else
8849: if test -n "$OBJDUMP"; then
8850: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8851: else
8852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853: for as_dir in $PATH
8854: do
8855: IFS=$as_save_IFS
8856: test -z "$as_dir" && as_dir=.
8857: for ac_exec_ext in '' $ac_executable_extensions; do
8858: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8860: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8861: break 2
8862: fi
8863: done
8864: done
8865: IFS=$as_save_IFS
8866:
8867: fi
8868: fi
8869: OBJDUMP=$ac_cv_prog_OBJDUMP
8870: if test -n "$OBJDUMP"; then
8871: { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8872: $as_echo "$OBJDUMP" >&6; }
8873: else
8874: { $as_echo "$as_me:$LINENO: result: no" >&5
8875: $as_echo "no" >&6; }
8876: fi
8877:
8878:
8879: fi
8880: if test -z "$ac_cv_prog_OBJDUMP"; then
8881: ac_ct_OBJDUMP=$OBJDUMP
8882: # Extract the first word of "objdump", so it can be a program name with args.
8883: set dummy objdump; ac_word=$2
8884: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8885: $as_echo_n "checking for $ac_word... " >&6; }
8886: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8887: $as_echo_n "(cached) " >&6
8888: else
8889: if test -n "$ac_ct_OBJDUMP"; then
8890: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8891: else
8892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893: for as_dir in $PATH
8894: do
8895: IFS=$as_save_IFS
8896: test -z "$as_dir" && as_dir=.
8897: for ac_exec_ext in '' $ac_executable_extensions; do
8898: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899: ac_cv_prog_ac_ct_OBJDUMP="objdump"
8900: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901: break 2
8902: fi
8903: done
8904: done
8905: IFS=$as_save_IFS
8906:
8907: fi
8908: fi
8909: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8910: if test -n "$ac_ct_OBJDUMP"; then
8911: { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8912: $as_echo "$ac_ct_OBJDUMP" >&6; }
8913: else
8914: { $as_echo "$as_me:$LINENO: result: no" >&5
8915: $as_echo "no" >&6; }
8916: fi
8917:
8918: if test "x$ac_ct_OBJDUMP" = x; then
8919: OBJDUMP="false"
8920: else
8921: case $cross_compiling:$ac_tool_warned in
8922: yes:)
8923: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8924: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8925: ac_tool_warned=yes ;;
8926: esac
8927: OBJDUMP=$ac_ct_OBJDUMP
8928: fi
8929: else
8930: OBJDUMP="$ac_cv_prog_OBJDUMP"
8931: fi
8932:
8933: ;;
8934: esac
8935:
8936: test -z "$AS" && AS=as
8937:
8938:
8939:
8940:
8941:
8942: test -z "$DLLTOOL" && DLLTOOL=dlltool
8943:
8944:
8945:
8946:
8947:
8948: test -z "$OBJDUMP" && OBJDUMP=objdump
8949:
8950:
8951:
8952:
8953:
8954:
8955:
8956: enable_dlopen=no
8957:
8958:
8959:
8960: # Check whether --enable-shared was given.
8961: if test "${enable_shared+set}" = set; then
8962: enableval=$enable_shared; p=${PACKAGE-default}
8963: case $enableval in
8964: yes) enable_shared=yes ;;
8965: no) enable_shared=no ;;
8966: *)
8967: enable_shared=no
8968: # Look at the argument we got. We use all the common list separators.
8969: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8970: for pkg in $enableval; do
8971: IFS="$lt_save_ifs"
8972: if test "X$pkg" = "X$p"; then
8973: enable_shared=yes
8974: fi
8975: done
8976: IFS="$lt_save_ifs"
8977: ;;
8978: esac
8979: else
8980: enable_shared=yes
8981: fi
8982:
8983:
8984:
8985:
8986:
8987:
8988:
8989:
8990:
8991:
8992:
8993: # Check whether --with-pic was given.
8994: if test "${with_pic+set}" = set; then
8995: withval=$with_pic; pic_mode="$withval"
8996: else
8997: pic_mode=default
8998: fi
8999:
9000:
9001: test -z "$pic_mode" && pic_mode=default
9002:
9003:
9004:
9005:
9006:
9007:
9008:
9009: # Check whether --enable-fast-install was given.
9010: if test "${enable_fast_install+set}" = set; then
9011: enableval=$enable_fast_install; p=${PACKAGE-default}
9012: case $enableval in
9013: yes) enable_fast_install=yes ;;
9014: no) enable_fast_install=no ;;
9015: *)
9016: enable_fast_install=no
9017: # Look at the argument we got. We use all the common list separators.
9018: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9019: for pkg in $enableval; do
9020: IFS="$lt_save_ifs"
9021: if test "X$pkg" = "X$p"; then
9022: enable_fast_install=yes
9023: fi
9024: done
9025: IFS="$lt_save_ifs"
9026: ;;
9027: esac
9028: else
9029: enable_fast_install=yes
9030: fi
9031:
9032:
9033:
9034:
9035:
9036:
9037:
9038:
9039:
9040:
9041:
9042: # This can be used to rebuild libtool when needed
9043: LIBTOOL_DEPS="$ltmain"
9044:
9045: # Always use our own libtool.
9046: LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9047:
9048:
9049:
9050:
9051:
9052:
9053:
9054:
9055:
9056:
9057:
9058:
9059:
9060:
9061:
9062:
9063:
9064:
9065:
9066:
9067:
9068:
9069:
9070:
9071:
9072: test -z "$LN_S" && LN_S="ln -s"
9073:
9074:
9075:
9076:
9077:
9078:
9079:
9080:
9081:
9082:
9083:
9084:
9085:
9086:
9087: if test -n "${ZSH_VERSION+set}" ; then
9088: setopt NO_GLOB_SUBST
9089: fi
9090:
9091: { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9092: $as_echo_n "checking for objdir... " >&6; }
9093: if test "${lt_cv_objdir+set}" = set; then
9094: $as_echo_n "(cached) " >&6
9095: else
9096: rm -f .libs 2>/dev/null
9097: mkdir .libs 2>/dev/null
9098: if test -d .libs; then
9099: lt_cv_objdir=.libs
9100: else
9101: # MS-DOS does not allow filenames that begin with a dot.
9102: lt_cv_objdir=_libs
9103: fi
9104: rmdir .libs 2>/dev/null
9105: fi
9106: { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9107: $as_echo "$lt_cv_objdir" >&6; }
9108: objdir=$lt_cv_objdir
9109:
9110:
9111:
9112:
9113:
9114: cat >>confdefs.h <<_ACEOF
9115: #define LT_OBJDIR "$lt_cv_objdir/"
9116: _ACEOF
9117:
9118:
9119:
9120:
9121:
9122:
9123:
9124:
9125:
9126:
9127:
9128:
9129:
9130:
9131:
9132:
9133:
9134: case $host_os in
9135: aix3*)
9136: # AIX sometimes has problems with the GCC collect2 program. For some
9137: # reason, if we set the COLLECT_NAMES environment variable, the problems
9138: # vanish in a puff of smoke.
9139: if test "X${COLLECT_NAMES+set}" != Xset; then
9140: COLLECT_NAMES=
9141: export COLLECT_NAMES
9142: fi
9143: ;;
9144: esac
9145:
9146: # Sed substitution that helps us do robust quoting. It backslashifies
9147: # metacharacters that are still active within double-quoted strings.
9148: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9149:
9150: # Same as above, but do not quote variable references.
9151: double_quote_subst='s/\(["`\\]\)/\\\1/g'
9152:
9153: # Sed substitution to delay expansion of an escaped shell variable in a
9154: # double_quote_subst'ed string.
9155: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9156:
9157: # Sed substitution to delay expansion of an escaped single quote.
9158: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9159:
9160: # Sed substitution to avoid accidental globbing in evaled expressions
9161: no_glob_subst='s/\*/\\\*/g'
9162:
9163: # Global variables:
9164: ofile=libtool
9165: can_build_shared=yes
9166:
9167: # All known linkers require a `.a' archive for static linking (except MSVC,
9168: # which needs '.lib').
9169: libext=a
9170:
9171: with_gnu_ld="$lt_cv_prog_gnu_ld"
9172:
9173: old_CC="$CC"
9174: old_CFLAGS="$CFLAGS"
9175:
9176: # Set sane defaults for various variables
9177: test -z "$CC" && CC=cc
9178: test -z "$LTCC" && LTCC=$CC
9179: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9180: test -z "$LD" && LD=ld
9181: test -z "$ac_objext" && ac_objext=o
9182:
9183: for cc_temp in $compiler""; do
9184: case $cc_temp in
9185: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9186: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9187: \-*) ;;
9188: *) break;;
9189: esac
9190: done
9191: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9192:
9193:
9194: # Only perform the check for file, if the check method requires it
9195: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9196: case $deplibs_check_method in
9197: file_magic*)
9198: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9199: { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9200: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9201: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9202: $as_echo_n "(cached) " >&6
9203: else
9204: case $MAGIC_CMD in
9205: [\\/*] | ?:[\\/]*)
9206: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9207: ;;
9208: *)
9209: lt_save_MAGIC_CMD="$MAGIC_CMD"
9210: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9211: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9212: for ac_dir in $ac_dummy; do
9213: IFS="$lt_save_ifs"
9214: test -z "$ac_dir" && ac_dir=.
9215: if test -f $ac_dir/${ac_tool_prefix}file; then
9216: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9217: if test -n "$file_magic_test_file"; then
9218: case $deplibs_check_method in
9219: "file_magic "*)
9220: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9221: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9222: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9223: $EGREP "$file_magic_regex" > /dev/null; then
9224: :
9225: else
9226: cat <<_LT_EOF 1>&2
9227:
9228: *** Warning: the command libtool uses to detect shared libraries,
9229: *** $file_magic_cmd, produces output that libtool cannot recognize.
9230: *** The result is that libtool may fail to recognize shared libraries
9231: *** as such. This will affect the creation of libtool libraries that
9232: *** depend on shared libraries, but programs linked with such libtool
9233: *** libraries will work regardless of this problem. Nevertheless, you
9234: *** may want to report the problem to your system manager and/or to
9235: *** bug-libtool@gnu.org
9236:
9237: _LT_EOF
9238: fi ;;
9239: esac
9240: fi
9241: break
9242: fi
9243: done
9244: IFS="$lt_save_ifs"
9245: MAGIC_CMD="$lt_save_MAGIC_CMD"
9246: ;;
9247: esac
9248: fi
9249:
9250: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9251: if test -n "$MAGIC_CMD"; then
9252: { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9253: $as_echo "$MAGIC_CMD" >&6; }
9254: else
9255: { $as_echo "$as_me:$LINENO: result: no" >&5
9256: $as_echo "no" >&6; }
9257: fi
9258:
9259:
9260:
9261:
9262:
9263: if test -z "$lt_cv_path_MAGIC_CMD"; then
9264: if test -n "$ac_tool_prefix"; then
9265: { $as_echo "$as_me:$LINENO: checking for file" >&5
9266: $as_echo_n "checking for file... " >&6; }
9267: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9268: $as_echo_n "(cached) " >&6
9269: else
9270: case $MAGIC_CMD in
9271: [\\/*] | ?:[\\/]*)
9272: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9273: ;;
9274: *)
9275: lt_save_MAGIC_CMD="$MAGIC_CMD"
9276: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9277: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9278: for ac_dir in $ac_dummy; do
9279: IFS="$lt_save_ifs"
9280: test -z "$ac_dir" && ac_dir=.
9281: if test -f $ac_dir/file; then
9282: lt_cv_path_MAGIC_CMD="$ac_dir/file"
9283: if test -n "$file_magic_test_file"; then
9284: case $deplibs_check_method in
9285: "file_magic "*)
9286: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9287: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9288: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9289: $EGREP "$file_magic_regex" > /dev/null; then
9290: :
9291: else
9292: cat <<_LT_EOF 1>&2
9293:
9294: *** Warning: the command libtool uses to detect shared libraries,
9295: *** $file_magic_cmd, produces output that libtool cannot recognize.
9296: *** The result is that libtool may fail to recognize shared libraries
9297: *** as such. This will affect the creation of libtool libraries that
9298: *** depend on shared libraries, but programs linked with such libtool
9299: *** libraries will work regardless of this problem. Nevertheless, you
9300: *** may want to report the problem to your system manager and/or to
9301: *** bug-libtool@gnu.org
9302:
9303: _LT_EOF
9304: fi ;;
9305: esac
9306: fi
9307: break
9308: fi
9309: done
9310: IFS="$lt_save_ifs"
9311: MAGIC_CMD="$lt_save_MAGIC_CMD"
9312: ;;
9313: esac
9314: fi
9315:
9316: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9317: if test -n "$MAGIC_CMD"; then
9318: { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9319: $as_echo "$MAGIC_CMD" >&6; }
9320: else
9321: { $as_echo "$as_me:$LINENO: result: no" >&5
9322: $as_echo "no" >&6; }
9323: fi
9324:
9325:
9326: else
9327: MAGIC_CMD=:
9328: fi
9329: fi
9330:
9331: fi
9332: ;;
9333: esac
9334:
9335: # Use C for the default configuration in the libtool script
9336:
9337: lt_save_CC="$CC"
9338: ac_ext=c
9339: ac_cpp='$CPP $CPPFLAGS'
9340: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9341: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9342: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9343:
9344:
9345: # Source file extension for C test sources.
9346: ac_ext=c
9347:
9348: # Object file extension for compiled C test sources.
9349: objext=o
9350: objext=$objext
9351:
9352: # Code to be used in simple compile tests
9353: lt_simple_compile_test_code="int some_variable = 0;"
9354:
9355: # Code to be used in simple link tests
9356: lt_simple_link_test_code='int main(){return(0);}'
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364: # If no C compiler was specified, use CC.
9365: LTCC=${LTCC-"$CC"}
9366:
9367: # If no C compiler flags were specified, use CFLAGS.
9368: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9369:
9370: # Allow CC to be a program name with arguments.
9371: compiler=$CC
9372:
9373: # Save the default compiler, since it gets overwritten when the other
9374: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9375: compiler_DEFAULT=$CC
9376:
9377: # save warnings/boilerplate of simple test code
9378: ac_outfile=conftest.$ac_objext
9379: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9380: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9381: _lt_compiler_boilerplate=`cat conftest.err`
9382: $RM conftest*
9383:
9384: ac_outfile=conftest.$ac_objext
9385: echo "$lt_simple_link_test_code" >conftest.$ac_ext
9386: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9387: _lt_linker_boilerplate=`cat conftest.err`
9388: $RM -r conftest*
9389:
9390:
9391: ## CAVEAT EMPTOR:
9392: ## There is no encapsulation within the following macros, do not change
9393: ## the running order or otherwise move them around unless you know exactly
9394: ## what you are doing...
9395: if test -n "$compiler"; then
9396:
9397: lt_prog_compiler_no_builtin_flag=
9398:
9399: if test "$GCC" = yes; then
9400: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9401:
9402: { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9403: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9404: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9405: $as_echo_n "(cached) " >&6
9406: else
9407: lt_cv_prog_compiler_rtti_exceptions=no
9408: ac_outfile=conftest.$ac_objext
9409: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410: lt_compiler_flag="-fno-rtti -fno-exceptions"
9411: # Insert the option either (1) after the last *FLAGS variable, or
9412: # (2) before a word containing "conftest.", or (3) at the end.
9413: # Note that $ac_compile itself does not contain backslashes and begins
9414: # with a dollar sign (not a hyphen), so the echo should work correctly.
9415: # The option is referenced via a variable to avoid confusing sed.
9416: lt_compile=`echo "$ac_compile" | $SED \
9417: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9418: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9419: -e 's:$: $lt_compiler_flag:'`
9420: (eval echo "\"\$as_me:9420: $lt_compile\"" >&5)
9421: (eval "$lt_compile" 2>conftest.err)
9422: ac_status=$?
9423: cat conftest.err >&5
9424: echo "$as_me:9424: \$? = $ac_status" >&5
9425: if (exit $ac_status) && test -s "$ac_outfile"; then
9426: # The compiler can only warn and ignore the option if not recognized
9427: # So say no if there are warnings other than the usual output.
9428: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9429: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9430: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9431: lt_cv_prog_compiler_rtti_exceptions=yes
9432: fi
9433: fi
9434: $RM conftest*
9435:
9436: fi
9437: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9438: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9439:
9440: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9441: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9442: else
9443: :
9444: fi
9445:
9446: fi
9447:
9448:
9449:
9450:
9451:
9452:
9453: lt_prog_compiler_wl=
9454: lt_prog_compiler_pic=
9455: lt_prog_compiler_static=
9456:
9457: { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9458: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9459:
9460: if test "$GCC" = yes; then
9461: lt_prog_compiler_wl='-Wl,'
9462: lt_prog_compiler_static='-static'
9463:
9464: case $host_os in
9465: aix*)
9466: # All AIX code is PIC.
9467: if test "$host_cpu" = ia64; then
9468: # AIX 5 now supports IA64 processor
9469: lt_prog_compiler_static='-Bstatic'
9470: fi
9471: ;;
9472:
9473: amigaos*)
9474: case $host_cpu in
9475: powerpc)
9476: # see comment about AmigaOS4 .so support
9477: lt_prog_compiler_pic='-fPIC'
9478: ;;
9479: m68k)
9480: # FIXME: we need at least 68020 code to build shared libraries, but
9481: # adding the `-m68020' flag to GCC prevents building anything better,
9482: # like `-m68040'.
9483: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9484: ;;
9485: esac
9486: ;;
9487:
9488: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9489: # PIC is the default for these OSes.
9490: ;;
9491:
9492: mingw* | cygwin* | pw32* | os2* | cegcc*)
9493: # This hack is so that the source file can tell whether it is being
9494: # built for inclusion in a dll (and should export symbols for example).
9495: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9496: # (--disable-auto-import) libraries
9497: lt_prog_compiler_pic='-DDLL_EXPORT'
9498: ;;
9499:
9500: darwin* | rhapsody*)
9501: # PIC is the default on this platform
9502: # Common symbols not allowed in MH_DYLIB files
9503: lt_prog_compiler_pic='-fno-common'
9504: ;;
9505:
9506: hpux*)
9507: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9508: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9509: # sets the default TLS model and affects inlining.
9510: case $host_cpu in
9511: hppa*64*)
9512: # +Z the default
9513: ;;
9514: *)
9515: lt_prog_compiler_pic='-fPIC'
9516: ;;
9517: esac
9518: ;;
9519:
9520: interix[3-9]*)
9521: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9522: # Instead, we relocate shared libraries at runtime.
9523: ;;
9524:
9525: msdosdjgpp*)
9526: # Just because we use GCC doesn't mean we suddenly get shared libraries
9527: # on systems that don't support them.
9528: lt_prog_compiler_can_build_shared=no
9529: enable_shared=no
9530: ;;
9531:
9532: *nto* | *qnx*)
9533: # QNX uses GNU C++, but need to define -shared option too, otherwise
9534: # it will coredump.
9535: lt_prog_compiler_pic='-fPIC -shared'
9536: ;;
9537:
9538: sysv4*MP*)
9539: if test -d /usr/nec; then
9540: lt_prog_compiler_pic=-Kconform_pic
9541: fi
9542: ;;
9543:
9544: *)
9545: lt_prog_compiler_pic='-fPIC'
9546: ;;
9547: esac
9548: else
9549: # PORTME Check for flag to pass linker flags through the system compiler.
9550: case $host_os in
9551: aix*)
9552: lt_prog_compiler_wl='-Wl,'
9553: if test "$host_cpu" = ia64; then
9554: # AIX 5 now supports IA64 processor
9555: lt_prog_compiler_static='-Bstatic'
9556: else
9557: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9558: fi
9559: ;;
9560:
9561: mingw* | cygwin* | pw32* | os2* | cegcc*)
9562: # This hack is so that the source file can tell whether it is being
9563: # built for inclusion in a dll (and should export symbols for example).
9564: lt_prog_compiler_pic='-DDLL_EXPORT'
9565: ;;
9566:
9567: hpux9* | hpux10* | hpux11*)
9568: lt_prog_compiler_wl='-Wl,'
9569: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9570: # not for PA HP-UX.
9571: case $host_cpu in
9572: hppa*64*|ia64*)
9573: # +Z the default
9574: ;;
9575: *)
9576: lt_prog_compiler_pic='+Z'
9577: ;;
9578: esac
9579: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9580: lt_prog_compiler_static='${wl}-a ${wl}archive'
9581: ;;
9582:
9583: irix5* | irix6* | nonstopux*)
9584: lt_prog_compiler_wl='-Wl,'
9585: # PIC (with -KPIC) is the default.
9586: lt_prog_compiler_static='-non_shared'
9587: ;;
9588:
9589: linux* | k*bsd*-gnu)
9590: case $cc_basename in
9591: # old Intel for x86_64 which still supported -KPIC.
9592: ecc*)
9593: lt_prog_compiler_wl='-Wl,'
9594: lt_prog_compiler_pic='-KPIC'
9595: lt_prog_compiler_static='-static'
9596: ;;
9597: # icc used to be incompatible with GCC.
9598: # ICC 10 doesn't accept -KPIC any more.
9599: icc* | ifort*)
9600: lt_prog_compiler_wl='-Wl,'
9601: lt_prog_compiler_pic='-fPIC'
9602: lt_prog_compiler_static='-static'
9603: ;;
9604: # Lahey Fortran 8.1.
9605: lf95*)
9606: lt_prog_compiler_wl='-Wl,'
9607: lt_prog_compiler_pic='--shared'
9608: lt_prog_compiler_static='--static'
9609: ;;
9610: pgcc* | pgf77* | pgf90* | pgf95*)
9611: # Portland Group compilers (*not* the Pentium gcc compiler,
9612: # which looks to be a dead project)
9613: lt_prog_compiler_wl='-Wl,'
9614: lt_prog_compiler_pic='-fpic'
9615: lt_prog_compiler_static='-Bstatic'
9616: ;;
9617: ccc*)
9618: lt_prog_compiler_wl='-Wl,'
9619: # All Alpha code is PIC.
9620: lt_prog_compiler_static='-non_shared'
9621: ;;
9622: xl*)
9623: # IBM XL C 8.0/Fortran 10.1 on PPC
9624: lt_prog_compiler_wl='-Wl,'
9625: lt_prog_compiler_pic='-qpic'
9626: lt_prog_compiler_static='-qstaticlink'
9627: ;;
9628: *)
9629: case `$CC -V 2>&1 | sed 5q` in
9630: *Sun\ C*)
9631: # Sun C 5.9
9632: lt_prog_compiler_pic='-KPIC'
9633: lt_prog_compiler_static='-Bstatic'
9634: lt_prog_compiler_wl='-Wl,'
9635: ;;
9636: *Sun\ F*)
9637: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9638: lt_prog_compiler_pic='-KPIC'
9639: lt_prog_compiler_static='-Bstatic'
9640: lt_prog_compiler_wl=''
9641: ;;
9642: esac
9643: ;;
9644: esac
9645: ;;
9646:
9647: newsos6)
9648: lt_prog_compiler_pic='-KPIC'
9649: lt_prog_compiler_static='-Bstatic'
9650: ;;
9651:
9652: *nto* | *qnx*)
9653: # QNX uses GNU C++, but need to define -shared option too, otherwise
9654: # it will coredump.
9655: lt_prog_compiler_pic='-fPIC -shared'
9656: ;;
9657:
9658: osf3* | osf4* | osf5*)
9659: lt_prog_compiler_wl='-Wl,'
9660: # All OSF/1 code is PIC.
9661: lt_prog_compiler_static='-non_shared'
9662: ;;
9663:
9664: rdos*)
9665: lt_prog_compiler_static='-non_shared'
9666: ;;
9667:
9668: solaris*)
9669: lt_prog_compiler_pic='-KPIC'
9670: lt_prog_compiler_static='-Bstatic'
9671: case $cc_basename in
9672: f77* | f90* | f95*)
9673: lt_prog_compiler_wl='-Qoption ld ';;
9674: *)
9675: lt_prog_compiler_wl='-Wl,';;
9676: esac
9677: ;;
9678:
9679: sunos4*)
9680: lt_prog_compiler_wl='-Qoption ld '
9681: lt_prog_compiler_pic='-PIC'
9682: lt_prog_compiler_static='-Bstatic'
9683: ;;
9684:
9685: sysv4 | sysv4.2uw2* | sysv4.3*)
9686: lt_prog_compiler_wl='-Wl,'
9687: lt_prog_compiler_pic='-KPIC'
9688: lt_prog_compiler_static='-Bstatic'
9689: ;;
9690:
9691: sysv4*MP*)
9692: if test -d /usr/nec ;then
9693: lt_prog_compiler_pic='-Kconform_pic'
9694: lt_prog_compiler_static='-Bstatic'
9695: fi
9696: ;;
9697:
9698: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9699: lt_prog_compiler_wl='-Wl,'
9700: lt_prog_compiler_pic='-KPIC'
9701: lt_prog_compiler_static='-Bstatic'
9702: ;;
9703:
9704: unicos*)
9705: lt_prog_compiler_wl='-Wl,'
9706: lt_prog_compiler_can_build_shared=no
9707: ;;
9708:
9709: uts4*)
9710: lt_prog_compiler_pic='-pic'
9711: lt_prog_compiler_static='-Bstatic'
9712: ;;
9713:
9714: *)
9715: lt_prog_compiler_can_build_shared=no
9716: ;;
9717: esac
9718: fi
9719:
9720: case $host_os in
9721: # For platforms which do not support PIC, -DPIC is meaningless:
9722: *djgpp*)
9723: lt_prog_compiler_pic=
9724: ;;
9725: *)
9726: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9727: ;;
9728: esac
9729: { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9730: $as_echo "$lt_prog_compiler_pic" >&6; }
9731:
9732:
9733:
9734:
9735:
9736:
9737: #
9738: # Check to make sure the PIC flag actually works.
9739: #
9740: if test -n "$lt_prog_compiler_pic"; then
9741: { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9742: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9743: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9744: $as_echo_n "(cached) " >&6
9745: else
9746: lt_cv_prog_compiler_pic_works=no
9747: ac_outfile=conftest.$ac_objext
9748: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9749: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9750: # Insert the option either (1) after the last *FLAGS variable, or
9751: # (2) before a word containing "conftest.", or (3) at the end.
9752: # Note that $ac_compile itself does not contain backslashes and begins
9753: # with a dollar sign (not a hyphen), so the echo should work correctly.
9754: # The option is referenced via a variable to avoid confusing sed.
9755: lt_compile=`echo "$ac_compile" | $SED \
9756: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9757: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9758: -e 's:$: $lt_compiler_flag:'`
9759: (eval echo "\"\$as_me:9759: $lt_compile\"" >&5)
9760: (eval "$lt_compile" 2>conftest.err)
9761: ac_status=$?
9762: cat conftest.err >&5
9763: echo "$as_me:9763: \$? = $ac_status" >&5
9764: if (exit $ac_status) && test -s "$ac_outfile"; then
9765: # The compiler can only warn and ignore the option if not recognized
9766: # So say no if there are warnings other than the usual output.
9767: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9768: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9769: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9770: lt_cv_prog_compiler_pic_works=yes
9771: fi
9772: fi
9773: $RM conftest*
9774:
9775: fi
9776: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9777: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9778:
9779: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9780: case $lt_prog_compiler_pic in
9781: "" | " "*) ;;
9782: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9783: esac
9784: else
9785: lt_prog_compiler_pic=
9786: lt_prog_compiler_can_build_shared=no
9787: fi
9788:
9789: fi
9790:
9791:
9792:
9793:
9794:
9795:
9796: #
9797: # Check to make sure the static flag actually works.
9798: #
9799: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9800: { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9801: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9802: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9803: $as_echo_n "(cached) " >&6
9804: else
9805: lt_cv_prog_compiler_static_works=no
9806: save_LDFLAGS="$LDFLAGS"
9807: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9808: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9809: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9810: # The linker can only warn and ignore the option if not recognized
9811: # So say no if there are warnings
9812: if test -s conftest.err; then
9813: # Append any errors to the config.log.
9814: cat conftest.err 1>&5
9815: $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9816: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9817: if diff conftest.exp conftest.er2 >/dev/null; then
9818: lt_cv_prog_compiler_static_works=yes
9819: fi
9820: else
9821: lt_cv_prog_compiler_static_works=yes
9822: fi
9823: fi
9824: $RM -r conftest*
9825: LDFLAGS="$save_LDFLAGS"
9826:
9827: fi
9828: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9829: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9830:
9831: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9832: :
9833: else
9834: lt_prog_compiler_static=
9835: fi
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843: { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9844: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9845: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9846: $as_echo_n "(cached) " >&6
9847: else
9848: lt_cv_prog_compiler_c_o=no
9849: $RM -r conftest 2>/dev/null
9850: mkdir conftest
9851: cd conftest
9852: mkdir out
9853: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9854:
9855: lt_compiler_flag="-o out/conftest2.$ac_objext"
9856: # Insert the option either (1) after the last *FLAGS variable, or
9857: # (2) before a word containing "conftest.", or (3) at the end.
9858: # Note that $ac_compile itself does not contain backslashes and begins
9859: # with a dollar sign (not a hyphen), so the echo should work correctly.
9860: lt_compile=`echo "$ac_compile" | $SED \
9861: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9862: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9863: -e 's:$: $lt_compiler_flag:'`
9864: (eval echo "\"\$as_me:9864: $lt_compile\"" >&5)
9865: (eval "$lt_compile" 2>out/conftest.err)
9866: ac_status=$?
9867: cat out/conftest.err >&5
9868: echo "$as_me:9868: \$? = $ac_status" >&5
9869: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9870: then
9871: # The compiler can only warn and ignore the option if not recognized
9872: # So say no if there are warnings
9873: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9874: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9875: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9876: lt_cv_prog_compiler_c_o=yes
9877: fi
9878: fi
9879: chmod u+w . 2>&5
9880: $RM conftest*
9881: # SGI C++ compiler will create directory out/ii_files/ for
9882: # template instantiation
9883: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9884: $RM out/* && rmdir out
9885: cd ..
9886: $RM -r conftest
9887: $RM conftest*
9888:
9889: fi
9890: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9891: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9892:
9893:
9894:
9895:
9896:
9897:
9898: { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9899: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9900: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9901: $as_echo_n "(cached) " >&6
9902: else
9903: lt_cv_prog_compiler_c_o=no
9904: $RM -r conftest 2>/dev/null
9905: mkdir conftest
9906: cd conftest
9907: mkdir out
9908: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9909:
9910: lt_compiler_flag="-o out/conftest2.$ac_objext"
9911: # Insert the option either (1) after the last *FLAGS variable, or
9912: # (2) before a word containing "conftest.", or (3) at the end.
9913: # Note that $ac_compile itself does not contain backslashes and begins
9914: # with a dollar sign (not a hyphen), so the echo should work correctly.
9915: lt_compile=`echo "$ac_compile" | $SED \
9916: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9917: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9918: -e 's:$: $lt_compiler_flag:'`
9919: (eval echo "\"\$as_me:9919: $lt_compile\"" >&5)
9920: (eval "$lt_compile" 2>out/conftest.err)
9921: ac_status=$?
9922: cat out/conftest.err >&5
9923: echo "$as_me:9923: \$? = $ac_status" >&5
9924: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9925: then
9926: # The compiler can only warn and ignore the option if not recognized
9927: # So say no if there are warnings
9928: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9929: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9930: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9931: lt_cv_prog_compiler_c_o=yes
9932: fi
9933: fi
9934: chmod u+w . 2>&5
9935: $RM conftest*
9936: # SGI C++ compiler will create directory out/ii_files/ for
9937: # template instantiation
9938: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9939: $RM out/* && rmdir out
9940: cd ..
9941: $RM -r conftest
9942: $RM conftest*
9943:
9944: fi
9945: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9946: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9947:
9948:
9949:
9950:
9951: hard_links="nottested"
9952: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9953: # do not overwrite the value of need_locks provided by the user
9954: { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9955: $as_echo_n "checking if we can lock with hard links... " >&6; }
9956: hard_links=yes
9957: $RM conftest*
9958: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9959: touch conftest.a
9960: ln conftest.a conftest.b 2>&5 || hard_links=no
9961: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9962: { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9963: $as_echo "$hard_links" >&6; }
9964: if test "$hard_links" = no; then
9965: { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9966: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9967: need_locks=warn
9968: fi
9969: else
9970: need_locks=no
9971: fi
9972:
9973:
9974:
9975:
9976:
9977:
9978: { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9979: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9980:
9981: runpath_var=
9982: allow_undefined_flag=
9983: always_export_symbols=no
9984: archive_cmds=
9985: archive_expsym_cmds=
9986: compiler_needs_object=no
9987: enable_shared_with_static_runtimes=no
9988: export_dynamic_flag_spec=
9989: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9990: hardcode_automatic=no
9991: hardcode_direct=no
9992: hardcode_direct_absolute=no
9993: hardcode_libdir_flag_spec=
9994: hardcode_libdir_flag_spec_ld=
9995: hardcode_libdir_separator=
9996: hardcode_minus_L=no
9997: hardcode_shlibpath_var=unsupported
9998: inherit_rpath=no
9999: link_all_deplibs=unknown
10000: module_cmds=
10001: module_expsym_cmds=
10002: old_archive_from_new_cmds=
10003: old_archive_from_expsyms_cmds=
10004: thread_safe_flag_spec=
10005: whole_archive_flag_spec=
10006: # include_expsyms should be a list of space-separated symbols to be *always*
10007: # included in the symbol list
10008: include_expsyms=
10009: # exclude_expsyms can be an extended regexp of symbols to exclude
10010: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10011: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10012: # as well as any symbol that contains `d'.
10013: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10014: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10015: # platforms (ab)use it in PIC code, but their linkers get confused if
10016: # the symbol is explicitly referenced. Since portable code cannot
10017: # rely on this symbol name, it's probably fine to never include it in
10018: # preloaded symbol tables.
10019: # Exclude shared library initialization/finalization symbols.
10020: extract_expsyms_cmds=
10021:
10022: case $host_os in
10023: cygwin* | mingw* | pw32* | cegcc*)
10024: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10025: # When not using gcc, we currently assume that we are using
10026: # Microsoft Visual C++.
10027: if test "$GCC" != yes; then
10028: with_gnu_ld=no
10029: fi
10030: ;;
10031: interix*)
10032: # we just hope/assume this is gcc and not c89 (= MSVC++)
10033: with_gnu_ld=yes
10034: ;;
10035: openbsd*)
10036: with_gnu_ld=no
10037: ;;
10038: esac
10039:
10040: ld_shlibs=yes
10041: if test "$with_gnu_ld" = yes; then
10042: # If archive_cmds runs LD, not CC, wlarc should be empty
10043: wlarc='${wl}'
10044:
10045: # Set some defaults for GNU ld with shared library support. These
10046: # are reset later if shared libraries are not supported. Putting them
10047: # here allows them to be overridden if necessary.
10048: runpath_var=LD_RUN_PATH
10049: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050: export_dynamic_flag_spec='${wl}--export-dynamic'
10051: # ancient GNU ld didn't support --whole-archive et. al.
10052: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10053: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10054: else
10055: whole_archive_flag_spec=
10056: fi
10057: supports_anon_versioning=no
10058: case `$LD -v 2>&1` in
10059: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10060: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10061: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10062: *\ 2.11.*) ;; # other 2.11 versions
10063: *) supports_anon_versioning=yes ;;
10064: esac
10065:
10066: # See if GNU ld supports shared libraries.
10067: case $host_os in
10068: aix[3-9]*)
10069: # On AIX/PPC, the GNU linker is very broken
10070: if test "$host_cpu" != ia64; then
10071: ld_shlibs=no
10072: cat <<_LT_EOF 1>&2
10073:
10074: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10075: *** to be unable to reliably create shared libraries on AIX.
10076: *** Therefore, libtool is disabling shared libraries support. If you
10077: *** really care for shared libraries, you may want to modify your PATH
10078: *** so that a non-GNU linker is found, and then restart.
10079:
10080: _LT_EOF
10081: fi
10082: ;;
10083:
10084: amigaos*)
10085: case $host_cpu in
10086: powerpc)
10087: # see comment about AmigaOS4 .so support
10088: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10089: archive_expsym_cmds=''
10090: ;;
10091: m68k)
10092: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10093: hardcode_libdir_flag_spec='-L$libdir'
10094: hardcode_minus_L=yes
10095: ;;
10096: esac
10097: ;;
10098:
10099: beos*)
10100: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10101: allow_undefined_flag=unsupported
10102: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10103: # support --undefined. This deserves some investigation. FIXME
10104: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105: else
10106: ld_shlibs=no
10107: fi
10108: ;;
10109:
10110: cygwin* | mingw* | pw32* | cegcc*)
10111: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10112: # as there is no search path for DLLs.
10113: hardcode_libdir_flag_spec='-L$libdir'
10114: allow_undefined_flag=unsupported
10115: always_export_symbols=no
10116: enable_shared_with_static_runtimes=yes
10117: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10118:
10119: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10120: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10121: # If the export-symbols file already is a .def file (1st line
10122: # is EXPORTS), use it as is; otherwise, prepend...
10123: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10124: cp $export_symbols $output_objdir/$soname.def;
10125: else
10126: echo EXPORTS > $output_objdir/$soname.def;
10127: cat $export_symbols >> $output_objdir/$soname.def;
10128: fi~
10129: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10130: else
10131: ld_shlibs=no
10132: fi
10133: ;;
10134:
10135: interix[3-9]*)
10136: hardcode_direct=no
10137: hardcode_shlibpath_var=no
10138: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10139: export_dynamic_flag_spec='${wl}-E'
10140: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10141: # Instead, shared libraries are loaded at an image base (0x10000000 by
10142: # default) and relocated if they conflict, which is a slow very memory
10143: # consuming and fragmenting process. To avoid this, we pick a random,
10144: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10145: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10146: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10147: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10148: ;;
10149:
10150: gnu* | linux* | tpf* | k*bsd*-gnu)
10151: tmp_diet=no
10152: if test "$host_os" = linux-dietlibc; then
10153: case $cc_basename in
10154: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10155: esac
10156: fi
10157: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10158: && test "$tmp_diet" = no
10159: then
10160: tmp_addflag=
10161: tmp_sharedflag='-shared'
10162: case $cc_basename,$host_cpu in
10163: pgcc*) # Portland Group C compiler
10164: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10165: tmp_addflag=' $pic_flag'
10166: ;;
10167: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10168: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10169: tmp_addflag=' $pic_flag -Mnomain' ;;
10170: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10171: tmp_addflag=' -i_dynamic' ;;
10172: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10173: tmp_addflag=' -i_dynamic -nofor_main' ;;
10174: ifc* | ifort*) # Intel Fortran compiler
10175: tmp_addflag=' -nofor_main' ;;
10176: lf95*) # Lahey Fortran 8.1
10177: whole_archive_flag_spec=
10178: tmp_sharedflag='--shared' ;;
10179: xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10180: tmp_sharedflag='-qmkshrobj'
10181: tmp_addflag= ;;
10182: esac
10183: case `$CC -V 2>&1 | sed 5q` in
10184: *Sun\ C*) # Sun C 5.9
10185: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10186: compiler_needs_object=yes
10187: tmp_sharedflag='-G' ;;
10188: *Sun\ F*) # Sun Fortran 8.3
10189: tmp_sharedflag='-G' ;;
10190: esac
10191: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10192:
10193: if test "x$supports_anon_versioning" = xyes; then
10194: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10195: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10196: echo "local: *; };" >> $output_objdir/$libname.ver~
10197: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10198: fi
10199:
10200: case $cc_basename in
10201: xlf*)
10202: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10203: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10204: hardcode_libdir_flag_spec=
10205: hardcode_libdir_flag_spec_ld='-rpath $libdir'
10206: archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10207: if test "x$supports_anon_versioning" = xyes; then
10208: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210: echo "local: *; };" >> $output_objdir/$libname.ver~
10211: $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10212: fi
10213: ;;
10214: esac
10215: else
10216: ld_shlibs=no
10217: fi
10218: ;;
10219:
10220: netbsd*)
10221: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10222: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10223: wlarc=
10224: else
10225: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10226: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10227: fi
10228: ;;
10229:
10230: solaris*)
10231: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10232: ld_shlibs=no
10233: cat <<_LT_EOF 1>&2
10234:
10235: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10236: *** create shared libraries on Solaris systems. Therefore, libtool
10237: *** is disabling shared libraries support. We urge you to upgrade GNU
10238: *** binutils to release 2.9.1 or newer. Another option is to modify
10239: *** your PATH or compiler configuration so that the native linker is
10240: *** used, and then restart.
10241:
10242: _LT_EOF
10243: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10244: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10246: else
10247: ld_shlibs=no
10248: fi
10249: ;;
10250:
10251: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10252: case `$LD -v 2>&1` in
10253: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10254: ld_shlibs=no
10255: cat <<_LT_EOF 1>&2
10256:
10257: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10258: *** reliably create shared libraries on SCO systems. Therefore, libtool
10259: *** is disabling shared libraries support. We urge you to upgrade GNU
10260: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10261: *** your PATH or compiler configuration so that the native linker is
10262: *** used, and then restart.
10263:
10264: _LT_EOF
10265: ;;
10266: *)
10267: # For security reasons, it is highly recommended that you always
10268: # use absolute paths for naming shared libraries, and exclude the
10269: # DT_RUNPATH tag from executables and libraries. But doing so
10270: # requires that you compile everything twice, which is a pain.
10271: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10272: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10273: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10274: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10275: else
10276: ld_shlibs=no
10277: fi
10278: ;;
10279: esac
10280: ;;
10281:
10282: sunos4*)
10283: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10284: wlarc=
10285: hardcode_direct=yes
10286: hardcode_shlibpath_var=no
10287: ;;
10288:
10289: *)
10290: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10291: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10293: else
10294: ld_shlibs=no
10295: fi
10296: ;;
10297: esac
10298:
10299: if test "$ld_shlibs" = no; then
10300: runpath_var=
10301: hardcode_libdir_flag_spec=
10302: export_dynamic_flag_spec=
10303: whole_archive_flag_spec=
10304: fi
10305: else
10306: # PORTME fill in a description of your system's linker (not GNU ld)
10307: case $host_os in
10308: aix3*)
10309: allow_undefined_flag=unsupported
10310: always_export_symbols=yes
10311: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10312: # Note: this linker hardcodes the directories in LIBPATH if there
10313: # are no directories specified by -L.
10314: hardcode_minus_L=yes
10315: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10316: # Neither direct hardcoding nor static linking is supported with a
10317: # broken collect2.
10318: hardcode_direct=unsupported
10319: fi
10320: ;;
10321:
10322: aix[4-9]*)
10323: if test "$host_cpu" = ia64; then
10324: # On IA64, the linker does run time linking by default, so we don't
10325: # have to do anything special.
10326: aix_use_runtimelinking=no
10327: exp_sym_flag='-Bexport'
10328: no_entry_flag=""
10329: else
10330: # If we're using GNU nm, then we don't want the "-C" option.
10331: # -C means demangle to AIX nm, but means don't demangle with GNU nm
10332: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10333: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10334: else
10335: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10336: fi
10337: aix_use_runtimelinking=no
10338:
10339: # Test if we are trying to use run time linking or normal
10340: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10341: # need to do runtime linking.
10342: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10343: for ld_flag in $LDFLAGS; do
10344: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10345: aix_use_runtimelinking=yes
10346: break
10347: fi
10348: done
10349: ;;
10350: esac
10351:
10352: exp_sym_flag='-bexport'
10353: no_entry_flag='-bnoentry'
10354: fi
10355:
10356: # When large executables or shared objects are built, AIX ld can
10357: # have problems creating the table of contents. If linking a library
10358: # or program results in "error TOC overflow" add -mminimal-toc to
10359: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10360: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10361:
10362: archive_cmds=''
10363: hardcode_direct=yes
10364: hardcode_direct_absolute=yes
10365: hardcode_libdir_separator=':'
10366: link_all_deplibs=yes
10367: file_list_spec='${wl}-f,'
10368:
10369: if test "$GCC" = yes; then
10370: case $host_os in aix4.[012]|aix4.[012].*)
10371: # We only want to do this on AIX 4.2 and lower, the check
10372: # below for broken collect2 doesn't work under 4.3+
10373: collect2name=`${CC} -print-prog-name=collect2`
10374: if test -f "$collect2name" &&
10375: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10376: then
10377: # We have reworked collect2
10378: :
10379: else
10380: # We have old collect2
10381: hardcode_direct=unsupported
10382: # It fails to find uninstalled libraries when the uninstalled
10383: # path is not listed in the libpath. Setting hardcode_minus_L
10384: # to unsupported forces relinking
10385: hardcode_minus_L=yes
10386: hardcode_libdir_flag_spec='-L$libdir'
10387: hardcode_libdir_separator=
10388: fi
10389: ;;
10390: esac
10391: shared_flag='-shared'
10392: if test "$aix_use_runtimelinking" = yes; then
10393: shared_flag="$shared_flag "'${wl}-G'
10394: fi
10395: else
10396: # not using gcc
10397: if test "$host_cpu" = ia64; then
10398: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10399: # chokes on -Wl,-G. The following line is correct:
10400: shared_flag='-G'
10401: else
10402: if test "$aix_use_runtimelinking" = yes; then
10403: shared_flag='${wl}-G'
10404: else
10405: shared_flag='${wl}-bM:SRE'
10406: fi
10407: fi
10408: fi
10409:
10410: export_dynamic_flag_spec='${wl}-bexpall'
10411: # It seems that -bexpall does not export symbols beginning with
10412: # underscore (_), so it is better to generate a list of symbols to export.
10413: always_export_symbols=yes
10414: if test "$aix_use_runtimelinking" = yes; then
10415: # Warning - without using the other runtime loading flags (-brtl),
10416: # -berok will link without error, but may produce a broken library.
10417: allow_undefined_flag='-berok'
10418: # Determine the default libpath from the value encoded in an
10419: # empty executable.
10420: cat >conftest.$ac_ext <<_ACEOF
10421: /* confdefs.h. */
10422: _ACEOF
10423: cat confdefs.h >>conftest.$ac_ext
10424: cat >>conftest.$ac_ext <<_ACEOF
10425: /* end confdefs.h. */
10426:
10427: int
10428: main ()
10429: {
10430:
10431: ;
10432: return 0;
10433: }
10434: _ACEOF
10435: rm -f conftest.$ac_objext conftest$ac_exeext
10436: if { (ac_try="$ac_link"
10437: case "(($ac_try" in
10438: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439: *) ac_try_echo=$ac_try;;
10440: esac
10441: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10442: $as_echo "$ac_try_echo") >&5
10443: (eval "$ac_link") 2>conftest.er1
10444: ac_status=$?
10445: grep -v '^ *+' conftest.er1 >conftest.err
10446: rm -f conftest.er1
10447: cat conftest.err >&5
10448: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449: (exit $ac_status); } && {
10450: test -z "$ac_c_werror_flag" ||
10451: test ! -s conftest.err
10452: } && test -s conftest$ac_exeext && {
10453: test "$cross_compiling" = yes ||
10454: $as_test_x conftest$ac_exeext
10455: }; then
10456:
10457: lt_aix_libpath_sed='
10458: /Import File Strings/,/^$/ {
10459: /^0/ {
10460: s/^0 *\(.*\)$/\1/
10461: p
10462: }
10463: }'
10464: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10465: # Check for a 64-bit object if we didn't find anything.
10466: if test -z "$aix_libpath"; then
10467: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10468: fi
10469: else
10470: $as_echo "$as_me: failed program was:" >&5
10471: sed 's/^/| /' conftest.$ac_ext >&5
10472:
10473:
10474: fi
10475:
10476: rm -rf conftest.dSYM
10477: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478: conftest$ac_exeext conftest.$ac_ext
10479: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10480:
10481: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10482: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10483: else
10484: if test "$host_cpu" = ia64; then
10485: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10486: allow_undefined_flag="-z nodefs"
10487: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10488: else
10489: # Determine the default libpath from the value encoded in an
10490: # empty executable.
10491: cat >conftest.$ac_ext <<_ACEOF
10492: /* confdefs.h. */
10493: _ACEOF
10494: cat confdefs.h >>conftest.$ac_ext
10495: cat >>conftest.$ac_ext <<_ACEOF
10496: /* end confdefs.h. */
10497:
10498: int
10499: main ()
10500: {
10501:
10502: ;
10503: return 0;
10504: }
10505: _ACEOF
10506: rm -f conftest.$ac_objext conftest$ac_exeext
10507: if { (ac_try="$ac_link"
10508: case "(($ac_try" in
10509: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510: *) ac_try_echo=$ac_try;;
10511: esac
10512: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10513: $as_echo "$ac_try_echo") >&5
10514: (eval "$ac_link") 2>conftest.er1
10515: ac_status=$?
10516: grep -v '^ *+' conftest.er1 >conftest.err
10517: rm -f conftest.er1
10518: cat conftest.err >&5
10519: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520: (exit $ac_status); } && {
10521: test -z "$ac_c_werror_flag" ||
10522: test ! -s conftest.err
10523: } && test -s conftest$ac_exeext && {
10524: test "$cross_compiling" = yes ||
10525: $as_test_x conftest$ac_exeext
10526: }; then
10527:
10528: lt_aix_libpath_sed='
10529: /Import File Strings/,/^$/ {
10530: /^0/ {
10531: s/^0 *\(.*\)$/\1/
10532: p
10533: }
10534: }'
10535: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536: # Check for a 64-bit object if we didn't find anything.
10537: if test -z "$aix_libpath"; then
10538: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539: fi
10540: else
10541: $as_echo "$as_me: failed program was:" >&5
10542: sed 's/^/| /' conftest.$ac_ext >&5
10543:
10544:
10545: fi
10546:
10547: rm -rf conftest.dSYM
10548: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10549: conftest$ac_exeext conftest.$ac_ext
10550: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10551:
10552: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10553: # Warning - without using the other run time loading flags,
10554: # -berok will link without error, but may produce a broken library.
10555: no_undefined_flag=' ${wl}-bernotok'
10556: allow_undefined_flag=' ${wl}-berok'
10557: # Exported symbols can be pulled into shared objects from archives
10558: whole_archive_flag_spec='$convenience'
10559: archive_cmds_need_lc=yes
10560: # This is similar to how AIX traditionally builds its shared libraries.
10561: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10562: fi
10563: fi
10564: ;;
10565:
10566: amigaos*)
10567: case $host_cpu in
10568: powerpc)
10569: # see comment about AmigaOS4 .so support
10570: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571: archive_expsym_cmds=''
10572: ;;
10573: m68k)
10574: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10575: hardcode_libdir_flag_spec='-L$libdir'
10576: hardcode_minus_L=yes
10577: ;;
10578: esac
10579: ;;
10580:
10581: bsdi[45]*)
10582: export_dynamic_flag_spec=-rdynamic
10583: ;;
10584:
10585: cygwin* | mingw* | pw32* | cegcc*)
10586: # When not using gcc, we currently assume that we are using
10587: # Microsoft Visual C++.
10588: # hardcode_libdir_flag_spec is actually meaningless, as there is
10589: # no search path for DLLs.
10590: hardcode_libdir_flag_spec=' '
10591: allow_undefined_flag=unsupported
10592: # Tell ltmain to make .lib files, not .a files.
10593: libext=lib
10594: # Tell ltmain to make .dll files, not .so files.
10595: shrext_cmds=".dll"
10596: # FIXME: Setting linknames here is a bad hack.
10597: archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10598: # The linker will automatically build a .lib file if we build a DLL.
10599: old_archive_from_new_cmds='true'
10600: # FIXME: Should let the user specify the lib program.
10601: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10602: fix_srcfile_path='`cygpath -w "$srcfile"`'
10603: enable_shared_with_static_runtimes=yes
10604: ;;
10605:
10606: darwin* | rhapsody*)
10607:
10608:
10609: archive_cmds_need_lc=no
10610: hardcode_direct=no
10611: hardcode_automatic=yes
10612: hardcode_shlibpath_var=unsupported
10613: whole_archive_flag_spec=''
10614: link_all_deplibs=yes
10615: allow_undefined_flag="$_lt_dar_allow_undefined"
10616: case $cc_basename in
10617: ifort*) _lt_dar_can_shared=yes ;;
10618: *) _lt_dar_can_shared=$GCC ;;
10619: esac
10620: if test "$_lt_dar_can_shared" = "yes"; then
10621: output_verbose_link_cmd=echo
10622: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10623: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10624: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10625: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10626:
10627: else
10628: ld_shlibs=no
10629: fi
10630:
10631: ;;
10632:
10633: dgux*)
10634: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635: hardcode_libdir_flag_spec='-L$libdir'
10636: hardcode_shlibpath_var=no
10637: ;;
10638:
10639: freebsd1*)
10640: ld_shlibs=no
10641: ;;
10642:
10643: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10644: # support. Future versions do this automatically, but an explicit c++rt0.o
10645: # does not break anything, and helps significantly (at the cost of a little
10646: # extra space).
10647: freebsd2.2*)
10648: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10649: hardcode_libdir_flag_spec='-R$libdir'
10650: hardcode_direct=yes
10651: hardcode_shlibpath_var=no
10652: ;;
10653:
10654: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10655: freebsd2*)
10656: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10657: hardcode_direct=yes
10658: hardcode_minus_L=yes
10659: hardcode_shlibpath_var=no
10660: ;;
10661:
10662: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10663: freebsd* | dragonfly*)
10664: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10665: hardcode_libdir_flag_spec='-R$libdir'
10666: hardcode_direct=yes
10667: hardcode_shlibpath_var=no
10668: ;;
10669:
10670: hpux9*)
10671: if test "$GCC" = yes; then
10672: archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10673: else
10674: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10675: fi
10676: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677: hardcode_libdir_separator=:
10678: hardcode_direct=yes
10679:
10680: # hardcode_minus_L: Not really in the search PATH,
10681: # but as the default location of the library.
10682: hardcode_minus_L=yes
10683: export_dynamic_flag_spec='${wl}-E'
10684: ;;
10685:
10686: hpux10*)
10687: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10688: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10689: else
10690: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10691: fi
10692: if test "$with_gnu_ld" = no; then
10693: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10694: hardcode_libdir_flag_spec_ld='+b $libdir'
10695: hardcode_libdir_separator=:
10696: hardcode_direct=yes
10697: hardcode_direct_absolute=yes
10698: export_dynamic_flag_spec='${wl}-E'
10699: # hardcode_minus_L: Not really in the search PATH,
10700: # but as the default location of the library.
10701: hardcode_minus_L=yes
10702: fi
10703: ;;
10704:
10705: hpux11*)
10706: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10707: case $host_cpu in
10708: hppa*64*)
10709: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10710: ;;
10711: ia64*)
10712: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10713: ;;
10714: *)
10715: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10716: ;;
10717: esac
10718: else
10719: case $host_cpu in
10720: hppa*64*)
10721: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722: ;;
10723: ia64*)
10724: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10725: ;;
10726: *)
10727: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728: ;;
10729: esac
10730: fi
10731: if test "$with_gnu_ld" = no; then
10732: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10733: hardcode_libdir_separator=:
10734:
10735: case $host_cpu in
10736: hppa*64*|ia64*)
10737: hardcode_direct=no
10738: hardcode_shlibpath_var=no
10739: ;;
10740: *)
10741: hardcode_direct=yes
10742: hardcode_direct_absolute=yes
10743: export_dynamic_flag_spec='${wl}-E'
10744:
10745: # hardcode_minus_L: Not really in the search PATH,
10746: # but as the default location of the library.
10747: hardcode_minus_L=yes
10748: ;;
10749: esac
10750: fi
10751: ;;
10752:
10753: irix5* | irix6* | nonstopux*)
10754: if test "$GCC" = yes; then
10755: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10756: # Try to use the -exported_symbol ld option, if it does not
10757: # work, assume that -exports_file does not work either and
10758: # implicitly export all symbols.
10759: save_LDFLAGS="$LDFLAGS"
10760: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10761: cat >conftest.$ac_ext <<_ACEOF
10762: int foo(void) {}
10763: _ACEOF
10764: rm -f conftest.$ac_objext conftest$ac_exeext
10765: if { (ac_try="$ac_link"
10766: case "(($ac_try" in
10767: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768: *) ac_try_echo=$ac_try;;
10769: esac
10770: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771: $as_echo "$ac_try_echo") >&5
10772: (eval "$ac_link") 2>conftest.er1
10773: ac_status=$?
10774: grep -v '^ *+' conftest.er1 >conftest.err
10775: rm -f conftest.er1
10776: cat conftest.err >&5
10777: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778: (exit $ac_status); } && {
10779: test -z "$ac_c_werror_flag" ||
10780: test ! -s conftest.err
10781: } && test -s conftest$ac_exeext && {
10782: test "$cross_compiling" = yes ||
10783: $as_test_x conftest$ac_exeext
10784: }; then
10785: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10786:
10787: else
10788: $as_echo "$as_me: failed program was:" >&5
10789: sed 's/^/| /' conftest.$ac_ext >&5
10790:
10791:
10792: fi
10793:
10794: rm -rf conftest.dSYM
10795: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10796: conftest$ac_exeext conftest.$ac_ext
10797: LDFLAGS="$save_LDFLAGS"
10798: else
10799: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10800: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10801: fi
10802: archive_cmds_need_lc='no'
10803: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10804: hardcode_libdir_separator=:
10805: inherit_rpath=yes
10806: link_all_deplibs=yes
10807: ;;
10808:
10809: netbsd*)
10810: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10811: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10812: else
10813: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10814: fi
10815: hardcode_libdir_flag_spec='-R$libdir'
10816: hardcode_direct=yes
10817: hardcode_shlibpath_var=no
10818: ;;
10819:
10820: newsos6)
10821: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822: hardcode_direct=yes
10823: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10824: hardcode_libdir_separator=:
10825: hardcode_shlibpath_var=no
10826: ;;
10827:
10828: *nto* | *qnx*)
10829: ;;
10830:
10831: openbsd*)
10832: if test -f /usr/libexec/ld.so; then
10833: hardcode_direct=yes
10834: hardcode_shlibpath_var=no
10835: hardcode_direct_absolute=yes
10836: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10837: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10838: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10839: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10840: export_dynamic_flag_spec='${wl}-E'
10841: else
10842: case $host_os in
10843: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10844: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10845: hardcode_libdir_flag_spec='-R$libdir'
10846: ;;
10847: *)
10848: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10849: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10850: ;;
10851: esac
10852: fi
10853: else
10854: ld_shlibs=no
10855: fi
10856: ;;
10857:
10858: os2*)
10859: hardcode_libdir_flag_spec='-L$libdir'
10860: hardcode_minus_L=yes
10861: allow_undefined_flag=unsupported
10862: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10863: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10864: ;;
10865:
10866: osf3*)
10867: if test "$GCC" = yes; then
10868: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10869: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10870: else
10871: allow_undefined_flag=' -expect_unresolved \*'
10872: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10873: fi
10874: archive_cmds_need_lc='no'
10875: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10876: hardcode_libdir_separator=:
10877: ;;
10878:
10879: osf4* | osf5*) # as osf3* with the addition of -msym flag
10880: if test "$GCC" = yes; then
10881: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10882: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10883: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10884: else
10885: allow_undefined_flag=' -expect_unresolved \*'
10886: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10887: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10888: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10889:
10890: # Both c and cxx compiler support -rpath directly
10891: hardcode_libdir_flag_spec='-rpath $libdir'
10892: fi
10893: archive_cmds_need_lc='no'
10894: hardcode_libdir_separator=:
10895: ;;
10896:
10897: solaris*)
10898: no_undefined_flag=' -z defs'
10899: if test "$GCC" = yes; then
10900: wlarc='${wl}'
10901: archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10902: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10903: $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10904: else
10905: case `$CC -V 2>&1` in
10906: *"Compilers 5.0"*)
10907: wlarc=''
10908: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10911: ;;
10912: *)
10913: wlarc='${wl}'
10914: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10915: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10916: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10917: ;;
10918: esac
10919: fi
10920: hardcode_libdir_flag_spec='-R$libdir'
10921: hardcode_shlibpath_var=no
10922: case $host_os in
10923: solaris2.[0-5] | solaris2.[0-5].*) ;;
10924: *)
10925: # The compiler driver will combine and reorder linker options,
10926: # but understands `-z linker_flag'. GCC discards it without `$wl',
10927: # but is careful enough not to reorder.
10928: # Supported since Solaris 2.6 (maybe 2.5.1?)
10929: if test "$GCC" = yes; then
10930: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10931: else
10932: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10933: fi
10934: ;;
10935: esac
10936: link_all_deplibs=yes
10937: ;;
10938:
10939: sunos4*)
10940: if test "x$host_vendor" = xsequent; then
10941: # Use $CC to link under sequent, because it throws in some extra .o
10942: # files that make .init and .fini sections work.
10943: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10944: else
10945: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10946: fi
10947: hardcode_libdir_flag_spec='-L$libdir'
10948: hardcode_direct=yes
10949: hardcode_minus_L=yes
10950: hardcode_shlibpath_var=no
10951: ;;
10952:
10953: sysv4)
10954: case $host_vendor in
10955: sni)
10956: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10957: hardcode_direct=yes # is this really true???
10958: ;;
10959: siemens)
10960: ## LD is ld it makes a PLAMLIB
10961: ## CC just makes a GrossModule.
10962: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10963: reload_cmds='$CC -r -o $output$reload_objs'
10964: hardcode_direct=no
10965: ;;
10966: motorola)
10967: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10969: ;;
10970: esac
10971: runpath_var='LD_RUN_PATH'
10972: hardcode_shlibpath_var=no
10973: ;;
10974:
10975: sysv4.3*)
10976: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10977: hardcode_shlibpath_var=no
10978: export_dynamic_flag_spec='-Bexport'
10979: ;;
10980:
10981: sysv4*MP*)
10982: if test -d /usr/nec; then
10983: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984: hardcode_shlibpath_var=no
10985: runpath_var=LD_RUN_PATH
10986: hardcode_runpath_var=yes
10987: ld_shlibs=yes
10988: fi
10989: ;;
10990:
10991: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10992: no_undefined_flag='${wl}-z,text'
10993: archive_cmds_need_lc=no
10994: hardcode_shlibpath_var=no
10995: runpath_var='LD_RUN_PATH'
10996:
10997: if test "$GCC" = yes; then
10998: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000: else
11001: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003: fi
11004: ;;
11005:
11006: sysv5* | sco3.2v5* | sco5v6*)
11007: # Note: We can NOT use -z defs as we might desire, because we do not
11008: # link with -lc, and that would cause any symbols used from libc to
11009: # always be unresolved, which means just about no library would
11010: # ever link correctly. If we're not using GNU ld we use -z text
11011: # though, which does catch some bad symbols but isn't as heavy-handed
11012: # as -z defs.
11013: no_undefined_flag='${wl}-z,text'
11014: allow_undefined_flag='${wl}-z,nodefs'
11015: archive_cmds_need_lc=no
11016: hardcode_shlibpath_var=no
11017: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11018: hardcode_libdir_separator=':'
11019: link_all_deplibs=yes
11020: export_dynamic_flag_spec='${wl}-Bexport'
11021: runpath_var='LD_RUN_PATH'
11022:
11023: if test "$GCC" = yes; then
11024: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026: else
11027: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029: fi
11030: ;;
11031:
11032: uts4*)
11033: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11034: hardcode_libdir_flag_spec='-L$libdir'
11035: hardcode_shlibpath_var=no
11036: ;;
11037:
11038: *)
11039: ld_shlibs=no
11040: ;;
11041: esac
11042:
11043: if test x$host_vendor = xsni; then
11044: case $host in
11045: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11046: export_dynamic_flag_spec='${wl}-Blargedynsym'
11047: ;;
11048: esac
11049: fi
11050: fi
11051:
11052: { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11053: $as_echo "$ld_shlibs" >&6; }
11054: test "$ld_shlibs" = no && can_build_shared=no
11055:
11056: with_gnu_ld=$with_gnu_ld
11057:
11058:
11059:
11060:
11061:
11062:
11063:
11064:
11065:
11066:
11067:
11068:
11069:
11070:
11071:
11072: #
11073: # Do we need to explicitly link libc?
11074: #
11075: case "x$archive_cmds_need_lc" in
11076: x|xyes)
11077: # Assume -lc should be added
11078: archive_cmds_need_lc=yes
11079:
11080: if test "$enable_shared" = yes && test "$GCC" = yes; then
11081: case $archive_cmds in
11082: *'~'*)
11083: # FIXME: we may have to deal with multi-command sequences.
11084: ;;
11085: '$CC '*)
11086: # Test whether the compiler implicitly links with -lc since on some
11087: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11088: # to ld, don't add -lc before -lgcc.
11089: { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11090: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11091: $RM conftest*
11092: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11093:
11094: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095: (eval $ac_compile) 2>&5
11096: ac_status=$?
11097: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098: (exit $ac_status); } 2>conftest.err; then
11099: soname=conftest
11100: lib=conftest
11101: libobjs=conftest.$ac_objext
11102: deplibs=
11103: wl=$lt_prog_compiler_wl
11104: pic_flag=$lt_prog_compiler_pic
11105: compiler_flags=-v
11106: linker_flags=-v
11107: verstring=
11108: output_objdir=.
11109: libname=conftest
11110: lt_save_allow_undefined_flag=$allow_undefined_flag
11111: allow_undefined_flag=
11112: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11113: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11114: ac_status=$?
11115: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116: (exit $ac_status); }
11117: then
11118: archive_cmds_need_lc=no
11119: else
11120: archive_cmds_need_lc=yes
11121: fi
11122: allow_undefined_flag=$lt_save_allow_undefined_flag
11123: else
11124: cat conftest.err 1>&5
11125: fi
11126: $RM conftest*
11127: { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11128: $as_echo "$archive_cmds_need_lc" >&6; }
11129: ;;
11130: esac
11131: fi
11132: ;;
11133: esac
11134:
11135:
11136:
11137:
11138:
11139:
11140:
11141:
11142:
11143:
11144:
11145:
11146:
11147:
11148:
11149:
11150:
11151:
11152:
11153:
11154:
11155:
11156:
11157:
11158:
11159:
11160:
11161:
11162:
11163:
11164:
11165:
11166:
11167:
11168:
11169:
11170:
11171:
11172:
11173:
11174:
11175:
11176:
11177:
11178:
11179:
11180:
11181:
11182:
11183:
11184:
11185:
11186:
11187:
11188:
11189:
11190:
11191:
11192:
11193:
11194:
11195:
11196:
11197:
11198:
11199:
11200:
11201:
11202:
11203:
11204:
11205:
11206:
11207:
11208:
11209:
11210:
11211:
11212:
11213:
11214:
11215:
11216:
11217:
11218:
11219:
11220:
11221:
11222:
11223:
11224:
11225:
11226:
11227:
11228:
11229:
11230:
11231:
11232:
11233:
11234:
11235:
11236:
11237:
11238:
11239:
11240:
11241:
11242:
11243:
11244:
11245:
11246:
11247:
11248:
11249:
11250:
11251:
11252:
11253:
11254:
11255:
11256:
11257:
11258:
11259:
11260:
11261:
11262:
11263:
11264:
11265:
11266:
11267:
11268:
11269:
11270:
11271:
11272:
11273:
11274:
11275:
11276:
11277:
11278:
11279:
11280:
11281:
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291: { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11292: $as_echo_n "checking dynamic linker characteristics... " >&6; }
11293:
11294: if test "$GCC" = yes; then
11295: case $host_os in
11296: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11297: *) lt_awk_arg="/^libraries:/" ;;
11298: esac
11299: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11300: if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11301: # if the path contains ";" then we assume it to be the separator
11302: # otherwise default to the standard path separator (i.e. ":") - it is
11303: # assumed that no part of a normal pathname contains ";" but that should
11304: # okay in the real world where ";" in dirpaths is itself problematic.
11305: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11306: else
11307: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11308: fi
11309: # Ok, now we have the path, separated by spaces, we can step through it
11310: # and add multilib dir if necessary.
11311: lt_tmp_lt_search_path_spec=
11312: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11313: for lt_sys_path in $lt_search_path_spec; do
11314: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11315: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11316: else
11317: test -d "$lt_sys_path" && \
11318: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11319: fi
11320: done
11321: lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11322: BEGIN {RS=" "; FS="/|\n";} {
11323: lt_foo="";
11324: lt_count=0;
11325: for (lt_i = NF; lt_i > 0; lt_i--) {
11326: if ($lt_i != "" && $lt_i != ".") {
11327: if ($lt_i == "..") {
11328: lt_count++;
11329: } else {
11330: if (lt_count == 0) {
11331: lt_foo="/" $lt_i lt_foo;
11332: } else {
11333: lt_count--;
11334: }
11335: }
11336: }
11337: }
11338: if (lt_foo != "") { lt_freq[lt_foo]++; }
11339: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11340: }'`
11341: sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11342: else
11343: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11344: fi
11345: library_names_spec=
11346: libname_spec='lib$name'
11347: soname_spec=
11348: shrext_cmds=".so"
11349: postinstall_cmds=
11350: postuninstall_cmds=
11351: finish_cmds=
11352: finish_eval=
11353: shlibpath_var=
11354: shlibpath_overrides_runpath=unknown
11355: version_type=none
11356: dynamic_linker="$host_os ld.so"
11357: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11358: need_lib_prefix=unknown
11359: hardcode_into_libs=no
11360:
11361: # when you set need_version to no, make sure it does not cause -set_version
11362: # flags to be left without arguments
11363: need_version=unknown
11364:
11365: case $host_os in
11366: aix3*)
11367: version_type=linux
11368: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11369: shlibpath_var=LIBPATH
11370:
11371: # AIX 3 has no versioning support, so we append a major version to the name.
11372: soname_spec='${libname}${release}${shared_ext}$major'
11373: ;;
11374:
11375: aix[4-9]*)
11376: version_type=linux
11377: need_lib_prefix=no
11378: need_version=no
11379: hardcode_into_libs=yes
11380: if test "$host_cpu" = ia64; then
11381: # AIX 5 supports IA64
11382: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11383: shlibpath_var=LD_LIBRARY_PATH
11384: else
11385: # With GCC up to 2.95.x, collect2 would create an import file
11386: # for dependence libraries. The import file would start with
11387: # the line `#! .'. This would cause the generated library to
11388: # depend on `.', always an invalid library. This was fixed in
11389: # development snapshots of GCC prior to 3.0.
11390: case $host_os in
11391: aix4 | aix4.[01] | aix4.[01].*)
11392: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11393: echo ' yes '
11394: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11395: :
11396: else
11397: can_build_shared=no
11398: fi
11399: ;;
11400: esac
11401: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11402: # soname into executable. Probably we can add versioning support to
11403: # collect2, so additional links can be useful in future.
11404: if test "$aix_use_runtimelinking" = yes; then
11405: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11406: # instead of lib<name>.a to let people know that these are not
11407: # typical AIX shared libraries.
11408: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409: else
11410: # We preserve .a as extension for shared libraries through AIX4.2
11411: # and later when we are not doing run time linking.
11412: library_names_spec='${libname}${release}.a $libname.a'
11413: soname_spec='${libname}${release}${shared_ext}$major'
11414: fi
11415: shlibpath_var=LIBPATH
11416: fi
11417: ;;
11418:
11419: amigaos*)
11420: case $host_cpu in
11421: powerpc)
11422: # Since July 2007 AmigaOS4 officially supports .so libraries.
11423: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11424: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425: ;;
11426: m68k)
11427: library_names_spec='$libname.ixlibrary $libname.a'
11428: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11429: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11430: ;;
11431: esac
11432: ;;
11433:
11434: beos*)
11435: library_names_spec='${libname}${shared_ext}'
11436: dynamic_linker="$host_os ld.so"
11437: shlibpath_var=LIBRARY_PATH
11438: ;;
11439:
11440: bsdi[45]*)
11441: version_type=linux
11442: need_version=no
11443: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444: soname_spec='${libname}${release}${shared_ext}$major'
11445: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11446: shlibpath_var=LD_LIBRARY_PATH
11447: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11448: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11449: # the default ld.so.conf also contains /usr/contrib/lib and
11450: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11451: # libtool to hard-code these into programs
11452: ;;
11453:
11454: cygwin* | mingw* | pw32* | cegcc*)
11455: version_type=windows
11456: shrext_cmds=".dll"
11457: need_version=no
11458: need_lib_prefix=no
11459:
11460: case $GCC,$host_os in
11461: yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11462: library_names_spec='$libname.dll.a'
11463: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11464: postinstall_cmds='base_file=`basename \${file}`~
11465: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11466: dldir=$destdir/`dirname \$dlpath`~
11467: test -d \$dldir || mkdir -p \$dldir~
11468: $install_prog $dir/$dlname \$dldir/$dlname~
11469: chmod a+x \$dldir/$dlname~
11470: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11471: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11472: fi'
11473: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11474: dlpath=$dir/\$dldll~
11475: $RM \$dlpath'
11476: shlibpath_overrides_runpath=yes
11477:
11478: case $host_os in
11479: cygwin*)
11480: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11481: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11482: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11483: ;;
11484: mingw* | cegcc*)
11485: # MinGW DLLs use traditional 'lib' prefix
11486: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11487: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11488: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11489: # It is most probably a Windows format PATH printed by
11490: # mingw gcc, but we are running on Cygwin. Gcc prints its search
11491: # path with ; separators, and with drive letters. We can handle the
11492: # drive letters (cygwin fileutils understands them), so leave them,
11493: # especially as we might pass files found there to a mingw objdump,
11494: # which wouldn't understand a cygwinified path. Ahh.
11495: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11496: else
11497: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11498: fi
11499: ;;
11500: pw32*)
11501: # pw32 DLLs use 'pw' prefix rather than 'lib'
11502: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11503: ;;
11504: esac
11505: ;;
11506:
11507: *)
11508: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11509: ;;
11510: esac
11511: dynamic_linker='Win32 ld.exe'
11512: # FIXME: first we should search . and the directory the executable is in
11513: shlibpath_var=PATH
11514: ;;
11515:
11516: darwin* | rhapsody*)
11517: dynamic_linker="$host_os dyld"
11518: version_type=darwin
11519: need_lib_prefix=no
11520: need_version=no
11521: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11522: soname_spec='${libname}${release}${major}$shared_ext'
11523: shlibpath_overrides_runpath=yes
11524: shlibpath_var=DYLD_LIBRARY_PATH
11525: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11526:
11527: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11528: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11529: ;;
11530:
11531: dgux*)
11532: version_type=linux
11533: need_lib_prefix=no
11534: need_version=no
11535: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11536: soname_spec='${libname}${release}${shared_ext}$major'
11537: shlibpath_var=LD_LIBRARY_PATH
11538: ;;
11539:
11540: freebsd1*)
11541: dynamic_linker=no
11542: ;;
11543:
11544: freebsd* | dragonfly*)
11545: # DragonFly does not have aout. When/if they implement a new
11546: # versioning mechanism, adjust this.
11547: if test -x /usr/bin/objformat; then
11548: objformat=`/usr/bin/objformat`
11549: else
11550: case $host_os in
11551: freebsd[123]*) objformat=aout ;;
11552: *) objformat=elf ;;
11553: esac
11554: fi
11555: version_type=freebsd-$objformat
11556: case $version_type in
11557: freebsd-elf*)
11558: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559: need_version=no
11560: need_lib_prefix=no
11561: ;;
11562: freebsd-*)
11563: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11564: need_version=yes
11565: ;;
11566: esac
11567: shlibpath_var=LD_LIBRARY_PATH
11568: case $host_os in
11569: freebsd2*)
11570: shlibpath_overrides_runpath=yes
11571: ;;
11572: freebsd3.[01]* | freebsdelf3.[01]*)
11573: shlibpath_overrides_runpath=yes
11574: hardcode_into_libs=yes
11575: ;;
11576: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11577: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11578: shlibpath_overrides_runpath=no
11579: hardcode_into_libs=yes
11580: ;;
11581: *) # from 4.6 on, and DragonFly
11582: shlibpath_overrides_runpath=yes
11583: hardcode_into_libs=yes
11584: ;;
11585: esac
11586: ;;
11587:
11588: gnu*)
11589: version_type=linux
11590: need_lib_prefix=no
11591: need_version=no
11592: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11593: soname_spec='${libname}${release}${shared_ext}$major'
11594: shlibpath_var=LD_LIBRARY_PATH
11595: hardcode_into_libs=yes
11596: ;;
11597:
11598: hpux9* | hpux10* | hpux11*)
11599: # Give a soname corresponding to the major version so that dld.sl refuses to
11600: # link against other versions.
11601: version_type=sunos
11602: need_lib_prefix=no
11603: need_version=no
11604: case $host_cpu in
11605: ia64*)
11606: shrext_cmds='.so'
11607: hardcode_into_libs=yes
11608: dynamic_linker="$host_os dld.so"
11609: shlibpath_var=LD_LIBRARY_PATH
11610: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11611: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612: soname_spec='${libname}${release}${shared_ext}$major'
11613: if test "X$HPUX_IA64_MODE" = X32; then
11614: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11615: else
11616: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11617: fi
11618: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11619: ;;
11620: hppa*64*)
11621: shrext_cmds='.sl'
11622: hardcode_into_libs=yes
11623: dynamic_linker="$host_os dld.sl"
11624: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11625: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11626: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627: soname_spec='${libname}${release}${shared_ext}$major'
11628: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11629: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11630: ;;
11631: *)
11632: shrext_cmds='.sl'
11633: dynamic_linker="$host_os dld.sl"
11634: shlibpath_var=SHLIB_PATH
11635: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11636: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637: soname_spec='${libname}${release}${shared_ext}$major'
11638: ;;
11639: esac
11640: # HP-UX runs *really* slowly unless shared libraries are mode 555.
11641: postinstall_cmds='chmod 555 $lib'
11642: ;;
11643:
11644: interix[3-9]*)
11645: version_type=linux
11646: need_lib_prefix=no
11647: need_version=no
11648: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11649: soname_spec='${libname}${release}${shared_ext}$major'
11650: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11651: shlibpath_var=LD_LIBRARY_PATH
11652: shlibpath_overrides_runpath=no
11653: hardcode_into_libs=yes
11654: ;;
11655:
11656: irix5* | irix6* | nonstopux*)
11657: case $host_os in
11658: nonstopux*) version_type=nonstopux ;;
11659: *)
11660: if test "$lt_cv_prog_gnu_ld" = yes; then
11661: version_type=linux
11662: else
11663: version_type=irix
11664: fi ;;
11665: esac
11666: need_lib_prefix=no
11667: need_version=no
11668: soname_spec='${libname}${release}${shared_ext}$major'
11669: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11670: case $host_os in
11671: irix5* | nonstopux*)
11672: libsuff= shlibsuff=
11673: ;;
11674: *)
11675: case $LD in # libtool.m4 will add one of these switches to LD
11676: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11677: libsuff= shlibsuff= libmagic=32-bit;;
11678: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11679: libsuff=32 shlibsuff=N32 libmagic=N32;;
11680: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11681: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11682: *) libsuff= shlibsuff= libmagic=never-match;;
11683: esac
11684: ;;
11685: esac
11686: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11687: shlibpath_overrides_runpath=no
11688: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11689: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11690: hardcode_into_libs=yes
11691: ;;
11692:
11693: # No shared lib support for Linux oldld, aout, or coff.
11694: linux*oldld* | linux*aout* | linux*coff*)
11695: dynamic_linker=no
11696: ;;
11697:
11698: # This must be Linux ELF.
11699: linux* | k*bsd*-gnu)
11700: version_type=linux
11701: need_lib_prefix=no
11702: need_version=no
11703: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704: soname_spec='${libname}${release}${shared_ext}$major'
11705: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11706: shlibpath_var=LD_LIBRARY_PATH
11707: shlibpath_overrides_runpath=no
11708: # Some binutils ld are patched to set DT_RUNPATH
11709: save_LDFLAGS=$LDFLAGS
11710: save_libdir=$libdir
11711: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11712: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11713: cat >conftest.$ac_ext <<_ACEOF
11714: /* confdefs.h. */
11715: _ACEOF
11716: cat confdefs.h >>conftest.$ac_ext
11717: cat >>conftest.$ac_ext <<_ACEOF
11718: /* end confdefs.h. */
11719:
11720: int
11721: main ()
11722: {
11723:
11724: ;
11725: return 0;
11726: }
11727: _ACEOF
11728: rm -f conftest.$ac_objext conftest$ac_exeext
11729: if { (ac_try="$ac_link"
11730: case "(($ac_try" in
11731: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732: *) ac_try_echo=$ac_try;;
11733: esac
11734: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11735: $as_echo "$ac_try_echo") >&5
11736: (eval "$ac_link") 2>conftest.er1
11737: ac_status=$?
11738: grep -v '^ *+' conftest.er1 >conftest.err
11739: rm -f conftest.er1
11740: cat conftest.err >&5
11741: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742: (exit $ac_status); } && {
11743: test -z "$ac_c_werror_flag" ||
11744: test ! -s conftest.err
11745: } && test -s conftest$ac_exeext && {
11746: test "$cross_compiling" = yes ||
11747: $as_test_x conftest$ac_exeext
11748: }; then
11749: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11750: shlibpath_overrides_runpath=yes
11751: fi
11752:
11753: else
11754: $as_echo "$as_me: failed program was:" >&5
11755: sed 's/^/| /' conftest.$ac_ext >&5
11756:
11757:
11758: fi
11759:
11760: rm -rf conftest.dSYM
11761: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762: conftest$ac_exeext conftest.$ac_ext
11763: LDFLAGS=$save_LDFLAGS
11764: libdir=$save_libdir
11765:
11766: # This implies no fast_install, which is unacceptable.
11767: # Some rework will be needed to allow for fast_install
11768: # before this can be enabled.
11769: hardcode_into_libs=yes
11770:
11771: # Append ld.so.conf contents to the search path
11772: if test -f /etc/ld.so.conf; then
11773: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11774: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11775: fi
11776:
11777: # We used to test for /lib/ld.so.1 and disable shared libraries on
11778: # powerpc, because MkLinux only supported shared libraries with the
11779: # GNU dynamic linker. Since this was broken with cross compilers,
11780: # most powerpc-linux boxes support dynamic linking these days and
11781: # people can always --disable-shared, the test was removed, and we
11782: # assume the GNU/Linux dynamic linker is in use.
11783: dynamic_linker='GNU/Linux ld.so'
11784: ;;
11785:
11786: netbsd*)
11787: version_type=sunos
11788: need_lib_prefix=no
11789: need_version=no
11790: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11791: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11792: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11793: dynamic_linker='NetBSD (a.out) ld.so'
11794: else
11795: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796: soname_spec='${libname}${release}${shared_ext}$major'
11797: dynamic_linker='NetBSD ld.elf_so'
11798: fi
11799: shlibpath_var=LD_LIBRARY_PATH
11800: shlibpath_overrides_runpath=yes
11801: hardcode_into_libs=yes
11802: ;;
11803:
11804: newsos6)
11805: version_type=linux
11806: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807: shlibpath_var=LD_LIBRARY_PATH
11808: shlibpath_overrides_runpath=yes
11809: ;;
11810:
11811: *nto* | *qnx*)
11812: version_type=qnx
11813: need_lib_prefix=no
11814: need_version=no
11815: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816: soname_spec='${libname}${release}${shared_ext}$major'
11817: shlibpath_var=LD_LIBRARY_PATH
11818: shlibpath_overrides_runpath=no
11819: hardcode_into_libs=yes
11820: dynamic_linker='ldqnx.so'
11821: ;;
11822:
11823: openbsd*)
11824: version_type=sunos
11825: sys_lib_dlsearch_path_spec="/usr/lib"
11826: need_lib_prefix=no
11827: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11828: case $host_os in
11829: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11830: *) need_version=no ;;
11831: esac
11832: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11834: shlibpath_var=LD_LIBRARY_PATH
11835: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11836: case $host_os in
11837: openbsd2.[89] | openbsd2.[89].*)
11838: shlibpath_overrides_runpath=no
11839: ;;
11840: *)
11841: shlibpath_overrides_runpath=yes
11842: ;;
11843: esac
11844: else
11845: shlibpath_overrides_runpath=yes
11846: fi
11847: ;;
11848:
11849: os2*)
11850: libname_spec='$name'
11851: shrext_cmds=".dll"
11852: need_lib_prefix=no
11853: library_names_spec='$libname${shared_ext} $libname.a'
11854: dynamic_linker='OS/2 ld.exe'
11855: shlibpath_var=LIBPATH
11856: ;;
11857:
11858: osf3* | osf4* | osf5*)
11859: version_type=osf
11860: need_lib_prefix=no
11861: need_version=no
11862: soname_spec='${libname}${release}${shared_ext}$major'
11863: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864: shlibpath_var=LD_LIBRARY_PATH
11865: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11866: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11867: ;;
11868:
11869: rdos*)
11870: dynamic_linker=no
11871: ;;
11872:
11873: solaris*)
11874: version_type=linux
11875: need_lib_prefix=no
11876: need_version=no
11877: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878: soname_spec='${libname}${release}${shared_ext}$major'
11879: shlibpath_var=LD_LIBRARY_PATH
11880: shlibpath_overrides_runpath=yes
11881: hardcode_into_libs=yes
11882: # ldd complains unless libraries are executable
11883: postinstall_cmds='chmod +x $lib'
11884: ;;
11885:
11886: sunos4*)
11887: version_type=sunos
11888: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11889: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11890: shlibpath_var=LD_LIBRARY_PATH
11891: shlibpath_overrides_runpath=yes
11892: if test "$with_gnu_ld" = yes; then
11893: need_lib_prefix=no
11894: fi
11895: need_version=yes
11896: ;;
11897:
11898: sysv4 | sysv4.3*)
11899: version_type=linux
11900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901: soname_spec='${libname}${release}${shared_ext}$major'
11902: shlibpath_var=LD_LIBRARY_PATH
11903: case $host_vendor in
11904: sni)
11905: shlibpath_overrides_runpath=no
11906: need_lib_prefix=no
11907: runpath_var=LD_RUN_PATH
11908: ;;
11909: siemens)
11910: need_lib_prefix=no
11911: ;;
11912: motorola)
11913: need_lib_prefix=no
11914: need_version=no
11915: shlibpath_overrides_runpath=no
11916: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11917: ;;
11918: esac
11919: ;;
11920:
11921: sysv4*MP*)
11922: if test -d /usr/nec ;then
11923: version_type=linux
11924: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11925: soname_spec='$libname${shared_ext}.$major'
11926: shlibpath_var=LD_LIBRARY_PATH
11927: fi
11928: ;;
11929:
11930: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11931: version_type=freebsd-elf
11932: need_lib_prefix=no
11933: need_version=no
11934: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11935: soname_spec='${libname}${release}${shared_ext}$major'
11936: shlibpath_var=LD_LIBRARY_PATH
11937: shlibpath_overrides_runpath=yes
11938: hardcode_into_libs=yes
11939: if test "$with_gnu_ld" = yes; then
11940: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11941: else
11942: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11943: case $host_os in
11944: sco3.2v5*)
11945: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11946: ;;
11947: esac
11948: fi
11949: sys_lib_dlsearch_path_spec='/usr/lib'
11950: ;;
11951:
11952: tpf*)
11953: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11954: version_type=linux
11955: need_lib_prefix=no
11956: need_version=no
11957: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958: shlibpath_var=LD_LIBRARY_PATH
11959: shlibpath_overrides_runpath=no
11960: hardcode_into_libs=yes
11961: ;;
11962:
11963: uts4*)
11964: version_type=linux
11965: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966: soname_spec='${libname}${release}${shared_ext}$major'
11967: shlibpath_var=LD_LIBRARY_PATH
11968: ;;
11969:
11970: *)
11971: dynamic_linker=no
11972: ;;
11973: esac
11974: { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11975: $as_echo "$dynamic_linker" >&6; }
11976: test "$dynamic_linker" = no && can_build_shared=no
11977:
11978: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11979: if test "$GCC" = yes; then
11980: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11981: fi
11982:
11983: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11984: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11985: fi
11986: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11987: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11988: fi
11989:
11990:
11991:
11992:
11993:
11994:
11995:
11996:
11997:
11998:
11999:
12000:
12001:
12002:
12003:
12004:
12005:
12006:
12007:
12008:
12009:
12010:
12011:
12012:
12013:
12014:
12015:
12016:
12017:
12018:
12019:
12020:
12021:
12022:
12023:
12024:
12025:
12026:
12027:
12028:
12029:
12030:
12031:
12032:
12033:
12034:
12035:
12036:
12037:
12038:
12039:
12040:
12041:
12042:
12043:
12044:
12045:
12046:
12047:
12048:
12049:
12050:
12051:
12052:
12053:
12054:
12055:
12056:
12057:
12058:
12059:
12060:
12061:
12062:
12063:
12064:
12065:
12066:
12067:
12068:
12069:
12070:
12071:
12072:
12073:
12074:
12075:
12076: { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12077: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12078: hardcode_action=
12079: if test -n "$hardcode_libdir_flag_spec" ||
12080: test -n "$runpath_var" ||
12081: test "X$hardcode_automatic" = "Xyes" ; then
12082:
12083: # We can hardcode non-existent directories.
12084: if test "$hardcode_direct" != no &&
12085: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12086: # have to relink, otherwise we might link with an installed library
12087: # when we should be linking with a yet-to-be-installed one
12088: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12089: test "$hardcode_minus_L" != no; then
12090: # Linking always hardcodes the temporary library directory.
12091: hardcode_action=relink
12092: else
12093: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12094: hardcode_action=immediate
12095: fi
12096: else
12097: # We cannot hardcode anything, or else we can only hardcode existing
12098: # directories.
12099: hardcode_action=unsupported
12100: fi
12101: { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12102: $as_echo "$hardcode_action" >&6; }
12103:
12104: if test "$hardcode_action" = relink ||
12105: test "$inherit_rpath" = yes; then
12106: # Fast installation is not supported
12107: enable_fast_install=no
12108: elif test "$shlibpath_overrides_runpath" = yes ||
12109: test "$enable_shared" = no; then
12110: # Fast installation is not necessary
12111: enable_fast_install=needless
12112: fi
12113:
12114:
12115:
12116:
12117:
12118:
12119: if test "x$enable_dlopen" != xyes; then
12120: enable_dlopen=unknown
12121: enable_dlopen_self=unknown
12122: enable_dlopen_self_static=unknown
12123: else
12124: lt_cv_dlopen=no
12125: lt_cv_dlopen_libs=
12126:
12127: case $host_os in
12128: beos*)
12129: lt_cv_dlopen="load_add_on"
12130: lt_cv_dlopen_libs=
12131: lt_cv_dlopen_self=yes
12132: ;;
12133:
12134: mingw* | pw32* | cegcc*)
12135: lt_cv_dlopen="LoadLibrary"
12136: lt_cv_dlopen_libs=
12137: ;;
12138:
12139: cygwin*)
12140: lt_cv_dlopen="dlopen"
12141: lt_cv_dlopen_libs=
12142: ;;
12143:
12144: darwin*)
12145: # if libdl is installed we need to link against it
12146: { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12147: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12148: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12149: $as_echo_n "(cached) " >&6
12150: else
12151: ac_check_lib_save_LIBS=$LIBS
12152: LIBS="-ldl $LIBS"
12153: cat >conftest.$ac_ext <<_ACEOF
12154: /* confdefs.h. */
12155: _ACEOF
12156: cat confdefs.h >>conftest.$ac_ext
12157: cat >>conftest.$ac_ext <<_ACEOF
12158: /* end confdefs.h. */
12159:
12160: /* Override any GCC internal prototype to avoid an error.
12161: Use char because int might match the return type of a GCC
12162: builtin and then its argument prototype would still apply. */
12163: #ifdef __cplusplus
12164: extern "C"
12165: #endif
12166: char dlopen ();
12167: int
12168: main ()
12169: {
12170: return dlopen ();
12171: ;
12172: return 0;
12173: }
12174: _ACEOF
12175: rm -f conftest.$ac_objext conftest$ac_exeext
12176: if { (ac_try="$ac_link"
12177: case "(($ac_try" in
12178: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179: *) ac_try_echo=$ac_try;;
12180: esac
12181: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12182: $as_echo "$ac_try_echo") >&5
12183: (eval "$ac_link") 2>conftest.er1
12184: ac_status=$?
12185: grep -v '^ *+' conftest.er1 >conftest.err
12186: rm -f conftest.er1
12187: cat conftest.err >&5
12188: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189: (exit $ac_status); } && {
12190: test -z "$ac_c_werror_flag" ||
12191: test ! -s conftest.err
12192: } && test -s conftest$ac_exeext && {
12193: test "$cross_compiling" = yes ||
12194: $as_test_x conftest$ac_exeext
12195: }; then
12196: ac_cv_lib_dl_dlopen=yes
12197: else
12198: $as_echo "$as_me: failed program was:" >&5
12199: sed 's/^/| /' conftest.$ac_ext >&5
12200:
12201: ac_cv_lib_dl_dlopen=no
12202: fi
12203:
12204: rm -rf conftest.dSYM
12205: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206: conftest$ac_exeext conftest.$ac_ext
12207: LIBS=$ac_check_lib_save_LIBS
12208: fi
12209: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12210: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12211: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12212: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12213: else
12214:
12215: lt_cv_dlopen="dyld"
12216: lt_cv_dlopen_libs=
12217: lt_cv_dlopen_self=yes
12218:
12219: fi
12220:
12221: ;;
12222:
12223: *)
12224: { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12225: $as_echo_n "checking for shl_load... " >&6; }
12226: if test "${ac_cv_func_shl_load+set}" = set; then
12227: $as_echo_n "(cached) " >&6
12228: else
12229: cat >conftest.$ac_ext <<_ACEOF
12230: /* confdefs.h. */
12231: _ACEOF
12232: cat confdefs.h >>conftest.$ac_ext
12233: cat >>conftest.$ac_ext <<_ACEOF
12234: /* end confdefs.h. */
12235: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12236: For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237: #define shl_load innocuous_shl_load
12238:
12239: /* System header to define __stub macros and hopefully few prototypes,
12240: which can conflict with char shl_load (); below.
12241: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242: <limits.h> exists even on freestanding compilers. */
12243:
12244: #ifdef __STDC__
12245: # include <limits.h>
12246: #else
12247: # include <assert.h>
12248: #endif
12249:
12250: #undef shl_load
12251:
12252: /* Override any GCC internal prototype to avoid an error.
12253: Use char because int might match the return type of a GCC
12254: builtin and then its argument prototype would still apply. */
12255: #ifdef __cplusplus
12256: extern "C"
12257: #endif
12258: char shl_load ();
12259: /* The GNU C library defines this for functions which it implements
12260: to always fail with ENOSYS. Some functions are actually named
12261: something starting with __ and the normal name is an alias. */
12262: #if defined __stub_shl_load || defined __stub___shl_load
12263: choke me
12264: #endif
12265:
12266: int
12267: main ()
12268: {
12269: return shl_load ();
12270: ;
12271: return 0;
12272: }
12273: _ACEOF
12274: rm -f conftest.$ac_objext conftest$ac_exeext
12275: if { (ac_try="$ac_link"
12276: case "(($ac_try" in
12277: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278: *) ac_try_echo=$ac_try;;
12279: esac
12280: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12281: $as_echo "$ac_try_echo") >&5
12282: (eval "$ac_link") 2>conftest.er1
12283: ac_status=$?
12284: grep -v '^ *+' conftest.er1 >conftest.err
12285: rm -f conftest.er1
12286: cat conftest.err >&5
12287: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288: (exit $ac_status); } && {
12289: test -z "$ac_c_werror_flag" ||
12290: test ! -s conftest.err
12291: } && test -s conftest$ac_exeext && {
12292: test "$cross_compiling" = yes ||
12293: $as_test_x conftest$ac_exeext
12294: }; then
12295: ac_cv_func_shl_load=yes
12296: else
12297: $as_echo "$as_me: failed program was:" >&5
12298: sed 's/^/| /' conftest.$ac_ext >&5
12299:
12300: ac_cv_func_shl_load=no
12301: fi
12302:
12303: rm -rf conftest.dSYM
12304: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305: conftest$ac_exeext conftest.$ac_ext
12306: fi
12307: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12308: $as_echo "$ac_cv_func_shl_load" >&6; }
12309: if test "x$ac_cv_func_shl_load" = x""yes; then
12310: lt_cv_dlopen="shl_load"
12311: else
12312: { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12313: $as_echo_n "checking for shl_load in -ldld... " >&6; }
12314: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12315: $as_echo_n "(cached) " >&6
12316: else
12317: ac_check_lib_save_LIBS=$LIBS
12318: LIBS="-ldld $LIBS"
12319: cat >conftest.$ac_ext <<_ACEOF
12320: /* confdefs.h. */
12321: _ACEOF
12322: cat confdefs.h >>conftest.$ac_ext
12323: cat >>conftest.$ac_ext <<_ACEOF
12324: /* end confdefs.h. */
12325:
12326: /* Override any GCC internal prototype to avoid an error.
12327: Use char because int might match the return type of a GCC
12328: builtin and then its argument prototype would still apply. */
12329: #ifdef __cplusplus
12330: extern "C"
12331: #endif
12332: char shl_load ();
12333: int
12334: main ()
12335: {
12336: return shl_load ();
12337: ;
12338: return 0;
12339: }
12340: _ACEOF
12341: rm -f conftest.$ac_objext conftest$ac_exeext
12342: if { (ac_try="$ac_link"
12343: case "(($ac_try" in
12344: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345: *) ac_try_echo=$ac_try;;
12346: esac
12347: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12348: $as_echo "$ac_try_echo") >&5
12349: (eval "$ac_link") 2>conftest.er1
12350: ac_status=$?
12351: grep -v '^ *+' conftest.er1 >conftest.err
12352: rm -f conftest.er1
12353: cat conftest.err >&5
12354: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355: (exit $ac_status); } && {
12356: test -z "$ac_c_werror_flag" ||
12357: test ! -s conftest.err
12358: } && test -s conftest$ac_exeext && {
12359: test "$cross_compiling" = yes ||
12360: $as_test_x conftest$ac_exeext
12361: }; then
12362: ac_cv_lib_dld_shl_load=yes
12363: else
12364: $as_echo "$as_me: failed program was:" >&5
12365: sed 's/^/| /' conftest.$ac_ext >&5
12366:
12367: ac_cv_lib_dld_shl_load=no
12368: fi
12369:
12370: rm -rf conftest.dSYM
12371: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12372: conftest$ac_exeext conftest.$ac_ext
12373: LIBS=$ac_check_lib_save_LIBS
12374: fi
12375: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12376: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12377: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12378: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12379: else
12380: { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12381: $as_echo_n "checking for dlopen... " >&6; }
12382: if test "${ac_cv_func_dlopen+set}" = set; then
12383: $as_echo_n "(cached) " >&6
12384: else
12385: cat >conftest.$ac_ext <<_ACEOF
12386: /* confdefs.h. */
12387: _ACEOF
12388: cat confdefs.h >>conftest.$ac_ext
12389: cat >>conftest.$ac_ext <<_ACEOF
12390: /* end confdefs.h. */
12391: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12392: For example, HP-UX 11i <limits.h> declares gettimeofday. */
12393: #define dlopen innocuous_dlopen
12394:
12395: /* System header to define __stub macros and hopefully few prototypes,
12396: which can conflict with char dlopen (); below.
12397: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12398: <limits.h> exists even on freestanding compilers. */
12399:
12400: #ifdef __STDC__
12401: # include <limits.h>
12402: #else
12403: # include <assert.h>
12404: #endif
12405:
12406: #undef dlopen
12407:
12408: /* Override any GCC internal prototype to avoid an error.
12409: Use char because int might match the return type of a GCC
12410: builtin and then its argument prototype would still apply. */
12411: #ifdef __cplusplus
12412: extern "C"
12413: #endif
12414: char dlopen ();
12415: /* The GNU C library defines this for functions which it implements
12416: to always fail with ENOSYS. Some functions are actually named
12417: something starting with __ and the normal name is an alias. */
12418: #if defined __stub_dlopen || defined __stub___dlopen
12419: choke me
12420: #endif
12421:
12422: int
12423: main ()
12424: {
12425: return dlopen ();
12426: ;
12427: return 0;
12428: }
12429: _ACEOF
12430: rm -f conftest.$ac_objext conftest$ac_exeext
12431: if { (ac_try="$ac_link"
12432: case "(($ac_try" in
12433: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434: *) ac_try_echo=$ac_try;;
12435: esac
12436: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12437: $as_echo "$ac_try_echo") >&5
12438: (eval "$ac_link") 2>conftest.er1
12439: ac_status=$?
12440: grep -v '^ *+' conftest.er1 >conftest.err
12441: rm -f conftest.er1
12442: cat conftest.err >&5
12443: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444: (exit $ac_status); } && {
12445: test -z "$ac_c_werror_flag" ||
12446: test ! -s conftest.err
12447: } && test -s conftest$ac_exeext && {
12448: test "$cross_compiling" = yes ||
12449: $as_test_x conftest$ac_exeext
12450: }; then
12451: ac_cv_func_dlopen=yes
12452: else
12453: $as_echo "$as_me: failed program was:" >&5
12454: sed 's/^/| /' conftest.$ac_ext >&5
12455:
12456: ac_cv_func_dlopen=no
12457: fi
12458:
12459: rm -rf conftest.dSYM
12460: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12461: conftest$ac_exeext conftest.$ac_ext
12462: fi
12463: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12464: $as_echo "$ac_cv_func_dlopen" >&6; }
12465: if test "x$ac_cv_func_dlopen" = x""yes; then
12466: lt_cv_dlopen="dlopen"
12467: else
12468: { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12469: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12470: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12471: $as_echo_n "(cached) " >&6
12472: else
12473: ac_check_lib_save_LIBS=$LIBS
12474: LIBS="-ldl $LIBS"
12475: cat >conftest.$ac_ext <<_ACEOF
12476: /* confdefs.h. */
12477: _ACEOF
12478: cat confdefs.h >>conftest.$ac_ext
12479: cat >>conftest.$ac_ext <<_ACEOF
12480: /* end confdefs.h. */
12481:
12482: /* Override any GCC internal prototype to avoid an error.
12483: Use char because int might match the return type of a GCC
12484: builtin and then its argument prototype would still apply. */
12485: #ifdef __cplusplus
12486: extern "C"
12487: #endif
12488: char dlopen ();
12489: int
12490: main ()
12491: {
12492: return dlopen ();
12493: ;
12494: return 0;
12495: }
12496: _ACEOF
12497: rm -f conftest.$ac_objext conftest$ac_exeext
12498: if { (ac_try="$ac_link"
12499: case "(($ac_try" in
12500: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501: *) ac_try_echo=$ac_try;;
12502: esac
12503: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12504: $as_echo "$ac_try_echo") >&5
12505: (eval "$ac_link") 2>conftest.er1
12506: ac_status=$?
12507: grep -v '^ *+' conftest.er1 >conftest.err
12508: rm -f conftest.er1
12509: cat conftest.err >&5
12510: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511: (exit $ac_status); } && {
12512: test -z "$ac_c_werror_flag" ||
12513: test ! -s conftest.err
12514: } && test -s conftest$ac_exeext && {
12515: test "$cross_compiling" = yes ||
12516: $as_test_x conftest$ac_exeext
12517: }; then
12518: ac_cv_lib_dl_dlopen=yes
12519: else
12520: $as_echo "$as_me: failed program was:" >&5
12521: sed 's/^/| /' conftest.$ac_ext >&5
12522:
12523: ac_cv_lib_dl_dlopen=no
12524: fi
12525:
12526: rm -rf conftest.dSYM
12527: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528: conftest$ac_exeext conftest.$ac_ext
12529: LIBS=$ac_check_lib_save_LIBS
12530: fi
12531: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12532: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12533: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12534: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12535: else
12536: { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12537: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12538: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12539: $as_echo_n "(cached) " >&6
12540: else
12541: ac_check_lib_save_LIBS=$LIBS
12542: LIBS="-lsvld $LIBS"
12543: cat >conftest.$ac_ext <<_ACEOF
12544: /* confdefs.h. */
12545: _ACEOF
12546: cat confdefs.h >>conftest.$ac_ext
12547: cat >>conftest.$ac_ext <<_ACEOF
12548: /* end confdefs.h. */
12549:
12550: /* Override any GCC internal prototype to avoid an error.
12551: Use char because int might match the return type of a GCC
12552: builtin and then its argument prototype would still apply. */
12553: #ifdef __cplusplus
12554: extern "C"
12555: #endif
12556: char dlopen ();
12557: int
12558: main ()
12559: {
12560: return dlopen ();
12561: ;
12562: return 0;
12563: }
12564: _ACEOF
12565: rm -f conftest.$ac_objext conftest$ac_exeext
12566: if { (ac_try="$ac_link"
12567: case "(($ac_try" in
12568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569: *) ac_try_echo=$ac_try;;
12570: esac
12571: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12572: $as_echo "$ac_try_echo") >&5
12573: (eval "$ac_link") 2>conftest.er1
12574: ac_status=$?
12575: grep -v '^ *+' conftest.er1 >conftest.err
12576: rm -f conftest.er1
12577: cat conftest.err >&5
12578: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579: (exit $ac_status); } && {
12580: test -z "$ac_c_werror_flag" ||
12581: test ! -s conftest.err
12582: } && test -s conftest$ac_exeext && {
12583: test "$cross_compiling" = yes ||
12584: $as_test_x conftest$ac_exeext
12585: }; then
12586: ac_cv_lib_svld_dlopen=yes
12587: else
12588: $as_echo "$as_me: failed program was:" >&5
12589: sed 's/^/| /' conftest.$ac_ext >&5
12590:
12591: ac_cv_lib_svld_dlopen=no
12592: fi
12593:
12594: rm -rf conftest.dSYM
12595: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12596: conftest$ac_exeext conftest.$ac_ext
12597: LIBS=$ac_check_lib_save_LIBS
12598: fi
12599: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12600: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12601: if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12602: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12603: else
12604: { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12605: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12606: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12607: $as_echo_n "(cached) " >&6
12608: else
12609: ac_check_lib_save_LIBS=$LIBS
12610: LIBS="-ldld $LIBS"
12611: cat >conftest.$ac_ext <<_ACEOF
12612: /* confdefs.h. */
12613: _ACEOF
12614: cat confdefs.h >>conftest.$ac_ext
12615: cat >>conftest.$ac_ext <<_ACEOF
12616: /* end confdefs.h. */
12617:
12618: /* Override any GCC internal prototype to avoid an error.
12619: Use char because int might match the return type of a GCC
12620: builtin and then its argument prototype would still apply. */
12621: #ifdef __cplusplus
12622: extern "C"
12623: #endif
12624: char dld_link ();
12625: int
12626: main ()
12627: {
12628: return dld_link ();
12629: ;
12630: return 0;
12631: }
12632: _ACEOF
12633: rm -f conftest.$ac_objext conftest$ac_exeext
12634: if { (ac_try="$ac_link"
12635: case "(($ac_try" in
12636: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637: *) ac_try_echo=$ac_try;;
12638: esac
12639: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640: $as_echo "$ac_try_echo") >&5
12641: (eval "$ac_link") 2>conftest.er1
12642: ac_status=$?
12643: grep -v '^ *+' conftest.er1 >conftest.err
12644: rm -f conftest.er1
12645: cat conftest.err >&5
12646: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647: (exit $ac_status); } && {
12648: test -z "$ac_c_werror_flag" ||
12649: test ! -s conftest.err
12650: } && test -s conftest$ac_exeext && {
12651: test "$cross_compiling" = yes ||
12652: $as_test_x conftest$ac_exeext
12653: }; then
12654: ac_cv_lib_dld_dld_link=yes
12655: else
12656: $as_echo "$as_me: failed program was:" >&5
12657: sed 's/^/| /' conftest.$ac_ext >&5
12658:
12659: ac_cv_lib_dld_dld_link=no
12660: fi
12661:
12662: rm -rf conftest.dSYM
12663: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12664: conftest$ac_exeext conftest.$ac_ext
12665: LIBS=$ac_check_lib_save_LIBS
12666: fi
12667: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12668: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12669: if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12670: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12671: fi
12672:
12673:
12674: fi
12675:
12676:
12677: fi
12678:
12679:
12680: fi
12681:
12682:
12683: fi
12684:
12685:
12686: fi
12687:
12688: ;;
12689: esac
12690:
12691: if test "x$lt_cv_dlopen" != xno; then
12692: enable_dlopen=yes
12693: else
12694: enable_dlopen=no
12695: fi
12696:
12697: case $lt_cv_dlopen in
12698: dlopen)
12699: save_CPPFLAGS="$CPPFLAGS"
12700: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12701:
12702: save_LDFLAGS="$LDFLAGS"
12703: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12704:
12705: save_LIBS="$LIBS"
12706: LIBS="$lt_cv_dlopen_libs $LIBS"
12707:
12708: { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12709: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12710: if test "${lt_cv_dlopen_self+set}" = set; then
12711: $as_echo_n "(cached) " >&6
12712: else
12713: if test "$cross_compiling" = yes; then :
12714: lt_cv_dlopen_self=cross
12715: else
12716: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12717: lt_status=$lt_dlunknown
12718: cat > conftest.$ac_ext <<_LT_EOF
12719: #line 12719 "configure"
12720: #include "confdefs.h"
12721:
12722: #if HAVE_DLFCN_H
12723: #include <dlfcn.h>
12724: #endif
12725:
12726: #include <stdio.h>
12727:
12728: #ifdef RTLD_GLOBAL
12729: # define LT_DLGLOBAL RTLD_GLOBAL
12730: #else
12731: # ifdef DL_GLOBAL
12732: # define LT_DLGLOBAL DL_GLOBAL
12733: # else
12734: # define LT_DLGLOBAL 0
12735: # endif
12736: #endif
12737:
12738: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12739: find out it does not work in some platform. */
12740: #ifndef LT_DLLAZY_OR_NOW
12741: # ifdef RTLD_LAZY
12742: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12743: # else
12744: # ifdef DL_LAZY
12745: # define LT_DLLAZY_OR_NOW DL_LAZY
12746: # else
12747: # ifdef RTLD_NOW
12748: # define LT_DLLAZY_OR_NOW RTLD_NOW
12749: # else
12750: # ifdef DL_NOW
12751: # define LT_DLLAZY_OR_NOW DL_NOW
12752: # else
12753: # define LT_DLLAZY_OR_NOW 0
12754: # endif
12755: # endif
12756: # endif
12757: # endif
12758: #endif
12759:
12760: void fnord() { int i=42;}
12761: int main ()
12762: {
12763: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12764: int status = $lt_dlunknown;
12765:
12766: if (self)
12767: {
12768: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12769: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12770: /* dlclose (self); */
12771: }
12772: else
12773: puts (dlerror ());
12774:
12775: return status;
12776: }
12777: _LT_EOF
12778: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779: (eval $ac_link) 2>&5
12780: ac_status=$?
12781: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12783: (./conftest; exit; ) >&5 2>/dev/null
12784: lt_status=$?
12785: case x$lt_status in
12786: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12787: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12788: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12789: esac
12790: else :
12791: # compilation failed
12792: lt_cv_dlopen_self=no
12793: fi
12794: fi
12795: rm -fr conftest*
12796:
12797:
12798: fi
12799: { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12800: $as_echo "$lt_cv_dlopen_self" >&6; }
12801:
12802: if test "x$lt_cv_dlopen_self" = xyes; then
12803: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12804: { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12805: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12806: if test "${lt_cv_dlopen_self_static+set}" = set; then
12807: $as_echo_n "(cached) " >&6
12808: else
12809: if test "$cross_compiling" = yes; then :
12810: lt_cv_dlopen_self_static=cross
12811: else
12812: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12813: lt_status=$lt_dlunknown
12814: cat > conftest.$ac_ext <<_LT_EOF
12815: #line 12815 "configure"
12816: #include "confdefs.h"
12817:
12818: #if HAVE_DLFCN_H
12819: #include <dlfcn.h>
12820: #endif
12821:
12822: #include <stdio.h>
12823:
12824: #ifdef RTLD_GLOBAL
12825: # define LT_DLGLOBAL RTLD_GLOBAL
12826: #else
12827: # ifdef DL_GLOBAL
12828: # define LT_DLGLOBAL DL_GLOBAL
12829: # else
12830: # define LT_DLGLOBAL 0
12831: # endif
12832: #endif
12833:
12834: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12835: find out it does not work in some platform. */
12836: #ifndef LT_DLLAZY_OR_NOW
12837: # ifdef RTLD_LAZY
12838: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12839: # else
12840: # ifdef DL_LAZY
12841: # define LT_DLLAZY_OR_NOW DL_LAZY
12842: # else
12843: # ifdef RTLD_NOW
12844: # define LT_DLLAZY_OR_NOW RTLD_NOW
12845: # else
12846: # ifdef DL_NOW
12847: # define LT_DLLAZY_OR_NOW DL_NOW
12848: # else
12849: # define LT_DLLAZY_OR_NOW 0
12850: # endif
12851: # endif
12852: # endif
12853: # endif
12854: #endif
12855:
12856: void fnord() { int i=42;}
12857: int main ()
12858: {
12859: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12860: int status = $lt_dlunknown;
12861:
12862: if (self)
12863: {
12864: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12865: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12866: /* dlclose (self); */
12867: }
12868: else
12869: puts (dlerror ());
12870:
12871: return status;
12872: }
12873: _LT_EOF
12874: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875: (eval $ac_link) 2>&5
12876: ac_status=$?
12877: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12879: (./conftest; exit; ) >&5 2>/dev/null
12880: lt_status=$?
12881: case x$lt_status in
12882: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12883: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12884: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12885: esac
12886: else :
12887: # compilation failed
12888: lt_cv_dlopen_self_static=no
12889: fi
12890: fi
12891: rm -fr conftest*
12892:
12893:
12894: fi
12895: { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12896: $as_echo "$lt_cv_dlopen_self_static" >&6; }
12897: fi
12898:
12899: CPPFLAGS="$save_CPPFLAGS"
12900: LDFLAGS="$save_LDFLAGS"
12901: LIBS="$save_LIBS"
12902: ;;
12903: esac
12904:
12905: case $lt_cv_dlopen_self in
12906: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12907: *) enable_dlopen_self=unknown ;;
12908: esac
12909:
12910: case $lt_cv_dlopen_self_static in
12911: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12912: *) enable_dlopen_self_static=unknown ;;
12913: esac
12914: fi
12915:
12916:
12917:
12918:
12919:
12920:
12921:
12922:
12923:
12924:
12925:
12926:
12927:
12928:
12929:
12930:
12931:
12932: striplib=
12933: old_striplib=
12934: { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12935: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12936: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12937: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12938: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12939: { $as_echo "$as_me:$LINENO: result: yes" >&5
12940: $as_echo "yes" >&6; }
12941: else
12942: # FIXME - insert some real tests, host_os isn't really good enough
12943: case $host_os in
12944: darwin*)
12945: if test -n "$STRIP" ; then
12946: striplib="$STRIP -x"
12947: old_striplib="$STRIP -S"
12948: { $as_echo "$as_me:$LINENO: result: yes" >&5
12949: $as_echo "yes" >&6; }
12950: else
12951: { $as_echo "$as_me:$LINENO: result: no" >&5
12952: $as_echo "no" >&6; }
12953: fi
12954: ;;
12955: *)
12956: { $as_echo "$as_me:$LINENO: result: no" >&5
12957: $as_echo "no" >&6; }
12958: ;;
12959: esac
12960: fi
12961:
12962:
12963:
12964:
12965:
12966:
12967:
12968:
12969:
12970:
12971:
12972:
12973: # Report which library types will actually be built
12974: { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12975: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12976: { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12977: $as_echo "$can_build_shared" >&6; }
12978:
12979: { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12980: $as_echo_n "checking whether to build shared libraries... " >&6; }
12981: test "$can_build_shared" = "no" && enable_shared=no
12982:
12983: # On AIX, shared libraries and static libraries use the same namespace, and
12984: # are all built from PIC.
12985: case $host_os in
12986: aix3*)
12987: test "$enable_shared" = yes && enable_static=no
12988: if test -n "$RANLIB"; then
12989: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12990: postinstall_cmds='$RANLIB $lib'
12991: fi
12992: ;;
12993:
12994: aix[4-9]*)
12995: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12996: test "$enable_shared" = yes && enable_static=no
12997: fi
12998: ;;
12999: esac
13000: { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13001: $as_echo "$enable_shared" >&6; }
13002:
13003: { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13004: $as_echo_n "checking whether to build static libraries... " >&6; }
13005: # Make sure either enable_shared or enable_static is yes.
13006: test "$enable_shared" = yes || enable_static=yes
13007: { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13008: $as_echo "$enable_static" >&6; }
13009:
13010:
13011:
13012:
13013: fi
13014: ac_ext=c
13015: ac_cpp='$CPP $CPPFLAGS'
13016: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13017: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13018: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13019:
13020: CC="$lt_save_CC"
13021:
13022:
13023:
13024:
13025:
13026:
13027:
13028:
13029:
13030:
13031:
13032:
13033:
13034: ac_config_commands="$ac_config_commands libtool"
13035:
13036:
13037:
13038:
13039: # Only expand once:
13040:
13041:
13042:
13043: if test -n "$ac_tool_prefix"; then
13044: # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13045: set dummy ${ac_tool_prefix}windres; ac_word=$2
13046: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13047: $as_echo_n "checking for $ac_word... " >&6; }
13048: if test "${ac_cv_prog_RC+set}" = set; then
13049: $as_echo_n "(cached) " >&6
13050: else
13051: if test -n "$RC"; then
13052: ac_cv_prog_RC="$RC" # Let the user override the test.
13053: else
13054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055: for as_dir in $PATH
13056: do
13057: IFS=$as_save_IFS
13058: test -z "$as_dir" && as_dir=.
13059: for ac_exec_ext in '' $ac_executable_extensions; do
13060: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061: ac_cv_prog_RC="${ac_tool_prefix}windres"
13062: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13063: break 2
13064: fi
13065: done
13066: done
13067: IFS=$as_save_IFS
13068:
13069: fi
13070: fi
13071: RC=$ac_cv_prog_RC
13072: if test -n "$RC"; then
13073: { $as_echo "$as_me:$LINENO: result: $RC" >&5
13074: $as_echo "$RC" >&6; }
13075: else
13076: { $as_echo "$as_me:$LINENO: result: no" >&5
13077: $as_echo "no" >&6; }
13078: fi
13079:
13080:
13081: fi
13082: if test -z "$ac_cv_prog_RC"; then
13083: ac_ct_RC=$RC
13084: # Extract the first word of "windres", so it can be a program name with args.
13085: set dummy windres; ac_word=$2
13086: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13087: $as_echo_n "checking for $ac_word... " >&6; }
13088: if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
13089: $as_echo_n "(cached) " >&6
13090: else
13091: if test -n "$ac_ct_RC"; then
13092: ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13093: else
13094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095: for as_dir in $PATH
13096: do
13097: IFS=$as_save_IFS
13098: test -z "$as_dir" && as_dir=.
13099: for ac_exec_ext in '' $ac_executable_extensions; do
13100: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101: ac_cv_prog_ac_ct_RC="windres"
13102: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103: break 2
13104: fi
13105: done
13106: done
13107: IFS=$as_save_IFS
13108:
13109: fi
13110: fi
13111: ac_ct_RC=$ac_cv_prog_ac_ct_RC
13112: if test -n "$ac_ct_RC"; then
13113: { $as_echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
13114: $as_echo "$ac_ct_RC" >&6; }
13115: else
13116: { $as_echo "$as_me:$LINENO: result: no" >&5
13117: $as_echo "no" >&6; }
13118: fi
13119:
13120: if test "x$ac_ct_RC" = x; then
13121: RC=""
13122: else
13123: case $cross_compiling:$ac_tool_warned in
13124: yes:)
13125: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13126: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13127: ac_tool_warned=yes ;;
13128: esac
13129: RC=$ac_ct_RC
13130: fi
13131: else
13132: RC="$ac_cv_prog_RC"
13133: fi
13134:
13135:
13136:
13137:
13138: # Source file extension for RC test sources.
13139: ac_ext=rc
13140:
13141: # Object file extension for compiled RC test sources.
13142: objext=o
13143: objext_RC=$objext
13144:
13145: # Code to be used in simple compile tests
13146: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13147:
13148: # Code to be used in simple link tests
13149: lt_simple_link_test_code="$lt_simple_compile_test_code"
13150:
13151: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13152:
13153:
13154:
13155:
13156:
13157:
13158: # If no C compiler was specified, use CC.
13159: LTCC=${LTCC-"$CC"}
13160:
13161: # If no C compiler flags were specified, use CFLAGS.
13162: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13163:
13164: # Allow CC to be a program name with arguments.
13165: compiler=$CC
13166:
13167:
13168: # save warnings/boilerplate of simple test code
13169: ac_outfile=conftest.$ac_objext
13170: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13171: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13172: _lt_compiler_boilerplate=`cat conftest.err`
13173: $RM conftest*
13174:
13175: ac_outfile=conftest.$ac_objext
13176: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13177: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13178: _lt_linker_boilerplate=`cat conftest.err`
13179: $RM -r conftest*
13180:
13181:
13182: # Allow CC to be a program name with arguments.
13183: lt_save_CC="$CC"
13184: lt_save_GCC=$GCC
13185: GCC=
13186: CC=${RC-"windres"}
13187: compiler=$CC
13188: compiler_RC=$CC
13189: for cc_temp in $compiler""; do
13190: case $cc_temp in
13191: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13192: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13193: \-*) ;;
13194: *) break;;
13195: esac
13196: done
13197: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13198:
13199: lt_cv_prog_compiler_c_o_RC=yes
13200:
13201: if test -n "$compiler"; then
13202: :
13203:
13204:
13205:
13206: fi
13207:
13208: GCC=$lt_save_GCC
13209: ac_ext=c
13210: ac_cpp='$CPP $CPPFLAGS'
13211: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214:
13215: CC="$lt_save_CC"
13216:
13217:
13218: case "$host_os" in
13219: mingw* | cygwin*) is_woe32=yes ;;
13220: *) is_woe32=no ;;
13221: esac
13222: WOE32=$is_woe32
13223:
13224: if test $WOE32 = yes; then
13225: if test -n "$ac_tool_prefix"; then
13226: # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13227: set dummy ${ac_tool_prefix}windres; ac_word=$2
13228: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13229: $as_echo_n "checking for $ac_word... " >&6; }
13230: if test "${ac_cv_prog_WINDRES+set}" = set; then
13231: $as_echo_n "(cached) " >&6
13232: else
13233: if test -n "$WINDRES"; then
13234: ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13235: else
13236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237: for as_dir in $PATH
13238: do
13239: IFS=$as_save_IFS
13240: test -z "$as_dir" && as_dir=.
13241: for ac_exec_ext in '' $ac_executable_extensions; do
13242: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13243: ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
13244: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13245: break 2
13246: fi
13247: done
13248: done
13249: IFS=$as_save_IFS
13250:
13251: fi
13252: fi
13253: WINDRES=$ac_cv_prog_WINDRES
13254: if test -n "$WINDRES"; then
13255: { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
13256: $as_echo "$WINDRES" >&6; }
13257: else
13258: { $as_echo "$as_me:$LINENO: result: no" >&5
13259: $as_echo "no" >&6; }
13260: fi
13261:
13262:
13263: fi
13264: if test -z "$ac_cv_prog_WINDRES"; then
13265: ac_ct_WINDRES=$WINDRES
13266: # Extract the first word of "windres", so it can be a program name with args.
13267: set dummy windres; ac_word=$2
13268: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13269: $as_echo_n "checking for $ac_word... " >&6; }
13270: if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
13271: $as_echo_n "(cached) " >&6
13272: else
13273: if test -n "$ac_ct_WINDRES"; then
13274: ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
13275: else
13276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277: for as_dir in $PATH
13278: do
13279: IFS=$as_save_IFS
13280: test -z "$as_dir" && as_dir=.
13281: for ac_exec_ext in '' $ac_executable_extensions; do
13282: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13283: ac_cv_prog_ac_ct_WINDRES="windres"
13284: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13285: break 2
13286: fi
13287: done
13288: done
13289: IFS=$as_save_IFS
13290:
13291: fi
13292: fi
13293: ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
13294: if test -n "$ac_ct_WINDRES"; then
13295: { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
13296: $as_echo "$ac_ct_WINDRES" >&6; }
13297: else
13298: { $as_echo "$as_me:$LINENO: result: no" >&5
13299: $as_echo "no" >&6; }
13300: fi
13301:
13302: if test "x$ac_ct_WINDRES" = x; then
13303: WINDRES=""
13304: else
13305: case $cross_compiling:$ac_tool_warned in
13306: yes:)
13307: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13308: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13309: ac_tool_warned=yes ;;
13310: esac
13311: WINDRES=$ac_ct_WINDRES
13312: fi
13313: else
13314: WINDRES="$ac_cv_prog_WINDRES"
13315: fi
13316:
13317: fi
13318:
13319:
13320:
13321: CFLAG_VISIBILITY=
13322: HAVE_VISIBILITY=0
13323: if test -n "$GCC"; then
13324: { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
13325: $as_echo_n "checking for simple visibility declarations... " >&6; }
13326: if test "${gl_cv_cc_visibility+set}" = set; then
13327: $as_echo_n "(cached) " >&6
13328: else
13329:
13330: gl_save_CFLAGS="$CFLAGS"
13331: CFLAGS="$CFLAGS -fvisibility=hidden"
13332: cat >conftest.$ac_ext <<_ACEOF
13333: /* confdefs.h. */
13334: _ACEOF
13335: cat confdefs.h >>conftest.$ac_ext
13336: cat >>conftest.$ac_ext <<_ACEOF
13337: /* end confdefs.h. */
13338: extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13339: extern __attribute__((__visibility__("default"))) int exportedvar;
13340: extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13341: extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13342: int
13343: main ()
13344: {
13345:
13346: ;
13347: return 0;
13348: }
13349: _ACEOF
13350: rm -f conftest.$ac_objext
13351: if { (ac_try="$ac_compile"
13352: case "(($ac_try" in
13353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354: *) ac_try_echo=$ac_try;;
13355: esac
13356: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13357: $as_echo "$ac_try_echo") >&5
13358: (eval "$ac_compile") 2>conftest.er1
13359: ac_status=$?
13360: grep -v '^ *+' conftest.er1 >conftest.err
13361: rm -f conftest.er1
13362: cat conftest.err >&5
13363: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364: (exit $ac_status); } && {
13365: test -z "$ac_c_werror_flag" ||
13366: test ! -s conftest.err
13367: } && test -s conftest.$ac_objext; then
13368: gl_cv_cc_visibility=yes
13369: else
13370: $as_echo "$as_me: failed program was:" >&5
13371: sed 's/^/| /' conftest.$ac_ext >&5
13372:
13373: gl_cv_cc_visibility=no
13374: fi
13375:
13376: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377: CFLAGS="$gl_save_CFLAGS"
13378: fi
13379:
13380: { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
13381: $as_echo "$gl_cv_cc_visibility" >&6; }
13382: if test $gl_cv_cc_visibility = yes; then
13383: CFLAG_VISIBILITY="-fvisibility=hidden"
13384: HAVE_VISIBILITY=1
13385: fi
13386: fi
13387:
13388:
13389:
13390: cat >>confdefs.h <<_ACEOF
13391: #define HAVE_VISIBILITY $HAVE_VISIBILITY
13392: _ACEOF
13393:
13394:
13395:
13396: if test "X$prefix" = "XNONE"; then
13397: acl_final_prefix="$ac_default_prefix"
13398: else
13399: acl_final_prefix="$prefix"
13400: fi
13401: if test "X$exec_prefix" = "XNONE"; then
13402: acl_final_exec_prefix='${prefix}'
13403: else
13404: acl_final_exec_prefix="$exec_prefix"
13405: fi
13406: acl_save_prefix="$prefix"
13407: prefix="$acl_final_prefix"
13408: eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13409: prefix="$acl_save_prefix"
13410:
13411:
13412:
13413: { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13414: $as_echo_n "checking for shared library run path origin... " >&6; }
13415: if test "${acl_cv_rpath+set}" = set; then
13416: $as_echo_n "(cached) " >&6
13417: else
13418:
13419: CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13420: ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13421: . ./conftest.sh
13422: rm -f ./conftest.sh
13423: acl_cv_rpath=done
13424:
13425: fi
13426: { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13427: $as_echo "$acl_cv_rpath" >&6; }
13428: wl="$acl_cv_wl"
13429: acl_libext="$acl_cv_libext"
13430: acl_shlibext="$acl_cv_shlibext"
13431: acl_libname_spec="$acl_cv_libname_spec"
13432: acl_library_names_spec="$acl_cv_library_names_spec"
13433: acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13434: acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13435: acl_hardcode_direct="$acl_cv_hardcode_direct"
13436: acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13437: # Check whether --enable-rpath was given.
13438: if test "${enable_rpath+set}" = set; then
13439: enableval=$enable_rpath; :
13440: else
13441: enable_rpath=yes
13442: fi
13443:
13444:
13445:
13446:
13447: acl_libdirstem=lib
13448: acl_libdirstem2=
13449: case "$host_os" in
13450: solaris*)
13451: { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
13452: $as_echo_n "checking for 64-bit host... " >&6; }
13453: if test "${gl_cv_solaris_64bit+set}" = set; then
13454: $as_echo_n "(cached) " >&6
13455: else
13456: cat >conftest.$ac_ext <<_ACEOF
13457: /* confdefs.h. */
13458: _ACEOF
13459: cat confdefs.h >>conftest.$ac_ext
13460: cat >>conftest.$ac_ext <<_ACEOF
13461: /* end confdefs.h. */
13462:
13463: #ifdef _LP64
13464: sixtyfour bits
13465: #endif
13466:
13467: _ACEOF
13468: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13469: $EGREP "sixtyfour bits" >/dev/null 2>&1; then
13470: gl_cv_solaris_64bit=yes
13471: else
13472: gl_cv_solaris_64bit=no
13473: fi
13474: rm -f conftest*
13475:
13476:
13477: fi
13478: { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
13479: $as_echo "$gl_cv_solaris_64bit" >&6; }
13480: if test $gl_cv_solaris_64bit = yes; then
13481: acl_libdirstem=lib/64
13482: case "$host_cpu" in
13483: sparc*) acl_libdirstem2=lib/sparcv9 ;;
13484: i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13485: esac
13486: fi
13487: ;;
13488: *)
13489: searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13490: if test -n "$searchpath"; then
13491: acl_save_IFS="${IFS= }"; IFS=":"
13492: for searchdir in $searchpath; do
13493: if test -d "$searchdir"; then
13494: case "$searchdir" in
13495: */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13496: */../ | */.. )
13497: # Better ignore directories of this form. They are misleading.
13498: ;;
13499: *) searchdir=`cd "$searchdir" && pwd`
13500: case "$searchdir" in
13501: */lib64 ) acl_libdirstem=lib64 ;;
13502: esac ;;
13503: esac
13504: fi
13505: done
13506: IFS="$acl_save_IFS"
13507: fi
13508: ;;
13509: esac
13510: test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13511:
13512:
13513:
13514:
13515:
13516:
13517:
13518:
13519:
13520:
13521:
13522:
13523: use_additional=yes
13524:
13525: acl_save_prefix="$prefix"
13526: prefix="$acl_final_prefix"
13527: acl_save_exec_prefix="$exec_prefix"
13528: exec_prefix="$acl_final_exec_prefix"
13529:
13530: eval additional_includedir=\"$includedir\"
13531: eval additional_libdir=\"$libdir\"
13532:
13533: exec_prefix="$acl_save_exec_prefix"
13534: prefix="$acl_save_prefix"
13535:
13536:
13537: # Check whether --with-libiconv-prefix was given.
13538: if test "${with_libiconv_prefix+set}" = set; then
13539: withval=$with_libiconv_prefix;
13540: if test "X$withval" = "Xno"; then
13541: use_additional=no
13542: else
13543: if test "X$withval" = "X"; then
13544:
13545: acl_save_prefix="$prefix"
13546: prefix="$acl_final_prefix"
13547: acl_save_exec_prefix="$exec_prefix"
13548: exec_prefix="$acl_final_exec_prefix"
13549:
13550: eval additional_includedir=\"$includedir\"
13551: eval additional_libdir=\"$libdir\"
13552:
13553: exec_prefix="$acl_save_exec_prefix"
13554: prefix="$acl_save_prefix"
13555:
13556: else
13557: additional_includedir="$withval/include"
13558: additional_libdir="$withval/$acl_libdirstem"
13559: if test "$acl_libdirstem2" != "$acl_libdirstem" \
13560: && ! test -d "$withval/$acl_libdirstem"; then
13561: additional_libdir="$withval/$acl_libdirstem2"
13562: fi
13563: fi
13564: fi
13565:
13566: fi
13567:
13568: LIBICONV=
13569: LTLIBICONV=
13570: INCICONV=
13571: LIBICONV_PREFIX=
13572: HAVE_LIBICONV=
13573: rpathdirs=
13574: ltrpathdirs=
13575: names_already_handled=
13576: names_next_round='iconv '
13577: while test -n "$names_next_round"; do
13578: names_this_round="$names_next_round"
13579: names_next_round=
13580: for name in $names_this_round; do
13581: already_handled=
13582: for n in $names_already_handled; do
13583: if test "$n" = "$name"; then
13584: already_handled=yes
13585: break
13586: fi
13587: done
13588: if test -z "$already_handled"; then
13589: names_already_handled="$names_already_handled $name"
13590: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13591: eval value=\"\$HAVE_LIB$uppername\"
13592: if test -n "$value"; then
13593: if test "$value" = yes; then
13594: eval value=\"\$LIB$uppername\"
13595: test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13596: eval value=\"\$LTLIB$uppername\"
13597: test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13598: else
13599: :
13600: fi
13601: else
13602: found_dir=
13603: found_la=
13604: found_so=
13605: found_a=
13606: eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13607: if test -n "$acl_shlibext"; then
13608: shrext=".$acl_shlibext" # typically: shrext=.so
13609: else
13610: shrext=
13611: fi
13612: if test $use_additional = yes; then
13613: dir="$additional_libdir"
13614: if test -n "$acl_shlibext"; then
13615: if test -f "$dir/$libname$shrext"; then
13616: found_dir="$dir"
13617: found_so="$dir/$libname$shrext"
13618: else
13619: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13620: ver=`(cd "$dir" && \
13621: for f in "$libname$shrext".*; do echo "$f"; done \
13622: | sed -e "s,^$libname$shrext\\\\.,," \
13623: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13624: | sed 1q ) 2>/dev/null`
13625: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13626: found_dir="$dir"
13627: found_so="$dir/$libname$shrext.$ver"
13628: fi
13629: else
13630: eval library_names=\"$acl_library_names_spec\"
13631: for f in $library_names; do
13632: if test -f "$dir/$f"; then
13633: found_dir="$dir"
13634: found_so="$dir/$f"
13635: break
13636: fi
13637: done
13638: fi
13639: fi
13640: fi
13641: if test "X$found_dir" = "X"; then
13642: if test -f "$dir/$libname.$acl_libext"; then
13643: found_dir="$dir"
13644: found_a="$dir/$libname.$acl_libext"
13645: fi
13646: fi
13647: if test "X$found_dir" != "X"; then
13648: if test -f "$dir/$libname.la"; then
13649: found_la="$dir/$libname.la"
13650: fi
13651: fi
13652: fi
13653: if test "X$found_dir" = "X"; then
13654: for x in $LDFLAGS $LTLIBICONV; do
13655:
13656: acl_save_prefix="$prefix"
13657: prefix="$acl_final_prefix"
13658: acl_save_exec_prefix="$exec_prefix"
13659: exec_prefix="$acl_final_exec_prefix"
13660: eval x=\"$x\"
13661: exec_prefix="$acl_save_exec_prefix"
13662: prefix="$acl_save_prefix"
13663:
13664: case "$x" in
13665: -L*)
13666: dir=`echo "X$x" | sed -e 's/^X-L//'`
13667: if test -n "$acl_shlibext"; then
13668: if test -f "$dir/$libname$shrext"; then
13669: found_dir="$dir"
13670: found_so="$dir/$libname$shrext"
13671: else
13672: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13673: ver=`(cd "$dir" && \
13674: for f in "$libname$shrext".*; do echo "$f"; done \
13675: | sed -e "s,^$libname$shrext\\\\.,," \
13676: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13677: | sed 1q ) 2>/dev/null`
13678: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13679: found_dir="$dir"
13680: found_so="$dir/$libname$shrext.$ver"
13681: fi
13682: else
13683: eval library_names=\"$acl_library_names_spec\"
13684: for f in $library_names; do
13685: if test -f "$dir/$f"; then
13686: found_dir="$dir"
13687: found_so="$dir/$f"
13688: break
13689: fi
13690: done
13691: fi
13692: fi
13693: fi
13694: if test "X$found_dir" = "X"; then
13695: if test -f "$dir/$libname.$acl_libext"; then
13696: found_dir="$dir"
13697: found_a="$dir/$libname.$acl_libext"
13698: fi
13699: fi
13700: if test "X$found_dir" != "X"; then
13701: if test -f "$dir/$libname.la"; then
13702: found_la="$dir/$libname.la"
13703: fi
13704: fi
13705: ;;
13706: esac
13707: if test "X$found_dir" != "X"; then
13708: break
13709: fi
13710: done
13711: fi
13712: if test "X$found_dir" != "X"; then
13713: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13714: if test "X$found_so" != "X"; then
13715: if test "$enable_rpath" = no \
13716: || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13717: || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13718: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13719: else
13720: haveit=
13721: for x in $ltrpathdirs; do
13722: if test "X$x" = "X$found_dir"; then
13723: haveit=yes
13724: break
13725: fi
13726: done
13727: if test -z "$haveit"; then
13728: ltrpathdirs="$ltrpathdirs $found_dir"
13729: fi
13730: if test "$acl_hardcode_direct" = yes; then
13731: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13732: else
13733: if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13734: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13735: haveit=
13736: for x in $rpathdirs; do
13737: if test "X$x" = "X$found_dir"; then
13738: haveit=yes
13739: break
13740: fi
13741: done
13742: if test -z "$haveit"; then
13743: rpathdirs="$rpathdirs $found_dir"
13744: fi
13745: else
13746: haveit=
13747: for x in $LDFLAGS $LIBICONV; do
13748:
13749: acl_save_prefix="$prefix"
13750: prefix="$acl_final_prefix"
13751: acl_save_exec_prefix="$exec_prefix"
13752: exec_prefix="$acl_final_exec_prefix"
13753: eval x=\"$x\"
13754: exec_prefix="$acl_save_exec_prefix"
13755: prefix="$acl_save_prefix"
13756:
13757: if test "X$x" = "X-L$found_dir"; then
13758: haveit=yes
13759: break
13760: fi
13761: done
13762: if test -z "$haveit"; then
13763: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13764: fi
13765: if test "$acl_hardcode_minus_L" != no; then
13766: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13767: else
13768: LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13769: fi
13770: fi
13771: fi
13772: fi
13773: else
13774: if test "X$found_a" != "X"; then
13775: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13776: else
13777: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13778: fi
13779: fi
13780: additional_includedir=
13781: case "$found_dir" in
13782: */$acl_libdirstem | */$acl_libdirstem/)
13783: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13784: if test "$name" = 'iconv'; then
13785: LIBICONV_PREFIX="$basedir"
13786: fi
13787: additional_includedir="$basedir/include"
13788: ;;
13789: */$acl_libdirstem2 | */$acl_libdirstem2/)
13790: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13791: if test "$name" = 'iconv'; then
13792: LIBICONV_PREFIX="$basedir"
13793: fi
13794: additional_includedir="$basedir/include"
13795: ;;
13796: esac
13797: if test "X$additional_includedir" != "X"; then
13798: if test "X$additional_includedir" != "X/usr/include"; then
13799: haveit=
13800: if test "X$additional_includedir" = "X/usr/local/include"; then
13801: if test -n "$GCC"; then
13802: case $host_os in
13803: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13804: esac
13805: fi
13806: fi
13807: if test -z "$haveit"; then
13808: for x in $CPPFLAGS $INCICONV; do
13809:
13810: acl_save_prefix="$prefix"
13811: prefix="$acl_final_prefix"
13812: acl_save_exec_prefix="$exec_prefix"
13813: exec_prefix="$acl_final_exec_prefix"
13814: eval x=\"$x\"
13815: exec_prefix="$acl_save_exec_prefix"
13816: prefix="$acl_save_prefix"
13817:
13818: if test "X$x" = "X-I$additional_includedir"; then
13819: haveit=yes
13820: break
13821: fi
13822: done
13823: if test -z "$haveit"; then
13824: if test -d "$additional_includedir"; then
13825: INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13826: fi
13827: fi
13828: fi
13829: fi
13830: fi
13831: if test -n "$found_la"; then
13832: save_libdir="$libdir"
13833: case "$found_la" in
13834: */* | *\\*) . "$found_la" ;;
13835: *) . "./$found_la" ;;
13836: esac
13837: libdir="$save_libdir"
13838: for dep in $dependency_libs; do
13839: case "$dep" in
13840: -L*)
13841: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13842: if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13843: && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13844: haveit=
13845: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13846: || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13847: if test -n "$GCC"; then
13848: case $host_os in
13849: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13850: esac
13851: fi
13852: fi
13853: if test -z "$haveit"; then
13854: haveit=
13855: for x in $LDFLAGS $LIBICONV; do
13856:
13857: acl_save_prefix="$prefix"
13858: prefix="$acl_final_prefix"
13859: acl_save_exec_prefix="$exec_prefix"
13860: exec_prefix="$acl_final_exec_prefix"
13861: eval x=\"$x\"
13862: exec_prefix="$acl_save_exec_prefix"
13863: prefix="$acl_save_prefix"
13864:
13865: if test "X$x" = "X-L$additional_libdir"; then
13866: haveit=yes
13867: break
13868: fi
13869: done
13870: if test -z "$haveit"; then
13871: if test -d "$additional_libdir"; then
13872: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13873: fi
13874: fi
13875: haveit=
13876: for x in $LDFLAGS $LTLIBICONV; do
13877:
13878: acl_save_prefix="$prefix"
13879: prefix="$acl_final_prefix"
13880: acl_save_exec_prefix="$exec_prefix"
13881: exec_prefix="$acl_final_exec_prefix"
13882: eval x=\"$x\"
13883: exec_prefix="$acl_save_exec_prefix"
13884: prefix="$acl_save_prefix"
13885:
13886: if test "X$x" = "X-L$additional_libdir"; then
13887: haveit=yes
13888: break
13889: fi
13890: done
13891: if test -z "$haveit"; then
13892: if test -d "$additional_libdir"; then
13893: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13894: fi
13895: fi
13896: fi
13897: fi
13898: ;;
13899: -R*)
13900: dir=`echo "X$dep" | sed -e 's/^X-R//'`
13901: if test "$enable_rpath" != no; then
13902: haveit=
13903: for x in $rpathdirs; do
13904: if test "X$x" = "X$dir"; then
13905: haveit=yes
13906: break
13907: fi
13908: done
13909: if test -z "$haveit"; then
13910: rpathdirs="$rpathdirs $dir"
13911: fi
13912: haveit=
13913: for x in $ltrpathdirs; do
13914: if test "X$x" = "X$dir"; then
13915: haveit=yes
13916: break
13917: fi
13918: done
13919: if test -z "$haveit"; then
13920: ltrpathdirs="$ltrpathdirs $dir"
13921: fi
13922: fi
13923: ;;
13924: -l*)
13925: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13926: ;;
13927: *.la)
13928: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13929: ;;
13930: *)
13931: LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13932: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13933: ;;
13934: esac
13935: done
13936: fi
13937: else
13938: LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13939: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13940: fi
13941: fi
13942: fi
13943: done
13944: done
13945: if test "X$rpathdirs" != "X"; then
13946: if test -n "$acl_hardcode_libdir_separator"; then
13947: alldirs=
13948: for found_dir in $rpathdirs; do
13949: alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13950: done
13951: acl_save_libdir="$libdir"
13952: libdir="$alldirs"
13953: eval flag=\"$acl_hardcode_libdir_flag_spec\"
13954: libdir="$acl_save_libdir"
13955: LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13956: else
13957: for found_dir in $rpathdirs; do
13958: acl_save_libdir="$libdir"
13959: libdir="$found_dir"
13960: eval flag=\"$acl_hardcode_libdir_flag_spec\"
13961: libdir="$acl_save_libdir"
13962: LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13963: done
13964: fi
13965: fi
13966: if test "X$ltrpathdirs" != "X"; then
13967: for found_dir in $ltrpathdirs; do
13968: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13969: done
13970: fi
13971:
13972:
13973:
13974:
13975:
13976:
13977:
13978:
13979:
13980:
13981:
13982:
13983: am_save_CPPFLAGS="$CPPFLAGS"
13984:
13985: for element in $INCICONV; do
13986: haveit=
13987: for x in $CPPFLAGS; do
13988:
13989: acl_save_prefix="$prefix"
13990: prefix="$acl_final_prefix"
13991: acl_save_exec_prefix="$exec_prefix"
13992: exec_prefix="$acl_final_exec_prefix"
13993: eval x=\"$x\"
13994: exec_prefix="$acl_save_exec_prefix"
13995: prefix="$acl_save_prefix"
13996:
13997: if test "X$x" = "X$element"; then
13998: haveit=yes
13999: break
14000: fi
14001: done
14002: if test -z "$haveit"; then
14003: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14004: fi
14005: done
14006:
14007:
14008: { $as_echo "$as_me:$LINENO: checking for iconv" >&5
14009: $as_echo_n "checking for iconv... " >&6; }
14010: if test "${am_cv_func_iconv+set}" = set; then
14011: $as_echo_n "(cached) " >&6
14012: else
14013:
14014: am_cv_func_iconv="no, consider installing GNU libiconv"
14015: am_cv_lib_iconv=no
14016: cat >conftest.$ac_ext <<_ACEOF
14017: /* confdefs.h. */
14018: _ACEOF
14019: cat confdefs.h >>conftest.$ac_ext
14020: cat >>conftest.$ac_ext <<_ACEOF
14021: /* end confdefs.h. */
14022: #include <stdlib.h>
14023: #include <iconv.h>
14024: int
14025: main ()
14026: {
14027: iconv_t cd = iconv_open("","");
14028: iconv(cd,NULL,NULL,NULL,NULL);
14029: iconv_close(cd);
14030: ;
14031: return 0;
14032: }
14033: _ACEOF
14034: rm -f conftest.$ac_objext conftest$ac_exeext
14035: if { (ac_try="$ac_link"
14036: case "(($ac_try" in
14037: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038: *) ac_try_echo=$ac_try;;
14039: esac
14040: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14041: $as_echo "$ac_try_echo") >&5
14042: (eval "$ac_link") 2>conftest.er1
14043: ac_status=$?
14044: grep -v '^ *+' conftest.er1 >conftest.err
14045: rm -f conftest.er1
14046: cat conftest.err >&5
14047: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048: (exit $ac_status); } && {
14049: test -z "$ac_c_werror_flag" ||
14050: test ! -s conftest.err
14051: } && test -s conftest$ac_exeext && {
14052: test "$cross_compiling" = yes ||
14053: $as_test_x conftest$ac_exeext
14054: }; then
14055: am_cv_func_iconv=yes
14056: else
14057: $as_echo "$as_me: failed program was:" >&5
14058: sed 's/^/| /' conftest.$ac_ext >&5
14059:
14060:
14061: fi
14062:
14063: rm -rf conftest.dSYM
14064: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14065: conftest$ac_exeext conftest.$ac_ext
14066: if test "$am_cv_func_iconv" != yes; then
14067: am_save_LIBS="$LIBS"
14068: LIBS="$LIBS $LIBICONV"
14069: cat >conftest.$ac_ext <<_ACEOF
14070: /* confdefs.h. */
14071: _ACEOF
14072: cat confdefs.h >>conftest.$ac_ext
14073: cat >>conftest.$ac_ext <<_ACEOF
14074: /* end confdefs.h. */
14075: #include <stdlib.h>
14076: #include <iconv.h>
14077: int
14078: main ()
14079: {
14080: iconv_t cd = iconv_open("","");
14081: iconv(cd,NULL,NULL,NULL,NULL);
14082: iconv_close(cd);
14083: ;
14084: return 0;
14085: }
14086: _ACEOF
14087: rm -f conftest.$ac_objext conftest$ac_exeext
14088: if { (ac_try="$ac_link"
14089: case "(($ac_try" in
14090: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091: *) ac_try_echo=$ac_try;;
14092: esac
14093: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14094: $as_echo "$ac_try_echo") >&5
14095: (eval "$ac_link") 2>conftest.er1
14096: ac_status=$?
14097: grep -v '^ *+' conftest.er1 >conftest.err
14098: rm -f conftest.er1
14099: cat conftest.err >&5
14100: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101: (exit $ac_status); } && {
14102: test -z "$ac_c_werror_flag" ||
14103: test ! -s conftest.err
14104: } && test -s conftest$ac_exeext && {
14105: test "$cross_compiling" = yes ||
14106: $as_test_x conftest$ac_exeext
14107: }; then
14108: am_cv_lib_iconv=yes
14109: am_cv_func_iconv=yes
14110: else
14111: $as_echo "$as_me: failed program was:" >&5
14112: sed 's/^/| /' conftest.$ac_ext >&5
14113:
14114:
14115: fi
14116:
14117: rm -rf conftest.dSYM
14118: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14119: conftest$ac_exeext conftest.$ac_ext
14120: LIBS="$am_save_LIBS"
14121: fi
14122:
14123: fi
14124: { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14125: $as_echo "$am_cv_func_iconv" >&6; }
14126: if test "$am_cv_func_iconv" = yes; then
14127: { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
14128: $as_echo_n "checking for working iconv... " >&6; }
14129: if test "${am_cv_func_iconv_works+set}" = set; then
14130: $as_echo_n "(cached) " >&6
14131: else
14132:
14133: am_save_LIBS="$LIBS"
14134: if test $am_cv_lib_iconv = yes; then
14135: LIBS="$LIBS $LIBICONV"
14136: fi
14137: if test "$cross_compiling" = yes; then
14138: case "$host_os" in
14139: aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14140: *) am_cv_func_iconv_works="guessing yes" ;;
14141: esac
14142: else
14143: cat >conftest.$ac_ext <<_ACEOF
14144: /* confdefs.h. */
14145: _ACEOF
14146: cat confdefs.h >>conftest.$ac_ext
14147: cat >>conftest.$ac_ext <<_ACEOF
14148: /* end confdefs.h. */
14149:
14150: #include <iconv.h>
14151: #include <string.h>
14152: int main ()
14153: {
14154: /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14155: returns. */
14156: {
14157: iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14158: if (cd_utf8_to_88591 != (iconv_t)(-1))
14159: {
14160: static const char input[] = "\342\202\254"; /* EURO SIGN */
14161: char buf[10];
14162: const char *inptr = input;
14163: size_t inbytesleft = strlen (input);
14164: char *outptr = buf;
14165: size_t outbytesleft = sizeof (buf);
14166: size_t res = iconv (cd_utf8_to_88591,
14167: (char **) &inptr, &inbytesleft,
14168: &outptr, &outbytesleft);
14169: if (res == 0)
14170: return 1;
14171: }
14172: }
14173: #if 0 /* This bug could be worked around by the caller. */
14174: /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14175: {
14176: iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14177: if (cd_88591_to_utf8 != (iconv_t)(-1))
14178: {
14179: static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14180: char buf[50];
14181: const char *inptr = input;
14182: size_t inbytesleft = strlen (input);
14183: char *outptr = buf;
14184: size_t outbytesleft = sizeof (buf);
14185: size_t res = iconv (cd_88591_to_utf8,
14186: (char **) &inptr, &inbytesleft,
14187: &outptr, &outbytesleft);
14188: if ((int)res > 0)
14189: return 1;
14190: }
14191: }
14192: #endif
14193: /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14194: provided. */
14195: if (/* Try standardized names. */
14196: iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14197: /* Try IRIX, OSF/1 names. */
14198: && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14199: /* Try AIX names. */
14200: && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14201: /* Try HP-UX names. */
14202: && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14203: return 1;
14204: return 0;
14205: }
14206: _ACEOF
14207: rm -f conftest$ac_exeext
14208: if { (ac_try="$ac_link"
14209: case "(($ac_try" in
14210: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211: *) ac_try_echo=$ac_try;;
14212: esac
14213: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14214: $as_echo "$ac_try_echo") >&5
14215: (eval "$ac_link") 2>&5
14216: ac_status=$?
14217: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14219: { (case "(($ac_try" in
14220: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221: *) ac_try_echo=$ac_try;;
14222: esac
14223: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14224: $as_echo "$ac_try_echo") >&5
14225: (eval "$ac_try") 2>&5
14226: ac_status=$?
14227: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228: (exit $ac_status); }; }; then
14229: am_cv_func_iconv_works=yes
14230: else
14231: $as_echo "$as_me: program exited with status $ac_status" >&5
14232: $as_echo "$as_me: failed program was:" >&5
14233: sed 's/^/| /' conftest.$ac_ext >&5
14234:
14235: ( exit $ac_status )
14236: am_cv_func_iconv_works=no
14237: fi
14238: rm -rf conftest.dSYM
14239: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14240: fi
14241:
14242:
14243: LIBS="$am_save_LIBS"
14244:
14245: fi
14246: { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
14247: $as_echo "$am_cv_func_iconv_works" >&6; }
14248: case "$am_cv_func_iconv_works" in
14249: *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14250: *) am_func_iconv=yes ;;
14251: esac
14252: else
14253: am_func_iconv=no am_cv_lib_iconv=no
14254: fi
14255: if test "$am_func_iconv" = yes; then
14256:
14257: cat >>confdefs.h <<\_ACEOF
14258: #define HAVE_ICONV 1
14259: _ACEOF
14260:
14261: fi
14262: if test "$am_cv_lib_iconv" = yes; then
14263: { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14264: $as_echo_n "checking how to link with libiconv... " >&6; }
14265: { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
14266: $as_echo "$LIBICONV" >&6; }
14267: else
14268: CPPFLAGS="$am_save_CPPFLAGS"
14269: LIBICONV=
14270: LTLIBICONV=
14271: fi
14272:
14273:
14274:
14275: if test "$am_cv_func_iconv" = yes; then
14276: { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
14277: $as_echo_n "checking for iconv declaration... " >&6; }
14278: if test "${am_cv_proto_iconv+set}" = set; then
14279: $as_echo_n "(cached) " >&6
14280: else
14281:
14282: cat >conftest.$ac_ext <<_ACEOF
14283: /* confdefs.h. */
14284: _ACEOF
14285: cat confdefs.h >>conftest.$ac_ext
14286: cat >>conftest.$ac_ext <<_ACEOF
14287: /* end confdefs.h. */
14288:
14289: #include <stdlib.h>
14290: #include <iconv.h>
14291: extern
14292: #ifdef __cplusplus
14293: "C"
14294: #endif
14295: #if defined(__STDC__) || defined(__cplusplus)
14296: size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14297: #else
14298: size_t iconv();
14299: #endif
14300:
14301: int
14302: main ()
14303: {
14304:
14305: ;
14306: return 0;
14307: }
14308: _ACEOF
14309: rm -f conftest.$ac_objext
14310: if { (ac_try="$ac_compile"
14311: case "(($ac_try" in
14312: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313: *) ac_try_echo=$ac_try;;
14314: esac
14315: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14316: $as_echo "$ac_try_echo") >&5
14317: (eval "$ac_compile") 2>conftest.er1
14318: ac_status=$?
14319: grep -v '^ *+' conftest.er1 >conftest.err
14320: rm -f conftest.er1
14321: cat conftest.err >&5
14322: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323: (exit $ac_status); } && {
14324: test -z "$ac_c_werror_flag" ||
14325: test ! -s conftest.err
14326: } && test -s conftest.$ac_objext; then
14327: am_cv_proto_iconv_arg1=""
14328: else
14329: $as_echo "$as_me: failed program was:" >&5
14330: sed 's/^/| /' conftest.$ac_ext >&5
14331:
14332: am_cv_proto_iconv_arg1="const"
14333: fi
14334:
14335: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336: am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14337: fi
14338:
14339: am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14340: { $as_echo "$as_me:$LINENO: result: ${ac_t:-
14341: }$am_cv_proto_iconv" >&5
14342: $as_echo "${ac_t:-
14343: }$am_cv_proto_iconv" >&6; }
14344:
14345: cat >>confdefs.h <<_ACEOF
14346: #define ICONV_CONST $am_cv_proto_iconv_arg1
14347: _ACEOF
14348:
14349: fi
14350:
14351:
14352: { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14353: $as_echo_n "checking whether NLS is requested... " >&6; }
14354: # Check whether --enable-nls was given.
14355: if test "${enable_nls+set}" = set; then
14356: enableval=$enable_nls; USE_NLS=$enableval
14357: else
14358: USE_NLS=yes
14359: fi
14360:
14361: { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
14362: $as_echo "$USE_NLS" >&6; }
14363:
14364:
14365:
14366:
14367: GETTEXT_MACRO_VERSION=0.17
14368:
14369:
14370:
14371:
14372: # Prepare PATH_SEPARATOR.
14373: # The user is always right.
14374: if test "${PATH_SEPARATOR+set}" != set; then
14375: echo "#! /bin/sh" >conf$$.sh
14376: echo "exit 0" >>conf$$.sh
14377: chmod +x conf$$.sh
14378: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14379: PATH_SEPARATOR=';'
14380: else
14381: PATH_SEPARATOR=:
14382: fi
14383: rm -f conf$$.sh
14384: fi
14385:
14386: # Find out how to test for executable files. Don't use a zero-byte file,
14387: # as systems may use methods other than mode bits to determine executability.
14388: cat >conf$$.file <<_ASEOF
14389: #! /bin/sh
14390: exit 0
14391: _ASEOF
14392: chmod +x conf$$.file
14393: if test -x conf$$.file >/dev/null 2>&1; then
14394: ac_executable_p="test -x"
14395: else
14396: ac_executable_p="test -f"
14397: fi
14398: rm -f conf$$.file
14399:
14400: # Extract the first word of "msgfmt", so it can be a program name with args.
14401: set dummy msgfmt; ac_word=$2
14402: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14403: $as_echo_n "checking for $ac_word... " >&6; }
14404: if test "${ac_cv_path_MSGFMT+set}" = set; then
14405: $as_echo_n "(cached) " >&6
14406: else
14407: case "$MSGFMT" in
14408: [\\/]* | ?:[\\/]*)
14409: ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14410: ;;
14411: *)
14412: ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14413: for ac_dir in $PATH; do
14414: IFS="$ac_save_IFS"
14415: test -z "$ac_dir" && ac_dir=.
14416: for ac_exec_ext in '' $ac_executable_extensions; do
14417: if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14418: echo "$as_me: trying $ac_dir/$ac_word..." >&5
14419: if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14420: (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14421: ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14422: break 2
14423: fi
14424: fi
14425: done
14426: done
14427: IFS="$ac_save_IFS"
14428: test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14429: ;;
14430: esac
14431: fi
14432: MSGFMT="$ac_cv_path_MSGFMT"
14433: if test "$MSGFMT" != ":"; then
14434: { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
14435: $as_echo "$MSGFMT" >&6; }
14436: else
14437: { $as_echo "$as_me:$LINENO: result: no" >&5
14438: $as_echo "no" >&6; }
14439: fi
14440:
14441: # Extract the first word of "gmsgfmt", so it can be a program name with args.
14442: set dummy gmsgfmt; ac_word=$2
14443: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14444: $as_echo_n "checking for $ac_word... " >&6; }
14445: if test "${ac_cv_path_GMSGFMT+set}" = set; then
14446: $as_echo_n "(cached) " >&6
14447: else
14448: case $GMSGFMT in
14449: [\\/]* | ?:[\\/]*)
14450: ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14451: ;;
14452: *)
14453: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454: for as_dir in $PATH
14455: do
14456: IFS=$as_save_IFS
14457: test -z "$as_dir" && as_dir=.
14458: for ac_exec_ext in '' $ac_executable_extensions; do
14459: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460: ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14461: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14462: break 2
14463: fi
14464: done
14465: done
14466: IFS=$as_save_IFS
14467:
14468: test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14469: ;;
14470: esac
14471: fi
14472: GMSGFMT=$ac_cv_path_GMSGFMT
14473: if test -n "$GMSGFMT"; then
14474: { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14475: $as_echo "$GMSGFMT" >&6; }
14476: else
14477: { $as_echo "$as_me:$LINENO: result: no" >&5
14478: $as_echo "no" >&6; }
14479: fi
14480:
14481:
14482:
14483: case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14484: '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14485: *) MSGFMT_015=$MSGFMT ;;
14486: esac
14487:
14488: case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14489: '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14490: *) GMSGFMT_015=$GMSGFMT ;;
14491: esac
14492:
14493:
14494:
14495: # Prepare PATH_SEPARATOR.
14496: # The user is always right.
14497: if test "${PATH_SEPARATOR+set}" != set; then
14498: echo "#! /bin/sh" >conf$$.sh
14499: echo "exit 0" >>conf$$.sh
14500: chmod +x conf$$.sh
14501: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14502: PATH_SEPARATOR=';'
14503: else
14504: PATH_SEPARATOR=:
14505: fi
14506: rm -f conf$$.sh
14507: fi
14508:
14509: # Find out how to test for executable files. Don't use a zero-byte file,
14510: # as systems may use methods other than mode bits to determine executability.
14511: cat >conf$$.file <<_ASEOF
14512: #! /bin/sh
14513: exit 0
14514: _ASEOF
14515: chmod +x conf$$.file
14516: if test -x conf$$.file >/dev/null 2>&1; then
14517: ac_executable_p="test -x"
14518: else
14519: ac_executable_p="test -f"
14520: fi
14521: rm -f conf$$.file
14522:
14523: # Extract the first word of "xgettext", so it can be a program name with args.
14524: set dummy xgettext; ac_word=$2
14525: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14526: $as_echo_n "checking for $ac_word... " >&6; }
14527: if test "${ac_cv_path_XGETTEXT+set}" = set; then
14528: $as_echo_n "(cached) " >&6
14529: else
14530: case "$XGETTEXT" in
14531: [\\/]* | ?:[\\/]*)
14532: ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14533: ;;
14534: *)
14535: ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14536: for ac_dir in $PATH; do
14537: IFS="$ac_save_IFS"
14538: test -z "$ac_dir" && ac_dir=.
14539: for ac_exec_ext in '' $ac_executable_extensions; do
14540: if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14541: echo "$as_me: trying $ac_dir/$ac_word..." >&5
14542: if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14543: (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14544: ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14545: break 2
14546: fi
14547: fi
14548: done
14549: done
14550: IFS="$ac_save_IFS"
14551: test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14552: ;;
14553: esac
14554: fi
14555: XGETTEXT="$ac_cv_path_XGETTEXT"
14556: if test "$XGETTEXT" != ":"; then
14557: { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14558: $as_echo "$XGETTEXT" >&6; }
14559: else
14560: { $as_echo "$as_me:$LINENO: result: no" >&5
14561: $as_echo "no" >&6; }
14562: fi
14563:
14564: rm -f messages.po
14565:
14566: case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14567: '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14568: *) XGETTEXT_015=$XGETTEXT ;;
14569: esac
14570:
14571:
14572:
14573: # Prepare PATH_SEPARATOR.
14574: # The user is always right.
14575: if test "${PATH_SEPARATOR+set}" != set; then
14576: echo "#! /bin/sh" >conf$$.sh
14577: echo "exit 0" >>conf$$.sh
14578: chmod +x conf$$.sh
14579: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14580: PATH_SEPARATOR=';'
14581: else
14582: PATH_SEPARATOR=:
14583: fi
14584: rm -f conf$$.sh
14585: fi
14586:
14587: # Find out how to test for executable files. Don't use a zero-byte file,
14588: # as systems may use methods other than mode bits to determine executability.
14589: cat >conf$$.file <<_ASEOF
14590: #! /bin/sh
14591: exit 0
14592: _ASEOF
14593: chmod +x conf$$.file
14594: if test -x conf$$.file >/dev/null 2>&1; then
14595: ac_executable_p="test -x"
14596: else
14597: ac_executable_p="test -f"
14598: fi
14599: rm -f conf$$.file
14600:
14601: # Extract the first word of "msgmerge", so it can be a program name with args.
14602: set dummy msgmerge; ac_word=$2
14603: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14604: $as_echo_n "checking for $ac_word... " >&6; }
14605: if test "${ac_cv_path_MSGMERGE+set}" = set; then
14606: $as_echo_n "(cached) " >&6
14607: else
14608: case "$MSGMERGE" in
14609: [\\/]* | ?:[\\/]*)
14610: ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14611: ;;
14612: *)
14613: ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14614: for ac_dir in $PATH; do
14615: IFS="$ac_save_IFS"
14616: test -z "$ac_dir" && ac_dir=.
14617: for ac_exec_ext in '' $ac_executable_extensions; do
14618: if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14619: echo "$as_me: trying $ac_dir/$ac_word..." >&5
14620: if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14621: ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14622: break 2
14623: fi
14624: fi
14625: done
14626: done
14627: IFS="$ac_save_IFS"
14628: test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14629: ;;
14630: esac
14631: fi
14632: MSGMERGE="$ac_cv_path_MSGMERGE"
14633: if test "$MSGMERGE" != ":"; then
14634: { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
14635: $as_echo "$MSGMERGE" >&6; }
14636: else
14637: { $as_echo "$as_me:$LINENO: result: no" >&5
14638: $as_echo "no" >&6; }
14639: fi
14640:
14641:
14642: test -n "$localedir" || localedir='${datadir}/locale'
14643:
14644:
14645: test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14646:
14647:
14648: ac_config_commands="$ac_config_commands po-directories"
14649:
14650:
14651:
14652:
14653:
14654:
14655:
14656:
14657:
14658:
14659:
14660:
14661:
14662:
14663:
14664:
14665:
14666:
14667:
14668:
14669:
14670:
14671:
14672:
14673:
14674: { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
14675: $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14676: if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
14677: $as_echo_n "(cached) " >&6
14678: else
14679: gt_save_LIBS="$LIBS"
14680: LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14681: cat >conftest.$ac_ext <<_ACEOF
14682: /* confdefs.h. */
14683: _ACEOF
14684: cat confdefs.h >>conftest.$ac_ext
14685: cat >>conftest.$ac_ext <<_ACEOF
14686: /* end confdefs.h. */
14687: #include <CoreFoundation/CFPreferences.h>
14688: int
14689: main ()
14690: {
14691: CFPreferencesCopyAppValue(NULL, NULL)
14692: ;
14693: return 0;
14694: }
14695: _ACEOF
14696: rm -f conftest.$ac_objext conftest$ac_exeext
14697: if { (ac_try="$ac_link"
14698: case "(($ac_try" in
14699: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700: *) ac_try_echo=$ac_try;;
14701: esac
14702: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14703: $as_echo "$ac_try_echo") >&5
14704: (eval "$ac_link") 2>conftest.er1
14705: ac_status=$?
14706: grep -v '^ *+' conftest.er1 >conftest.err
14707: rm -f conftest.er1
14708: cat conftest.err >&5
14709: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710: (exit $ac_status); } && {
14711: test -z "$ac_c_werror_flag" ||
14712: test ! -s conftest.err
14713: } && test -s conftest$ac_exeext && {
14714: test "$cross_compiling" = yes ||
14715: $as_test_x conftest$ac_exeext
14716: }; then
14717: gt_cv_func_CFPreferencesCopyAppValue=yes
14718: else
14719: $as_echo "$as_me: failed program was:" >&5
14720: sed 's/^/| /' conftest.$ac_ext >&5
14721:
14722: gt_cv_func_CFPreferencesCopyAppValue=no
14723: fi
14724:
14725: rm -rf conftest.dSYM
14726: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14727: conftest$ac_exeext conftest.$ac_ext
14728: LIBS="$gt_save_LIBS"
14729: fi
14730: { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14731: $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14732: if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14733:
14734: cat >>confdefs.h <<\_ACEOF
14735: #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
14736: _ACEOF
14737:
14738: fi
14739: { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
14740: $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14741: if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
14742: $as_echo_n "(cached) " >&6
14743: else
14744: gt_save_LIBS="$LIBS"
14745: LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14746: cat >conftest.$ac_ext <<_ACEOF
14747: /* confdefs.h. */
14748: _ACEOF
14749: cat confdefs.h >>conftest.$ac_ext
14750: cat >>conftest.$ac_ext <<_ACEOF
14751: /* end confdefs.h. */
14752: #include <CoreFoundation/CFLocale.h>
14753: int
14754: main ()
14755: {
14756: CFLocaleCopyCurrent();
14757: ;
14758: return 0;
14759: }
14760: _ACEOF
14761: rm -f conftest.$ac_objext conftest$ac_exeext
14762: if { (ac_try="$ac_link"
14763: case "(($ac_try" in
14764: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765: *) ac_try_echo=$ac_try;;
14766: esac
14767: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768: $as_echo "$ac_try_echo") >&5
14769: (eval "$ac_link") 2>conftest.er1
14770: ac_status=$?
14771: grep -v '^ *+' conftest.er1 >conftest.err
14772: rm -f conftest.er1
14773: cat conftest.err >&5
14774: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775: (exit $ac_status); } && {
14776: test -z "$ac_c_werror_flag" ||
14777: test ! -s conftest.err
14778: } && test -s conftest$ac_exeext && {
14779: test "$cross_compiling" = yes ||
14780: $as_test_x conftest$ac_exeext
14781: }; then
14782: gt_cv_func_CFLocaleCopyCurrent=yes
14783: else
14784: $as_echo "$as_me: failed program was:" >&5
14785: sed 's/^/| /' conftest.$ac_ext >&5
14786:
14787: gt_cv_func_CFLocaleCopyCurrent=no
14788: fi
14789:
14790: rm -rf conftest.dSYM
14791: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14792: conftest$ac_exeext conftest.$ac_ext
14793: LIBS="$gt_save_LIBS"
14794: fi
14795: { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14796: $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14797: if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14798:
14799: cat >>confdefs.h <<\_ACEOF
14800: #define HAVE_CFLOCALECOPYCURRENT 1
14801: _ACEOF
14802:
14803: fi
14804: INTL_MACOSX_LIBS=
14805: if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14806: INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14807: fi
14808:
14809:
14810:
14811:
14812:
14813:
14814: LIBINTL=
14815: LTLIBINTL=
14816: POSUB=
14817:
14818: case " $gt_needs " in
14819: *" need-formatstring-macros "*) gt_api_version=3 ;;
14820: *" need-ngettext "*) gt_api_version=2 ;;
14821: *) gt_api_version=1 ;;
14822: esac
14823: gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14824: gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14825:
14826: if test "$USE_NLS" = "yes"; then
14827: gt_use_preinstalled_gnugettext=no
14828:
14829:
14830: if test $gt_api_version -ge 3; then
14831: gt_revision_test_code='
14832: #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14833: #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14834: #endif
14835: typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14836: '
14837: else
14838: gt_revision_test_code=
14839: fi
14840: if test $gt_api_version -ge 2; then
14841: gt_expression_test_code=' + * ngettext ("", "", 0)'
14842: else
14843: gt_expression_test_code=
14844: fi
14845:
14846: { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14847: $as_echo_n "checking for GNU gettext in libc... " >&6; }
14848: if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
14849: $as_echo_n "(cached) " >&6
14850: else
14851: cat >conftest.$ac_ext <<_ACEOF
14852: /* confdefs.h. */
14853: _ACEOF
14854: cat confdefs.h >>conftest.$ac_ext
14855: cat >>conftest.$ac_ext <<_ACEOF
14856: /* end confdefs.h. */
14857: #include <libintl.h>
14858: $gt_revision_test_code
14859: extern int _nl_msg_cat_cntr;
14860: extern int *_nl_domain_bindings;
14861: int
14862: main ()
14863: {
14864: bindtextdomain ("", "");
14865: return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14866: ;
14867: return 0;
14868: }
14869: _ACEOF
14870: rm -f conftest.$ac_objext conftest$ac_exeext
14871: if { (ac_try="$ac_link"
14872: case "(($ac_try" in
14873: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874: *) ac_try_echo=$ac_try;;
14875: esac
14876: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14877: $as_echo "$ac_try_echo") >&5
14878: (eval "$ac_link") 2>conftest.er1
14879: ac_status=$?
14880: grep -v '^ *+' conftest.er1 >conftest.err
14881: rm -f conftest.er1
14882: cat conftest.err >&5
14883: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884: (exit $ac_status); } && {
14885: test -z "$ac_c_werror_flag" ||
14886: test ! -s conftest.err
14887: } && test -s conftest$ac_exeext && {
14888: test "$cross_compiling" = yes ||
14889: $as_test_x conftest$ac_exeext
14890: }; then
14891: eval "$gt_func_gnugettext_libc=yes"
14892: else
14893: $as_echo "$as_me: failed program was:" >&5
14894: sed 's/^/| /' conftest.$ac_ext >&5
14895:
14896: eval "$gt_func_gnugettext_libc=no"
14897: fi
14898:
14899: rm -rf conftest.dSYM
14900: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14901: conftest$ac_exeext conftest.$ac_ext
14902: fi
14903: ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
14904: $as_echo "$as_val"'`
14905: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14906: $as_echo "$ac_res" >&6; }
14907:
14908: if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14909:
14910:
14911:
14912:
14913:
14914: am_save_CPPFLAGS="$CPPFLAGS"
14915:
14916: for element in $INCICONV; do
14917: haveit=
14918: for x in $CPPFLAGS; do
14919:
14920: acl_save_prefix="$prefix"
14921: prefix="$acl_final_prefix"
14922: acl_save_exec_prefix="$exec_prefix"
14923: exec_prefix="$acl_final_exec_prefix"
14924: eval x=\"$x\"
14925: exec_prefix="$acl_save_exec_prefix"
14926: prefix="$acl_save_prefix"
14927:
14928: if test "X$x" = "X$element"; then
14929: haveit=yes
14930: break
14931: fi
14932: done
14933: if test -z "$haveit"; then
14934: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14935: fi
14936: done
14937:
14938:
14939: { $as_echo "$as_me:$LINENO: checking for iconv" >&5
14940: $as_echo_n "checking for iconv... " >&6; }
14941: if test "${am_cv_func_iconv+set}" = set; then
14942: $as_echo_n "(cached) " >&6
14943: else
14944:
14945: am_cv_func_iconv="no, consider installing GNU libiconv"
14946: am_cv_lib_iconv=no
14947: cat >conftest.$ac_ext <<_ACEOF
14948: /* confdefs.h. */
14949: _ACEOF
14950: cat confdefs.h >>conftest.$ac_ext
14951: cat >>conftest.$ac_ext <<_ACEOF
14952: /* end confdefs.h. */
14953: #include <stdlib.h>
14954: #include <iconv.h>
14955: int
14956: main ()
14957: {
14958: iconv_t cd = iconv_open("","");
14959: iconv(cd,NULL,NULL,NULL,NULL);
14960: iconv_close(cd);
14961: ;
14962: return 0;
14963: }
14964: _ACEOF
14965: rm -f conftest.$ac_objext conftest$ac_exeext
14966: if { (ac_try="$ac_link"
14967: case "(($ac_try" in
14968: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969: *) ac_try_echo=$ac_try;;
14970: esac
14971: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972: $as_echo "$ac_try_echo") >&5
14973: (eval "$ac_link") 2>conftest.er1
14974: ac_status=$?
14975: grep -v '^ *+' conftest.er1 >conftest.err
14976: rm -f conftest.er1
14977: cat conftest.err >&5
14978: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979: (exit $ac_status); } && {
14980: test -z "$ac_c_werror_flag" ||
14981: test ! -s conftest.err
14982: } && test -s conftest$ac_exeext && {
14983: test "$cross_compiling" = yes ||
14984: $as_test_x conftest$ac_exeext
14985: }; then
14986: am_cv_func_iconv=yes
14987: else
14988: $as_echo "$as_me: failed program was:" >&5
14989: sed 's/^/| /' conftest.$ac_ext >&5
14990:
14991:
14992: fi
14993:
14994: rm -rf conftest.dSYM
14995: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14996: conftest$ac_exeext conftest.$ac_ext
14997: if test "$am_cv_func_iconv" != yes; then
14998: am_save_LIBS="$LIBS"
14999: LIBS="$LIBS $LIBICONV"
15000: cat >conftest.$ac_ext <<_ACEOF
15001: /* confdefs.h. */
15002: _ACEOF
15003: cat confdefs.h >>conftest.$ac_ext
15004: cat >>conftest.$ac_ext <<_ACEOF
15005: /* end confdefs.h. */
15006: #include <stdlib.h>
15007: #include <iconv.h>
15008: int
15009: main ()
15010: {
15011: iconv_t cd = iconv_open("","");
15012: iconv(cd,NULL,NULL,NULL,NULL);
15013: iconv_close(cd);
15014: ;
15015: return 0;
15016: }
15017: _ACEOF
15018: rm -f conftest.$ac_objext conftest$ac_exeext
15019: if { (ac_try="$ac_link"
15020: case "(($ac_try" in
15021: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022: *) ac_try_echo=$ac_try;;
15023: esac
15024: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15025: $as_echo "$ac_try_echo") >&5
15026: (eval "$ac_link") 2>conftest.er1
15027: ac_status=$?
15028: grep -v '^ *+' conftest.er1 >conftest.err
15029: rm -f conftest.er1
15030: cat conftest.err >&5
15031: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032: (exit $ac_status); } && {
15033: test -z "$ac_c_werror_flag" ||
15034: test ! -s conftest.err
15035: } && test -s conftest$ac_exeext && {
15036: test "$cross_compiling" = yes ||
15037: $as_test_x conftest$ac_exeext
15038: }; then
15039: am_cv_lib_iconv=yes
15040: am_cv_func_iconv=yes
15041: else
15042: $as_echo "$as_me: failed program was:" >&5
15043: sed 's/^/| /' conftest.$ac_ext >&5
15044:
15045:
15046: fi
15047:
15048: rm -rf conftest.dSYM
15049: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15050: conftest$ac_exeext conftest.$ac_ext
15051: LIBS="$am_save_LIBS"
15052: fi
15053:
15054: fi
15055: { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15056: $as_echo "$am_cv_func_iconv" >&6; }
15057: if test "$am_cv_func_iconv" = yes; then
15058: { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
15059: $as_echo_n "checking for working iconv... " >&6; }
15060: if test "${am_cv_func_iconv_works+set}" = set; then
15061: $as_echo_n "(cached) " >&6
15062: else
15063:
15064: am_save_LIBS="$LIBS"
15065: if test $am_cv_lib_iconv = yes; then
15066: LIBS="$LIBS $LIBICONV"
15067: fi
15068: if test "$cross_compiling" = yes; then
15069: case "$host_os" in
15070: aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15071: *) am_cv_func_iconv_works="guessing yes" ;;
15072: esac
15073: else
15074: cat >conftest.$ac_ext <<_ACEOF
15075: /* confdefs.h. */
15076: _ACEOF
15077: cat confdefs.h >>conftest.$ac_ext
15078: cat >>conftest.$ac_ext <<_ACEOF
15079: /* end confdefs.h. */
15080:
15081: #include <iconv.h>
15082: #include <string.h>
15083: int main ()
15084: {
15085: /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15086: returns. */
15087: {
15088: iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15089: if (cd_utf8_to_88591 != (iconv_t)(-1))
15090: {
15091: static const char input[] = "\342\202\254"; /* EURO SIGN */
15092: char buf[10];
15093: const char *inptr = input;
15094: size_t inbytesleft = strlen (input);
15095: char *outptr = buf;
15096: size_t outbytesleft = sizeof (buf);
15097: size_t res = iconv (cd_utf8_to_88591,
15098: (char **) &inptr, &inbytesleft,
15099: &outptr, &outbytesleft);
15100: if (res == 0)
15101: return 1;
15102: }
15103: }
15104: #if 0 /* This bug could be worked around by the caller. */
15105: /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15106: {
15107: iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15108: if (cd_88591_to_utf8 != (iconv_t)(-1))
15109: {
15110: static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15111: char buf[50];
15112: const char *inptr = input;
15113: size_t inbytesleft = strlen (input);
15114: char *outptr = buf;
15115: size_t outbytesleft = sizeof (buf);
15116: size_t res = iconv (cd_88591_to_utf8,
15117: (char **) &inptr, &inbytesleft,
15118: &outptr, &outbytesleft);
15119: if ((int)res > 0)
15120: return 1;
15121: }
15122: }
15123: #endif
15124: /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15125: provided. */
15126: if (/* Try standardized names. */
15127: iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15128: /* Try IRIX, OSF/1 names. */
15129: && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15130: /* Try AIX names. */
15131: && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15132: /* Try HP-UX names. */
15133: && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15134: return 1;
15135: return 0;
15136: }
15137: _ACEOF
15138: rm -f conftest$ac_exeext
15139: if { (ac_try="$ac_link"
15140: case "(($ac_try" in
15141: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142: *) ac_try_echo=$ac_try;;
15143: esac
15144: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15145: $as_echo "$ac_try_echo") >&5
15146: (eval "$ac_link") 2>&5
15147: ac_status=$?
15148: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15150: { (case "(($ac_try" in
15151: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152: *) ac_try_echo=$ac_try;;
15153: esac
15154: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15155: $as_echo "$ac_try_echo") >&5
15156: (eval "$ac_try") 2>&5
15157: ac_status=$?
15158: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159: (exit $ac_status); }; }; then
15160: am_cv_func_iconv_works=yes
15161: else
15162: $as_echo "$as_me: program exited with status $ac_status" >&5
15163: $as_echo "$as_me: failed program was:" >&5
15164: sed 's/^/| /' conftest.$ac_ext >&5
15165:
15166: ( exit $ac_status )
15167: am_cv_func_iconv_works=no
15168: fi
15169: rm -rf conftest.dSYM
15170: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15171: fi
15172:
15173:
15174: LIBS="$am_save_LIBS"
15175:
15176: fi
15177: { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
15178: $as_echo "$am_cv_func_iconv_works" >&6; }
15179: case "$am_cv_func_iconv_works" in
15180: *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15181: *) am_func_iconv=yes ;;
15182: esac
15183: else
15184: am_func_iconv=no am_cv_lib_iconv=no
15185: fi
15186: if test "$am_func_iconv" = yes; then
15187:
15188: cat >>confdefs.h <<\_ACEOF
15189: #define HAVE_ICONV 1
15190: _ACEOF
15191:
15192: fi
15193: if test "$am_cv_lib_iconv" = yes; then
15194: { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15195: $as_echo_n "checking how to link with libiconv... " >&6; }
15196: { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
15197: $as_echo "$LIBICONV" >&6; }
15198: else
15199: CPPFLAGS="$am_save_CPPFLAGS"
15200: LIBICONV=
15201: LTLIBICONV=
15202: fi
15203:
15204:
15205:
15206:
15207:
15208:
15209:
15210:
15211:
15212:
15213:
15214: use_additional=yes
15215:
15216: acl_save_prefix="$prefix"
15217: prefix="$acl_final_prefix"
15218: acl_save_exec_prefix="$exec_prefix"
15219: exec_prefix="$acl_final_exec_prefix"
15220:
15221: eval additional_includedir=\"$includedir\"
15222: eval additional_libdir=\"$libdir\"
15223:
15224: exec_prefix="$acl_save_exec_prefix"
15225: prefix="$acl_save_prefix"
15226:
15227:
15228: # Check whether --with-libintl-prefix was given.
15229: if test "${with_libintl_prefix+set}" = set; then
15230: withval=$with_libintl_prefix;
15231: if test "X$withval" = "Xno"; then
15232: use_additional=no
15233: else
15234: if test "X$withval" = "X"; then
15235:
15236: acl_save_prefix="$prefix"
15237: prefix="$acl_final_prefix"
15238: acl_save_exec_prefix="$exec_prefix"
15239: exec_prefix="$acl_final_exec_prefix"
15240:
15241: eval additional_includedir=\"$includedir\"
15242: eval additional_libdir=\"$libdir\"
15243:
15244: exec_prefix="$acl_save_exec_prefix"
15245: prefix="$acl_save_prefix"
15246:
15247: else
15248: additional_includedir="$withval/include"
15249: additional_libdir="$withval/$acl_libdirstem"
15250: if test "$acl_libdirstem2" != "$acl_libdirstem" \
15251: && ! test -d "$withval/$acl_libdirstem"; then
15252: additional_libdir="$withval/$acl_libdirstem2"
15253: fi
15254: fi
15255: fi
15256:
15257: fi
15258:
15259: LIBINTL=
15260: LTLIBINTL=
15261: INCINTL=
15262: LIBINTL_PREFIX=
15263: HAVE_LIBINTL=
15264: rpathdirs=
15265: ltrpathdirs=
15266: names_already_handled=
15267: names_next_round='intl '
15268: while test -n "$names_next_round"; do
15269: names_this_round="$names_next_round"
15270: names_next_round=
15271: for name in $names_this_round; do
15272: already_handled=
15273: for n in $names_already_handled; do
15274: if test "$n" = "$name"; then
15275: already_handled=yes
15276: break
15277: fi
15278: done
15279: if test -z "$already_handled"; then
15280: names_already_handled="$names_already_handled $name"
15281: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15282: eval value=\"\$HAVE_LIB$uppername\"
15283: if test -n "$value"; then
15284: if test "$value" = yes; then
15285: eval value=\"\$LIB$uppername\"
15286: test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15287: eval value=\"\$LTLIB$uppername\"
15288: test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15289: else
15290: :
15291: fi
15292: else
15293: found_dir=
15294: found_la=
15295: found_so=
15296: found_a=
15297: eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15298: if test -n "$acl_shlibext"; then
15299: shrext=".$acl_shlibext" # typically: shrext=.so
15300: else
15301: shrext=
15302: fi
15303: if test $use_additional = yes; then
15304: dir="$additional_libdir"
15305: if test -n "$acl_shlibext"; then
15306: if test -f "$dir/$libname$shrext"; then
15307: found_dir="$dir"
15308: found_so="$dir/$libname$shrext"
15309: else
15310: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15311: ver=`(cd "$dir" && \
15312: for f in "$libname$shrext".*; do echo "$f"; done \
15313: | sed -e "s,^$libname$shrext\\\\.,," \
15314: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15315: | sed 1q ) 2>/dev/null`
15316: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15317: found_dir="$dir"
15318: found_so="$dir/$libname$shrext.$ver"
15319: fi
15320: else
15321: eval library_names=\"$acl_library_names_spec\"
15322: for f in $library_names; do
15323: if test -f "$dir/$f"; then
15324: found_dir="$dir"
15325: found_so="$dir/$f"
15326: break
15327: fi
15328: done
15329: fi
15330: fi
15331: fi
15332: if test "X$found_dir" = "X"; then
15333: if test -f "$dir/$libname.$acl_libext"; then
15334: found_dir="$dir"
15335: found_a="$dir/$libname.$acl_libext"
15336: fi
15337: fi
15338: if test "X$found_dir" != "X"; then
15339: if test -f "$dir/$libname.la"; then
15340: found_la="$dir/$libname.la"
15341: fi
15342: fi
15343: fi
15344: if test "X$found_dir" = "X"; then
15345: for x in $LDFLAGS $LTLIBINTL; do
15346:
15347: acl_save_prefix="$prefix"
15348: prefix="$acl_final_prefix"
15349: acl_save_exec_prefix="$exec_prefix"
15350: exec_prefix="$acl_final_exec_prefix"
15351: eval x=\"$x\"
15352: exec_prefix="$acl_save_exec_prefix"
15353: prefix="$acl_save_prefix"
15354:
15355: case "$x" in
15356: -L*)
15357: dir=`echo "X$x" | sed -e 's/^X-L//'`
15358: if test -n "$acl_shlibext"; then
15359: if test -f "$dir/$libname$shrext"; then
15360: found_dir="$dir"
15361: found_so="$dir/$libname$shrext"
15362: else
15363: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15364: ver=`(cd "$dir" && \
15365: for f in "$libname$shrext".*; do echo "$f"; done \
15366: | sed -e "s,^$libname$shrext\\\\.,," \
15367: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15368: | sed 1q ) 2>/dev/null`
15369: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15370: found_dir="$dir"
15371: found_so="$dir/$libname$shrext.$ver"
15372: fi
15373: else
15374: eval library_names=\"$acl_library_names_spec\"
15375: for f in $library_names; do
15376: if test -f "$dir/$f"; then
15377: found_dir="$dir"
15378: found_so="$dir/$f"
15379: break
15380: fi
15381: done
15382: fi
15383: fi
15384: fi
15385: if test "X$found_dir" = "X"; then
15386: if test -f "$dir/$libname.$acl_libext"; then
15387: found_dir="$dir"
15388: found_a="$dir/$libname.$acl_libext"
15389: fi
15390: fi
15391: if test "X$found_dir" != "X"; then
15392: if test -f "$dir/$libname.la"; then
15393: found_la="$dir/$libname.la"
15394: fi
15395: fi
15396: ;;
15397: esac
15398: if test "X$found_dir" != "X"; then
15399: break
15400: fi
15401: done
15402: fi
15403: if test "X$found_dir" != "X"; then
15404: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15405: if test "X$found_so" != "X"; then
15406: if test "$enable_rpath" = no \
15407: || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15408: || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15409: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15410: else
15411: haveit=
15412: for x in $ltrpathdirs; do
15413: if test "X$x" = "X$found_dir"; then
15414: haveit=yes
15415: break
15416: fi
15417: done
15418: if test -z "$haveit"; then
15419: ltrpathdirs="$ltrpathdirs $found_dir"
15420: fi
15421: if test "$acl_hardcode_direct" = yes; then
15422: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15423: else
15424: if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15425: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15426: haveit=
15427: for x in $rpathdirs; do
15428: if test "X$x" = "X$found_dir"; then
15429: haveit=yes
15430: break
15431: fi
15432: done
15433: if test -z "$haveit"; then
15434: rpathdirs="$rpathdirs $found_dir"
15435: fi
15436: else
15437: haveit=
15438: for x in $LDFLAGS $LIBINTL; do
15439:
15440: acl_save_prefix="$prefix"
15441: prefix="$acl_final_prefix"
15442: acl_save_exec_prefix="$exec_prefix"
15443: exec_prefix="$acl_final_exec_prefix"
15444: eval x=\"$x\"
15445: exec_prefix="$acl_save_exec_prefix"
15446: prefix="$acl_save_prefix"
15447:
15448: if test "X$x" = "X-L$found_dir"; then
15449: haveit=yes
15450: break
15451: fi
15452: done
15453: if test -z "$haveit"; then
15454: LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15455: fi
15456: if test "$acl_hardcode_minus_L" != no; then
15457: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15458: else
15459: LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15460: fi
15461: fi
15462: fi
15463: fi
15464: else
15465: if test "X$found_a" != "X"; then
15466: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15467: else
15468: LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15469: fi
15470: fi
15471: additional_includedir=
15472: case "$found_dir" in
15473: */$acl_libdirstem | */$acl_libdirstem/)
15474: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15475: if test "$name" = 'intl'; then
15476: LIBINTL_PREFIX="$basedir"
15477: fi
15478: additional_includedir="$basedir/include"
15479: ;;
15480: */$acl_libdirstem2 | */$acl_libdirstem2/)
15481: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15482: if test "$name" = 'intl'; then
15483: LIBINTL_PREFIX="$basedir"
15484: fi
15485: additional_includedir="$basedir/include"
15486: ;;
15487: esac
15488: if test "X$additional_includedir" != "X"; then
15489: if test "X$additional_includedir" != "X/usr/include"; then
15490: haveit=
15491: if test "X$additional_includedir" = "X/usr/local/include"; then
15492: if test -n "$GCC"; then
15493: case $host_os in
15494: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15495: esac
15496: fi
15497: fi
15498: if test -z "$haveit"; then
15499: for x in $CPPFLAGS $INCINTL; do
15500:
15501: acl_save_prefix="$prefix"
15502: prefix="$acl_final_prefix"
15503: acl_save_exec_prefix="$exec_prefix"
15504: exec_prefix="$acl_final_exec_prefix"
15505: eval x=\"$x\"
15506: exec_prefix="$acl_save_exec_prefix"
15507: prefix="$acl_save_prefix"
15508:
15509: if test "X$x" = "X-I$additional_includedir"; then
15510: haveit=yes
15511: break
15512: fi
15513: done
15514: if test -z "$haveit"; then
15515: if test -d "$additional_includedir"; then
15516: INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15517: fi
15518: fi
15519: fi
15520: fi
15521: fi
15522: if test -n "$found_la"; then
15523: save_libdir="$libdir"
15524: case "$found_la" in
15525: */* | *\\*) . "$found_la" ;;
15526: *) . "./$found_la" ;;
15527: esac
15528: libdir="$save_libdir"
15529: for dep in $dependency_libs; do
15530: case "$dep" in
15531: -L*)
15532: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15533: if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15534: && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15535: haveit=
15536: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15537: || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15538: if test -n "$GCC"; then
15539: case $host_os in
15540: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15541: esac
15542: fi
15543: fi
15544: if test -z "$haveit"; then
15545: haveit=
15546: for x in $LDFLAGS $LIBINTL; do
15547:
15548: acl_save_prefix="$prefix"
15549: prefix="$acl_final_prefix"
15550: acl_save_exec_prefix="$exec_prefix"
15551: exec_prefix="$acl_final_exec_prefix"
15552: eval x=\"$x\"
15553: exec_prefix="$acl_save_exec_prefix"
15554: prefix="$acl_save_prefix"
15555:
15556: if test "X$x" = "X-L$additional_libdir"; then
15557: haveit=yes
15558: break
15559: fi
15560: done
15561: if test -z "$haveit"; then
15562: if test -d "$additional_libdir"; then
15563: LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15564: fi
15565: fi
15566: haveit=
15567: for x in $LDFLAGS $LTLIBINTL; do
15568:
15569: acl_save_prefix="$prefix"
15570: prefix="$acl_final_prefix"
15571: acl_save_exec_prefix="$exec_prefix"
15572: exec_prefix="$acl_final_exec_prefix"
15573: eval x=\"$x\"
15574: exec_prefix="$acl_save_exec_prefix"
15575: prefix="$acl_save_prefix"
15576:
15577: if test "X$x" = "X-L$additional_libdir"; then
15578: haveit=yes
15579: break
15580: fi
15581: done
15582: if test -z "$haveit"; then
15583: if test -d "$additional_libdir"; then
15584: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15585: fi
15586: fi
15587: fi
15588: fi
15589: ;;
15590: -R*)
15591: dir=`echo "X$dep" | sed -e 's/^X-R//'`
15592: if test "$enable_rpath" != no; then
15593: haveit=
15594: for x in $rpathdirs; do
15595: if test "X$x" = "X$dir"; then
15596: haveit=yes
15597: break
15598: fi
15599: done
15600: if test -z "$haveit"; then
15601: rpathdirs="$rpathdirs $dir"
15602: fi
15603: haveit=
15604: for x in $ltrpathdirs; do
15605: if test "X$x" = "X$dir"; then
15606: haveit=yes
15607: break
15608: fi
15609: done
15610: if test -z "$haveit"; then
15611: ltrpathdirs="$ltrpathdirs $dir"
15612: fi
15613: fi
15614: ;;
15615: -l*)
15616: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15617: ;;
15618: *.la)
15619: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15620: ;;
15621: *)
15622: LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15623: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15624: ;;
15625: esac
15626: done
15627: fi
15628: else
15629: LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15630: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15631: fi
15632: fi
15633: fi
15634: done
15635: done
15636: if test "X$rpathdirs" != "X"; then
15637: if test -n "$acl_hardcode_libdir_separator"; then
15638: alldirs=
15639: for found_dir in $rpathdirs; do
15640: alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15641: done
15642: acl_save_libdir="$libdir"
15643: libdir="$alldirs"
15644: eval flag=\"$acl_hardcode_libdir_flag_spec\"
15645: libdir="$acl_save_libdir"
15646: LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15647: else
15648: for found_dir in $rpathdirs; do
15649: acl_save_libdir="$libdir"
15650: libdir="$found_dir"
15651: eval flag=\"$acl_hardcode_libdir_flag_spec\"
15652: libdir="$acl_save_libdir"
15653: LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15654: done
15655: fi
15656: fi
15657: if test "X$ltrpathdirs" != "X"; then
15658: for found_dir in $ltrpathdirs; do
15659: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15660: done
15661: fi
15662:
15663:
15664:
15665:
15666:
15667:
15668: { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
15669: $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15670: if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
15671: $as_echo_n "(cached) " >&6
15672: else
15673: gt_save_CPPFLAGS="$CPPFLAGS"
15674: CPPFLAGS="$CPPFLAGS $INCINTL"
15675: gt_save_LIBS="$LIBS"
15676: LIBS="$LIBS $LIBINTL"
15677: cat >conftest.$ac_ext <<_ACEOF
15678: /* confdefs.h. */
15679: _ACEOF
15680: cat confdefs.h >>conftest.$ac_ext
15681: cat >>conftest.$ac_ext <<_ACEOF
15682: /* end confdefs.h. */
15683: #include <libintl.h>
15684: $gt_revision_test_code
15685: extern int _nl_msg_cat_cntr;
15686: extern
15687: #ifdef __cplusplus
15688: "C"
15689: #endif
15690: const char *_nl_expand_alias (const char *);
15691: int
15692: main ()
15693: {
15694: bindtextdomain ("", "");
15695: return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15696: ;
15697: return 0;
15698: }
15699: _ACEOF
15700: rm -f conftest.$ac_objext conftest$ac_exeext
15701: if { (ac_try="$ac_link"
15702: case "(($ac_try" in
15703: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704: *) ac_try_echo=$ac_try;;
15705: esac
15706: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707: $as_echo "$ac_try_echo") >&5
15708: (eval "$ac_link") 2>conftest.er1
15709: ac_status=$?
15710: grep -v '^ *+' conftest.er1 >conftest.err
15711: rm -f conftest.er1
15712: cat conftest.err >&5
15713: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714: (exit $ac_status); } && {
15715: test -z "$ac_c_werror_flag" ||
15716: test ! -s conftest.err
15717: } && test -s conftest$ac_exeext && {
15718: test "$cross_compiling" = yes ||
15719: $as_test_x conftest$ac_exeext
15720: }; then
15721: eval "$gt_func_gnugettext_libintl=yes"
15722: else
15723: $as_echo "$as_me: failed program was:" >&5
15724: sed 's/^/| /' conftest.$ac_ext >&5
15725:
15726: eval "$gt_func_gnugettext_libintl=no"
15727: fi
15728:
15729: rm -rf conftest.dSYM
15730: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15731: conftest$ac_exeext conftest.$ac_ext
15732: if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15733: LIBS="$LIBS $LIBICONV"
15734: cat >conftest.$ac_ext <<_ACEOF
15735: /* confdefs.h. */
15736: _ACEOF
15737: cat confdefs.h >>conftest.$ac_ext
15738: cat >>conftest.$ac_ext <<_ACEOF
15739: /* end confdefs.h. */
15740: #include <libintl.h>
15741: $gt_revision_test_code
15742: extern int _nl_msg_cat_cntr;
15743: extern
15744: #ifdef __cplusplus
15745: "C"
15746: #endif
15747: const char *_nl_expand_alias (const char *);
15748: int
15749: main ()
15750: {
15751: bindtextdomain ("", "");
15752: return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15753: ;
15754: return 0;
15755: }
15756: _ACEOF
15757: rm -f conftest.$ac_objext conftest$ac_exeext
15758: if { (ac_try="$ac_link"
15759: case "(($ac_try" in
15760: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761: *) ac_try_echo=$ac_try;;
15762: esac
15763: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15764: $as_echo "$ac_try_echo") >&5
15765: (eval "$ac_link") 2>conftest.er1
15766: ac_status=$?
15767: grep -v '^ *+' conftest.er1 >conftest.err
15768: rm -f conftest.er1
15769: cat conftest.err >&5
15770: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771: (exit $ac_status); } && {
15772: test -z "$ac_c_werror_flag" ||
15773: test ! -s conftest.err
15774: } && test -s conftest$ac_exeext && {
15775: test "$cross_compiling" = yes ||
15776: $as_test_x conftest$ac_exeext
15777: }; then
15778: LIBINTL="$LIBINTL $LIBICONV"
15779: LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15780: eval "$gt_func_gnugettext_libintl=yes"
15781:
15782: else
15783: $as_echo "$as_me: failed program was:" >&5
15784: sed 's/^/| /' conftest.$ac_ext >&5
15785:
15786:
15787: fi
15788:
15789: rm -rf conftest.dSYM
15790: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791: conftest$ac_exeext conftest.$ac_ext
15792: fi
15793: CPPFLAGS="$gt_save_CPPFLAGS"
15794: LIBS="$gt_save_LIBS"
15795: fi
15796: ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
15797: $as_echo "$as_val"'`
15798: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15799: $as_echo "$ac_res" >&6; }
15800: fi
15801:
15802: if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15803: || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15804: && test "$PACKAGE" != gettext-runtime \
15805: && test "$PACKAGE" != gettext-tools; }; then
15806: gt_use_preinstalled_gnugettext=yes
15807: else
15808: LIBINTL=
15809: LTLIBINTL=
15810: INCINTL=
15811: fi
15812:
15813:
15814:
15815: if test -n "$INTL_MACOSX_LIBS"; then
15816: if test "$gt_use_preinstalled_gnugettext" = "yes" \
15817: || test "$nls_cv_use_gnu_gettext" = "yes"; then
15818: LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15819: LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15820: fi
15821: fi
15822:
15823: if test "$gt_use_preinstalled_gnugettext" = "yes" \
15824: || test "$nls_cv_use_gnu_gettext" = "yes"; then
15825:
15826: cat >>confdefs.h <<\_ACEOF
15827: #define ENABLE_NLS 1
15828: _ACEOF
15829:
15830: else
15831: USE_NLS=no
15832: fi
15833: fi
15834:
15835: { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
15836: $as_echo_n "checking whether to use NLS... " >&6; }
15837: { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
15838: $as_echo "$USE_NLS" >&6; }
15839: if test "$USE_NLS" = "yes"; then
15840: { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
15841: $as_echo_n "checking where the gettext function comes from... " >&6; }
15842: if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15843: if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15844: gt_source="external libintl"
15845: else
15846: gt_source="libc"
15847: fi
15848: else
15849: gt_source="included intl directory"
15850: fi
15851: { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
15852: $as_echo "$gt_source" >&6; }
15853: fi
15854:
15855: if test "$USE_NLS" = "yes"; then
15856:
15857: if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15858: if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15859: { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
15860: $as_echo_n "checking how to link with libintl... " >&6; }
15861: { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
15862: $as_echo "$LIBINTL" >&6; }
15863:
15864: for element in $INCINTL; do
15865: haveit=
15866: for x in $CPPFLAGS; do
15867:
15868: acl_save_prefix="$prefix"
15869: prefix="$acl_final_prefix"
15870: acl_save_exec_prefix="$exec_prefix"
15871: exec_prefix="$acl_final_exec_prefix"
15872: eval x=\"$x\"
15873: exec_prefix="$acl_save_exec_prefix"
15874: prefix="$acl_save_prefix"
15875:
15876: if test "X$x" = "X$element"; then
15877: haveit=yes
15878: break
15879: fi
15880: done
15881: if test -z "$haveit"; then
15882: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15883: fi
15884: done
15885:
15886: fi
15887:
15888:
15889: cat >>confdefs.h <<\_ACEOF
15890: #define HAVE_GETTEXT 1
15891: _ACEOF
15892:
15893:
15894: cat >>confdefs.h <<\_ACEOF
15895: #define HAVE_DCGETTEXT 1
15896: _ACEOF
15897:
15898: fi
15899:
15900: POSUB=po
15901: fi
15902:
15903:
15904:
15905: INTLLIBS="$LIBINTL"
15906:
15907:
15908:
15909:
15910:
15911:
15912:
15913:
15914:
15915:
15916: { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
15917: $as_echo_n "checking for mbstate_t... " >&6; }
15918: if test "${ac_cv_type_mbstate_t+set}" = set; then
15919: $as_echo_n "(cached) " >&6
15920: else
15921: cat >conftest.$ac_ext <<_ACEOF
15922: /* confdefs.h. */
15923: _ACEOF
15924: cat confdefs.h >>conftest.$ac_ext
15925: cat >>conftest.$ac_ext <<_ACEOF
15926: /* end confdefs.h. */
15927: $ac_includes_default
15928: # include <wchar.h>
15929: int
15930: main ()
15931: {
15932: mbstate_t x; return sizeof x;
15933: ;
15934: return 0;
15935: }
15936: _ACEOF
15937: rm -f conftest.$ac_objext
15938: if { (ac_try="$ac_compile"
15939: case "(($ac_try" in
15940: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941: *) ac_try_echo=$ac_try;;
15942: esac
15943: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15944: $as_echo "$ac_try_echo") >&5
15945: (eval "$ac_compile") 2>conftest.er1
15946: ac_status=$?
15947: grep -v '^ *+' conftest.er1 >conftest.err
15948: rm -f conftest.er1
15949: cat conftest.err >&5
15950: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951: (exit $ac_status); } && {
15952: test -z "$ac_c_werror_flag" ||
15953: test ! -s conftest.err
15954: } && test -s conftest.$ac_objext; then
15955: ac_cv_type_mbstate_t=yes
15956: else
15957: $as_echo "$as_me: failed program was:" >&5
15958: sed 's/^/| /' conftest.$ac_ext >&5
15959:
15960: ac_cv_type_mbstate_t=no
15961: fi
15962:
15963: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15964: fi
15965: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
15966: $as_echo "$ac_cv_type_mbstate_t" >&6; }
15967: if test $ac_cv_type_mbstate_t = yes; then
15968:
15969: cat >>confdefs.h <<\_ACEOF
15970: #define HAVE_MBSTATE_T 1
15971: _ACEOF
15972:
15973: else
15974:
15975: cat >>confdefs.h <<\_ACEOF
15976: #define mbstate_t int
15977: _ACEOF
15978:
15979: fi
15980:
15981:
15982: { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
15983: $as_echo_n "checking for wchar_t... " >&6; }
15984: if test "${gt_cv_c_wchar_t+set}" = set; then
15985: $as_echo_n "(cached) " >&6
15986: else
15987: cat >conftest.$ac_ext <<_ACEOF
15988: /* confdefs.h. */
15989: _ACEOF
15990: cat confdefs.h >>conftest.$ac_ext
15991: cat >>conftest.$ac_ext <<_ACEOF
15992: /* end confdefs.h. */
15993: #include <stddef.h>
15994: wchar_t foo = (wchar_t)'\0';
15995: int
15996: main ()
15997: {
15998:
15999: ;
16000: return 0;
16001: }
16002: _ACEOF
16003: rm -f conftest.$ac_objext
16004: if { (ac_try="$ac_compile"
16005: case "(($ac_try" in
16006: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007: *) ac_try_echo=$ac_try;;
16008: esac
16009: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16010: $as_echo "$ac_try_echo") >&5
16011: (eval "$ac_compile") 2>conftest.er1
16012: ac_status=$?
16013: grep -v '^ *+' conftest.er1 >conftest.err
16014: rm -f conftest.er1
16015: cat conftest.err >&5
16016: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017: (exit $ac_status); } && {
16018: test -z "$ac_c_werror_flag" ||
16019: test ! -s conftest.err
16020: } && test -s conftest.$ac_objext; then
16021: gt_cv_c_wchar_t=yes
16022: else
16023: $as_echo "$as_me: failed program was:" >&5
16024: sed 's/^/| /' conftest.$ac_ext >&5
16025:
16026: gt_cv_c_wchar_t=no
16027: fi
16028:
16029: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030: fi
16031: { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16032: $as_echo "$gt_cv_c_wchar_t" >&6; }
16033: if test $gt_cv_c_wchar_t = yes; then
16034:
16035: cat >>confdefs.h <<\_ACEOF
16036: #define HAVE_WCHAR_T 1
16037: _ACEOF
16038:
16039: fi
16040:
16041:
16042:
16043: if test "$am_cv_func_iconv" = yes -a -n "$am_cv_proto_iconv_arg1"; then
16044: ICONV_CONST="const"
16045: else
16046: ICONV_CONST=""
16047: fi
16048:
16049:
16050: if test $gt_cv_c_wchar_t = yes; then
16051: HAVE_WCHAR_T=1
16052: else
16053: HAVE_WCHAR_T=0
16054: fi
16055:
16056:
16057:
16058:
16059:
16060:
16061:
16062: for ac_func in getc_unlocked mbrtowc wcrtomb mbsinit setlocale
16063: do
16064: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16065: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16066: $as_echo_n "checking for $ac_func... " >&6; }
16067: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16068: $as_echo_n "(cached) " >&6
16069: else
16070: cat >conftest.$ac_ext <<_ACEOF
16071: /* confdefs.h. */
16072: _ACEOF
16073: cat confdefs.h >>conftest.$ac_ext
16074: cat >>conftest.$ac_ext <<_ACEOF
16075: /* end confdefs.h. */
16076: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16077: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16078: #define $ac_func innocuous_$ac_func
16079:
16080: /* System header to define __stub macros and hopefully few prototypes,
16081: which can conflict with char $ac_func (); below.
16082: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16083: <limits.h> exists even on freestanding compilers. */
16084:
16085: #ifdef __STDC__
16086: # include <limits.h>
16087: #else
16088: # include <assert.h>
16089: #endif
16090:
16091: #undef $ac_func
16092:
16093: /* Override any GCC internal prototype to avoid an error.
16094: Use char because int might match the return type of a GCC
16095: builtin and then its argument prototype would still apply. */
16096: #ifdef __cplusplus
16097: extern "C"
16098: #endif
16099: char $ac_func ();
16100: /* The GNU C library defines this for functions which it implements
16101: to always fail with ENOSYS. Some functions are actually named
16102: something starting with __ and the normal name is an alias. */
16103: #if defined __stub_$ac_func || defined __stub___$ac_func
16104: choke me
16105: #endif
16106:
16107: int
16108: main ()
16109: {
16110: return $ac_func ();
16111: ;
16112: return 0;
16113: }
16114: _ACEOF
16115: rm -f conftest.$ac_objext conftest$ac_exeext
16116: if { (ac_try="$ac_link"
16117: case "(($ac_try" in
16118: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119: *) ac_try_echo=$ac_try;;
16120: esac
16121: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16122: $as_echo "$ac_try_echo") >&5
16123: (eval "$ac_link") 2>conftest.er1
16124: ac_status=$?
16125: grep -v '^ *+' conftest.er1 >conftest.err
16126: rm -f conftest.er1
16127: cat conftest.err >&5
16128: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129: (exit $ac_status); } && {
16130: test -z "$ac_c_werror_flag" ||
16131: test ! -s conftest.err
16132: } && test -s conftest$ac_exeext && {
16133: test "$cross_compiling" = yes ||
16134: $as_test_x conftest$ac_exeext
16135: }; then
16136: eval "$as_ac_var=yes"
16137: else
16138: $as_echo "$as_me: failed program was:" >&5
16139: sed 's/^/| /' conftest.$ac_ext >&5
16140:
16141: eval "$as_ac_var=no"
16142: fi
16143:
16144: rm -rf conftest.dSYM
16145: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16146: conftest$ac_exeext conftest.$ac_ext
16147: fi
16148: ac_res=`eval 'as_val=${'$as_ac_var'}
16149: $as_echo "$as_val"'`
16150: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16151: $as_echo "$ac_res" >&6; }
16152: as_val=`eval 'as_val=${'$as_ac_var'}
16153: $as_echo "$as_val"'`
16154: if test "x$as_val" = x""yes; then
16155: cat >>confdefs.h <<_ACEOF
16156: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16157: _ACEOF
16158:
16159: fi
16160: done
16161:
16162:
16163: if test $ac_cv_func_wcrtomb = yes || test $ac_cv_func_mbrtowc = yes; then
16164: USE_MBSTATE_T=1
16165: else
16166: USE_MBSTATE_T=0
16167: fi
16168:
16169:
16170: { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
16171: $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
16172: if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
16173: $as_echo_n "(cached) " >&6
16174: else
16175: cat >conftest.$ac_ext <<_ACEOF
16176: #include <wchar.h>
16177: wchar_t w;
16178: _ACEOF
16179: rm -f conftest.$ac_objext
16180: if { (ac_try="$ac_compile"
16181: case "(($ac_try" in
16182: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183: *) ac_try_echo=$ac_try;;
16184: esac
16185: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186: $as_echo "$ac_try_echo") >&5
16187: (eval "$ac_compile") 2>conftest.er1
16188: ac_status=$?
16189: grep -v '^ *+' conftest.er1 >conftest.err
16190: rm -f conftest.er1
16191: cat conftest.err >&5
16192: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193: (exit $ac_status); } && {
16194: test -z "$ac_c_werror_flag" ||
16195: test ! -s conftest.err
16196: } && test -s conftest.$ac_objext; then
16197: gl_cv_header_wchar_h_standalone=yes
16198: else
16199: $as_echo "$as_me: failed program was:" >&5
16200: sed 's/^/| /' conftest.$ac_ext >&5
16201:
16202: gl_cv_header_wchar_h_standalone=no
16203: fi
16204:
16205: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206: fi
16207: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
16208: $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
16209: if test $gl_cv_header_wchar_h_standalone = yes; then
16210: BROKEN_WCHAR_H=0
16211: else
16212: BROKEN_WCHAR_H=1
16213: fi
16214:
16215:
16216:
16217: for ac_func in memmove
16218: do
16219: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16220: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16221: $as_echo_n "checking for $ac_func... " >&6; }
16222: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16223: $as_echo_n "(cached) " >&6
16224: else
16225: cat >conftest.$ac_ext <<_ACEOF
16226: /* confdefs.h. */
16227: _ACEOF
16228: cat confdefs.h >>conftest.$ac_ext
16229: cat >>conftest.$ac_ext <<_ACEOF
16230: /* end confdefs.h. */
16231: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16232: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16233: #define $ac_func innocuous_$ac_func
16234:
16235: /* System header to define __stub macros and hopefully few prototypes,
16236: which can conflict with char $ac_func (); below.
16237: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16238: <limits.h> exists even on freestanding compilers. */
16239:
16240: #ifdef __STDC__
16241: # include <limits.h>
16242: #else
16243: # include <assert.h>
16244: #endif
16245:
16246: #undef $ac_func
16247:
16248: /* Override any GCC internal prototype to avoid an error.
16249: Use char because int might match the return type of a GCC
16250: builtin and then its argument prototype would still apply. */
16251: #ifdef __cplusplus
16252: extern "C"
16253: #endif
16254: char $ac_func ();
16255: /* The GNU C library defines this for functions which it implements
16256: to always fail with ENOSYS. Some functions are actually named
16257: something starting with __ and the normal name is an alias. */
16258: #if defined __stub_$ac_func || defined __stub___$ac_func
16259: choke me
16260: #endif
16261:
16262: int
16263: main ()
16264: {
16265: return $ac_func ();
16266: ;
16267: return 0;
16268: }
16269: _ACEOF
16270: rm -f conftest.$ac_objext conftest$ac_exeext
16271: if { (ac_try="$ac_link"
16272: case "(($ac_try" in
16273: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274: *) ac_try_echo=$ac_try;;
16275: esac
16276: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16277: $as_echo "$ac_try_echo") >&5
16278: (eval "$ac_link") 2>conftest.er1
16279: ac_status=$?
16280: grep -v '^ *+' conftest.er1 >conftest.err
16281: rm -f conftest.er1
16282: cat conftest.err >&5
16283: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284: (exit $ac_status); } && {
16285: test -z "$ac_c_werror_flag" ||
16286: test ! -s conftest.err
16287: } && test -s conftest$ac_exeext && {
16288: test "$cross_compiling" = yes ||
16289: $as_test_x conftest$ac_exeext
16290: }; then
16291: eval "$as_ac_var=yes"
16292: else
16293: $as_echo "$as_me: failed program was:" >&5
16294: sed 's/^/| /' conftest.$ac_ext >&5
16295:
16296: eval "$as_ac_var=no"
16297: fi
16298:
16299: rm -rf conftest.dSYM
16300: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16301: conftest$ac_exeext conftest.$ac_ext
16302: fi
16303: ac_res=`eval 'as_val=${'$as_ac_var'}
16304: $as_echo "$as_val"'`
16305: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16306: $as_echo "$ac_res" >&6; }
16307: as_val=`eval 'as_val=${'$as_ac_var'}
16308: $as_echo "$as_val"'`
16309: if test "x$as_val" = x""yes; then
16310: cat >>confdefs.h <<_ACEOF
16311: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16312: _ACEOF
16313:
16314: else
16315: SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
16316: fi
16317: done
16318:
16319:
16320:
16321: { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16322: $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16323: if test "${am_cv_langinfo_codeset+set}" = set; then
16324: $as_echo_n "(cached) " >&6
16325: else
16326: cat >conftest.$ac_ext <<_ACEOF
16327: /* confdefs.h. */
16328: _ACEOF
16329: cat confdefs.h >>conftest.$ac_ext
16330: cat >>conftest.$ac_ext <<_ACEOF
16331: /* end confdefs.h. */
16332: #include <langinfo.h>
16333: int
16334: main ()
16335: {
16336: char* cs = nl_langinfo(CODESET); return !cs;
16337: ;
16338: return 0;
16339: }
16340: _ACEOF
16341: rm -f conftest.$ac_objext conftest$ac_exeext
16342: if { (ac_try="$ac_link"
16343: case "(($ac_try" in
16344: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345: *) ac_try_echo=$ac_try;;
16346: esac
16347: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16348: $as_echo "$ac_try_echo") >&5
16349: (eval "$ac_link") 2>conftest.er1
16350: ac_status=$?
16351: grep -v '^ *+' conftest.er1 >conftest.err
16352: rm -f conftest.er1
16353: cat conftest.err >&5
16354: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355: (exit $ac_status); } && {
16356: test -z "$ac_c_werror_flag" ||
16357: test ! -s conftest.err
16358: } && test -s conftest$ac_exeext && {
16359: test "$cross_compiling" = yes ||
16360: $as_test_x conftest$ac_exeext
16361: }; then
16362: am_cv_langinfo_codeset=yes
16363: else
16364: $as_echo "$as_me: failed program was:" >&5
16365: sed 's/^/| /' conftest.$ac_ext >&5
16366:
16367: am_cv_langinfo_codeset=no
16368: fi
16369:
16370: rm -rf conftest.dSYM
16371: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16372: conftest$ac_exeext conftest.$ac_ext
16373:
16374: fi
16375: { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16376: $as_echo "$am_cv_langinfo_codeset" >&6; }
16377: if test $am_cv_langinfo_codeset = yes; then
16378:
16379: cat >>confdefs.h <<\_ACEOF
16380: #define HAVE_LANGINFO_CODESET 1
16381: _ACEOF
16382:
16383: fi
16384:
16385:
16386:
16387:
16388:
16389: for ac_header in wchar.h
16390: do
16391: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16392: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16393: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16394: $as_echo_n "checking for $ac_header... " >&6; }
16395: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16396: $as_echo_n "(cached) " >&6
16397: fi
16398: ac_res=`eval 'as_val=${'$as_ac_Header'}
16399: $as_echo "$as_val"'`
16400: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16401: $as_echo "$ac_res" >&6; }
16402: else
16403: # Is the header compilable?
16404: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16405: $as_echo_n "checking $ac_header usability... " >&6; }
16406: cat >conftest.$ac_ext <<_ACEOF
16407: /* confdefs.h. */
16408: _ACEOF
16409: cat confdefs.h >>conftest.$ac_ext
16410: cat >>conftest.$ac_ext <<_ACEOF
16411: /* end confdefs.h. */
16412: $ac_includes_default
16413: #include <$ac_header>
16414: _ACEOF
16415: rm -f conftest.$ac_objext
16416: if { (ac_try="$ac_compile"
16417: case "(($ac_try" in
16418: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419: *) ac_try_echo=$ac_try;;
16420: esac
16421: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16422: $as_echo "$ac_try_echo") >&5
16423: (eval "$ac_compile") 2>conftest.er1
16424: ac_status=$?
16425: grep -v '^ *+' conftest.er1 >conftest.err
16426: rm -f conftest.er1
16427: cat conftest.err >&5
16428: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429: (exit $ac_status); } && {
16430: test -z "$ac_c_werror_flag" ||
16431: test ! -s conftest.err
16432: } && test -s conftest.$ac_objext; then
16433: ac_header_compiler=yes
16434: else
16435: $as_echo "$as_me: failed program was:" >&5
16436: sed 's/^/| /' conftest.$ac_ext >&5
16437:
16438: ac_header_compiler=no
16439: fi
16440:
16441: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443: $as_echo "$ac_header_compiler" >&6; }
16444:
16445: # Is the header present?
16446: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447: $as_echo_n "checking $ac_header presence... " >&6; }
16448: cat >conftest.$ac_ext <<_ACEOF
16449: /* confdefs.h. */
16450: _ACEOF
16451: cat confdefs.h >>conftest.$ac_ext
16452: cat >>conftest.$ac_ext <<_ACEOF
16453: /* end confdefs.h. */
16454: #include <$ac_header>
16455: _ACEOF
16456: if { (ac_try="$ac_cpp conftest.$ac_ext"
16457: case "(($ac_try" in
16458: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459: *) ac_try_echo=$ac_try;;
16460: esac
16461: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16462: $as_echo "$ac_try_echo") >&5
16463: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16464: ac_status=$?
16465: grep -v '^ *+' conftest.er1 >conftest.err
16466: rm -f conftest.er1
16467: cat conftest.err >&5
16468: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469: (exit $ac_status); } >/dev/null && {
16470: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16471: test ! -s conftest.err
16472: }; then
16473: ac_header_preproc=yes
16474: else
16475: $as_echo "$as_me: failed program was:" >&5
16476: sed 's/^/| /' conftest.$ac_ext >&5
16477:
16478: ac_header_preproc=no
16479: fi
16480:
16481: rm -f conftest.err conftest.$ac_ext
16482: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16483: $as_echo "$ac_header_preproc" >&6; }
16484:
16485: # So? What about this header?
16486: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16487: yes:no: )
16488: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16489: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16490: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16491: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16492: ac_header_preproc=yes
16493: ;;
16494: no:yes:* )
16495: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16496: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16497: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16498: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16499: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16500: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16501: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16502: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16503: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16504: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16505: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16506: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16507:
16508: ;;
16509: esac
16510: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16511: $as_echo_n "checking for $ac_header... " >&6; }
16512: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16513: $as_echo_n "(cached) " >&6
16514: else
16515: eval "$as_ac_Header=\$ac_header_preproc"
16516: fi
16517: ac_res=`eval 'as_val=${'$as_ac_Header'}
16518: $as_echo "$as_val"'`
16519: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16520: $as_echo "$ac_res" >&6; }
16521:
16522: fi
16523: as_val=`eval 'as_val=${'$as_ac_Header'}
16524: $as_echo "$as_val"'`
16525: if test "x$as_val" = x""yes; then
16526: cat >>confdefs.h <<_ACEOF
16527: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16528: _ACEOF
16529:
16530: fi
16531:
16532: done
16533:
16534:
16535: { $as_echo "$as_me:$LINENO: checking for EILSEQ" >&5
16536: $as_echo_n "checking for EILSEQ... " >&6; }
16537: if test "${ac_cv_decl_EILSEQ+set}" = set; then
16538: $as_echo_n "(cached) " >&6
16539: else
16540:
16541: cat >conftest.$ac_ext <<_ACEOF
16542: /* confdefs.h. */
16543: _ACEOF
16544: cat confdefs.h >>conftest.$ac_ext
16545: cat >>conftest.$ac_ext <<_ACEOF
16546: /* end confdefs.h. */
16547:
16548: #include <errno.h>
16549: #ifdef EILSEQ
16550: yes
16551: #endif
16552:
16553: _ACEOF
16554: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16555: $EGREP "yes" >/dev/null 2>&1; then
16556: have_eilseq=1
16557: fi
16558: rm -f conftest*
16559:
16560: if test -n "$have_eilseq"; then
16561: ac_cv_decl_EILSEQ=yes
16562: else
16563: cat >conftest.$ac_ext <<_ACEOF
16564: /* confdefs.h. */
16565: _ACEOF
16566: cat confdefs.h >>conftest.$ac_ext
16567: cat >>conftest.$ac_ext <<_ACEOF
16568: /* end confdefs.h. */
16569:
16570: #include <errno.h>
16571: #if HAVE_WCHAR_H
16572: #include <wchar.h>
16573: #endif
16574: #ifdef EILSEQ
16575: yes
16576: #endif
16577:
16578: _ACEOF
16579: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16580: $EGREP "yes" >/dev/null 2>&1; then
16581: have_eilseq=1
16582: fi
16583: rm -f conftest*
16584:
16585: if test -n "$have_eilseq"; then
16586: if test "$cross_compiling" = yes; then
16587: # Depending upon the size, compute the lo and hi bounds.
16588: cat >conftest.$ac_ext <<_ACEOF
16589: /* confdefs.h. */
16590: _ACEOF
16591: cat confdefs.h >>conftest.$ac_ext
16592: cat >>conftest.$ac_ext <<_ACEOF
16593: /* end confdefs.h. */
16594:
16595: #include <errno.h>
16596: #if HAVE_WCHAR_H
16597: #include <wchar.h>
16598: #endif
16599: /* The following two lines are a workaround against an autoconf-2.52 bug. */
16600: #include <stdio.h>
16601: #include <stdlib.h>
16602:
16603: int
16604: main ()
16605: {
16606: static int test_array [1 - 2 * !((EILSEQ) >= 0)];
16607: test_array [0] = 0
16608:
16609: ;
16610: return 0;
16611: }
16612: _ACEOF
16613: rm -f conftest.$ac_objext
16614: if { (ac_try="$ac_compile"
16615: case "(($ac_try" in
16616: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617: *) ac_try_echo=$ac_try;;
16618: esac
16619: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16620: $as_echo "$ac_try_echo") >&5
16621: (eval "$ac_compile") 2>conftest.er1
16622: ac_status=$?
16623: grep -v '^ *+' conftest.er1 >conftest.err
16624: rm -f conftest.er1
16625: cat conftest.err >&5
16626: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627: (exit $ac_status); } && {
16628: test -z "$ac_c_werror_flag" ||
16629: test ! -s conftest.err
16630: } && test -s conftest.$ac_objext; then
16631: ac_lo=0 ac_mid=0
16632: while :; do
16633: cat >conftest.$ac_ext <<_ACEOF
16634: /* confdefs.h. */
16635: _ACEOF
16636: cat confdefs.h >>conftest.$ac_ext
16637: cat >>conftest.$ac_ext <<_ACEOF
16638: /* end confdefs.h. */
16639:
16640: #include <errno.h>
16641: #if HAVE_WCHAR_H
16642: #include <wchar.h>
16643: #endif
16644: /* The following two lines are a workaround against an autoconf-2.52 bug. */
16645: #include <stdio.h>
16646: #include <stdlib.h>
16647:
16648: int
16649: main ()
16650: {
16651: static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
16652: test_array [0] = 0
16653:
16654: ;
16655: return 0;
16656: }
16657: _ACEOF
16658: rm -f conftest.$ac_objext
16659: if { (ac_try="$ac_compile"
16660: case "(($ac_try" in
16661: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662: *) ac_try_echo=$ac_try;;
16663: esac
16664: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16665: $as_echo "$ac_try_echo") >&5
16666: (eval "$ac_compile") 2>conftest.er1
16667: ac_status=$?
16668: grep -v '^ *+' conftest.er1 >conftest.err
16669: rm -f conftest.er1
16670: cat conftest.err >&5
16671: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672: (exit $ac_status); } && {
16673: test -z "$ac_c_werror_flag" ||
16674: test ! -s conftest.err
16675: } && test -s conftest.$ac_objext; then
16676: ac_hi=$ac_mid; break
16677: else
16678: $as_echo "$as_me: failed program was:" >&5
16679: sed 's/^/| /' conftest.$ac_ext >&5
16680:
16681: ac_lo=`expr $ac_mid + 1`
16682: if test $ac_lo -le $ac_mid; then
16683: ac_lo= ac_hi=
16684: break
16685: fi
16686: ac_mid=`expr 2 '*' $ac_mid + 1`
16687: fi
16688:
16689: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690: done
16691: else
16692: $as_echo "$as_me: failed program was:" >&5
16693: sed 's/^/| /' conftest.$ac_ext >&5
16694:
16695: cat >conftest.$ac_ext <<_ACEOF
16696: /* confdefs.h. */
16697: _ACEOF
16698: cat confdefs.h >>conftest.$ac_ext
16699: cat >>conftest.$ac_ext <<_ACEOF
16700: /* end confdefs.h. */
16701:
16702: #include <errno.h>
16703: #if HAVE_WCHAR_H
16704: #include <wchar.h>
16705: #endif
16706: /* The following two lines are a workaround against an autoconf-2.52 bug. */
16707: #include <stdio.h>
16708: #include <stdlib.h>
16709:
16710: int
16711: main ()
16712: {
16713: static int test_array [1 - 2 * !((EILSEQ) < 0)];
16714: test_array [0] = 0
16715:
16716: ;
16717: return 0;
16718: }
16719: _ACEOF
16720: rm -f conftest.$ac_objext
16721: if { (ac_try="$ac_compile"
16722: case "(($ac_try" in
16723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724: *) ac_try_echo=$ac_try;;
16725: esac
16726: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16727: $as_echo "$ac_try_echo") >&5
16728: (eval "$ac_compile") 2>conftest.er1
16729: ac_status=$?
16730: grep -v '^ *+' conftest.er1 >conftest.err
16731: rm -f conftest.er1
16732: cat conftest.err >&5
16733: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734: (exit $ac_status); } && {
16735: test -z "$ac_c_werror_flag" ||
16736: test ! -s conftest.err
16737: } && test -s conftest.$ac_objext; then
16738: ac_hi=-1 ac_mid=-1
16739: while :; do
16740: cat >conftest.$ac_ext <<_ACEOF
16741: /* confdefs.h. */
16742: _ACEOF
16743: cat confdefs.h >>conftest.$ac_ext
16744: cat >>conftest.$ac_ext <<_ACEOF
16745: /* end confdefs.h. */
16746:
16747: #include <errno.h>
16748: #if HAVE_WCHAR_H
16749: #include <wchar.h>
16750: #endif
16751: /* The following two lines are a workaround against an autoconf-2.52 bug. */
16752: #include <stdio.h>
16753: #include <stdlib.h>
16754:
16755: int
16756: main ()
16757: {
16758: static int test_array [1 - 2 * !((EILSEQ) >= $ac_mid)];
16759: test_array [0] = 0
16760:
16761: ;
16762: return 0;
16763: }
16764: _ACEOF
16765: rm -f conftest.$ac_objext
16766: if { (ac_try="$ac_compile"
16767: case "(($ac_try" in
16768: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769: *) ac_try_echo=$ac_try;;
16770: esac
16771: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16772: $as_echo "$ac_try_echo") >&5
16773: (eval "$ac_compile") 2>conftest.er1
16774: ac_status=$?
16775: grep -v '^ *+' conftest.er1 >conftest.err
16776: rm -f conftest.er1
16777: cat conftest.err >&5
16778: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779: (exit $ac_status); } && {
16780: test -z "$ac_c_werror_flag" ||
16781: test ! -s conftest.err
16782: } && test -s conftest.$ac_objext; then
16783: ac_lo=$ac_mid; break
16784: else
16785: $as_echo "$as_me: failed program was:" >&5
16786: sed 's/^/| /' conftest.$ac_ext >&5
16787:
16788: ac_hi=`expr '(' $ac_mid ')' - 1`
16789: if test $ac_mid -le $ac_hi; then
16790: ac_lo= ac_hi=
16791: break
16792: fi
16793: ac_mid=`expr 2 '*' $ac_mid`
16794: fi
16795:
16796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797: done
16798: else
16799: $as_echo "$as_me: failed program was:" >&5
16800: sed 's/^/| /' conftest.$ac_ext >&5
16801:
16802: ac_lo= ac_hi=
16803: fi
16804:
16805: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806: fi
16807:
16808: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809: # Binary search between lo and hi bounds.
16810: while test "x$ac_lo" != "x$ac_hi"; do
16811: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16812: cat >conftest.$ac_ext <<_ACEOF
16813: /* confdefs.h. */
16814: _ACEOF
16815: cat confdefs.h >>conftest.$ac_ext
16816: cat >>conftest.$ac_ext <<_ACEOF
16817: /* end confdefs.h. */
16818:
16819: #include <errno.h>
16820: #if HAVE_WCHAR_H
16821: #include <wchar.h>
16822: #endif
16823: /* The following two lines are a workaround against an autoconf-2.52 bug. */
16824: #include <stdio.h>
16825: #include <stdlib.h>
16826:
16827: int
16828: main ()
16829: {
16830: static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
16831: test_array [0] = 0
16832:
16833: ;
16834: return 0;
16835: }
16836: _ACEOF
16837: rm -f conftest.$ac_objext
16838: if { (ac_try="$ac_compile"
16839: case "(($ac_try" in
16840: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841: *) ac_try_echo=$ac_try;;
16842: esac
16843: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16844: $as_echo "$ac_try_echo") >&5
16845: (eval "$ac_compile") 2>conftest.er1
16846: ac_status=$?
16847: grep -v '^ *+' conftest.er1 >conftest.err
16848: rm -f conftest.er1
16849: cat conftest.err >&5
16850: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851: (exit $ac_status); } && {
16852: test -z "$ac_c_werror_flag" ||
16853: test ! -s conftest.err
16854: } && test -s conftest.$ac_objext; then
16855: ac_hi=$ac_mid
16856: else
16857: $as_echo "$as_me: failed program was:" >&5
16858: sed 's/^/| /' conftest.$ac_ext >&5
16859:
16860: ac_lo=`expr '(' $ac_mid ')' + 1`
16861: fi
16862:
16863: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864: done
16865: case $ac_lo in
16866: ?*) ac_cv_decl_EILSEQ=$ac_lo;;
16867: '') ;;
16868: esac
16869: else
16870: cat >conftest.$ac_ext <<_ACEOF
16871: /* confdefs.h. */
16872: _ACEOF
16873: cat confdefs.h >>conftest.$ac_ext
16874: cat >>conftest.$ac_ext <<_ACEOF
16875: /* end confdefs.h. */
16876:
16877: #include <errno.h>
16878: #if HAVE_WCHAR_H
16879: #include <wchar.h>
16880: #endif
16881: /* The following two lines are a workaround against an autoconf-2.52 bug. */
16882: #include <stdio.h>
16883: #include <stdlib.h>
16884:
16885: static long int longval () { return EILSEQ; }
16886: static unsigned long int ulongval () { return EILSEQ; }
16887: #include <stdio.h>
16888: #include <stdlib.h>
16889: int
16890: main ()
16891: {
16892:
16893: FILE *f = fopen ("conftest.val", "w");
16894: if (! f)
16895: return 1;
16896: if ((EILSEQ) < 0)
16897: {
16898: long int i = longval ();
16899: if (i != (EILSEQ))
16900: return 1;
16901: fprintf (f, "%ld", i);
16902: }
16903: else
16904: {
16905: unsigned long int i = ulongval ();
16906: if (i != (EILSEQ))
16907: return 1;
16908: fprintf (f, "%lu", i);
16909: }
16910: /* Do not output a trailing newline, as this causes \r\n confusion
16911: on some platforms. */
16912: return ferror (f) || fclose (f) != 0;
16913:
16914: ;
16915: return 0;
16916: }
16917: _ACEOF
16918: rm -f conftest$ac_exeext
16919: if { (ac_try="$ac_link"
16920: case "(($ac_try" in
16921: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922: *) ac_try_echo=$ac_try;;
16923: esac
16924: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16925: $as_echo "$ac_try_echo") >&5
16926: (eval "$ac_link") 2>&5
16927: ac_status=$?
16928: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16930: { (case "(($ac_try" in
16931: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932: *) ac_try_echo=$ac_try;;
16933: esac
16934: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16935: $as_echo "$ac_try_echo") >&5
16936: (eval "$ac_try") 2>&5
16937: ac_status=$?
16938: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939: (exit $ac_status); }; }; then
16940: ac_cv_decl_EILSEQ=`cat conftest.val`
16941: else
16942: $as_echo "$as_me: program exited with status $ac_status" >&5
16943: $as_echo "$as_me: failed program was:" >&5
16944: sed 's/^/| /' conftest.$ac_ext >&5
16945:
16946: fi
16947: rm -rf conftest.dSYM
16948: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16949: fi
16950: rm -f conftest.val
16951:
16952: else
16953: ac_cv_decl_EILSEQ=ENOENT
16954: fi
16955: fi
16956:
16957: fi
16958: { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EILSEQ" >&5
16959: $as_echo "$ac_cv_decl_EILSEQ" >&6; }
16960: if test "$ac_cv_decl_EILSEQ" != yes; then
16961:
16962: cat >>confdefs.h <<_ACEOF
16963: #define EILSEQ $ac_cv_decl_EILSEQ
16964: _ACEOF
16965:
16966: EILSEQ="$ac_cv_decl_EILSEQ"
16967:
16968: fi
16969:
16970:
16971: { $as_echo "$as_me:$LINENO: checking byte ordering" >&5
16972: $as_echo_n "checking byte ordering... " >&6; }
16973: if test "${cl_cv_sys_endian+set}" = set; then
16974: $as_echo_n "(cached) " >&6
16975: else
16976:
16977: if test "$cross_compiling" = yes; then
16978: : # must guess the endianness
16979:
16980: else
16981: cat >conftest.$ac_ext <<_ACEOF
16982: /* confdefs.h. */
16983: _ACEOF
16984: cat confdefs.h >>conftest.$ac_ext
16985: cat >>conftest.$ac_ext <<_ACEOF
16986: /* end confdefs.h. */
16987: int main () {
16988: /* Are we little or big endian? From Harbison&Steele. */
16989: union
16990: {
16991: long l;
16992: char c[sizeof (long)];
16993: } u;
16994: u.l = 1;
16995: exit (u.c[0] == 1);
16996: }
16997: _ACEOF
16998: rm -f conftest$ac_exeext
16999: if { (ac_try="$ac_link"
17000: case "(($ac_try" in
17001: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002: *) ac_try_echo=$ac_try;;
17003: esac
17004: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17005: $as_echo "$ac_try_echo") >&5
17006: (eval "$ac_link") 2>&5
17007: ac_status=$?
17008: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17010: { (case "(($ac_try" in
17011: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012: *) ac_try_echo=$ac_try;;
17013: esac
17014: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17015: $as_echo "$ac_try_echo") >&5
17016: (eval "$ac_try") 2>&5
17017: ac_status=$?
17018: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019: (exit $ac_status); }; }; then
17020: cl_cv_sys_endian="big endian"
17021: else
17022: $as_echo "$as_me: program exited with status $ac_status" >&5
17023: $as_echo "$as_me: failed program was:" >&5
17024: sed 's/^/| /' conftest.$ac_ext >&5
17025:
17026: ( exit $ac_status )
17027: cl_cv_sys_endian="little endian"
17028: fi
17029: rm -rf conftest.dSYM
17030: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17031: fi
17032:
17033:
17034: if test -z "$cl_cv_sys_endian"; then
17035: cat >conftest.$ac_ext <<_ACEOF
17036: /* confdefs.h. */
17037: _ACEOF
17038: cat confdefs.h >>conftest.$ac_ext
17039: cat >>conftest.$ac_ext <<_ACEOF
17040: /* end confdefs.h. */
17041: #if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
17042: yes
17043: #endif
17044:
17045: _ACEOF
17046: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17047: $EGREP "yes" >/dev/null 2>&1; then
17048: cl_cv_sys_endian="big endian"
17049: fi
17050: rm -f conftest*
17051:
17052: fi
17053: if test -z "$cl_cv_sys_endian"; then
17054: cat >conftest.$ac_ext <<_ACEOF
17055: /* confdefs.h. */
17056: _ACEOF
17057: cat confdefs.h >>conftest.$ac_ext
17058: cat >>conftest.$ac_ext <<_ACEOF
17059: /* end confdefs.h. */
17060: #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
17061: yes
17062: #endif
17063:
17064: _ACEOF
17065: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17066: $EGREP "yes" >/dev/null 2>&1; then
17067: cl_cv_sys_endian="little endian"
17068: fi
17069: rm -f conftest*
17070:
17071: fi
17072: if test -z "$cl_cv_sys_endian"; then
17073: cl_cv_sys_endian="guessing little endian"
17074: fi
17075:
17076: fi
17077: { $as_echo "$as_me:$LINENO: result: $cl_cv_sys_endian" >&5
17078: $as_echo "$cl_cv_sys_endian" >&6; }
17079: case "$cl_cv_sys_endian" in
17080: *little*)
17081:
17082: cat >>confdefs.h <<\_ACEOF
17083: #define WORDS_LITTLEENDIAN 1
17084: _ACEOF
17085: ;;
17086: *big*) ;;
17087: esac
17088:
17089:
17090:
17091:
17092:
17093:
17094:
17095:
17096:
17097: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17098: # for constant arguments. Useless!
17099: { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
17100: $as_echo_n "checking for working alloca.h... " >&6; }
17101: if test "${ac_cv_working_alloca_h+set}" = set; then
17102: $as_echo_n "(cached) " >&6
17103: else
17104: cat >conftest.$ac_ext <<_ACEOF
17105: /* confdefs.h. */
17106: _ACEOF
17107: cat confdefs.h >>conftest.$ac_ext
17108: cat >>conftest.$ac_ext <<_ACEOF
17109: /* end confdefs.h. */
17110: #include <alloca.h>
17111: int
17112: main ()
17113: {
17114: char *p = (char *) alloca (2 * sizeof (int));
17115: if (p) return 0;
17116: ;
17117: return 0;
17118: }
17119: _ACEOF
17120: rm -f conftest.$ac_objext conftest$ac_exeext
17121: if { (ac_try="$ac_link"
17122: case "(($ac_try" in
17123: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124: *) ac_try_echo=$ac_try;;
17125: esac
17126: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17127: $as_echo "$ac_try_echo") >&5
17128: (eval "$ac_link") 2>conftest.er1
17129: ac_status=$?
17130: grep -v '^ *+' conftest.er1 >conftest.err
17131: rm -f conftest.er1
17132: cat conftest.err >&5
17133: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134: (exit $ac_status); } && {
17135: test -z "$ac_c_werror_flag" ||
17136: test ! -s conftest.err
17137: } && test -s conftest$ac_exeext && {
17138: test "$cross_compiling" = yes ||
17139: $as_test_x conftest$ac_exeext
17140: }; then
17141: ac_cv_working_alloca_h=yes
17142: else
17143: $as_echo "$as_me: failed program was:" >&5
17144: sed 's/^/| /' conftest.$ac_ext >&5
17145:
17146: ac_cv_working_alloca_h=no
17147: fi
17148:
17149: rm -rf conftest.dSYM
17150: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17151: conftest$ac_exeext conftest.$ac_ext
17152: fi
17153: { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17154: $as_echo "$ac_cv_working_alloca_h" >&6; }
17155: if test $ac_cv_working_alloca_h = yes; then
17156:
17157: cat >>confdefs.h <<\_ACEOF
17158: #define HAVE_ALLOCA_H 1
17159: _ACEOF
17160:
17161: fi
17162:
17163: { $as_echo "$as_me:$LINENO: checking for alloca" >&5
17164: $as_echo_n "checking for alloca... " >&6; }
17165: if test "${ac_cv_func_alloca_works+set}" = set; then
17166: $as_echo_n "(cached) " >&6
17167: else
17168: cat >conftest.$ac_ext <<_ACEOF
17169: /* confdefs.h. */
17170: _ACEOF
17171: cat confdefs.h >>conftest.$ac_ext
17172: cat >>conftest.$ac_ext <<_ACEOF
17173: /* end confdefs.h. */
17174: #ifdef __GNUC__
17175: # define alloca __builtin_alloca
17176: #else
17177: # ifdef _MSC_VER
17178: # include <malloc.h>
17179: # define alloca _alloca
17180: # else
17181: # ifdef HAVE_ALLOCA_H
17182: # include <alloca.h>
17183: # else
17184: # ifdef _AIX
17185: #pragma alloca
17186: # else
17187: # ifndef alloca /* predefined by HP cc +Olibcalls */
17188: char *alloca ();
17189: # endif
17190: # endif
17191: # endif
17192: # endif
17193: #endif
17194:
17195: int
17196: main ()
17197: {
17198: char *p = (char *) alloca (1);
17199: if (p) return 0;
17200: ;
17201: return 0;
17202: }
17203: _ACEOF
17204: rm -f conftest.$ac_objext conftest$ac_exeext
17205: if { (ac_try="$ac_link"
17206: case "(($ac_try" in
17207: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208: *) ac_try_echo=$ac_try;;
17209: esac
17210: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17211: $as_echo "$ac_try_echo") >&5
17212: (eval "$ac_link") 2>conftest.er1
17213: ac_status=$?
17214: grep -v '^ *+' conftest.er1 >conftest.err
17215: rm -f conftest.er1
17216: cat conftest.err >&5
17217: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218: (exit $ac_status); } && {
17219: test -z "$ac_c_werror_flag" ||
17220: test ! -s conftest.err
17221: } && test -s conftest$ac_exeext && {
17222: test "$cross_compiling" = yes ||
17223: $as_test_x conftest$ac_exeext
17224: }; then
17225: ac_cv_func_alloca_works=yes
17226: else
17227: $as_echo "$as_me: failed program was:" >&5
17228: sed 's/^/| /' conftest.$ac_ext >&5
17229:
17230: ac_cv_func_alloca_works=no
17231: fi
17232:
17233: rm -rf conftest.dSYM
17234: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17235: conftest$ac_exeext conftest.$ac_ext
17236: fi
17237: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17238: $as_echo "$ac_cv_func_alloca_works" >&6; }
17239:
17240: if test $ac_cv_func_alloca_works = yes; then
17241:
17242: cat >>confdefs.h <<\_ACEOF
17243: #define HAVE_ALLOCA 1
17244: _ACEOF
17245:
17246: else
17247: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17248: # that cause trouble. Some versions do not even contain alloca or
17249: # contain a buggy version. If you still want to use their alloca,
17250: # use ar to extract alloca.o from them instead of compiling alloca.c.
17251:
17252:
17253:
17254:
17255:
17256: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17257:
17258: cat >>confdefs.h <<\_ACEOF
17259: #define C_ALLOCA 1
17260: _ACEOF
17261:
17262:
17263: { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17264: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17265: if test "${ac_cv_os_cray+set}" = set; then
17266: $as_echo_n "(cached) " >&6
17267: else
17268: cat >conftest.$ac_ext <<_ACEOF
17269: /* confdefs.h. */
17270: _ACEOF
17271: cat confdefs.h >>conftest.$ac_ext
17272: cat >>conftest.$ac_ext <<_ACEOF
17273: /* end confdefs.h. */
17274: #if defined CRAY && ! defined CRAY2
17275: webecray
17276: #else
17277: wenotbecray
17278: #endif
17279:
17280: _ACEOF
17281: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17282: $EGREP "webecray" >/dev/null 2>&1; then
17283: ac_cv_os_cray=yes
17284: else
17285: ac_cv_os_cray=no
17286: fi
17287: rm -f conftest*
17288:
17289: fi
17290: { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17291: $as_echo "$ac_cv_os_cray" >&6; }
17292: if test $ac_cv_os_cray = yes; then
17293: for ac_func in _getb67 GETB67 getb67; do
17294: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17295: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17296: $as_echo_n "checking for $ac_func... " >&6; }
17297: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17298: $as_echo_n "(cached) " >&6
17299: else
17300: cat >conftest.$ac_ext <<_ACEOF
17301: /* confdefs.h. */
17302: _ACEOF
17303: cat confdefs.h >>conftest.$ac_ext
17304: cat >>conftest.$ac_ext <<_ACEOF
17305: /* end confdefs.h. */
17306: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17307: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17308: #define $ac_func innocuous_$ac_func
17309:
17310: /* System header to define __stub macros and hopefully few prototypes,
17311: which can conflict with char $ac_func (); below.
17312: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17313: <limits.h> exists even on freestanding compilers. */
17314:
17315: #ifdef __STDC__
17316: # include <limits.h>
17317: #else
17318: # include <assert.h>
17319: #endif
17320:
17321: #undef $ac_func
17322:
17323: /* Override any GCC internal prototype to avoid an error.
17324: Use char because int might match the return type of a GCC
17325: builtin and then its argument prototype would still apply. */
17326: #ifdef __cplusplus
17327: extern "C"
17328: #endif
17329: char $ac_func ();
17330: /* The GNU C library defines this for functions which it implements
17331: to always fail with ENOSYS. Some functions are actually named
17332: something starting with __ and the normal name is an alias. */
17333: #if defined __stub_$ac_func || defined __stub___$ac_func
17334: choke me
17335: #endif
17336:
17337: int
17338: main ()
17339: {
17340: return $ac_func ();
17341: ;
17342: return 0;
17343: }
17344: _ACEOF
17345: rm -f conftest.$ac_objext conftest$ac_exeext
17346: if { (ac_try="$ac_link"
17347: case "(($ac_try" in
17348: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349: *) ac_try_echo=$ac_try;;
17350: esac
17351: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17352: $as_echo "$ac_try_echo") >&5
17353: (eval "$ac_link") 2>conftest.er1
17354: ac_status=$?
17355: grep -v '^ *+' conftest.er1 >conftest.err
17356: rm -f conftest.er1
17357: cat conftest.err >&5
17358: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359: (exit $ac_status); } && {
17360: test -z "$ac_c_werror_flag" ||
17361: test ! -s conftest.err
17362: } && test -s conftest$ac_exeext && {
17363: test "$cross_compiling" = yes ||
17364: $as_test_x conftest$ac_exeext
17365: }; then
17366: eval "$as_ac_var=yes"
17367: else
17368: $as_echo "$as_me: failed program was:" >&5
17369: sed 's/^/| /' conftest.$ac_ext >&5
17370:
17371: eval "$as_ac_var=no"
17372: fi
17373:
17374: rm -rf conftest.dSYM
17375: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17376: conftest$ac_exeext conftest.$ac_ext
17377: fi
17378: ac_res=`eval 'as_val=${'$as_ac_var'}
17379: $as_echo "$as_val"'`
17380: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17381: $as_echo "$ac_res" >&6; }
17382: as_val=`eval 'as_val=${'$as_ac_var'}
17383: $as_echo "$as_val"'`
17384: if test "x$as_val" = x""yes; then
17385:
17386: cat >>confdefs.h <<_ACEOF
17387: #define CRAY_STACKSEG_END $ac_func
17388: _ACEOF
17389:
17390: break
17391: fi
17392:
17393: done
17394: fi
17395:
17396: { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17397: $as_echo_n "checking stack direction for C alloca... " >&6; }
17398: if test "${ac_cv_c_stack_direction+set}" = set; then
17399: $as_echo_n "(cached) " >&6
17400: else
17401: if test "$cross_compiling" = yes; then
17402: ac_cv_c_stack_direction=0
17403: else
17404: cat >conftest.$ac_ext <<_ACEOF
17405: /* confdefs.h. */
17406: _ACEOF
17407: cat confdefs.h >>conftest.$ac_ext
17408: cat >>conftest.$ac_ext <<_ACEOF
17409: /* end confdefs.h. */
17410: $ac_includes_default
17411: int
17412: find_stack_direction ()
17413: {
17414: static char *addr = 0;
17415: auto char dummy;
17416: if (addr == 0)
17417: {
17418: addr = &dummy;
17419: return find_stack_direction ();
17420: }
17421: else
17422: return (&dummy > addr) ? 1 : -1;
17423: }
17424:
17425: int
17426: main ()
17427: {
17428: return find_stack_direction () < 0;
17429: }
17430: _ACEOF
17431: rm -f conftest$ac_exeext
17432: if { (ac_try="$ac_link"
17433: case "(($ac_try" in
17434: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435: *) ac_try_echo=$ac_try;;
17436: esac
17437: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17438: $as_echo "$ac_try_echo") >&5
17439: (eval "$ac_link") 2>&5
17440: ac_status=$?
17441: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17443: { (case "(($ac_try" in
17444: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445: *) ac_try_echo=$ac_try;;
17446: esac
17447: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17448: $as_echo "$ac_try_echo") >&5
17449: (eval "$ac_try") 2>&5
17450: ac_status=$?
17451: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452: (exit $ac_status); }; }; then
17453: ac_cv_c_stack_direction=1
17454: else
17455: $as_echo "$as_me: program exited with status $ac_status" >&5
17456: $as_echo "$as_me: failed program was:" >&5
17457: sed 's/^/| /' conftest.$ac_ext >&5
17458:
17459: ( exit $ac_status )
17460: ac_cv_c_stack_direction=-1
17461: fi
17462: rm -rf conftest.dSYM
17463: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17464: fi
17465:
17466:
17467: fi
17468: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17469: $as_echo "$ac_cv_c_stack_direction" >&6; }
17470:
17471: cat >>confdefs.h <<_ACEOF
17472: #define STACK_DIRECTION $ac_cv_c_stack_direction
17473: _ACEOF
17474:
17475:
17476: fi
17477:
17478:
17479:
17480:
17481:
17482: for ac_header in $ac_header_list
17483: do
17484: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17485: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17486: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17487: $as_echo_n "checking for $ac_header... " >&6; }
17488: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17489: $as_echo_n "(cached) " >&6
17490: fi
17491: ac_res=`eval 'as_val=${'$as_ac_Header'}
17492: $as_echo "$as_val"'`
17493: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17494: $as_echo "$ac_res" >&6; }
17495: else
17496: # Is the header compilable?
17497: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17498: $as_echo_n "checking $ac_header usability... " >&6; }
17499: cat >conftest.$ac_ext <<_ACEOF
17500: /* confdefs.h. */
17501: _ACEOF
17502: cat confdefs.h >>conftest.$ac_ext
17503: cat >>conftest.$ac_ext <<_ACEOF
17504: /* end confdefs.h. */
17505: $ac_includes_default
17506: #include <$ac_header>
17507: _ACEOF
17508: rm -f conftest.$ac_objext
17509: if { (ac_try="$ac_compile"
17510: case "(($ac_try" in
17511: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512: *) ac_try_echo=$ac_try;;
17513: esac
17514: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17515: $as_echo "$ac_try_echo") >&5
17516: (eval "$ac_compile") 2>conftest.er1
17517: ac_status=$?
17518: grep -v '^ *+' conftest.er1 >conftest.err
17519: rm -f conftest.er1
17520: cat conftest.err >&5
17521: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522: (exit $ac_status); } && {
17523: test -z "$ac_c_werror_flag" ||
17524: test ! -s conftest.err
17525: } && test -s conftest.$ac_objext; then
17526: ac_header_compiler=yes
17527: else
17528: $as_echo "$as_me: failed program was:" >&5
17529: sed 's/^/| /' conftest.$ac_ext >&5
17530:
17531: ac_header_compiler=no
17532: fi
17533:
17534: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17536: $as_echo "$ac_header_compiler" >&6; }
17537:
17538: # Is the header present?
17539: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17540: $as_echo_n "checking $ac_header presence... " >&6; }
17541: cat >conftest.$ac_ext <<_ACEOF
17542: /* confdefs.h. */
17543: _ACEOF
17544: cat confdefs.h >>conftest.$ac_ext
17545: cat >>conftest.$ac_ext <<_ACEOF
17546: /* end confdefs.h. */
17547: #include <$ac_header>
17548: _ACEOF
17549: if { (ac_try="$ac_cpp conftest.$ac_ext"
17550: case "(($ac_try" in
17551: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552: *) ac_try_echo=$ac_try;;
17553: esac
17554: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17555: $as_echo "$ac_try_echo") >&5
17556: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17557: ac_status=$?
17558: grep -v '^ *+' conftest.er1 >conftest.err
17559: rm -f conftest.er1
17560: cat conftest.err >&5
17561: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562: (exit $ac_status); } >/dev/null && {
17563: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17564: test ! -s conftest.err
17565: }; then
17566: ac_header_preproc=yes
17567: else
17568: $as_echo "$as_me: failed program was:" >&5
17569: sed 's/^/| /' conftest.$ac_ext >&5
17570:
17571: ac_header_preproc=no
17572: fi
17573:
17574: rm -f conftest.err conftest.$ac_ext
17575: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17576: $as_echo "$ac_header_preproc" >&6; }
17577:
17578: # So? What about this header?
17579: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17580: yes:no: )
17581: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17582: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17583: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17584: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17585: ac_header_preproc=yes
17586: ;;
17587: no:yes:* )
17588: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17589: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17590: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17591: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17592: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17593: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17594: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17595: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17596: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17597: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17598: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17599: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17600:
17601: ;;
17602: esac
17603: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17604: $as_echo_n "checking for $ac_header... " >&6; }
17605: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17606: $as_echo_n "(cached) " >&6
17607: else
17608: eval "$as_ac_Header=\$ac_header_preproc"
17609: fi
17610: ac_res=`eval 'as_val=${'$as_ac_Header'}
17611: $as_echo "$as_val"'`
17612: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17613: $as_echo "$ac_res" >&6; }
17614:
17615: fi
17616: as_val=`eval 'as_val=${'$as_ac_Header'}
17617: $as_echo "$as_val"'`
17618: if test "x$as_val" = x""yes; then
17619: cat >>confdefs.h <<_ACEOF
17620: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17621: _ACEOF
17622:
17623: fi
17624:
17625: done
17626:
17627:
17628:
17629:
17630:
17631: { $as_echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
17632: $as_echo_n "checking whether canonicalize_file_name is declared... " >&6; }
17633: if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
17634: $as_echo_n "(cached) " >&6
17635: else
17636: cat >conftest.$ac_ext <<_ACEOF
17637: /* confdefs.h. */
17638: _ACEOF
17639: cat confdefs.h >>conftest.$ac_ext
17640: cat >>conftest.$ac_ext <<_ACEOF
17641: /* end confdefs.h. */
17642: $ac_includes_default
17643: int
17644: main ()
17645: {
17646: #ifndef canonicalize_file_name
17647: (void) canonicalize_file_name;
17648: #endif
17649:
17650: ;
17651: return 0;
17652: }
17653: _ACEOF
17654: rm -f conftest.$ac_objext
17655: if { (ac_try="$ac_compile"
17656: case "(($ac_try" in
17657: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658: *) ac_try_echo=$ac_try;;
17659: esac
17660: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17661: $as_echo "$ac_try_echo") >&5
17662: (eval "$ac_compile") 2>conftest.er1
17663: ac_status=$?
17664: grep -v '^ *+' conftest.er1 >conftest.err
17665: rm -f conftest.er1
17666: cat conftest.err >&5
17667: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668: (exit $ac_status); } && {
17669: test -z "$ac_c_werror_flag" ||
17670: test ! -s conftest.err
17671: } && test -s conftest.$ac_objext; then
17672: ac_cv_have_decl_canonicalize_file_name=yes
17673: else
17674: $as_echo "$as_me: failed program was:" >&5
17675: sed 's/^/| /' conftest.$ac_ext >&5
17676:
17677: ac_cv_have_decl_canonicalize_file_name=no
17678: fi
17679:
17680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17681: fi
17682: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
17683: $as_echo "$ac_cv_have_decl_canonicalize_file_name" >&6; }
17684: if test "x$ac_cv_have_decl_canonicalize_file_name" = x""yes; then
17685:
17686: cat >>confdefs.h <<_ACEOF
17687: #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
17688: _ACEOF
17689:
17690:
17691: else
17692: cat >>confdefs.h <<_ACEOF
17693: #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
17694: _ACEOF
17695:
17696:
17697: fi
17698:
17699:
17700:
17701:
17702:
17703:
17704: for ac_func in $ac_func_list
17705: do
17706: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17707: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17708: $as_echo_n "checking for $ac_func... " >&6; }
17709: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17710: $as_echo_n "(cached) " >&6
17711: else
17712: cat >conftest.$ac_ext <<_ACEOF
17713: /* confdefs.h. */
17714: _ACEOF
17715: cat confdefs.h >>conftest.$ac_ext
17716: cat >>conftest.$ac_ext <<_ACEOF
17717: /* end confdefs.h. */
17718: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17719: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17720: #define $ac_func innocuous_$ac_func
17721:
17722: /* System header to define __stub macros and hopefully few prototypes,
17723: which can conflict with char $ac_func (); below.
17724: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17725: <limits.h> exists even on freestanding compilers. */
17726:
17727: #ifdef __STDC__
17728: # include <limits.h>
17729: #else
17730: # include <assert.h>
17731: #endif
17732:
17733: #undef $ac_func
17734:
17735: /* Override any GCC internal prototype to avoid an error.
17736: Use char because int might match the return type of a GCC
17737: builtin and then its argument prototype would still apply. */
17738: #ifdef __cplusplus
17739: extern "C"
17740: #endif
17741: char $ac_func ();
17742: /* The GNU C library defines this for functions which it implements
17743: to always fail with ENOSYS. Some functions are actually named
17744: something starting with __ and the normal name is an alias. */
17745: #if defined __stub_$ac_func || defined __stub___$ac_func
17746: choke me
17747: #endif
17748:
17749: int
17750: main ()
17751: {
17752: return $ac_func ();
17753: ;
17754: return 0;
17755: }
17756: _ACEOF
17757: rm -f conftest.$ac_objext conftest$ac_exeext
17758: if { (ac_try="$ac_link"
17759: case "(($ac_try" in
17760: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761: *) ac_try_echo=$ac_try;;
17762: esac
17763: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17764: $as_echo "$ac_try_echo") >&5
17765: (eval "$ac_link") 2>conftest.er1
17766: ac_status=$?
17767: grep -v '^ *+' conftest.er1 >conftest.err
17768: rm -f conftest.er1
17769: cat conftest.err >&5
17770: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771: (exit $ac_status); } && {
17772: test -z "$ac_c_werror_flag" ||
17773: test ! -s conftest.err
17774: } && test -s conftest$ac_exeext && {
17775: test "$cross_compiling" = yes ||
17776: $as_test_x conftest$ac_exeext
17777: }; then
17778: eval "$as_ac_var=yes"
17779: else
17780: $as_echo "$as_me: failed program was:" >&5
17781: sed 's/^/| /' conftest.$ac_ext >&5
17782:
17783: eval "$as_ac_var=no"
17784: fi
17785:
17786: rm -rf conftest.dSYM
17787: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17788: conftest$ac_exeext conftest.$ac_ext
17789: fi
17790: ac_res=`eval 'as_val=${'$as_ac_var'}
17791: $as_echo "$as_val"'`
17792: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17793: $as_echo "$ac_res" >&6; }
17794: as_val=`eval 'as_val=${'$as_ac_var'}
17795: $as_echo "$as_val"'`
17796: if test "x$as_val" = x""yes; then
17797: cat >>confdefs.h <<_ACEOF
17798: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17799: _ACEOF
17800:
17801: fi
17802: done
17803:
17804:
17805:
17806:
17807:
17808:
17809:
17810:
17811:
17812:
17813:
17814:
17815: GNULIB_CHOWN=0;
17816: GNULIB_CLOSE=0;
17817: GNULIB_DUP2=0;
17818: GNULIB_ENVIRON=0;
17819: GNULIB_EUIDACCESS=0;
17820: GNULIB_FCHDIR=0;
17821: GNULIB_FSYNC=0;
17822: GNULIB_FTRUNCATE=0;
17823: GNULIB_GETCWD=0;
17824: GNULIB_GETDOMAINNAME=0;
17825: GNULIB_GETDTABLESIZE=0;
17826: GNULIB_GETHOSTNAME=0;
17827: GNULIB_GETLOGIN_R=0;
17828: GNULIB_GETPAGESIZE=0;
17829: GNULIB_GETUSERSHELL=0;
17830: GNULIB_LCHOWN=0;
17831: GNULIB_LINK=0;
17832: GNULIB_LSEEK=0;
17833: GNULIB_READLINK=0;
17834: GNULIB_SLEEP=0;
17835: GNULIB_UNISTD_H_SIGPIPE=0;
17836: GNULIB_WRITE=0;
17837: HAVE_DUP2=1;
17838: HAVE_EUIDACCESS=1;
17839: HAVE_FSYNC=1;
17840: HAVE_FTRUNCATE=1;
17841: HAVE_GETDOMAINNAME=1;
17842: HAVE_GETDTABLESIZE=1;
17843: HAVE_GETHOSTNAME=1;
17844: HAVE_GETPAGESIZE=1;
17845: HAVE_GETUSERSHELL=1;
17846: HAVE_LINK=1;
17847: HAVE_READLINK=1;
17848: HAVE_SLEEP=1;
17849: HAVE_DECL_ENVIRON=1;
17850: HAVE_DECL_GETLOGIN_R=1;
17851: HAVE_OS_H=0;
17852: HAVE_SYS_PARAM_H=0;
17853: REPLACE_CHOWN=0;
17854: REPLACE_CLOSE=0;
17855: REPLACE_FCHDIR=0;
17856: REPLACE_GETCWD=0;
17857: REPLACE_GETPAGESIZE=0;
17858: REPLACE_LCHOWN=0;
17859: REPLACE_LSEEK=0;
17860: REPLACE_WRITE=0;
17861: UNISTD_H_HAVE_WINSOCK2_H=0;
17862:
17863:
17864:
17865: { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
17866: $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17867: if test "${gl_cv_have_include_next+set}" = set; then
17868: $as_echo_n "(cached) " >&6
17869: else
17870: rm -rf conftestd1a conftestd1b conftestd2
17871: mkdir conftestd1a conftestd1b conftestd2
17872: cat <<EOF > conftestd1a/conftest.h
17873: #define DEFINED_IN_CONFTESTD1
17874: #include_next <conftest.h>
17875: #ifdef DEFINED_IN_CONFTESTD2
17876: int foo;
17877: #else
17878: #error "include_next doesn't work"
17879: #endif
17880: EOF
17881: cat <<EOF > conftestd1b/conftest.h
17882: #define DEFINED_IN_CONFTESTD1
17883: #include <stdio.h>
17884: #include_next <conftest.h>
17885: #ifdef DEFINED_IN_CONFTESTD2
17886: int foo;
17887: #else
17888: #error "include_next doesn't work"
17889: #endif
17890: EOF
17891: cat <<EOF > conftestd2/conftest.h
17892: #ifndef DEFINED_IN_CONFTESTD1
17893: #error "include_next test doesn't work"
17894: #endif
17895: #define DEFINED_IN_CONFTESTD2
17896: EOF
17897: gl_save_CPPFLAGS="$CPPFLAGS"
17898: CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17899: cat >conftest.$ac_ext <<_ACEOF
17900: #include <conftest.h>
17901: _ACEOF
17902: rm -f conftest.$ac_objext
17903: if { (ac_try="$ac_compile"
17904: case "(($ac_try" in
17905: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906: *) ac_try_echo=$ac_try;;
17907: esac
17908: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17909: $as_echo "$ac_try_echo") >&5
17910: (eval "$ac_compile") 2>conftest.er1
17911: ac_status=$?
17912: grep -v '^ *+' conftest.er1 >conftest.err
17913: rm -f conftest.er1
17914: cat conftest.err >&5
17915: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916: (exit $ac_status); } && {
17917: test -z "$ac_c_werror_flag" ||
17918: test ! -s conftest.err
17919: } && test -s conftest.$ac_objext; then
17920: gl_cv_have_include_next=yes
17921: else
17922: $as_echo "$as_me: failed program was:" >&5
17923: sed 's/^/| /' conftest.$ac_ext >&5
17924:
17925: CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17926: cat >conftest.$ac_ext <<_ACEOF
17927: #include <conftest.h>
17928: _ACEOF
17929: rm -f conftest.$ac_objext
17930: if { (ac_try="$ac_compile"
17931: case "(($ac_try" in
17932: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933: *) ac_try_echo=$ac_try;;
17934: esac
17935: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17936: $as_echo "$ac_try_echo") >&5
17937: (eval "$ac_compile") 2>conftest.er1
17938: ac_status=$?
17939: grep -v '^ *+' conftest.er1 >conftest.err
17940: rm -f conftest.er1
17941: cat conftest.err >&5
17942: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943: (exit $ac_status); } && {
17944: test -z "$ac_c_werror_flag" ||
17945: test ! -s conftest.err
17946: } && test -s conftest.$ac_objext; then
17947: gl_cv_have_include_next=buggy
17948: else
17949: $as_echo "$as_me: failed program was:" >&5
17950: sed 's/^/| /' conftest.$ac_ext >&5
17951:
17952: gl_cv_have_include_next=no
17953: fi
17954:
17955: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956:
17957: fi
17958:
17959: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17960: CPPFLAGS="$gl_save_CPPFLAGS"
17961: rm -rf conftestd1a conftestd1b conftestd2
17962:
17963: fi
17964: { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
17965: $as_echo "$gl_cv_have_include_next" >&6; }
17966: PRAGMA_SYSTEM_HEADER=
17967: if test $gl_cv_have_include_next = yes; then
17968: INCLUDE_NEXT=include_next
17969: INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17970: if test -n "$GCC"; then
17971: PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17972: fi
17973: else
17974: if test $gl_cv_have_include_next = buggy; then
17975: INCLUDE_NEXT=include
17976: INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17977: else
17978: INCLUDE_NEXT=include
17979: INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17980: fi
17981: fi
17982:
17983:
17984:
17985:
17986:
17987:
17988:
17989:
17990: { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
17991: $as_echo_n "checking for complete errno.h... " >&6; }
17992: if test "${gl_cv_header_errno_h_complete+set}" = set; then
17993: $as_echo_n "(cached) " >&6
17994: else
17995:
17996: cat >conftest.$ac_ext <<_ACEOF
17997: /* confdefs.h. */
17998: _ACEOF
17999: cat confdefs.h >>conftest.$ac_ext
18000: cat >>conftest.$ac_ext <<_ACEOF
18001: /* end confdefs.h. */
18002:
18003: #include <errno.h>
18004: #if !defined ENOMSG
18005: booboo
18006: #endif
18007: #if !defined EIDRM
18008: booboo
18009: #endif
18010: #if !defined ENOLINK
18011: booboo
18012: #endif
18013: #if !defined EPROTO
18014: booboo
18015: #endif
18016: #if !defined EMULTIHOP
18017: booboo
18018: #endif
18019: #if !defined EBADMSG
18020: booboo
18021: #endif
18022: #if !defined EOVERFLOW
18023: booboo
18024: #endif
18025: #if !defined ENOTSUP
18026: booboo
18027: #endif
18028: #if !defined ESTALE
18029: booboo
18030: #endif
18031: #if !defined ECANCELED
18032: booboo
18033: #endif
18034:
18035: _ACEOF
18036: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18037: $EGREP "booboo" >/dev/null 2>&1; then
18038: gl_cv_header_errno_h_complete=no
18039: else
18040: gl_cv_header_errno_h_complete=yes
18041: fi
18042: rm -f conftest*
18043:
18044:
18045: fi
18046: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
18047: $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18048: if test $gl_cv_header_errno_h_complete = yes; then
18049: ERRNO_H=''
18050: else
18051:
18052:
18053:
18054:
18055:
18056:
18057:
18058:
18059:
18060:
18061:
18062: if test $gl_cv_have_include_next = yes; then
18063: gl_cv_next_errno_h='<'errno.h'>'
18064: else
18065: { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
18066: $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18067: if test "${gl_cv_next_errno_h+set}" = set; then
18068: $as_echo_n "(cached) " >&6
18069: else
18070:
18071: if test $ac_cv_header_errno_h = yes; then
18072: cat >conftest.$ac_ext <<_ACEOF
18073: /* confdefs.h. */
18074: _ACEOF
18075: cat confdefs.h >>conftest.$ac_ext
18076: cat >>conftest.$ac_ext <<_ACEOF
18077: /* end confdefs.h. */
18078: #include <errno.h>
18079:
18080: _ACEOF
18081: case "$host_os" in
18082: aix*) gl_absname_cpp="$ac_cpp -C" ;;
18083: *) gl_absname_cpp="$ac_cpp" ;;
18084: esac
18085: gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18086: sed -n '\#/errno.h#{
18087: s#.*"\(.*/errno.h\)".*#\1#
18088: s#^/[^/]#//&#
18089: p
18090: q
18091: }'`'"'
18092: else
18093: gl_cv_next_errno_h='<'errno.h'>'
18094: fi
18095:
18096: fi
18097: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
18098: $as_echo "$gl_cv_next_errno_h" >&6; }
18099: fi
18100: NEXT_ERRNO_H=$gl_cv_next_errno_h
18101:
18102: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18103: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18104: gl_next_as_first_directive='<'errno.h'>'
18105: else
18106: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18107: gl_next_as_first_directive=$gl_cv_next_errno_h
18108: fi
18109: NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18110:
18111:
18112:
18113: ERRNO_H='errno.h'
18114: fi
18115:
18116:
18117: if test -n "$ERRNO_H"; then
18118: { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
18119: $as_echo_n "checking for EMULTIHOP value... " >&6; }
18120: if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
18121: $as_echo_n "(cached) " >&6
18122: else
18123:
18124: cat >conftest.$ac_ext <<_ACEOF
18125: /* confdefs.h. */
18126: _ACEOF
18127: cat confdefs.h >>conftest.$ac_ext
18128: cat >>conftest.$ac_ext <<_ACEOF
18129: /* end confdefs.h. */
18130:
18131: #include <errno.h>
18132: #ifdef EMULTIHOP
18133: yes
18134: #endif
18135:
18136: _ACEOF
18137: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18138: $EGREP "yes" >/dev/null 2>&1; then
18139: gl_cv_header_errno_h_EMULTIHOP=yes
18140: else
18141: gl_cv_header_errno_h_EMULTIHOP=no
18142: fi
18143: rm -f conftest*
18144:
18145: if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18146: cat >conftest.$ac_ext <<_ACEOF
18147: /* confdefs.h. */
18148: _ACEOF
18149: cat confdefs.h >>conftest.$ac_ext
18150: cat >>conftest.$ac_ext <<_ACEOF
18151: /* end confdefs.h. */
18152:
18153: #define _XOPEN_SOURCE_EXTENDED 1
18154: #include <errno.h>
18155: #ifdef EMULTIHOP
18156: yes
18157: #endif
18158:
18159: _ACEOF
18160: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18161: $EGREP "yes" >/dev/null 2>&1; then
18162: gl_cv_header_errno_h_EMULTIHOP=hidden
18163: fi
18164: rm -f conftest*
18165:
18166: if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18167: if test "$cross_compiling" = yes; then
18168: # Depending upon the size, compute the lo and hi bounds.
18169: cat >conftest.$ac_ext <<_ACEOF
18170: /* confdefs.h. */
18171: _ACEOF
18172: cat confdefs.h >>conftest.$ac_ext
18173: cat >>conftest.$ac_ext <<_ACEOF
18174: /* end confdefs.h. */
18175:
18176: #define _XOPEN_SOURCE_EXTENDED 1
18177: #include <errno.h>
18178: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18179: #include <stdio.h>
18180: #include <stdlib.h>
18181:
18182: int
18183: main ()
18184: {
18185: static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
18186: test_array [0] = 0
18187:
18188: ;
18189: return 0;
18190: }
18191: _ACEOF
18192: rm -f conftest.$ac_objext
18193: if { (ac_try="$ac_compile"
18194: case "(($ac_try" in
18195: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196: *) ac_try_echo=$ac_try;;
18197: esac
18198: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18199: $as_echo "$ac_try_echo") >&5
18200: (eval "$ac_compile") 2>conftest.er1
18201: ac_status=$?
18202: grep -v '^ *+' conftest.er1 >conftest.err
18203: rm -f conftest.er1
18204: cat conftest.err >&5
18205: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206: (exit $ac_status); } && {
18207: test -z "$ac_c_werror_flag" ||
18208: test ! -s conftest.err
18209: } && test -s conftest.$ac_objext; then
18210: ac_lo=0 ac_mid=0
18211: while :; do
18212: cat >conftest.$ac_ext <<_ACEOF
18213: /* confdefs.h. */
18214: _ACEOF
18215: cat confdefs.h >>conftest.$ac_ext
18216: cat >>conftest.$ac_ext <<_ACEOF
18217: /* end confdefs.h. */
18218:
18219: #define _XOPEN_SOURCE_EXTENDED 1
18220: #include <errno.h>
18221: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18222: #include <stdio.h>
18223: #include <stdlib.h>
18224:
18225: int
18226: main ()
18227: {
18228: static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
18229: test_array [0] = 0
18230:
18231: ;
18232: return 0;
18233: }
18234: _ACEOF
18235: rm -f conftest.$ac_objext
18236: if { (ac_try="$ac_compile"
18237: case "(($ac_try" in
18238: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239: *) ac_try_echo=$ac_try;;
18240: esac
18241: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18242: $as_echo "$ac_try_echo") >&5
18243: (eval "$ac_compile") 2>conftest.er1
18244: ac_status=$?
18245: grep -v '^ *+' conftest.er1 >conftest.err
18246: rm -f conftest.er1
18247: cat conftest.err >&5
18248: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249: (exit $ac_status); } && {
18250: test -z "$ac_c_werror_flag" ||
18251: test ! -s conftest.err
18252: } && test -s conftest.$ac_objext; then
18253: ac_hi=$ac_mid; break
18254: else
18255: $as_echo "$as_me: failed program was:" >&5
18256: sed 's/^/| /' conftest.$ac_ext >&5
18257:
18258: ac_lo=`expr $ac_mid + 1`
18259: if test $ac_lo -le $ac_mid; then
18260: ac_lo= ac_hi=
18261: break
18262: fi
18263: ac_mid=`expr 2 '*' $ac_mid + 1`
18264: fi
18265:
18266: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267: done
18268: else
18269: $as_echo "$as_me: failed program was:" >&5
18270: sed 's/^/| /' conftest.$ac_ext >&5
18271:
18272: cat >conftest.$ac_ext <<_ACEOF
18273: /* confdefs.h. */
18274: _ACEOF
18275: cat confdefs.h >>conftest.$ac_ext
18276: cat >>conftest.$ac_ext <<_ACEOF
18277: /* end confdefs.h. */
18278:
18279: #define _XOPEN_SOURCE_EXTENDED 1
18280: #include <errno.h>
18281: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18282: #include <stdio.h>
18283: #include <stdlib.h>
18284:
18285: int
18286: main ()
18287: {
18288: static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
18289: test_array [0] = 0
18290:
18291: ;
18292: return 0;
18293: }
18294: _ACEOF
18295: rm -f conftest.$ac_objext
18296: if { (ac_try="$ac_compile"
18297: case "(($ac_try" in
18298: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299: *) ac_try_echo=$ac_try;;
18300: esac
18301: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18302: $as_echo "$ac_try_echo") >&5
18303: (eval "$ac_compile") 2>conftest.er1
18304: ac_status=$?
18305: grep -v '^ *+' conftest.er1 >conftest.err
18306: rm -f conftest.er1
18307: cat conftest.err >&5
18308: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309: (exit $ac_status); } && {
18310: test -z "$ac_c_werror_flag" ||
18311: test ! -s conftest.err
18312: } && test -s conftest.$ac_objext; then
18313: ac_hi=-1 ac_mid=-1
18314: while :; do
18315: cat >conftest.$ac_ext <<_ACEOF
18316: /* confdefs.h. */
18317: _ACEOF
18318: cat confdefs.h >>conftest.$ac_ext
18319: cat >>conftest.$ac_ext <<_ACEOF
18320: /* end confdefs.h. */
18321:
18322: #define _XOPEN_SOURCE_EXTENDED 1
18323: #include <errno.h>
18324: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18325: #include <stdio.h>
18326: #include <stdlib.h>
18327:
18328: int
18329: main ()
18330: {
18331: static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
18332: test_array [0] = 0
18333:
18334: ;
18335: return 0;
18336: }
18337: _ACEOF
18338: rm -f conftest.$ac_objext
18339: if { (ac_try="$ac_compile"
18340: case "(($ac_try" in
18341: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342: *) ac_try_echo=$ac_try;;
18343: esac
18344: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18345: $as_echo "$ac_try_echo") >&5
18346: (eval "$ac_compile") 2>conftest.er1
18347: ac_status=$?
18348: grep -v '^ *+' conftest.er1 >conftest.err
18349: rm -f conftest.er1
18350: cat conftest.err >&5
18351: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352: (exit $ac_status); } && {
18353: test -z "$ac_c_werror_flag" ||
18354: test ! -s conftest.err
18355: } && test -s conftest.$ac_objext; then
18356: ac_lo=$ac_mid; break
18357: else
18358: $as_echo "$as_me: failed program was:" >&5
18359: sed 's/^/| /' conftest.$ac_ext >&5
18360:
18361: ac_hi=`expr '(' $ac_mid ')' - 1`
18362: if test $ac_mid -le $ac_hi; then
18363: ac_lo= ac_hi=
18364: break
18365: fi
18366: ac_mid=`expr 2 '*' $ac_mid`
18367: fi
18368:
18369: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370: done
18371: else
18372: $as_echo "$as_me: failed program was:" >&5
18373: sed 's/^/| /' conftest.$ac_ext >&5
18374:
18375: ac_lo= ac_hi=
18376: fi
18377:
18378: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379: fi
18380:
18381: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382: # Binary search between lo and hi bounds.
18383: while test "x$ac_lo" != "x$ac_hi"; do
18384: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18385: cat >conftest.$ac_ext <<_ACEOF
18386: /* confdefs.h. */
18387: _ACEOF
18388: cat confdefs.h >>conftest.$ac_ext
18389: cat >>conftest.$ac_ext <<_ACEOF
18390: /* end confdefs.h. */
18391:
18392: #define _XOPEN_SOURCE_EXTENDED 1
18393: #include <errno.h>
18394: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18395: #include <stdio.h>
18396: #include <stdlib.h>
18397:
18398: int
18399: main ()
18400: {
18401: static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
18402: test_array [0] = 0
18403:
18404: ;
18405: return 0;
18406: }
18407: _ACEOF
18408: rm -f conftest.$ac_objext
18409: if { (ac_try="$ac_compile"
18410: case "(($ac_try" in
18411: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412: *) ac_try_echo=$ac_try;;
18413: esac
18414: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18415: $as_echo "$ac_try_echo") >&5
18416: (eval "$ac_compile") 2>conftest.er1
18417: ac_status=$?
18418: grep -v '^ *+' conftest.er1 >conftest.err
18419: rm -f conftest.er1
18420: cat conftest.err >&5
18421: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422: (exit $ac_status); } && {
18423: test -z "$ac_c_werror_flag" ||
18424: test ! -s conftest.err
18425: } && test -s conftest.$ac_objext; then
18426: ac_hi=$ac_mid
18427: else
18428: $as_echo "$as_me: failed program was:" >&5
18429: sed 's/^/| /' conftest.$ac_ext >&5
18430:
18431: ac_lo=`expr '(' $ac_mid ')' + 1`
18432: fi
18433:
18434: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18435: done
18436: case $ac_lo in
18437: ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
18438: '') ;;
18439: esac
18440: else
18441: cat >conftest.$ac_ext <<_ACEOF
18442: /* confdefs.h. */
18443: _ACEOF
18444: cat confdefs.h >>conftest.$ac_ext
18445: cat >>conftest.$ac_ext <<_ACEOF
18446: /* end confdefs.h. */
18447:
18448: #define _XOPEN_SOURCE_EXTENDED 1
18449: #include <errno.h>
18450: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18451: #include <stdio.h>
18452: #include <stdlib.h>
18453:
18454: static long int longval () { return EMULTIHOP; }
18455: static unsigned long int ulongval () { return EMULTIHOP; }
18456: #include <stdio.h>
18457: #include <stdlib.h>
18458: int
18459: main ()
18460: {
18461:
18462: FILE *f = fopen ("conftest.val", "w");
18463: if (! f)
18464: return 1;
18465: if ((EMULTIHOP) < 0)
18466: {
18467: long int i = longval ();
18468: if (i != (EMULTIHOP))
18469: return 1;
18470: fprintf (f, "%ld", i);
18471: }
18472: else
18473: {
18474: unsigned long int i = ulongval ();
18475: if (i != (EMULTIHOP))
18476: return 1;
18477: fprintf (f, "%lu", i);
18478: }
18479: /* Do not output a trailing newline, as this causes \r\n confusion
18480: on some platforms. */
18481: return ferror (f) || fclose (f) != 0;
18482:
18483: ;
18484: return 0;
18485: }
18486: _ACEOF
18487: rm -f conftest$ac_exeext
18488: if { (ac_try="$ac_link"
18489: case "(($ac_try" in
18490: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491: *) ac_try_echo=$ac_try;;
18492: esac
18493: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18494: $as_echo "$ac_try_echo") >&5
18495: (eval "$ac_link") 2>&5
18496: ac_status=$?
18497: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18499: { (case "(($ac_try" in
18500: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501: *) ac_try_echo=$ac_try;;
18502: esac
18503: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18504: $as_echo "$ac_try_echo") >&5
18505: (eval "$ac_try") 2>&5
18506: ac_status=$?
18507: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508: (exit $ac_status); }; }; then
18509: gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
18510: else
18511: $as_echo "$as_me: program exited with status $ac_status" >&5
18512: $as_echo "$as_me: failed program was:" >&5
18513: sed 's/^/| /' conftest.$ac_ext >&5
18514:
18515: fi
18516: rm -rf conftest.dSYM
18517: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18518: fi
18519: rm -f conftest.val
18520: fi
18521: fi
18522:
18523: fi
18524: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18525: $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18526: case $gl_cv_header_errno_h_EMULTIHOP in
18527: yes | no)
18528: EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18529: ;;
18530: *)
18531: EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18532: ;;
18533: esac
18534:
18535:
18536: fi
18537:
18538:
18539: if test -n "$ERRNO_H"; then
18540: { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
18541: $as_echo_n "checking for ENOLINK value... " >&6; }
18542: if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
18543: $as_echo_n "(cached) " >&6
18544: else
18545:
18546: cat >conftest.$ac_ext <<_ACEOF
18547: /* confdefs.h. */
18548: _ACEOF
18549: cat confdefs.h >>conftest.$ac_ext
18550: cat >>conftest.$ac_ext <<_ACEOF
18551: /* end confdefs.h. */
18552:
18553: #include <errno.h>
18554: #ifdef ENOLINK
18555: yes
18556: #endif
18557:
18558: _ACEOF
18559: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18560: $EGREP "yes" >/dev/null 2>&1; then
18561: gl_cv_header_errno_h_ENOLINK=yes
18562: else
18563: gl_cv_header_errno_h_ENOLINK=no
18564: fi
18565: rm -f conftest*
18566:
18567: if test $gl_cv_header_errno_h_ENOLINK = no; then
18568: cat >conftest.$ac_ext <<_ACEOF
18569: /* confdefs.h. */
18570: _ACEOF
18571: cat confdefs.h >>conftest.$ac_ext
18572: cat >>conftest.$ac_ext <<_ACEOF
18573: /* end confdefs.h. */
18574:
18575: #define _XOPEN_SOURCE_EXTENDED 1
18576: #include <errno.h>
18577: #ifdef ENOLINK
18578: yes
18579: #endif
18580:
18581: _ACEOF
18582: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18583: $EGREP "yes" >/dev/null 2>&1; then
18584: gl_cv_header_errno_h_ENOLINK=hidden
18585: fi
18586: rm -f conftest*
18587:
18588: if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18589: if test "$cross_compiling" = yes; then
18590: # Depending upon the size, compute the lo and hi bounds.
18591: cat >conftest.$ac_ext <<_ACEOF
18592: /* confdefs.h. */
18593: _ACEOF
18594: cat confdefs.h >>conftest.$ac_ext
18595: cat >>conftest.$ac_ext <<_ACEOF
18596: /* end confdefs.h. */
18597:
18598: #define _XOPEN_SOURCE_EXTENDED 1
18599: #include <errno.h>
18600: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18601: #include <stdio.h>
18602: #include <stdlib.h>
18603:
18604: int
18605: main ()
18606: {
18607: static int test_array [1 - 2 * !((ENOLINK) >= 0)];
18608: test_array [0] = 0
18609:
18610: ;
18611: return 0;
18612: }
18613: _ACEOF
18614: rm -f conftest.$ac_objext
18615: if { (ac_try="$ac_compile"
18616: case "(($ac_try" in
18617: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618: *) ac_try_echo=$ac_try;;
18619: esac
18620: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18621: $as_echo "$ac_try_echo") >&5
18622: (eval "$ac_compile") 2>conftest.er1
18623: ac_status=$?
18624: grep -v '^ *+' conftest.er1 >conftest.err
18625: rm -f conftest.er1
18626: cat conftest.err >&5
18627: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628: (exit $ac_status); } && {
18629: test -z "$ac_c_werror_flag" ||
18630: test ! -s conftest.err
18631: } && test -s conftest.$ac_objext; then
18632: ac_lo=0 ac_mid=0
18633: while :; do
18634: cat >conftest.$ac_ext <<_ACEOF
18635: /* confdefs.h. */
18636: _ACEOF
18637: cat confdefs.h >>conftest.$ac_ext
18638: cat >>conftest.$ac_ext <<_ACEOF
18639: /* end confdefs.h. */
18640:
18641: #define _XOPEN_SOURCE_EXTENDED 1
18642: #include <errno.h>
18643: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18644: #include <stdio.h>
18645: #include <stdlib.h>
18646:
18647: int
18648: main ()
18649: {
18650: static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
18651: test_array [0] = 0
18652:
18653: ;
18654: return 0;
18655: }
18656: _ACEOF
18657: rm -f conftest.$ac_objext
18658: if { (ac_try="$ac_compile"
18659: case "(($ac_try" in
18660: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661: *) ac_try_echo=$ac_try;;
18662: esac
18663: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18664: $as_echo "$ac_try_echo") >&5
18665: (eval "$ac_compile") 2>conftest.er1
18666: ac_status=$?
18667: grep -v '^ *+' conftest.er1 >conftest.err
18668: rm -f conftest.er1
18669: cat conftest.err >&5
18670: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671: (exit $ac_status); } && {
18672: test -z "$ac_c_werror_flag" ||
18673: test ! -s conftest.err
18674: } && test -s conftest.$ac_objext; then
18675: ac_hi=$ac_mid; break
18676: else
18677: $as_echo "$as_me: failed program was:" >&5
18678: sed 's/^/| /' conftest.$ac_ext >&5
18679:
18680: ac_lo=`expr $ac_mid + 1`
18681: if test $ac_lo -le $ac_mid; then
18682: ac_lo= ac_hi=
18683: break
18684: fi
18685: ac_mid=`expr 2 '*' $ac_mid + 1`
18686: fi
18687:
18688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18689: done
18690: else
18691: $as_echo "$as_me: failed program was:" >&5
18692: sed 's/^/| /' conftest.$ac_ext >&5
18693:
18694: cat >conftest.$ac_ext <<_ACEOF
18695: /* confdefs.h. */
18696: _ACEOF
18697: cat confdefs.h >>conftest.$ac_ext
18698: cat >>conftest.$ac_ext <<_ACEOF
18699: /* end confdefs.h. */
18700:
18701: #define _XOPEN_SOURCE_EXTENDED 1
18702: #include <errno.h>
18703: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18704: #include <stdio.h>
18705: #include <stdlib.h>
18706:
18707: int
18708: main ()
18709: {
18710: static int test_array [1 - 2 * !((ENOLINK) < 0)];
18711: test_array [0] = 0
18712:
18713: ;
18714: return 0;
18715: }
18716: _ACEOF
18717: rm -f conftest.$ac_objext
18718: if { (ac_try="$ac_compile"
18719: case "(($ac_try" in
18720: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721: *) ac_try_echo=$ac_try;;
18722: esac
18723: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18724: $as_echo "$ac_try_echo") >&5
18725: (eval "$ac_compile") 2>conftest.er1
18726: ac_status=$?
18727: grep -v '^ *+' conftest.er1 >conftest.err
18728: rm -f conftest.er1
18729: cat conftest.err >&5
18730: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731: (exit $ac_status); } && {
18732: test -z "$ac_c_werror_flag" ||
18733: test ! -s conftest.err
18734: } && test -s conftest.$ac_objext; then
18735: ac_hi=-1 ac_mid=-1
18736: while :; do
18737: cat >conftest.$ac_ext <<_ACEOF
18738: /* confdefs.h. */
18739: _ACEOF
18740: cat confdefs.h >>conftest.$ac_ext
18741: cat >>conftest.$ac_ext <<_ACEOF
18742: /* end confdefs.h. */
18743:
18744: #define _XOPEN_SOURCE_EXTENDED 1
18745: #include <errno.h>
18746: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18747: #include <stdio.h>
18748: #include <stdlib.h>
18749:
18750: int
18751: main ()
18752: {
18753: static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
18754: test_array [0] = 0
18755:
18756: ;
18757: return 0;
18758: }
18759: _ACEOF
18760: rm -f conftest.$ac_objext
18761: if { (ac_try="$ac_compile"
18762: case "(($ac_try" in
18763: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764: *) ac_try_echo=$ac_try;;
18765: esac
18766: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18767: $as_echo "$ac_try_echo") >&5
18768: (eval "$ac_compile") 2>conftest.er1
18769: ac_status=$?
18770: grep -v '^ *+' conftest.er1 >conftest.err
18771: rm -f conftest.er1
18772: cat conftest.err >&5
18773: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774: (exit $ac_status); } && {
18775: test -z "$ac_c_werror_flag" ||
18776: test ! -s conftest.err
18777: } && test -s conftest.$ac_objext; then
18778: ac_lo=$ac_mid; break
18779: else
18780: $as_echo "$as_me: failed program was:" >&5
18781: sed 's/^/| /' conftest.$ac_ext >&5
18782:
18783: ac_hi=`expr '(' $ac_mid ')' - 1`
18784: if test $ac_mid -le $ac_hi; then
18785: ac_lo= ac_hi=
18786: break
18787: fi
18788: ac_mid=`expr 2 '*' $ac_mid`
18789: fi
18790:
18791: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18792: done
18793: else
18794: $as_echo "$as_me: failed program was:" >&5
18795: sed 's/^/| /' conftest.$ac_ext >&5
18796:
18797: ac_lo= ac_hi=
18798: fi
18799:
18800: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18801: fi
18802:
18803: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18804: # Binary search between lo and hi bounds.
18805: while test "x$ac_lo" != "x$ac_hi"; do
18806: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18807: cat >conftest.$ac_ext <<_ACEOF
18808: /* confdefs.h. */
18809: _ACEOF
18810: cat confdefs.h >>conftest.$ac_ext
18811: cat >>conftest.$ac_ext <<_ACEOF
18812: /* end confdefs.h. */
18813:
18814: #define _XOPEN_SOURCE_EXTENDED 1
18815: #include <errno.h>
18816: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18817: #include <stdio.h>
18818: #include <stdlib.h>
18819:
18820: int
18821: main ()
18822: {
18823: static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
18824: test_array [0] = 0
18825:
18826: ;
18827: return 0;
18828: }
18829: _ACEOF
18830: rm -f conftest.$ac_objext
18831: if { (ac_try="$ac_compile"
18832: case "(($ac_try" in
18833: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834: *) ac_try_echo=$ac_try;;
18835: esac
18836: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837: $as_echo "$ac_try_echo") >&5
18838: (eval "$ac_compile") 2>conftest.er1
18839: ac_status=$?
18840: grep -v '^ *+' conftest.er1 >conftest.err
18841: rm -f conftest.er1
18842: cat conftest.err >&5
18843: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844: (exit $ac_status); } && {
18845: test -z "$ac_c_werror_flag" ||
18846: test ! -s conftest.err
18847: } && test -s conftest.$ac_objext; then
18848: ac_hi=$ac_mid
18849: else
18850: $as_echo "$as_me: failed program was:" >&5
18851: sed 's/^/| /' conftest.$ac_ext >&5
18852:
18853: ac_lo=`expr '(' $ac_mid ')' + 1`
18854: fi
18855:
18856: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857: done
18858: case $ac_lo in
18859: ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
18860: '') ;;
18861: esac
18862: else
18863: cat >conftest.$ac_ext <<_ACEOF
18864: /* confdefs.h. */
18865: _ACEOF
18866: cat confdefs.h >>conftest.$ac_ext
18867: cat >>conftest.$ac_ext <<_ACEOF
18868: /* end confdefs.h. */
18869:
18870: #define _XOPEN_SOURCE_EXTENDED 1
18871: #include <errno.h>
18872: /* The following two lines are a workaround against an autoconf-2.52 bug. */
18873: #include <stdio.h>
18874: #include <stdlib.h>
18875:
18876: static long int longval () { return ENOLINK; }
18877: static unsigned long int ulongval () { return ENOLINK; }
18878: #include <stdio.h>
18879: #include <stdlib.h>
18880: int
18881: main ()
18882: {
18883:
18884: FILE *f = fopen ("conftest.val", "w");
18885: if (! f)
18886: return 1;
18887: if ((ENOLINK) < 0)
18888: {
18889: long int i = longval ();
18890: if (i != (ENOLINK))
18891: return 1;
18892: fprintf (f, "%ld", i);
18893: }
18894: else
18895: {
18896: unsigned long int i = ulongval ();
18897: if (i != (ENOLINK))
18898: return 1;
18899: fprintf (f, "%lu", i);
18900: }
18901: /* Do not output a trailing newline, as this causes \r\n confusion
18902: on some platforms. */
18903: return ferror (f) || fclose (f) != 0;
18904:
18905: ;
18906: return 0;
18907: }
18908: _ACEOF
18909: rm -f conftest$ac_exeext
18910: if { (ac_try="$ac_link"
18911: case "(($ac_try" in
18912: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913: *) ac_try_echo=$ac_try;;
18914: esac
18915: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18916: $as_echo "$ac_try_echo") >&5
18917: (eval "$ac_link") 2>&5
18918: ac_status=$?
18919: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18921: { (case "(($ac_try" in
18922: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923: *) ac_try_echo=$ac_try;;
18924: esac
18925: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18926: $as_echo "$ac_try_echo") >&5
18927: (eval "$ac_try") 2>&5
18928: ac_status=$?
18929: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930: (exit $ac_status); }; }; then
18931: gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
18932: else
18933: $as_echo "$as_me: program exited with status $ac_status" >&5
18934: $as_echo "$as_me: failed program was:" >&5
18935: sed 's/^/| /' conftest.$ac_ext >&5
18936:
18937: fi
18938: rm -rf conftest.dSYM
18939: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18940: fi
18941: rm -f conftest.val
18942: fi
18943: fi
18944:
18945: fi
18946: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
18947: $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18948: case $gl_cv_header_errno_h_ENOLINK in
18949: yes | no)
18950: ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18951: ;;
18952: *)
18953: ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18954: ;;
18955: esac
18956:
18957:
18958: fi
18959:
18960:
18961: if test -n "$ERRNO_H"; then
18962: { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
18963: $as_echo_n "checking for EOVERFLOW value... " >&6; }
18964: if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
18965: $as_echo_n "(cached) " >&6
18966: else
18967:
18968: cat >conftest.$ac_ext <<_ACEOF
18969: /* confdefs.h. */
18970: _ACEOF
18971: cat confdefs.h >>conftest.$ac_ext
18972: cat >>conftest.$ac_ext <<_ACEOF
18973: /* end confdefs.h. */
18974:
18975: #include <errno.h>
18976: #ifdef EOVERFLOW
18977: yes
18978: #endif
18979:
18980: _ACEOF
18981: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18982: $EGREP "yes" >/dev/null 2>&1; then
18983: gl_cv_header_errno_h_EOVERFLOW=yes
18984: else
18985: gl_cv_header_errno_h_EOVERFLOW=no
18986: fi
18987: rm -f conftest*
18988:
18989: if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18990: cat >conftest.$ac_ext <<_ACEOF
18991: /* confdefs.h. */
18992: _ACEOF
18993: cat confdefs.h >>conftest.$ac_ext
18994: cat >>conftest.$ac_ext <<_ACEOF
18995: /* end confdefs.h. */
18996:
18997: #define _XOPEN_SOURCE_EXTENDED 1
18998: #include <errno.h>
18999: #ifdef EOVERFLOW
19000: yes
19001: #endif
19002:
19003: _ACEOF
19004: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19005: $EGREP "yes" >/dev/null 2>&1; then
19006: gl_cv_header_errno_h_EOVERFLOW=hidden
19007: fi
19008: rm -f conftest*
19009:
19010: if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
19011: if test "$cross_compiling" = yes; then
19012: # Depending upon the size, compute the lo and hi bounds.
19013: cat >conftest.$ac_ext <<_ACEOF
19014: /* confdefs.h. */
19015: _ACEOF
19016: cat confdefs.h >>conftest.$ac_ext
19017: cat >>conftest.$ac_ext <<_ACEOF
19018: /* end confdefs.h. */
19019:
19020: #define _XOPEN_SOURCE_EXTENDED 1
19021: #include <errno.h>
19022: /* The following two lines are a workaround against an autoconf-2.52 bug. */
19023: #include <stdio.h>
19024: #include <stdlib.h>
19025:
19026: int
19027: main ()
19028: {
19029: static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
19030: test_array [0] = 0
19031:
19032: ;
19033: return 0;
19034: }
19035: _ACEOF
19036: rm -f conftest.$ac_objext
19037: if { (ac_try="$ac_compile"
19038: case "(($ac_try" in
19039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040: *) ac_try_echo=$ac_try;;
19041: esac
19042: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19043: $as_echo "$ac_try_echo") >&5
19044: (eval "$ac_compile") 2>conftest.er1
19045: ac_status=$?
19046: grep -v '^ *+' conftest.er1 >conftest.err
19047: rm -f conftest.er1
19048: cat conftest.err >&5
19049: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050: (exit $ac_status); } && {
19051: test -z "$ac_c_werror_flag" ||
19052: test ! -s conftest.err
19053: } && test -s conftest.$ac_objext; then
19054: ac_lo=0 ac_mid=0
19055: while :; do
19056: cat >conftest.$ac_ext <<_ACEOF
19057: /* confdefs.h. */
19058: _ACEOF
19059: cat confdefs.h >>conftest.$ac_ext
19060: cat >>conftest.$ac_ext <<_ACEOF
19061: /* end confdefs.h. */
19062:
19063: #define _XOPEN_SOURCE_EXTENDED 1
19064: #include <errno.h>
19065: /* The following two lines are a workaround against an autoconf-2.52 bug. */
19066: #include <stdio.h>
19067: #include <stdlib.h>
19068:
19069: int
19070: main ()
19071: {
19072: static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
19073: test_array [0] = 0
19074:
19075: ;
19076: return 0;
19077: }
19078: _ACEOF
19079: rm -f conftest.$ac_objext
19080: if { (ac_try="$ac_compile"
19081: case "(($ac_try" in
19082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083: *) ac_try_echo=$ac_try;;
19084: esac
19085: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19086: $as_echo "$ac_try_echo") >&5
19087: (eval "$ac_compile") 2>conftest.er1
19088: ac_status=$?
19089: grep -v '^ *+' conftest.er1 >conftest.err
19090: rm -f conftest.er1
19091: cat conftest.err >&5
19092: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093: (exit $ac_status); } && {
19094: test -z "$ac_c_werror_flag" ||
19095: test ! -s conftest.err
19096: } && test -s conftest.$ac_objext; then
19097: ac_hi=$ac_mid; break
19098: else
19099: $as_echo "$as_me: failed program was:" >&5
19100: sed 's/^/| /' conftest.$ac_ext >&5
19101:
19102: ac_lo=`expr $ac_mid + 1`
19103: if test $ac_lo -le $ac_mid; then
19104: ac_lo= ac_hi=
19105: break
19106: fi
19107: ac_mid=`expr 2 '*' $ac_mid + 1`
19108: fi
19109:
19110: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111: done
19112: else
19113: $as_echo "$as_me: failed program was:" >&5
19114: sed 's/^/| /' conftest.$ac_ext >&5
19115:
19116: cat >conftest.$ac_ext <<_ACEOF
19117: /* confdefs.h. */
19118: _ACEOF
19119: cat confdefs.h >>conftest.$ac_ext
19120: cat >>conftest.$ac_ext <<_ACEOF
19121: /* end confdefs.h. */
19122:
19123: #define _XOPEN_SOURCE_EXTENDED 1
19124: #include <errno.h>
19125: /* The following two lines are a workaround against an autoconf-2.52 bug. */
19126: #include <stdio.h>
19127: #include <stdlib.h>
19128:
19129: int
19130: main ()
19131: {
19132: static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
19133: test_array [0] = 0
19134:
19135: ;
19136: return 0;
19137: }
19138: _ACEOF
19139: rm -f conftest.$ac_objext
19140: if { (ac_try="$ac_compile"
19141: case "(($ac_try" in
19142: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143: *) ac_try_echo=$ac_try;;
19144: esac
19145: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19146: $as_echo "$ac_try_echo") >&5
19147: (eval "$ac_compile") 2>conftest.er1
19148: ac_status=$?
19149: grep -v '^ *+' conftest.er1 >conftest.err
19150: rm -f conftest.er1
19151: cat conftest.err >&5
19152: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153: (exit $ac_status); } && {
19154: test -z "$ac_c_werror_flag" ||
19155: test ! -s conftest.err
19156: } && test -s conftest.$ac_objext; then
19157: ac_hi=-1 ac_mid=-1
19158: while :; do
19159: cat >conftest.$ac_ext <<_ACEOF
19160: /* confdefs.h. */
19161: _ACEOF
19162: cat confdefs.h >>conftest.$ac_ext
19163: cat >>conftest.$ac_ext <<_ACEOF
19164: /* end confdefs.h. */
19165:
19166: #define _XOPEN_SOURCE_EXTENDED 1
19167: #include <errno.h>
19168: /* The following two lines are a workaround against an autoconf-2.52 bug. */
19169: #include <stdio.h>
19170: #include <stdlib.h>
19171:
19172: int
19173: main ()
19174: {
19175: static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
19176: test_array [0] = 0
19177:
19178: ;
19179: return 0;
19180: }
19181: _ACEOF
19182: rm -f conftest.$ac_objext
19183: if { (ac_try="$ac_compile"
19184: case "(($ac_try" in
19185: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186: *) ac_try_echo=$ac_try;;
19187: esac
19188: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19189: $as_echo "$ac_try_echo") >&5
19190: (eval "$ac_compile") 2>conftest.er1
19191: ac_status=$?
19192: grep -v '^ *+' conftest.er1 >conftest.err
19193: rm -f conftest.er1
19194: cat conftest.err >&5
19195: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196: (exit $ac_status); } && {
19197: test -z "$ac_c_werror_flag" ||
19198: test ! -s conftest.err
19199: } && test -s conftest.$ac_objext; then
19200: ac_lo=$ac_mid; break
19201: else
19202: $as_echo "$as_me: failed program was:" >&5
19203: sed 's/^/| /' conftest.$ac_ext >&5
19204:
19205: ac_hi=`expr '(' $ac_mid ')' - 1`
19206: if test $ac_mid -le $ac_hi; then
19207: ac_lo= ac_hi=
19208: break
19209: fi
19210: ac_mid=`expr 2 '*' $ac_mid`
19211: fi
19212:
19213: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214: done
19215: else
19216: $as_echo "$as_me: failed program was:" >&5
19217: sed 's/^/| /' conftest.$ac_ext >&5
19218:
19219: ac_lo= ac_hi=
19220: fi
19221:
19222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223: fi
19224:
19225: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226: # Binary search between lo and hi bounds.
19227: while test "x$ac_lo" != "x$ac_hi"; do
19228: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19229: cat >conftest.$ac_ext <<_ACEOF
19230: /* confdefs.h. */
19231: _ACEOF
19232: cat confdefs.h >>conftest.$ac_ext
19233: cat >>conftest.$ac_ext <<_ACEOF
19234: /* end confdefs.h. */
19235:
19236: #define _XOPEN_SOURCE_EXTENDED 1
19237: #include <errno.h>
19238: /* The following two lines are a workaround against an autoconf-2.52 bug. */
19239: #include <stdio.h>
19240: #include <stdlib.h>
19241:
19242: int
19243: main ()
19244: {
19245: static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
19246: test_array [0] = 0
19247:
19248: ;
19249: return 0;
19250: }
19251: _ACEOF
19252: rm -f conftest.$ac_objext
19253: if { (ac_try="$ac_compile"
19254: case "(($ac_try" in
19255: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256: *) ac_try_echo=$ac_try;;
19257: esac
19258: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19259: $as_echo "$ac_try_echo") >&5
19260: (eval "$ac_compile") 2>conftest.er1
19261: ac_status=$?
19262: grep -v '^ *+' conftest.er1 >conftest.err
19263: rm -f conftest.er1
19264: cat conftest.err >&5
19265: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266: (exit $ac_status); } && {
19267: test -z "$ac_c_werror_flag" ||
19268: test ! -s conftest.err
19269: } && test -s conftest.$ac_objext; then
19270: ac_hi=$ac_mid
19271: else
19272: $as_echo "$as_me: failed program was:" >&5
19273: sed 's/^/| /' conftest.$ac_ext >&5
19274:
19275: ac_lo=`expr '(' $ac_mid ')' + 1`
19276: fi
19277:
19278: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279: done
19280: case $ac_lo in
19281: ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
19282: '') ;;
19283: esac
19284: else
19285: cat >conftest.$ac_ext <<_ACEOF
19286: /* confdefs.h. */
19287: _ACEOF
19288: cat confdefs.h >>conftest.$ac_ext
19289: cat >>conftest.$ac_ext <<_ACEOF
19290: /* end confdefs.h. */
19291:
19292: #define _XOPEN_SOURCE_EXTENDED 1
19293: #include <errno.h>
19294: /* The following two lines are a workaround against an autoconf-2.52 bug. */
19295: #include <stdio.h>
19296: #include <stdlib.h>
19297:
19298: static long int longval () { return EOVERFLOW; }
19299: static unsigned long int ulongval () { return EOVERFLOW; }
19300: #include <stdio.h>
19301: #include <stdlib.h>
19302: int
19303: main ()
19304: {
19305:
19306: FILE *f = fopen ("conftest.val", "w");
19307: if (! f)
19308: return 1;
19309: if ((EOVERFLOW) < 0)
19310: {
19311: long int i = longval ();
19312: if (i != (EOVERFLOW))
19313: return 1;
19314: fprintf (f, "%ld", i);
19315: }
19316: else
19317: {
19318: unsigned long int i = ulongval ();
19319: if (i != (EOVERFLOW))
19320: return 1;
19321: fprintf (f, "%lu", i);
19322: }
19323: /* Do not output a trailing newline, as this causes \r\n confusion
19324: on some platforms. */
19325: return ferror (f) || fclose (f) != 0;
19326:
19327: ;
19328: return 0;
19329: }
19330: _ACEOF
19331: rm -f conftest$ac_exeext
19332: if { (ac_try="$ac_link"
19333: case "(($ac_try" in
19334: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335: *) ac_try_echo=$ac_try;;
19336: esac
19337: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19338: $as_echo "$ac_try_echo") >&5
19339: (eval "$ac_link") 2>&5
19340: ac_status=$?
19341: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19343: { (case "(($ac_try" in
19344: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345: *) ac_try_echo=$ac_try;;
19346: esac
19347: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19348: $as_echo "$ac_try_echo") >&5
19349: (eval "$ac_try") 2>&5
19350: ac_status=$?
19351: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352: (exit $ac_status); }; }; then
19353: gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
19354: else
19355: $as_echo "$as_me: program exited with status $ac_status" >&5
19356: $as_echo "$as_me: failed program was:" >&5
19357: sed 's/^/| /' conftest.$ac_ext >&5
19358:
19359: fi
19360: rm -rf conftest.dSYM
19361: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19362: fi
19363: rm -f conftest.val
19364: fi
19365: fi
19366:
19367: fi
19368: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
19369: $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
19370: case $gl_cv_header_errno_h_EOVERFLOW in
19371: yes | no)
19372: EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
19373: ;;
19374: *)
19375: EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
19376: ;;
19377: esac
19378:
19379:
19380: fi
19381:
19382:
19383: { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
19384: $as_echo_n "checking whether strerror_r is declared... " >&6; }
19385: if test "${ac_cv_have_decl_strerror_r+set}" = set; then
19386: $as_echo_n "(cached) " >&6
19387: else
19388: cat >conftest.$ac_ext <<_ACEOF
19389: /* confdefs.h. */
19390: _ACEOF
19391: cat confdefs.h >>conftest.$ac_ext
19392: cat >>conftest.$ac_ext <<_ACEOF
19393: /* end confdefs.h. */
19394: $ac_includes_default
19395: int
19396: main ()
19397: {
19398: #ifndef strerror_r
19399: (void) strerror_r;
19400: #endif
19401:
19402: ;
19403: return 0;
19404: }
19405: _ACEOF
19406: rm -f conftest.$ac_objext
19407: if { (ac_try="$ac_compile"
19408: case "(($ac_try" in
19409: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410: *) ac_try_echo=$ac_try;;
19411: esac
19412: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19413: $as_echo "$ac_try_echo") >&5
19414: (eval "$ac_compile") 2>conftest.er1
19415: ac_status=$?
19416: grep -v '^ *+' conftest.er1 >conftest.err
19417: rm -f conftest.er1
19418: cat conftest.err >&5
19419: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420: (exit $ac_status); } && {
19421: test -z "$ac_c_werror_flag" ||
19422: test ! -s conftest.err
19423: } && test -s conftest.$ac_objext; then
19424: ac_cv_have_decl_strerror_r=yes
19425: else
19426: $as_echo "$as_me: failed program was:" >&5
19427: sed 's/^/| /' conftest.$ac_ext >&5
19428:
19429: ac_cv_have_decl_strerror_r=no
19430: fi
19431:
19432: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433: fi
19434: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
19435: $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
19436: if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
19437:
19438: cat >>confdefs.h <<_ACEOF
19439: #define HAVE_DECL_STRERROR_R 1
19440: _ACEOF
19441:
19442:
19443: else
19444: cat >>confdefs.h <<_ACEOF
19445: #define HAVE_DECL_STRERROR_R 0
19446: _ACEOF
19447:
19448:
19449: fi
19450:
19451:
19452:
19453: for ac_func in strerror_r
19454: do
19455: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19456: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19457: $as_echo_n "checking for $ac_func... " >&6; }
19458: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19459: $as_echo_n "(cached) " >&6
19460: else
19461: cat >conftest.$ac_ext <<_ACEOF
19462: /* confdefs.h. */
19463: _ACEOF
19464: cat confdefs.h >>conftest.$ac_ext
19465: cat >>conftest.$ac_ext <<_ACEOF
19466: /* end confdefs.h. */
19467: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19468: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19469: #define $ac_func innocuous_$ac_func
19470:
19471: /* System header to define __stub macros and hopefully few prototypes,
19472: which can conflict with char $ac_func (); below.
19473: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19474: <limits.h> exists even on freestanding compilers. */
19475:
19476: #ifdef __STDC__
19477: # include <limits.h>
19478: #else
19479: # include <assert.h>
19480: #endif
19481:
19482: #undef $ac_func
19483:
19484: /* Override any GCC internal prototype to avoid an error.
19485: Use char because int might match the return type of a GCC
19486: builtin and then its argument prototype would still apply. */
19487: #ifdef __cplusplus
19488: extern "C"
19489: #endif
19490: char $ac_func ();
19491: /* The GNU C library defines this for functions which it implements
19492: to always fail with ENOSYS. Some functions are actually named
19493: something starting with __ and the normal name is an alias. */
19494: #if defined __stub_$ac_func || defined __stub___$ac_func
19495: choke me
19496: #endif
19497:
19498: int
19499: main ()
19500: {
19501: return $ac_func ();
19502: ;
19503: return 0;
19504: }
19505: _ACEOF
19506: rm -f conftest.$ac_objext conftest$ac_exeext
19507: if { (ac_try="$ac_link"
19508: case "(($ac_try" in
19509: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510: *) ac_try_echo=$ac_try;;
19511: esac
19512: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19513: $as_echo "$ac_try_echo") >&5
19514: (eval "$ac_link") 2>conftest.er1
19515: ac_status=$?
19516: grep -v '^ *+' conftest.er1 >conftest.err
19517: rm -f conftest.er1
19518: cat conftest.err >&5
19519: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520: (exit $ac_status); } && {
19521: test -z "$ac_c_werror_flag" ||
19522: test ! -s conftest.err
19523: } && test -s conftest$ac_exeext && {
19524: test "$cross_compiling" = yes ||
19525: $as_test_x conftest$ac_exeext
19526: }; then
19527: eval "$as_ac_var=yes"
19528: else
19529: $as_echo "$as_me: failed program was:" >&5
19530: sed 's/^/| /' conftest.$ac_ext >&5
19531:
19532: eval "$as_ac_var=no"
19533: fi
19534:
19535: rm -rf conftest.dSYM
19536: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19537: conftest$ac_exeext conftest.$ac_ext
19538: fi
19539: ac_res=`eval 'as_val=${'$as_ac_var'}
19540: $as_echo "$as_val"'`
19541: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19542: $as_echo "$ac_res" >&6; }
19543: as_val=`eval 'as_val=${'$as_ac_var'}
19544: $as_echo "$as_val"'`
19545: if test "x$as_val" = x""yes; then
19546: cat >>confdefs.h <<_ACEOF
19547: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19548: _ACEOF
19549:
19550: fi
19551: done
19552:
19553: { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
19554: $as_echo_n "checking whether strerror_r returns char *... " >&6; }
19555: if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
19556: $as_echo_n "(cached) " >&6
19557: else
19558:
19559: ac_cv_func_strerror_r_char_p=no
19560: if test $ac_cv_have_decl_strerror_r = yes; then
19561: cat >conftest.$ac_ext <<_ACEOF
19562: /* confdefs.h. */
19563: _ACEOF
19564: cat confdefs.h >>conftest.$ac_ext
19565: cat >>conftest.$ac_ext <<_ACEOF
19566: /* end confdefs.h. */
19567: $ac_includes_default
19568: int
19569: main ()
19570: {
19571:
19572: char buf[100];
19573: char x = *strerror_r (0, buf, sizeof buf);
19574: char *p = strerror_r (0, buf, sizeof buf);
19575: return !p || x;
19576:
19577: ;
19578: return 0;
19579: }
19580: _ACEOF
19581: rm -f conftest.$ac_objext
19582: if { (ac_try="$ac_compile"
19583: case "(($ac_try" in
19584: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585: *) ac_try_echo=$ac_try;;
19586: esac
19587: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19588: $as_echo "$ac_try_echo") >&5
19589: (eval "$ac_compile") 2>conftest.er1
19590: ac_status=$?
19591: grep -v '^ *+' conftest.er1 >conftest.err
19592: rm -f conftest.er1
19593: cat conftest.err >&5
19594: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595: (exit $ac_status); } && {
19596: test -z "$ac_c_werror_flag" ||
19597: test ! -s conftest.err
19598: } && test -s conftest.$ac_objext; then
19599: ac_cv_func_strerror_r_char_p=yes
19600: else
19601: $as_echo "$as_me: failed program was:" >&5
19602: sed 's/^/| /' conftest.$ac_ext >&5
19603:
19604:
19605: fi
19606:
19607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608: else
19609: # strerror_r is not declared. Choose between
19610: # systems that have relatively inaccessible declarations for the
19611: # function. BeOS and DEC UNIX 4.0 fall in this category, but the
19612: # former has a strerror_r that returns char*, while the latter
19613: # has a strerror_r that returns `int'.
19614: # This test should segfault on the DEC system.
19615: if test "$cross_compiling" = yes; then
19616: :
19617: else
19618: cat >conftest.$ac_ext <<_ACEOF
19619: /* confdefs.h. */
19620: _ACEOF
19621: cat confdefs.h >>conftest.$ac_ext
19622: cat >>conftest.$ac_ext <<_ACEOF
19623: /* end confdefs.h. */
19624: $ac_includes_default
19625: extern char *strerror_r ();
19626: int
19627: main ()
19628: {
19629: char buf[100];
19630: char x = *strerror_r (0, buf, sizeof buf);
19631: return ! isalpha (x);
19632: ;
19633: return 0;
19634: }
19635: _ACEOF
19636: rm -f conftest$ac_exeext
19637: if { (ac_try="$ac_link"
19638: case "(($ac_try" in
19639: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640: *) ac_try_echo=$ac_try;;
19641: esac
19642: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19643: $as_echo "$ac_try_echo") >&5
19644: (eval "$ac_link") 2>&5
19645: ac_status=$?
19646: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19648: { (case "(($ac_try" in
19649: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650: *) ac_try_echo=$ac_try;;
19651: esac
19652: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19653: $as_echo "$ac_try_echo") >&5
19654: (eval "$ac_try") 2>&5
19655: ac_status=$?
19656: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657: (exit $ac_status); }; }; then
19658: ac_cv_func_strerror_r_char_p=yes
19659: else
19660: $as_echo "$as_me: program exited with status $ac_status" >&5
19661: $as_echo "$as_me: failed program was:" >&5
19662: sed 's/^/| /' conftest.$ac_ext >&5
19663:
19664: fi
19665: rm -rf conftest.dSYM
19666: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19667: fi
19668:
19669:
19670: fi
19671:
19672: fi
19673: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
19674: $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19675: if test $ac_cv_func_strerror_r_char_p = yes; then
19676:
19677: cat >>confdefs.h <<\_ACEOF
19678: #define STRERROR_R_CHAR_P 1
19679: _ACEOF
19680:
19681: fi
19682:
19683:
19684: XGETTEXT_EXTRA_OPTIONS=
19685:
19686:
19687: { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19688: $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19689: if test "${gl_cv_func_malloc_posix+set}" = set; then
19690: $as_echo_n "(cached) " >&6
19691: else
19692:
19693: cat >conftest.$ac_ext <<_ACEOF
19694: /* confdefs.h. */
19695: _ACEOF
19696: cat confdefs.h >>conftest.$ac_ext
19697: cat >>conftest.$ac_ext <<_ACEOF
19698: /* end confdefs.h. */
19699:
19700: int
19701: main ()
19702: {
19703: #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19704: choke me
19705: #endif
19706:
19707: ;
19708: return 0;
19709: }
19710: _ACEOF
19711: rm -f conftest.$ac_objext
19712: if { (ac_try="$ac_compile"
19713: case "(($ac_try" in
19714: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715: *) ac_try_echo=$ac_try;;
19716: esac
19717: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19718: $as_echo "$ac_try_echo") >&5
19719: (eval "$ac_compile") 2>conftest.er1
19720: ac_status=$?
19721: grep -v '^ *+' conftest.er1 >conftest.err
19722: rm -f conftest.er1
19723: cat conftest.err >&5
19724: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725: (exit $ac_status); } && {
19726: test -z "$ac_c_werror_flag" ||
19727: test ! -s conftest.err
19728: } && test -s conftest.$ac_objext; then
19729: gl_cv_func_malloc_posix=yes
19730: else
19731: $as_echo "$as_me: failed program was:" >&5
19732: sed 's/^/| /' conftest.$ac_ext >&5
19733:
19734: gl_cv_func_malloc_posix=no
19735: fi
19736:
19737: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738:
19739: fi
19740: { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
19741: $as_echo "$gl_cv_func_malloc_posix" >&6; }
19742:
19743:
19744: GNULIB_MALLOC_POSIX=0;
19745: GNULIB_REALLOC_POSIX=0;
19746: GNULIB_CALLOC_POSIX=0;
19747: GNULIB_ATOLL=0;
19748: GNULIB_GETLOADAVG=0;
19749: GNULIB_GETSUBOPT=0;
19750: GNULIB_MKDTEMP=0;
19751: GNULIB_MKSTEMP=0;
19752: GNULIB_PUTENV=0;
19753: GNULIB_RANDOM_R=0;
19754: GNULIB_RPMATCH=0;
19755: GNULIB_SETENV=0;
19756: GNULIB_STRTOD=0;
19757: GNULIB_STRTOLL=0;
19758: GNULIB_STRTOULL=0;
19759: GNULIB_UNSETENV=0;
19760: HAVE_ATOLL=1;
19761: HAVE_CALLOC_POSIX=1;
19762: HAVE_GETSUBOPT=1;
19763: HAVE_MALLOC_POSIX=1;
19764: HAVE_MKDTEMP=1;
19765: HAVE_REALLOC_POSIX=1;
19766: HAVE_RANDOM_R=1;
19767: HAVE_RPMATCH=1;
19768: HAVE_SETENV=1;
19769: HAVE_STRTOD=1;
19770: HAVE_STRTOLL=1;
19771: HAVE_STRTOULL=1;
19772: HAVE_STRUCT_RANDOM_DATA=1;
19773: HAVE_SYS_LOADAVG_H=0;
19774: HAVE_UNSETENV=1;
19775: HAVE_DECL_GETLOADAVG=1;
19776: REPLACE_MKSTEMP=0;
19777: REPLACE_PUTENV=0;
19778: REPLACE_STRTOD=0;
19779: VOID_UNSETENV=0;
19780:
19781:
19782:
19783: for ac_header in stdlib.h
19784: do
19785: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19786: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19787: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19788: $as_echo_n "checking for $ac_header... " >&6; }
19789: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19790: $as_echo_n "(cached) " >&6
19791: fi
19792: ac_res=`eval 'as_val=${'$as_ac_Header'}
19793: $as_echo "$as_val"'`
19794: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19795: $as_echo "$ac_res" >&6; }
19796: else
19797: # Is the header compilable?
19798: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19799: $as_echo_n "checking $ac_header usability... " >&6; }
19800: cat >conftest.$ac_ext <<_ACEOF
19801: /* confdefs.h. */
19802: _ACEOF
19803: cat confdefs.h >>conftest.$ac_ext
19804: cat >>conftest.$ac_ext <<_ACEOF
19805: /* end confdefs.h. */
19806: $ac_includes_default
19807: #include <$ac_header>
19808: _ACEOF
19809: rm -f conftest.$ac_objext
19810: if { (ac_try="$ac_compile"
19811: case "(($ac_try" in
19812: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813: *) ac_try_echo=$ac_try;;
19814: esac
19815: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19816: $as_echo "$ac_try_echo") >&5
19817: (eval "$ac_compile") 2>conftest.er1
19818: ac_status=$?
19819: grep -v '^ *+' conftest.er1 >conftest.err
19820: rm -f conftest.er1
19821: cat conftest.err >&5
19822: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823: (exit $ac_status); } && {
19824: test -z "$ac_c_werror_flag" ||
19825: test ! -s conftest.err
19826: } && test -s conftest.$ac_objext; then
19827: ac_header_compiler=yes
19828: else
19829: $as_echo "$as_me: failed program was:" >&5
19830: sed 's/^/| /' conftest.$ac_ext >&5
19831:
19832: ac_header_compiler=no
19833: fi
19834:
19835: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19837: $as_echo "$ac_header_compiler" >&6; }
19838:
19839: # Is the header present?
19840: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19841: $as_echo_n "checking $ac_header presence... " >&6; }
19842: cat >conftest.$ac_ext <<_ACEOF
19843: /* confdefs.h. */
19844: _ACEOF
19845: cat confdefs.h >>conftest.$ac_ext
19846: cat >>conftest.$ac_ext <<_ACEOF
19847: /* end confdefs.h. */
19848: #include <$ac_header>
19849: _ACEOF
19850: if { (ac_try="$ac_cpp conftest.$ac_ext"
19851: case "(($ac_try" in
19852: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853: *) ac_try_echo=$ac_try;;
19854: esac
19855: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19856: $as_echo "$ac_try_echo") >&5
19857: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19858: ac_status=$?
19859: grep -v '^ *+' conftest.er1 >conftest.err
19860: rm -f conftest.er1
19861: cat conftest.err >&5
19862: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863: (exit $ac_status); } >/dev/null && {
19864: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19865: test ! -s conftest.err
19866: }; then
19867: ac_header_preproc=yes
19868: else
19869: $as_echo "$as_me: failed program was:" >&5
19870: sed 's/^/| /' conftest.$ac_ext >&5
19871:
19872: ac_header_preproc=no
19873: fi
19874:
19875: rm -f conftest.err conftest.$ac_ext
19876: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19877: $as_echo "$ac_header_preproc" >&6; }
19878:
19879: # So? What about this header?
19880: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19881: yes:no: )
19882: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19883: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19884: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19885: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19886: ac_header_preproc=yes
19887: ;;
19888: no:yes:* )
19889: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19890: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19891: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19892: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19893: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19894: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19895: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19896: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19897: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19898: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19899: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19900: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19901:
19902: ;;
19903: esac
19904: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19905: $as_echo_n "checking for $ac_header... " >&6; }
19906: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907: $as_echo_n "(cached) " >&6
19908: else
19909: eval "$as_ac_Header=\$ac_header_preproc"
19910: fi
19911: ac_res=`eval 'as_val=${'$as_ac_Header'}
19912: $as_echo "$as_val"'`
19913: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19914: $as_echo "$ac_res" >&6; }
19915:
19916: fi
19917: as_val=`eval 'as_val=${'$as_ac_Header'}
19918: $as_echo "$as_val"'`
19919: if test "x$as_val" = x""yes; then
19920: cat >>confdefs.h <<_ACEOF
19921: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19922: _ACEOF
19923:
19924: fi
19925:
19926: done
19927:
19928: { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19929: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19930: if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19931: $as_echo_n "(cached) " >&6
19932: else
19933: if test "$cross_compiling" = yes; then
19934: ac_cv_func_malloc_0_nonnull=no
19935: else
19936: cat >conftest.$ac_ext <<_ACEOF
19937: /* confdefs.h. */
19938: _ACEOF
19939: cat confdefs.h >>conftest.$ac_ext
19940: cat >>conftest.$ac_ext <<_ACEOF
19941: /* end confdefs.h. */
19942: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19943: # include <stdlib.h>
19944: #else
19945: char *malloc ();
19946: #endif
19947:
19948: int
19949: main ()
19950: {
19951: return ! malloc (0);
19952: ;
19953: return 0;
19954: }
19955: _ACEOF
19956: rm -f conftest$ac_exeext
19957: if { (ac_try="$ac_link"
19958: case "(($ac_try" in
19959: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960: *) ac_try_echo=$ac_try;;
19961: esac
19962: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19963: $as_echo "$ac_try_echo") >&5
19964: (eval "$ac_link") 2>&5
19965: ac_status=$?
19966: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19968: { (case "(($ac_try" in
19969: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970: *) ac_try_echo=$ac_try;;
19971: esac
19972: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19973: $as_echo "$ac_try_echo") >&5
19974: (eval "$ac_try") 2>&5
19975: ac_status=$?
19976: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977: (exit $ac_status); }; }; then
19978: ac_cv_func_malloc_0_nonnull=yes
19979: else
19980: $as_echo "$as_me: program exited with status $ac_status" >&5
19981: $as_echo "$as_me: failed program was:" >&5
19982: sed 's/^/| /' conftest.$ac_ext >&5
19983:
19984: ( exit $ac_status )
19985: ac_cv_func_malloc_0_nonnull=no
19986: fi
19987: rm -rf conftest.dSYM
19988: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19989: fi
19990:
19991:
19992: fi
19993: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19994: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19995: if test $ac_cv_func_malloc_0_nonnull = yes; then
19996: gl_cv_func_malloc_0_nonnull=1
19997: else
19998: gl_cv_func_malloc_0_nonnull=0
19999: fi
20000:
20001:
20002:
20003: cat >>confdefs.h <<_ACEOF
20004: #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
20005: _ACEOF
20006:
20007:
20008:
20009: { $as_echo "$as_me:$LINENO: checking for long long int" >&5
20010: $as_echo_n "checking for long long int... " >&6; }
20011: if test "${ac_cv_type_long_long_int+set}" = set; then
20012: $as_echo_n "(cached) " >&6
20013: else
20014: cat >conftest.$ac_ext <<_ACEOF
20015:
20016: /* confdefs.h. */
20017: _ACEOF
20018: cat confdefs.h >>conftest.$ac_ext
20019: cat >>conftest.$ac_ext <<_ACEOF
20020: /* end confdefs.h. */
20021: /* For now, do not test the preprocessor; as of 2007 there are too many
20022: implementations with broken preprocessors. Perhaps this can
20023: be revisited in 2012. In the meantime, code should not expect
20024: #if to work with literals wider than 32 bits. */
20025: /* Test literals. */
20026: long long int ll = 9223372036854775807ll;
20027: long long int nll = -9223372036854775807LL;
20028: unsigned long long int ull = 18446744073709551615ULL;
20029: /* Test constant expressions. */
20030: typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20031: ? 1 : -1)];
20032: typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20033: ? 1 : -1)];
20034: int i = 63;
20035: int
20036: main ()
20037: {
20038: /* Test availability of runtime routines for shift and division. */
20039: long long int llmax = 9223372036854775807ll;
20040: unsigned long long int ullmax = 18446744073709551615ull;
20041: return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20042: | (llmax / ll) | (llmax % ll)
20043: | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20044: | (ullmax / ull) | (ullmax % ull));
20045: ;
20046: return 0;
20047: }
20048:
20049: _ACEOF
20050: rm -f conftest.$ac_objext conftest$ac_exeext
20051: if { (ac_try="$ac_link"
20052: case "(($ac_try" in
20053: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054: *) ac_try_echo=$ac_try;;
20055: esac
20056: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20057: $as_echo "$ac_try_echo") >&5
20058: (eval "$ac_link") 2>conftest.er1
20059: ac_status=$?
20060: grep -v '^ *+' conftest.er1 >conftest.err
20061: rm -f conftest.er1
20062: cat conftest.err >&5
20063: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064: (exit $ac_status); } && {
20065: test -z "$ac_c_werror_flag" ||
20066: test ! -s conftest.err
20067: } && test -s conftest$ac_exeext && {
20068: test "$cross_compiling" = yes ||
20069: $as_test_x conftest$ac_exeext
20070: }; then
20071: if test "$cross_compiling" = yes; then
20072: ac_cv_type_long_long_int=yes
20073: else
20074: cat >conftest.$ac_ext <<_ACEOF
20075: /* confdefs.h. */
20076: _ACEOF
20077: cat confdefs.h >>conftest.$ac_ext
20078: cat >>conftest.$ac_ext <<_ACEOF
20079: /* end confdefs.h. */
20080: #include <limits.h>
20081: #ifndef LLONG_MAX
20082: # define HALF \
20083: (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20084: # define LLONG_MAX (HALF - 1 + HALF)
20085: #endif
20086: int
20087: main ()
20088: {
20089: long long int n = 1;
20090: int i;
20091: for (i = 0; ; i++)
20092: {
20093: long long int m = n << i;
20094: if (m >> i != n)
20095: return 1;
20096: if (LLONG_MAX / 2 < m)
20097: break;
20098: }
20099: return 0;
20100: ;
20101: return 0;
20102: }
20103: _ACEOF
20104: rm -f conftest$ac_exeext
20105: if { (ac_try="$ac_link"
20106: case "(($ac_try" in
20107: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108: *) ac_try_echo=$ac_try;;
20109: esac
20110: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20111: $as_echo "$ac_try_echo") >&5
20112: (eval "$ac_link") 2>&5
20113: ac_status=$?
20114: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20116: { (case "(($ac_try" in
20117: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118: *) ac_try_echo=$ac_try;;
20119: esac
20120: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20121: $as_echo "$ac_try_echo") >&5
20122: (eval "$ac_try") 2>&5
20123: ac_status=$?
20124: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125: (exit $ac_status); }; }; then
20126: ac_cv_type_long_long_int=yes
20127: else
20128: $as_echo "$as_me: program exited with status $ac_status" >&5
20129: $as_echo "$as_me: failed program was:" >&5
20130: sed 's/^/| /' conftest.$ac_ext >&5
20131:
20132: ( exit $ac_status )
20133: ac_cv_type_long_long_int=no
20134: fi
20135: rm -rf conftest.dSYM
20136: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20137: fi
20138:
20139:
20140: else
20141: $as_echo "$as_me: failed program was:" >&5
20142: sed 's/^/| /' conftest.$ac_ext >&5
20143:
20144: ac_cv_type_long_long_int=no
20145: fi
20146:
20147: rm -rf conftest.dSYM
20148: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20149: conftest$ac_exeext conftest.$ac_ext
20150: fi
20151: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20152: $as_echo "$ac_cv_type_long_long_int" >&6; }
20153: if test $ac_cv_type_long_long_int = yes; then
20154:
20155: cat >>confdefs.h <<\_ACEOF
20156: #define HAVE_LONG_LONG_INT 1
20157: _ACEOF
20158:
20159: fi
20160:
20161:
20162: gl_cv_c_multiarch=no
20163: cat >conftest.$ac_ext <<_ACEOF
20164: /* confdefs.h. */
20165: _ACEOF
20166: cat confdefs.h >>conftest.$ac_ext
20167: cat >>conftest.$ac_ext <<_ACEOF
20168: /* end confdefs.h. */
20169: #ifndef __APPLE_CC__
20170: not a universal capable compiler
20171: #endif
20172: typedef int dummy;
20173:
20174: _ACEOF
20175: rm -f conftest.$ac_objext
20176: if { (ac_try="$ac_compile"
20177: case "(($ac_try" in
20178: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179: *) ac_try_echo=$ac_try;;
20180: esac
20181: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20182: $as_echo "$ac_try_echo") >&5
20183: (eval "$ac_compile") 2>conftest.er1
20184: ac_status=$?
20185: grep -v '^ *+' conftest.er1 >conftest.err
20186: rm -f conftest.er1
20187: cat conftest.err >&5
20188: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189: (exit $ac_status); } && {
20190: test -z "$ac_c_werror_flag" ||
20191: test ! -s conftest.err
20192: } && test -s conftest.$ac_objext; then
20193:
20194: arch=
20195: prev=
20196: for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20197: if test -n "$prev"; then
20198: case $word in
20199: i?86 | x86_64 | ppc | ppc64)
20200: if test -z "$arch" || test "$arch" = "$word"; then
20201: arch="$word"
20202: else
20203: gl_cv_c_multiarch=yes
20204: fi
20205: ;;
20206: esac
20207: prev=
20208: else
20209: if test "x$word" = "x-arch"; then
20210: prev=arch
20211: fi
20212: fi
20213: done
20214:
20215: else
20216: $as_echo "$as_me: failed program was:" >&5
20217: sed 's/^/| /' conftest.$ac_ext >&5
20218:
20219:
20220: fi
20221:
20222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20223: if test $gl_cv_c_multiarch = yes; then
20224:
20225: cat >>confdefs.h <<\_ACEOF
20226: #define AA_APPLE_UNIVERSAL_BUILD 1
20227: _ACEOF
20228:
20229: APPLE_UNIVERSAL_BUILD=1
20230: else
20231: APPLE_UNIVERSAL_BUILD=0
20232: fi
20233:
20234:
20235:
20236:
20237:
20238:
20239:
20240: GNULIB_MEMCHR=0;
20241: GNULIB_MEMMEM=0;
20242: GNULIB_MEMPCPY=0;
20243: GNULIB_MEMRCHR=0;
20244: GNULIB_RAWMEMCHR=0;
20245: GNULIB_STPCPY=0;
20246: GNULIB_STPNCPY=0;
20247: GNULIB_STRCHRNUL=0;
20248: GNULIB_STRDUP=0;
20249: GNULIB_STRNDUP=0;
20250: GNULIB_STRNLEN=0;
20251: GNULIB_STRPBRK=0;
20252: GNULIB_STRSEP=0;
20253: GNULIB_STRSTR=0;
20254: GNULIB_STRCASESTR=0;
20255: GNULIB_STRTOK_R=0;
20256: GNULIB_MBSLEN=0;
20257: GNULIB_MBSNLEN=0;
20258: GNULIB_MBSCHR=0;
20259: GNULIB_MBSRCHR=0;
20260: GNULIB_MBSSTR=0;
20261: GNULIB_MBSCASECMP=0;
20262: GNULIB_MBSNCASECMP=0;
20263: GNULIB_MBSPCASECMP=0;
20264: GNULIB_MBSCASESTR=0;
20265: GNULIB_MBSCSPN=0;
20266: GNULIB_MBSPBRK=0;
20267: GNULIB_MBSSPN=0;
20268: GNULIB_MBSSEP=0;
20269: GNULIB_MBSTOK_R=0;
20270: GNULIB_STRERROR=0;
20271: GNULIB_STRSIGNAL=0;
20272: GNULIB_STRVERSCMP=0;
20273: HAVE_DECL_MEMMEM=1;
20274: HAVE_MEMPCPY=1;
20275: HAVE_DECL_MEMRCHR=1;
20276: HAVE_RAWMEMCHR=1;
20277: HAVE_STPCPY=1;
20278: HAVE_STPNCPY=1;
20279: HAVE_STRCHRNUL=1;
20280: HAVE_DECL_STRDUP=1;
20281: HAVE_STRNDUP=1;
20282: HAVE_DECL_STRNDUP=1;
20283: HAVE_DECL_STRNLEN=1;
20284: HAVE_STRPBRK=1;
20285: HAVE_STRSEP=1;
20286: HAVE_STRCASESTR=1;
20287: HAVE_DECL_STRTOK_R=1;
20288: HAVE_DECL_STRERROR=1;
20289: HAVE_DECL_STRSIGNAL=1;
20290: HAVE_STRVERSCMP=1;
20291: REPLACE_MEMCHR=0;
20292: REPLACE_MEMMEM=0;
20293: REPLACE_STRDUP=0;
20294: REPLACE_STRSTR=0;
20295: REPLACE_STRCASESTR=0;
20296: REPLACE_STRERROR=0;
20297: REPLACE_STRSIGNAL=0;
20298:
20299:
20300:
20301:
20302: GNULIB_SIGNAL_H_SIGPIPE=0;
20303: GNULIB_SIGPROCMASK=0;
20304: GNULIB_SIGACTION=0;
20305: HAVE_POSIX_SIGNALBLOCKING=1;
20306: HAVE_SIGSET_T=1;
20307: HAVE_SIGINFO_T=1;
20308: HAVE_SIGACTION=1;
20309: HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20310:
20311: HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20312:
20313:
20314:
20315:
20316:
20317:
20318: { $as_echo "$as_me:$LINENO: checking for SIGPIPE" >&5
20319: $as_echo_n "checking for SIGPIPE... " >&6; }
20320: if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then
20321: $as_echo_n "(cached) " >&6
20322: else
20323:
20324: cat >conftest.$ac_ext <<_ACEOF
20325: /* confdefs.h. */
20326: _ACEOF
20327: cat confdefs.h >>conftest.$ac_ext
20328: cat >>conftest.$ac_ext <<_ACEOF
20329: /* end confdefs.h. */
20330:
20331: #include <signal.h>
20332: #if !defined SIGPIPE
20333: booboo
20334: #endif
20335:
20336: _ACEOF
20337: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20338: $EGREP "booboo" >/dev/null 2>&1; then
20339: gl_cv_header_signal_h_SIGPIPE=no
20340: else
20341: gl_cv_header_signal_h_SIGPIPE=yes
20342: fi
20343: rm -f conftest*
20344:
20345:
20346: fi
20347: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_signal_h_SIGPIPE" >&5
20348: $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
20349:
20350:
20351: GNULIB_FPRINTF=0;
20352: GNULIB_FPRINTF_POSIX=0;
20353: GNULIB_PRINTF=0;
20354: GNULIB_PRINTF_POSIX=0;
20355: GNULIB_SNPRINTF=0;
20356: GNULIB_SPRINTF_POSIX=0;
20357: GNULIB_VFPRINTF=0;
20358: GNULIB_VFPRINTF_POSIX=0;
20359: GNULIB_VPRINTF=0;
20360: GNULIB_VPRINTF_POSIX=0;
20361: GNULIB_VSNPRINTF=0;
20362: GNULIB_VSPRINTF_POSIX=0;
20363: GNULIB_DPRINTF=0;
20364: GNULIB_VDPRINTF=0;
20365: GNULIB_VASPRINTF=0;
20366: GNULIB_OBSTACK_PRINTF=0;
20367: GNULIB_OBSTACK_PRINTF_POSIX=0;
20368: GNULIB_FOPEN=0;
20369: GNULIB_FREOPEN=0;
20370: GNULIB_FSEEK=0;
20371: GNULIB_FSEEKO=0;
20372: GNULIB_FTELL=0;
20373: GNULIB_FTELLO=0;
20374: GNULIB_FFLUSH=0;
20375: GNULIB_FPURGE=0;
20376: GNULIB_FCLOSE=0;
20377: GNULIB_FPUTC=0;
20378: GNULIB_PUTC=0;
20379: GNULIB_PUTCHAR=0;
20380: GNULIB_FPUTS=0;
20381: GNULIB_PUTS=0;
20382: GNULIB_FWRITE=0;
20383: GNULIB_GETDELIM=0;
20384: GNULIB_GETLINE=0;
20385: GNULIB_PERROR=0;
20386: GNULIB_STDIO_H_SIGPIPE=0;
20387: REPLACE_STDIO_WRITE_FUNCS=0;
20388: REPLACE_FPRINTF=0;
20389: REPLACE_VFPRINTF=0;
20390: REPLACE_PRINTF=0;
20391: REPLACE_VPRINTF=0;
20392: REPLACE_SNPRINTF=0;
20393: HAVE_DECL_SNPRINTF=1;
20394: REPLACE_VSNPRINTF=0;
20395: HAVE_DECL_VSNPRINTF=1;
20396: REPLACE_SPRINTF=0;
20397: REPLACE_VSPRINTF=0;
20398: HAVE_DPRINTF=1;
20399: REPLACE_DPRINTF=0;
20400: HAVE_VDPRINTF=1;
20401: REPLACE_VDPRINTF=0;
20402: HAVE_VASPRINTF=1;
20403: REPLACE_VASPRINTF=0;
20404: HAVE_DECL_OBSTACK_PRINTF=1;
20405: REPLACE_OBSTACK_PRINTF=0;
20406: REPLACE_FOPEN=0;
20407: REPLACE_FREOPEN=0;
20408: HAVE_FSEEKO=1;
20409: REPLACE_FSEEKO=0;
20410: REPLACE_FSEEK=0;
20411: HAVE_FTELLO=1;
20412: REPLACE_FTELLO=0;
20413: REPLACE_FTELL=0;
20414: REPLACE_FFLUSH=0;
20415: REPLACE_FPURGE=0;
20416: HAVE_DECL_FPURGE=1;
20417: REPLACE_FCLOSE=0;
20418: HAVE_DECL_GETDELIM=1;
20419: HAVE_DECL_GETLINE=1;
20420: REPLACE_GETLINE=0;
20421: REPLACE_PERROR=0;
20422:
20423: { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20424: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20425: if test "${ac_cv_header_stdbool_h+set}" = set; then
20426: $as_echo_n "(cached) " >&6
20427: else
20428: cat >conftest.$ac_ext <<_ACEOF
20429: /* confdefs.h. */
20430: _ACEOF
20431: cat confdefs.h >>conftest.$ac_ext
20432: cat >>conftest.$ac_ext <<_ACEOF
20433: /* end confdefs.h. */
20434:
20435: #include <stdbool.h>
20436: #ifndef bool
20437: "error: bool is not defined"
20438: #endif
20439: #ifndef false
20440: "error: false is not defined"
20441: #endif
20442: #if false
20443: "error: false is not 0"
20444: #endif
20445: #ifndef true
20446: "error: true is not defined"
20447: #endif
20448: #if true != 1
20449: "error: true is not 1"
20450: #endif
20451: #ifndef __bool_true_false_are_defined
20452: "error: __bool_true_false_are_defined is not defined"
20453: #endif
20454:
20455: struct s { _Bool s: 1; _Bool t; } s;
20456:
20457: char a[true == 1 ? 1 : -1];
20458: char b[false == 0 ? 1 : -1];
20459: char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20460: char d[(bool) 0.5 == true ? 1 : -1];
20461: bool e = &s;
20462: char f[(_Bool) 0.0 == false ? 1 : -1];
20463: char g[true];
20464: char h[sizeof (_Bool)];
20465: char i[sizeof s.t];
20466: enum { j = false, k = true, l = false * true, m = true * 256 };
20467: _Bool n[m];
20468: char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20469: char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20470: #if defined __xlc__ || defined __GNUC__
20471: /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20472: reported by James Lemley on 2005-10-05; see
20473: http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20474: This test is not quite right, since xlc is allowed to
20475: reject this program, as the initializer for xlcbug is
20476: not one of the forms that C requires support for.
20477: However, doing the test right would require a run-time
20478: test, and that would make cross-compilation harder.
20479: Let us hope that IBM fixes the xlc bug, and also adds
20480: support for this kind of constant expression. In the
20481: meantime, this test will reject xlc, which is OK, since
20482: our stdbool.h substitute should suffice. We also test
20483: this with GCC, where it should work, to detect more
20484: quickly whether someone messes up the test in the
20485: future. */
20486: char digs[] = "0123456789";
20487: int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20488: #endif
20489: /* Catch a bug in an HP-UX C compiler. See
20490: http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20491: http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20492: */
20493: _Bool q = true;
20494: _Bool *pq = &q;
20495:
20496: int
20497: main ()
20498: {
20499:
20500: *pq |= q;
20501: *pq |= ! q;
20502: /* Refer to every declared value, to avoid compiler optimizations. */
20503: return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20504: + !m + !n + !o + !p + !q + !pq);
20505:
20506: ;
20507: return 0;
20508: }
20509: _ACEOF
20510: rm -f conftest.$ac_objext
20511: if { (ac_try="$ac_compile"
20512: case "(($ac_try" in
20513: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514: *) ac_try_echo=$ac_try;;
20515: esac
20516: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20517: $as_echo "$ac_try_echo") >&5
20518: (eval "$ac_compile") 2>conftest.er1
20519: ac_status=$?
20520: grep -v '^ *+' conftest.er1 >conftest.err
20521: rm -f conftest.er1
20522: cat conftest.err >&5
20523: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524: (exit $ac_status); } && {
20525: test -z "$ac_c_werror_flag" ||
20526: test ! -s conftest.err
20527: } && test -s conftest.$ac_objext; then
20528: ac_cv_header_stdbool_h=yes
20529: else
20530: $as_echo "$as_me: failed program was:" >&5
20531: sed 's/^/| /' conftest.$ac_ext >&5
20532:
20533: ac_cv_header_stdbool_h=no
20534: fi
20535:
20536: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537: fi
20538: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20539: $as_echo "$ac_cv_header_stdbool_h" >&6; }
20540: { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
20541: $as_echo_n "checking for _Bool... " >&6; }
20542: if test "${ac_cv_type__Bool+set}" = set; then
20543: $as_echo_n "(cached) " >&6
20544: else
20545: ac_cv_type__Bool=no
20546: cat >conftest.$ac_ext <<_ACEOF
20547: /* confdefs.h. */
20548: _ACEOF
20549: cat confdefs.h >>conftest.$ac_ext
20550: cat >>conftest.$ac_ext <<_ACEOF
20551: /* end confdefs.h. */
20552: $ac_includes_default
20553: int
20554: main ()
20555: {
20556: if (sizeof (_Bool))
20557: return 0;
20558: ;
20559: return 0;
20560: }
20561: _ACEOF
20562: rm -f conftest.$ac_objext
20563: if { (ac_try="$ac_compile"
20564: case "(($ac_try" in
20565: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566: *) ac_try_echo=$ac_try;;
20567: esac
20568: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20569: $as_echo "$ac_try_echo") >&5
20570: (eval "$ac_compile") 2>conftest.er1
20571: ac_status=$?
20572: grep -v '^ *+' conftest.er1 >conftest.err
20573: rm -f conftest.er1
20574: cat conftest.err >&5
20575: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576: (exit $ac_status); } && {
20577: test -z "$ac_c_werror_flag" ||
20578: test ! -s conftest.err
20579: } && test -s conftest.$ac_objext; then
20580: cat >conftest.$ac_ext <<_ACEOF
20581: /* confdefs.h. */
20582: _ACEOF
20583: cat confdefs.h >>conftest.$ac_ext
20584: cat >>conftest.$ac_ext <<_ACEOF
20585: /* end confdefs.h. */
20586: $ac_includes_default
20587: int
20588: main ()
20589: {
20590: if (sizeof ((_Bool)))
20591: return 0;
20592: ;
20593: return 0;
20594: }
20595: _ACEOF
20596: rm -f conftest.$ac_objext
20597: if { (ac_try="$ac_compile"
20598: case "(($ac_try" in
20599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600: *) ac_try_echo=$ac_try;;
20601: esac
20602: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20603: $as_echo "$ac_try_echo") >&5
20604: (eval "$ac_compile") 2>conftest.er1
20605: ac_status=$?
20606: grep -v '^ *+' conftest.er1 >conftest.err
20607: rm -f conftest.er1
20608: cat conftest.err >&5
20609: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610: (exit $ac_status); } && {
20611: test -z "$ac_c_werror_flag" ||
20612: test ! -s conftest.err
20613: } && test -s conftest.$ac_objext; then
20614: :
20615: else
20616: $as_echo "$as_me: failed program was:" >&5
20617: sed 's/^/| /' conftest.$ac_ext >&5
20618:
20619: ac_cv_type__Bool=yes
20620: fi
20621:
20622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623: else
20624: $as_echo "$as_me: failed program was:" >&5
20625: sed 's/^/| /' conftest.$ac_ext >&5
20626:
20627:
20628: fi
20629:
20630: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20631: fi
20632: { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20633: $as_echo "$ac_cv_type__Bool" >&6; }
20634: if test "x$ac_cv_type__Bool" = x""yes; then
20635:
20636: cat >>confdefs.h <<_ACEOF
20637: #define HAVE__BOOL 1
20638: _ACEOF
20639:
20640:
20641: fi
20642:
20643: if test $ac_cv_header_stdbool_h = yes; then
20644:
20645: cat >>confdefs.h <<\_ACEOF
20646: #define HAVE_STDBOOL_H 1
20647: _ACEOF
20648:
20649: fi
20650:
20651: { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
20652: $as_echo_n "checking for unsigned long long int... " >&6; }
20653: if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
20654: $as_echo_n "(cached) " >&6
20655: else
20656: cat >conftest.$ac_ext <<_ACEOF
20657:
20658: /* confdefs.h. */
20659: _ACEOF
20660: cat confdefs.h >>conftest.$ac_ext
20661: cat >>conftest.$ac_ext <<_ACEOF
20662: /* end confdefs.h. */
20663: /* For now, do not test the preprocessor; as of 2007 there are too many
20664: implementations with broken preprocessors. Perhaps this can
20665: be revisited in 2012. In the meantime, code should not expect
20666: #if to work with literals wider than 32 bits. */
20667: /* Test literals. */
20668: long long int ll = 9223372036854775807ll;
20669: long long int nll = -9223372036854775807LL;
20670: unsigned long long int ull = 18446744073709551615ULL;
20671: /* Test constant expressions. */
20672: typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20673: ? 1 : -1)];
20674: typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20675: ? 1 : -1)];
20676: int i = 63;
20677: int
20678: main ()
20679: {
20680: /* Test availability of runtime routines for shift and division. */
20681: long long int llmax = 9223372036854775807ll;
20682: unsigned long long int ullmax = 18446744073709551615ull;
20683: return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20684: | (llmax / ll) | (llmax % ll)
20685: | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20686: | (ullmax / ull) | (ullmax % ull));
20687: ;
20688: return 0;
20689: }
20690:
20691: _ACEOF
20692: rm -f conftest.$ac_objext conftest$ac_exeext
20693: if { (ac_try="$ac_link"
20694: case "(($ac_try" in
20695: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696: *) ac_try_echo=$ac_try;;
20697: esac
20698: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20699: $as_echo "$ac_try_echo") >&5
20700: (eval "$ac_link") 2>conftest.er1
20701: ac_status=$?
20702: grep -v '^ *+' conftest.er1 >conftest.err
20703: rm -f conftest.er1
20704: cat conftest.err >&5
20705: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706: (exit $ac_status); } && {
20707: test -z "$ac_c_werror_flag" ||
20708: test ! -s conftest.err
20709: } && test -s conftest$ac_exeext && {
20710: test "$cross_compiling" = yes ||
20711: $as_test_x conftest$ac_exeext
20712: }; then
20713: ac_cv_type_unsigned_long_long_int=yes
20714: else
20715: $as_echo "$as_me: failed program was:" >&5
20716: sed 's/^/| /' conftest.$ac_ext >&5
20717:
20718: ac_cv_type_unsigned_long_long_int=no
20719: fi
20720:
20721: rm -rf conftest.dSYM
20722: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723: conftest$ac_exeext conftest.$ac_ext
20724: fi
20725: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
20726: $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20727: if test $ac_cv_type_unsigned_long_long_int = yes; then
20728:
20729: cat >>confdefs.h <<\_ACEOF
20730: #define HAVE_UNSIGNED_LONG_LONG_INT 1
20731: _ACEOF
20732:
20733: fi
20734:
20735:
20736:
20737:
20738:
20739:
20740:
20741: { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
20742: $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
20743: if test "${ac_cv_c_restrict+set}" = set; then
20744: $as_echo_n "(cached) " >&6
20745: else
20746: ac_cv_c_restrict=no
20747: # The order here caters to the fact that C++ does not require restrict.
20748: for ac_kw in __restrict __restrict__ _Restrict restrict; do
20749: cat >conftest.$ac_ext <<_ACEOF
20750: /* confdefs.h. */
20751: _ACEOF
20752: cat confdefs.h >>conftest.$ac_ext
20753: cat >>conftest.$ac_ext <<_ACEOF
20754: /* end confdefs.h. */
20755: typedef int * int_ptr;
20756: int foo (int_ptr $ac_kw ip) {
20757: return ip[0];
20758: }
20759: int
20760: main ()
20761: {
20762: int s[1];
20763: int * $ac_kw t = s;
20764: t[0] = 0;
20765: return foo(t)
20766: ;
20767: return 0;
20768: }
20769: _ACEOF
20770: rm -f conftest.$ac_objext
20771: if { (ac_try="$ac_compile"
20772: case "(($ac_try" in
20773: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774: *) ac_try_echo=$ac_try;;
20775: esac
20776: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20777: $as_echo "$ac_try_echo") >&5
20778: (eval "$ac_compile") 2>conftest.er1
20779: ac_status=$?
20780: grep -v '^ *+' conftest.er1 >conftest.err
20781: rm -f conftest.er1
20782: cat conftest.err >&5
20783: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784: (exit $ac_status); } && {
20785: test -z "$ac_c_werror_flag" ||
20786: test ! -s conftest.err
20787: } && test -s conftest.$ac_objext; then
20788: ac_cv_c_restrict=$ac_kw
20789: else
20790: $as_echo "$as_me: failed program was:" >&5
20791: sed 's/^/| /' conftest.$ac_ext >&5
20792:
20793:
20794: fi
20795:
20796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20797: test "$ac_cv_c_restrict" != no && break
20798: done
20799:
20800: fi
20801: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
20802: $as_echo "$ac_cv_c_restrict" >&6; }
20803:
20804:
20805: case $ac_cv_c_restrict in
20806: restrict) ;;
20807: no) cat >>confdefs.h <<\_ACEOF
20808: #define restrict /**/
20809: _ACEOF
20810: ;;
20811: *) cat >>confdefs.h <<_ACEOF
20812: #define restrict $ac_cv_c_restrict
20813: _ACEOF
20814: ;;
20815: esac
20816:
20817:
20818:
20819:
20820:
20821:
20822:
20823:
20824:
20825:
20826:
20827:
20828:
20829:
20830:
20831: if test $gl_cv_have_include_next = yes; then
20832: gl_cv_next_string_h='<'string.h'>'
20833: else
20834: { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
20835: $as_echo_n "checking absolute name of <string.h>... " >&6; }
20836: if test "${gl_cv_next_string_h+set}" = set; then
20837: $as_echo_n "(cached) " >&6
20838: else
20839:
20840: if test $ac_cv_header_string_h = yes; then
20841: cat >conftest.$ac_ext <<_ACEOF
20842: /* confdefs.h. */
20843: _ACEOF
20844: cat confdefs.h >>conftest.$ac_ext
20845: cat >>conftest.$ac_ext <<_ACEOF
20846: /* end confdefs.h. */
20847: #include <string.h>
20848:
20849: _ACEOF
20850: case "$host_os" in
20851: aix*) gl_absname_cpp="$ac_cpp -C" ;;
20852: *) gl_absname_cpp="$ac_cpp" ;;
20853: esac
20854: gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20855: sed -n '\#/string.h#{
20856: s#.*"\(.*/string.h\)".*#\1#
20857: s#^/[^/]#//&#
20858: p
20859: q
20860: }'`'"'
20861: else
20862: gl_cv_next_string_h='<'string.h'>'
20863: fi
20864:
20865: fi
20866: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
20867: $as_echo "$gl_cv_next_string_h" >&6; }
20868: fi
20869: NEXT_STRING_H=$gl_cv_next_string_h
20870:
20871: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20872: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20873: gl_next_as_first_directive='<'string.h'>'
20874: else
20875: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20876: gl_next_as_first_directive=$gl_cv_next_string_h
20877: fi
20878: NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20879:
20880:
20881:
20882:
20883: { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
20884: $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
20885: if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
20886: $as_echo_n "(cached) " >&6
20887: else
20888: cat >conftest.$ac_ext <<_ACEOF
20889: /* confdefs.h. */
20890: _ACEOF
20891: cat confdefs.h >>conftest.$ac_ext
20892: cat >>conftest.$ac_ext <<_ACEOF
20893: /* end confdefs.h. */
20894: $ac_includes_default
20895: int
20896: main ()
20897: {
20898: #ifndef clearerr_unlocked
20899: (void) clearerr_unlocked;
20900: #endif
20901:
20902: ;
20903: return 0;
20904: }
20905: _ACEOF
20906: rm -f conftest.$ac_objext
20907: if { (ac_try="$ac_compile"
20908: case "(($ac_try" in
20909: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910: *) ac_try_echo=$ac_try;;
20911: esac
20912: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20913: $as_echo "$ac_try_echo") >&5
20914: (eval "$ac_compile") 2>conftest.er1
20915: ac_status=$?
20916: grep -v '^ *+' conftest.er1 >conftest.err
20917: rm -f conftest.er1
20918: cat conftest.err >&5
20919: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920: (exit $ac_status); } && {
20921: test -z "$ac_c_werror_flag" ||
20922: test ! -s conftest.err
20923: } && test -s conftest.$ac_objext; then
20924: ac_cv_have_decl_clearerr_unlocked=yes
20925: else
20926: $as_echo "$as_me: failed program was:" >&5
20927: sed 's/^/| /' conftest.$ac_ext >&5
20928:
20929: ac_cv_have_decl_clearerr_unlocked=no
20930: fi
20931:
20932: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933: fi
20934: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
20935: $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
20936: if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
20937:
20938: cat >>confdefs.h <<_ACEOF
20939: #define HAVE_DECL_CLEARERR_UNLOCKED 1
20940: _ACEOF
20941:
20942:
20943: else
20944: cat >>confdefs.h <<_ACEOF
20945: #define HAVE_DECL_CLEARERR_UNLOCKED 0
20946: _ACEOF
20947:
20948:
20949: fi
20950:
20951:
20952: { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
20953: $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20954: if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
20955: $as_echo_n "(cached) " >&6
20956: else
20957: cat >conftest.$ac_ext <<_ACEOF
20958: /* confdefs.h. */
20959: _ACEOF
20960: cat confdefs.h >>conftest.$ac_ext
20961: cat >>conftest.$ac_ext <<_ACEOF
20962: /* end confdefs.h. */
20963: $ac_includes_default
20964: int
20965: main ()
20966: {
20967: #ifndef feof_unlocked
20968: (void) feof_unlocked;
20969: #endif
20970:
20971: ;
20972: return 0;
20973: }
20974: _ACEOF
20975: rm -f conftest.$ac_objext
20976: if { (ac_try="$ac_compile"
20977: case "(($ac_try" in
20978: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979: *) ac_try_echo=$ac_try;;
20980: esac
20981: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20982: $as_echo "$ac_try_echo") >&5
20983: (eval "$ac_compile") 2>conftest.er1
20984: ac_status=$?
20985: grep -v '^ *+' conftest.er1 >conftest.err
20986: rm -f conftest.er1
20987: cat conftest.err >&5
20988: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989: (exit $ac_status); } && {
20990: test -z "$ac_c_werror_flag" ||
20991: test ! -s conftest.err
20992: } && test -s conftest.$ac_objext; then
20993: ac_cv_have_decl_feof_unlocked=yes
20994: else
20995: $as_echo "$as_me: failed program was:" >&5
20996: sed 's/^/| /' conftest.$ac_ext >&5
20997:
20998: ac_cv_have_decl_feof_unlocked=no
20999: fi
21000:
21001: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002: fi
21003: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21004: $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
21005: if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
21006:
21007: cat >>confdefs.h <<_ACEOF
21008: #define HAVE_DECL_FEOF_UNLOCKED 1
21009: _ACEOF
21010:
21011:
21012: else
21013: cat >>confdefs.h <<_ACEOF
21014: #define HAVE_DECL_FEOF_UNLOCKED 0
21015: _ACEOF
21016:
21017:
21018: fi
21019:
21020:
21021: { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
21022: $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
21023: if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
21024: $as_echo_n "(cached) " >&6
21025: else
21026: cat >conftest.$ac_ext <<_ACEOF
21027: /* confdefs.h. */
21028: _ACEOF
21029: cat confdefs.h >>conftest.$ac_ext
21030: cat >>conftest.$ac_ext <<_ACEOF
21031: /* end confdefs.h. */
21032: $ac_includes_default
21033: int
21034: main ()
21035: {
21036: #ifndef ferror_unlocked
21037: (void) ferror_unlocked;
21038: #endif
21039:
21040: ;
21041: return 0;
21042: }
21043: _ACEOF
21044: rm -f conftest.$ac_objext
21045: if { (ac_try="$ac_compile"
21046: case "(($ac_try" in
21047: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048: *) ac_try_echo=$ac_try;;
21049: esac
21050: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21051: $as_echo "$ac_try_echo") >&5
21052: (eval "$ac_compile") 2>conftest.er1
21053: ac_status=$?
21054: grep -v '^ *+' conftest.er1 >conftest.err
21055: rm -f conftest.er1
21056: cat conftest.err >&5
21057: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058: (exit $ac_status); } && {
21059: test -z "$ac_c_werror_flag" ||
21060: test ! -s conftest.err
21061: } && test -s conftest.$ac_objext; then
21062: ac_cv_have_decl_ferror_unlocked=yes
21063: else
21064: $as_echo "$as_me: failed program was:" >&5
21065: sed 's/^/| /' conftest.$ac_ext >&5
21066:
21067: ac_cv_have_decl_ferror_unlocked=no
21068: fi
21069:
21070: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071: fi
21072: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
21073: $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
21074: if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
21075:
21076: cat >>confdefs.h <<_ACEOF
21077: #define HAVE_DECL_FERROR_UNLOCKED 1
21078: _ACEOF
21079:
21080:
21081: else
21082: cat >>confdefs.h <<_ACEOF
21083: #define HAVE_DECL_FERROR_UNLOCKED 0
21084: _ACEOF
21085:
21086:
21087: fi
21088:
21089:
21090: { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
21091: $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
21092: if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
21093: $as_echo_n "(cached) " >&6
21094: else
21095: cat >conftest.$ac_ext <<_ACEOF
21096: /* confdefs.h. */
21097: _ACEOF
21098: cat confdefs.h >>conftest.$ac_ext
21099: cat >>conftest.$ac_ext <<_ACEOF
21100: /* end confdefs.h. */
21101: $ac_includes_default
21102: int
21103: main ()
21104: {
21105: #ifndef fflush_unlocked
21106: (void) fflush_unlocked;
21107: #endif
21108:
21109: ;
21110: return 0;
21111: }
21112: _ACEOF
21113: rm -f conftest.$ac_objext
21114: if { (ac_try="$ac_compile"
21115: case "(($ac_try" in
21116: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117: *) ac_try_echo=$ac_try;;
21118: esac
21119: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21120: $as_echo "$ac_try_echo") >&5
21121: (eval "$ac_compile") 2>conftest.er1
21122: ac_status=$?
21123: grep -v '^ *+' conftest.er1 >conftest.err
21124: rm -f conftest.er1
21125: cat conftest.err >&5
21126: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127: (exit $ac_status); } && {
21128: test -z "$ac_c_werror_flag" ||
21129: test ! -s conftest.err
21130: } && test -s conftest.$ac_objext; then
21131: ac_cv_have_decl_fflush_unlocked=yes
21132: else
21133: $as_echo "$as_me: failed program was:" >&5
21134: sed 's/^/| /' conftest.$ac_ext >&5
21135:
21136: ac_cv_have_decl_fflush_unlocked=no
21137: fi
21138:
21139: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140: fi
21141: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
21142: $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
21143: if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
21144:
21145: cat >>confdefs.h <<_ACEOF
21146: #define HAVE_DECL_FFLUSH_UNLOCKED 1
21147: _ACEOF
21148:
21149:
21150: else
21151: cat >>confdefs.h <<_ACEOF
21152: #define HAVE_DECL_FFLUSH_UNLOCKED 0
21153: _ACEOF
21154:
21155:
21156: fi
21157:
21158:
21159: { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
21160: $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
21161: if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
21162: $as_echo_n "(cached) " >&6
21163: else
21164: cat >conftest.$ac_ext <<_ACEOF
21165: /* confdefs.h. */
21166: _ACEOF
21167: cat confdefs.h >>conftest.$ac_ext
21168: cat >>conftest.$ac_ext <<_ACEOF
21169: /* end confdefs.h. */
21170: $ac_includes_default
21171: int
21172: main ()
21173: {
21174: #ifndef fgets_unlocked
21175: (void) fgets_unlocked;
21176: #endif
21177:
21178: ;
21179: return 0;
21180: }
21181: _ACEOF
21182: rm -f conftest.$ac_objext
21183: if { (ac_try="$ac_compile"
21184: case "(($ac_try" in
21185: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186: *) ac_try_echo=$ac_try;;
21187: esac
21188: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21189: $as_echo "$ac_try_echo") >&5
21190: (eval "$ac_compile") 2>conftest.er1
21191: ac_status=$?
21192: grep -v '^ *+' conftest.er1 >conftest.err
21193: rm -f conftest.er1
21194: cat conftest.err >&5
21195: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196: (exit $ac_status); } && {
21197: test -z "$ac_c_werror_flag" ||
21198: test ! -s conftest.err
21199: } && test -s conftest.$ac_objext; then
21200: ac_cv_have_decl_fgets_unlocked=yes
21201: else
21202: $as_echo "$as_me: failed program was:" >&5
21203: sed 's/^/| /' conftest.$ac_ext >&5
21204:
21205: ac_cv_have_decl_fgets_unlocked=no
21206: fi
21207:
21208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209: fi
21210: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
21211: $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
21212: if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
21213:
21214: cat >>confdefs.h <<_ACEOF
21215: #define HAVE_DECL_FGETS_UNLOCKED 1
21216: _ACEOF
21217:
21218:
21219: else
21220: cat >>confdefs.h <<_ACEOF
21221: #define HAVE_DECL_FGETS_UNLOCKED 0
21222: _ACEOF
21223:
21224:
21225: fi
21226:
21227:
21228: { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
21229: $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
21230: if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
21231: $as_echo_n "(cached) " >&6
21232: else
21233: cat >conftest.$ac_ext <<_ACEOF
21234: /* confdefs.h. */
21235: _ACEOF
21236: cat confdefs.h >>conftest.$ac_ext
21237: cat >>conftest.$ac_ext <<_ACEOF
21238: /* end confdefs.h. */
21239: $ac_includes_default
21240: int
21241: main ()
21242: {
21243: #ifndef fputc_unlocked
21244: (void) fputc_unlocked;
21245: #endif
21246:
21247: ;
21248: return 0;
21249: }
21250: _ACEOF
21251: rm -f conftest.$ac_objext
21252: if { (ac_try="$ac_compile"
21253: case "(($ac_try" in
21254: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255: *) ac_try_echo=$ac_try;;
21256: esac
21257: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21258: $as_echo "$ac_try_echo") >&5
21259: (eval "$ac_compile") 2>conftest.er1
21260: ac_status=$?
21261: grep -v '^ *+' conftest.er1 >conftest.err
21262: rm -f conftest.er1
21263: cat conftest.err >&5
21264: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265: (exit $ac_status); } && {
21266: test -z "$ac_c_werror_flag" ||
21267: test ! -s conftest.err
21268: } && test -s conftest.$ac_objext; then
21269: ac_cv_have_decl_fputc_unlocked=yes
21270: else
21271: $as_echo "$as_me: failed program was:" >&5
21272: sed 's/^/| /' conftest.$ac_ext >&5
21273:
21274: ac_cv_have_decl_fputc_unlocked=no
21275: fi
21276:
21277: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278: fi
21279: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
21280: $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
21281: if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
21282:
21283: cat >>confdefs.h <<_ACEOF
21284: #define HAVE_DECL_FPUTC_UNLOCKED 1
21285: _ACEOF
21286:
21287:
21288: else
21289: cat >>confdefs.h <<_ACEOF
21290: #define HAVE_DECL_FPUTC_UNLOCKED 0
21291: _ACEOF
21292:
21293:
21294: fi
21295:
21296:
21297: { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
21298: $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
21299: if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
21300: $as_echo_n "(cached) " >&6
21301: else
21302: cat >conftest.$ac_ext <<_ACEOF
21303: /* confdefs.h. */
21304: _ACEOF
21305: cat confdefs.h >>conftest.$ac_ext
21306: cat >>conftest.$ac_ext <<_ACEOF
21307: /* end confdefs.h. */
21308: $ac_includes_default
21309: int
21310: main ()
21311: {
21312: #ifndef fputs_unlocked
21313: (void) fputs_unlocked;
21314: #endif
21315:
21316: ;
21317: return 0;
21318: }
21319: _ACEOF
21320: rm -f conftest.$ac_objext
21321: if { (ac_try="$ac_compile"
21322: case "(($ac_try" in
21323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324: *) ac_try_echo=$ac_try;;
21325: esac
21326: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21327: $as_echo "$ac_try_echo") >&5
21328: (eval "$ac_compile") 2>conftest.er1
21329: ac_status=$?
21330: grep -v '^ *+' conftest.er1 >conftest.err
21331: rm -f conftest.er1
21332: cat conftest.err >&5
21333: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334: (exit $ac_status); } && {
21335: test -z "$ac_c_werror_flag" ||
21336: test ! -s conftest.err
21337: } && test -s conftest.$ac_objext; then
21338: ac_cv_have_decl_fputs_unlocked=yes
21339: else
21340: $as_echo "$as_me: failed program was:" >&5
21341: sed 's/^/| /' conftest.$ac_ext >&5
21342:
21343: ac_cv_have_decl_fputs_unlocked=no
21344: fi
21345:
21346: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21347: fi
21348: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
21349: $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
21350: if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
21351:
21352: cat >>confdefs.h <<_ACEOF
21353: #define HAVE_DECL_FPUTS_UNLOCKED 1
21354: _ACEOF
21355:
21356:
21357: else
21358: cat >>confdefs.h <<_ACEOF
21359: #define HAVE_DECL_FPUTS_UNLOCKED 0
21360: _ACEOF
21361:
21362:
21363: fi
21364:
21365:
21366: { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
21367: $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
21368: if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
21369: $as_echo_n "(cached) " >&6
21370: else
21371: cat >conftest.$ac_ext <<_ACEOF
21372: /* confdefs.h. */
21373: _ACEOF
21374: cat confdefs.h >>conftest.$ac_ext
21375: cat >>conftest.$ac_ext <<_ACEOF
21376: /* end confdefs.h. */
21377: $ac_includes_default
21378: int
21379: main ()
21380: {
21381: #ifndef fread_unlocked
21382: (void) fread_unlocked;
21383: #endif
21384:
21385: ;
21386: return 0;
21387: }
21388: _ACEOF
21389: rm -f conftest.$ac_objext
21390: if { (ac_try="$ac_compile"
21391: case "(($ac_try" in
21392: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393: *) ac_try_echo=$ac_try;;
21394: esac
21395: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21396: $as_echo "$ac_try_echo") >&5
21397: (eval "$ac_compile") 2>conftest.er1
21398: ac_status=$?
21399: grep -v '^ *+' conftest.er1 >conftest.err
21400: rm -f conftest.er1
21401: cat conftest.err >&5
21402: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403: (exit $ac_status); } && {
21404: test -z "$ac_c_werror_flag" ||
21405: test ! -s conftest.err
21406: } && test -s conftest.$ac_objext; then
21407: ac_cv_have_decl_fread_unlocked=yes
21408: else
21409: $as_echo "$as_me: failed program was:" >&5
21410: sed 's/^/| /' conftest.$ac_ext >&5
21411:
21412: ac_cv_have_decl_fread_unlocked=no
21413: fi
21414:
21415: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416: fi
21417: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
21418: $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
21419: if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
21420:
21421: cat >>confdefs.h <<_ACEOF
21422: #define HAVE_DECL_FREAD_UNLOCKED 1
21423: _ACEOF
21424:
21425:
21426: else
21427: cat >>confdefs.h <<_ACEOF
21428: #define HAVE_DECL_FREAD_UNLOCKED 0
21429: _ACEOF
21430:
21431:
21432: fi
21433:
21434:
21435: { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
21436: $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
21437: if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
21438: $as_echo_n "(cached) " >&6
21439: else
21440: cat >conftest.$ac_ext <<_ACEOF
21441: /* confdefs.h. */
21442: _ACEOF
21443: cat confdefs.h >>conftest.$ac_ext
21444: cat >>conftest.$ac_ext <<_ACEOF
21445: /* end confdefs.h. */
21446: $ac_includes_default
21447: int
21448: main ()
21449: {
21450: #ifndef fwrite_unlocked
21451: (void) fwrite_unlocked;
21452: #endif
21453:
21454: ;
21455: return 0;
21456: }
21457: _ACEOF
21458: rm -f conftest.$ac_objext
21459: if { (ac_try="$ac_compile"
21460: case "(($ac_try" in
21461: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462: *) ac_try_echo=$ac_try;;
21463: esac
21464: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21465: $as_echo "$ac_try_echo") >&5
21466: (eval "$ac_compile") 2>conftest.er1
21467: ac_status=$?
21468: grep -v '^ *+' conftest.er1 >conftest.err
21469: rm -f conftest.er1
21470: cat conftest.err >&5
21471: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472: (exit $ac_status); } && {
21473: test -z "$ac_c_werror_flag" ||
21474: test ! -s conftest.err
21475: } && test -s conftest.$ac_objext; then
21476: ac_cv_have_decl_fwrite_unlocked=yes
21477: else
21478: $as_echo "$as_me: failed program was:" >&5
21479: sed 's/^/| /' conftest.$ac_ext >&5
21480:
21481: ac_cv_have_decl_fwrite_unlocked=no
21482: fi
21483:
21484: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485: fi
21486: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
21487: $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
21488: if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
21489:
21490: cat >>confdefs.h <<_ACEOF
21491: #define HAVE_DECL_FWRITE_UNLOCKED 1
21492: _ACEOF
21493:
21494:
21495: else
21496: cat >>confdefs.h <<_ACEOF
21497: #define HAVE_DECL_FWRITE_UNLOCKED 0
21498: _ACEOF
21499:
21500:
21501: fi
21502:
21503:
21504: { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
21505: $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
21506: if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
21507: $as_echo_n "(cached) " >&6
21508: else
21509: cat >conftest.$ac_ext <<_ACEOF
21510: /* confdefs.h. */
21511: _ACEOF
21512: cat confdefs.h >>conftest.$ac_ext
21513: cat >>conftest.$ac_ext <<_ACEOF
21514: /* end confdefs.h. */
21515: $ac_includes_default
21516: int
21517: main ()
21518: {
21519: #ifndef getc_unlocked
21520: (void) getc_unlocked;
21521: #endif
21522:
21523: ;
21524: return 0;
21525: }
21526: _ACEOF
21527: rm -f conftest.$ac_objext
21528: if { (ac_try="$ac_compile"
21529: case "(($ac_try" in
21530: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531: *) ac_try_echo=$ac_try;;
21532: esac
21533: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21534: $as_echo "$ac_try_echo") >&5
21535: (eval "$ac_compile") 2>conftest.er1
21536: ac_status=$?
21537: grep -v '^ *+' conftest.er1 >conftest.err
21538: rm -f conftest.er1
21539: cat conftest.err >&5
21540: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541: (exit $ac_status); } && {
21542: test -z "$ac_c_werror_flag" ||
21543: test ! -s conftest.err
21544: } && test -s conftest.$ac_objext; then
21545: ac_cv_have_decl_getc_unlocked=yes
21546: else
21547: $as_echo "$as_me: failed program was:" >&5
21548: sed 's/^/| /' conftest.$ac_ext >&5
21549:
21550: ac_cv_have_decl_getc_unlocked=no
21551: fi
21552:
21553: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554: fi
21555: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
21556: $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
21557: if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
21558:
21559: cat >>confdefs.h <<_ACEOF
21560: #define HAVE_DECL_GETC_UNLOCKED 1
21561: _ACEOF
21562:
21563:
21564: else
21565: cat >>confdefs.h <<_ACEOF
21566: #define HAVE_DECL_GETC_UNLOCKED 0
21567: _ACEOF
21568:
21569:
21570: fi
21571:
21572:
21573: { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
21574: $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
21575: if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
21576: $as_echo_n "(cached) " >&6
21577: else
21578: cat >conftest.$ac_ext <<_ACEOF
21579: /* confdefs.h. */
21580: _ACEOF
21581: cat confdefs.h >>conftest.$ac_ext
21582: cat >>conftest.$ac_ext <<_ACEOF
21583: /* end confdefs.h. */
21584: $ac_includes_default
21585: int
21586: main ()
21587: {
21588: #ifndef getchar_unlocked
21589: (void) getchar_unlocked;
21590: #endif
21591:
21592: ;
21593: return 0;
21594: }
21595: _ACEOF
21596: rm -f conftest.$ac_objext
21597: if { (ac_try="$ac_compile"
21598: case "(($ac_try" in
21599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600: *) ac_try_echo=$ac_try;;
21601: esac
21602: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21603: $as_echo "$ac_try_echo") >&5
21604: (eval "$ac_compile") 2>conftest.er1
21605: ac_status=$?
21606: grep -v '^ *+' conftest.er1 >conftest.err
21607: rm -f conftest.er1
21608: cat conftest.err >&5
21609: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610: (exit $ac_status); } && {
21611: test -z "$ac_c_werror_flag" ||
21612: test ! -s conftest.err
21613: } && test -s conftest.$ac_objext; then
21614: ac_cv_have_decl_getchar_unlocked=yes
21615: else
21616: $as_echo "$as_me: failed program was:" >&5
21617: sed 's/^/| /' conftest.$ac_ext >&5
21618:
21619: ac_cv_have_decl_getchar_unlocked=no
21620: fi
21621:
21622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623: fi
21624: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
21625: $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
21626: if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
21627:
21628: cat >>confdefs.h <<_ACEOF
21629: #define HAVE_DECL_GETCHAR_UNLOCKED 1
21630: _ACEOF
21631:
21632:
21633: else
21634: cat >>confdefs.h <<_ACEOF
21635: #define HAVE_DECL_GETCHAR_UNLOCKED 0
21636: _ACEOF
21637:
21638:
21639: fi
21640:
21641:
21642: { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
21643: $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
21644: if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
21645: $as_echo_n "(cached) " >&6
21646: else
21647: cat >conftest.$ac_ext <<_ACEOF
21648: /* confdefs.h. */
21649: _ACEOF
21650: cat confdefs.h >>conftest.$ac_ext
21651: cat >>conftest.$ac_ext <<_ACEOF
21652: /* end confdefs.h. */
21653: $ac_includes_default
21654: int
21655: main ()
21656: {
21657: #ifndef putc_unlocked
21658: (void) putc_unlocked;
21659: #endif
21660:
21661: ;
21662: return 0;
21663: }
21664: _ACEOF
21665: rm -f conftest.$ac_objext
21666: if { (ac_try="$ac_compile"
21667: case "(($ac_try" in
21668: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669: *) ac_try_echo=$ac_try;;
21670: esac
21671: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21672: $as_echo "$ac_try_echo") >&5
21673: (eval "$ac_compile") 2>conftest.er1
21674: ac_status=$?
21675: grep -v '^ *+' conftest.er1 >conftest.err
21676: rm -f conftest.er1
21677: cat conftest.err >&5
21678: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679: (exit $ac_status); } && {
21680: test -z "$ac_c_werror_flag" ||
21681: test ! -s conftest.err
21682: } && test -s conftest.$ac_objext; then
21683: ac_cv_have_decl_putc_unlocked=yes
21684: else
21685: $as_echo "$as_me: failed program was:" >&5
21686: sed 's/^/| /' conftest.$ac_ext >&5
21687:
21688: ac_cv_have_decl_putc_unlocked=no
21689: fi
21690:
21691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692: fi
21693: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
21694: $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
21695: if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
21696:
21697: cat >>confdefs.h <<_ACEOF
21698: #define HAVE_DECL_PUTC_UNLOCKED 1
21699: _ACEOF
21700:
21701:
21702: else
21703: cat >>confdefs.h <<_ACEOF
21704: #define HAVE_DECL_PUTC_UNLOCKED 0
21705: _ACEOF
21706:
21707:
21708: fi
21709:
21710:
21711: { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
21712: $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
21713: if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
21714: $as_echo_n "(cached) " >&6
21715: else
21716: cat >conftest.$ac_ext <<_ACEOF
21717: /* confdefs.h. */
21718: _ACEOF
21719: cat confdefs.h >>conftest.$ac_ext
21720: cat >>conftest.$ac_ext <<_ACEOF
21721: /* end confdefs.h. */
21722: $ac_includes_default
21723: int
21724: main ()
21725: {
21726: #ifndef putchar_unlocked
21727: (void) putchar_unlocked;
21728: #endif
21729:
21730: ;
21731: return 0;
21732: }
21733: _ACEOF
21734: rm -f conftest.$ac_objext
21735: if { (ac_try="$ac_compile"
21736: case "(($ac_try" in
21737: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738: *) ac_try_echo=$ac_try;;
21739: esac
21740: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21741: $as_echo "$ac_try_echo") >&5
21742: (eval "$ac_compile") 2>conftest.er1
21743: ac_status=$?
21744: grep -v '^ *+' conftest.er1 >conftest.err
21745: rm -f conftest.er1
21746: cat conftest.err >&5
21747: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748: (exit $ac_status); } && {
21749: test -z "$ac_c_werror_flag" ||
21750: test ! -s conftest.err
21751: } && test -s conftest.$ac_objext; then
21752: ac_cv_have_decl_putchar_unlocked=yes
21753: else
21754: $as_echo "$as_me: failed program was:" >&5
21755: sed 's/^/| /' conftest.$ac_ext >&5
21756:
21757: ac_cv_have_decl_putchar_unlocked=no
21758: fi
21759:
21760: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21761: fi
21762: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
21763: $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
21764: if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
21765:
21766: cat >>confdefs.h <<_ACEOF
21767: #define HAVE_DECL_PUTCHAR_UNLOCKED 1
21768: _ACEOF
21769:
21770:
21771: else
21772: cat >>confdefs.h <<_ACEOF
21773: #define HAVE_DECL_PUTCHAR_UNLOCKED 0
21774: _ACEOF
21775:
21776:
21777: fi
21778:
21779:
21780:
21781: GNULIB_BTOWC=0;
21782: GNULIB_WCTOB=0;
21783: GNULIB_MBSINIT=0;
21784: GNULIB_MBRTOWC=0;
21785: GNULIB_MBRLEN=0;
21786: GNULIB_MBSRTOWCS=0;
21787: GNULIB_MBSNRTOWCS=0;
21788: GNULIB_WCRTOMB=0;
21789: GNULIB_WCSRTOMBS=0;
21790: GNULIB_WCSNRTOMBS=0;
21791: GNULIB_WCWIDTH=0;
21792: HAVE_BTOWC=1;
21793: HAVE_MBSINIT=1;
21794: HAVE_MBRTOWC=1;
21795: HAVE_MBRLEN=1;
21796: HAVE_MBSRTOWCS=1;
21797: HAVE_MBSNRTOWCS=1;
21798: HAVE_WCRTOMB=1;
21799: HAVE_WCSRTOMBS=1;
21800: HAVE_WCSNRTOMBS=1;
21801: HAVE_DECL_WCTOB=1;
21802: HAVE_DECL_WCWIDTH=1;
21803: REPLACE_MBSTATE_T=0;
21804: REPLACE_BTOWC=0;
21805: REPLACE_WCTOB=0;
21806: REPLACE_MBSINIT=0;
21807: REPLACE_MBRTOWC=0;
21808: REPLACE_MBRLEN=0;
21809: REPLACE_MBSRTOWCS=0;
21810: REPLACE_MBSNRTOWCS=0;
21811: REPLACE_WCRTOMB=0;
21812: REPLACE_WCSRTOMBS=0;
21813: REPLACE_WCSNRTOMBS=0;
21814: REPLACE_WCWIDTH=0;
21815: WCHAR_H='';
21816:
21817:
21818: { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
21819: $as_echo_n "checking for wint_t... " >&6; }
21820: if test "${gt_cv_c_wint_t+set}" = set; then
21821: $as_echo_n "(cached) " >&6
21822: else
21823: cat >conftest.$ac_ext <<_ACEOF
21824: /* confdefs.h. */
21825: _ACEOF
21826: cat confdefs.h >>conftest.$ac_ext
21827: cat >>conftest.$ac_ext <<_ACEOF
21828: /* end confdefs.h. */
21829:
21830: /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21831: <wchar.h>.
21832: BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
21833: before <wchar.h>. */
21834: #include <stddef.h>
21835: #include <stdio.h>
21836: #include <time.h>
21837: #include <wchar.h>
21838: wint_t foo = (wchar_t)'\0';
21839: int
21840: main ()
21841: {
21842:
21843: ;
21844: return 0;
21845: }
21846: _ACEOF
21847: rm -f conftest.$ac_objext
21848: if { (ac_try="$ac_compile"
21849: case "(($ac_try" in
21850: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851: *) ac_try_echo=$ac_try;;
21852: esac
21853: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21854: $as_echo "$ac_try_echo") >&5
21855: (eval "$ac_compile") 2>conftest.er1
21856: ac_status=$?
21857: grep -v '^ *+' conftest.er1 >conftest.err
21858: rm -f conftest.er1
21859: cat conftest.err >&5
21860: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861: (exit $ac_status); } && {
21862: test -z "$ac_c_werror_flag" ||
21863: test ! -s conftest.err
21864: } && test -s conftest.$ac_objext; then
21865: gt_cv_c_wint_t=yes
21866: else
21867: $as_echo "$as_me: failed program was:" >&5
21868: sed 's/^/| /' conftest.$ac_ext >&5
21869:
21870: gt_cv_c_wint_t=no
21871: fi
21872:
21873: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874: fi
21875: { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
21876: $as_echo "$gt_cv_c_wint_t" >&6; }
21877: if test $gt_cv_c_wint_t = yes; then
21878:
21879: cat >>confdefs.h <<\_ACEOF
21880: #define HAVE_WINT_T 1
21881: _ACEOF
21882:
21883: fi
21884:
21885:
21886: if false; then
21887: GL_COND_LIBTOOL_TRUE=
21888: GL_COND_LIBTOOL_FALSE='#'
21889: else
21890: GL_COND_LIBTOOL_TRUE='#'
21891: GL_COND_LIBTOOL_FALSE=
21892: fi
21893:
21894: gl_cond_libtool=false
21895: gl_libdeps=
21896: gl_ltlibdeps=
21897:
21898:
21899:
21900:
21901:
21902:
21903:
21904:
21905:
21906: gl_source_base='srclib'
21907:
21908:
21909:
21910:
21911:
21912: if test $ac_cv_func_alloca_works = no; then
21913:
21914:
21915:
21916:
21917:
21918:
21919:
21920:
21921:
21922: :
21923:
21924: fi
21925:
21926: # Define an additional variable used in the Makefile substitution.
21927:
21928: cat >conftest.$ac_ext <<_ACEOF
21929: /* confdefs.h. */
21930: _ACEOF
21931: cat confdefs.h >>conftest.$ac_ext
21932: cat >>conftest.$ac_ext <<_ACEOF
21933: /* end confdefs.h. */
21934:
21935: #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
21936: Need own alloca
21937: #endif
21938:
21939: _ACEOF
21940: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21941: $EGREP "Need own alloca" >/dev/null 2>&1; then
21942: ALLOCA_H=alloca.h
21943: else
21944: ALLOCA_H=
21945: fi
21946: rm -f conftest*
21947:
21948:
21949:
21950:
21951:
21952:
21953:
21954:
21955:
21956:
21957:
21958:
21959:
21960:
21961: if test $ac_cv_func_canonicalize_file_name = no; then
21962:
21963:
21964:
21965:
21966:
21967:
21968:
21969:
21970: gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
21971:
21972:
21973: cat >>confdefs.h <<\_ACEOF
21974: #define realpath rpl_realpath
21975: _ACEOF
21976:
21977:
21978:
21979:
21980:
21981:
21982:
21983:
21984:
21985:
21986:
21987:
21988:
21989:
21990:
21991:
21992:
21993:
21994:
21995: fi
21996:
21997:
21998:
21999: cat >>confdefs.h <<\_ACEOF
22000: #define GNULIB_CANONICALIZE_LGPL 1
22001: _ACEOF
22002:
22003:
22004:
22005:
22006:
22007:
22008:
22009: { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22010: $as_echo_n "checking if environ is properly declared... " >&6; }
22011: if test "${gt_cv_var_environ_declaration+set}" = set; then
22012: $as_echo_n "(cached) " >&6
22013: else
22014:
22015: cat >conftest.$ac_ext <<_ACEOF
22016: /* confdefs.h. */
22017: _ACEOF
22018: cat confdefs.h >>conftest.$ac_ext
22019: cat >>conftest.$ac_ext <<_ACEOF
22020: /* end confdefs.h. */
22021: #include <unistd.h>
22022: extern struct { int foo; } environ;
22023: int
22024: main ()
22025: {
22026: environ.foo = 1;
22027: ;
22028: return 0;
22029: }
22030: _ACEOF
22031: rm -f conftest.$ac_objext
22032: if { (ac_try="$ac_compile"
22033: case "(($ac_try" in
22034: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035: *) ac_try_echo=$ac_try;;
22036: esac
22037: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22038: $as_echo "$ac_try_echo") >&5
22039: (eval "$ac_compile") 2>conftest.er1
22040: ac_status=$?
22041: grep -v '^ *+' conftest.er1 >conftest.err
22042: rm -f conftest.er1
22043: cat conftest.err >&5
22044: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045: (exit $ac_status); } && {
22046: test -z "$ac_c_werror_flag" ||
22047: test ! -s conftest.err
22048: } && test -s conftest.$ac_objext; then
22049: gt_cv_var_environ_declaration=no
22050: else
22051: $as_echo "$as_me: failed program was:" >&5
22052: sed 's/^/| /' conftest.$ac_ext >&5
22053:
22054: gt_cv_var_environ_declaration=yes
22055: fi
22056:
22057: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058: fi
22059:
22060: { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
22061: $as_echo "$gt_cv_var_environ_declaration" >&6; }
22062: if test $gt_cv_var_environ_declaration = yes; then
22063:
22064: cat >>confdefs.h <<\_ACEOF
22065: #define HAVE_ENVIRON_DECL 1
22066: _ACEOF
22067:
22068: fi
22069:
22070:
22071: if test $gt_cv_var_environ_declaration != yes; then
22072: HAVE_DECL_ENVIRON=0
22073: fi
22074:
22075:
22076:
22077: GNULIB_ENVIRON=1
22078:
22079:
22080:
22081:
22082:
22083:
22084:
22085:
22086:
22087:
22088:
22089:
22090:
22091:
22092:
22093: { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
22094: $as_echo_n "checking for error_at_line... " >&6; }
22095: if test "${ac_cv_lib_error_at_line+set}" = set; then
22096: $as_echo_n "(cached) " >&6
22097: else
22098: cat >conftest.$ac_ext <<_ACEOF
22099: /* confdefs.h. */
22100: _ACEOF
22101: cat confdefs.h >>conftest.$ac_ext
22102: cat >>conftest.$ac_ext <<_ACEOF
22103: /* end confdefs.h. */
22104: #include <error.h>
22105: int
22106: main ()
22107: {
22108: error_at_line (0, 0, "", 0, "an error occurred");
22109: ;
22110: return 0;
22111: }
22112: _ACEOF
22113: rm -f conftest.$ac_objext conftest$ac_exeext
22114: if { (ac_try="$ac_link"
22115: case "(($ac_try" in
22116: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117: *) ac_try_echo=$ac_try;;
22118: esac
22119: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22120: $as_echo "$ac_try_echo") >&5
22121: (eval "$ac_link") 2>conftest.er1
22122: ac_status=$?
22123: grep -v '^ *+' conftest.er1 >conftest.err
22124: rm -f conftest.er1
22125: cat conftest.err >&5
22126: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127: (exit $ac_status); } && {
22128: test -z "$ac_c_werror_flag" ||
22129: test ! -s conftest.err
22130: } && test -s conftest$ac_exeext && {
22131: test "$cross_compiling" = yes ||
22132: $as_test_x conftest$ac_exeext
22133: }; then
22134: ac_cv_lib_error_at_line=yes
22135: else
22136: $as_echo "$as_me: failed program was:" >&5
22137: sed 's/^/| /' conftest.$ac_ext >&5
22138:
22139: ac_cv_lib_error_at_line=no
22140: fi
22141:
22142: rm -rf conftest.dSYM
22143: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22144: conftest$ac_exeext conftest.$ac_ext
22145: fi
22146: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
22147: $as_echo "$ac_cv_lib_error_at_line" >&6; }
22148: if test $ac_cv_lib_error_at_line = no; then
22149:
22150:
22151:
22152:
22153:
22154:
22155:
22156:
22157: gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
22158:
22159: fi
22160:
22161:
22162:
22163: :
22164:
22165:
22166:
22167:
22168: XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
22169:
22170:
22171:
22172: XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
22173:
22174:
22175:
22176:
22177:
22178:
22179: if test $gl_cv_func_malloc_posix = yes; then
22180: HAVE_MALLOC_POSIX=1
22181:
22182: cat >>confdefs.h <<\_ACEOF
22183: #define HAVE_MALLOC_POSIX 1
22184: _ACEOF
22185:
22186: else
22187:
22188:
22189:
22190:
22191:
22192:
22193:
22194:
22195: gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22196:
22197: HAVE_MALLOC_POSIX=0
22198: fi
22199:
22200:
22201:
22202:
22203: GNULIB_MALLOC_POSIX=1
22204:
22205:
22206:
22207:
22208:
22209:
22210:
22211: { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
22212: $as_echo_n "checking for mbstate_t... " >&6; }
22213: if test "${ac_cv_type_mbstate_t+set}" = set; then
22214: $as_echo_n "(cached) " >&6
22215: else
22216: cat >conftest.$ac_ext <<_ACEOF
22217: /* confdefs.h. */
22218: _ACEOF
22219: cat confdefs.h >>conftest.$ac_ext
22220: cat >>conftest.$ac_ext <<_ACEOF
22221: /* end confdefs.h. */
22222: $ac_includes_default
22223: # include <wchar.h>
22224: int
22225: main ()
22226: {
22227: mbstate_t x; return sizeof x;
22228: ;
22229: return 0;
22230: }
22231: _ACEOF
22232: rm -f conftest.$ac_objext
22233: if { (ac_try="$ac_compile"
22234: case "(($ac_try" in
22235: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236: *) ac_try_echo=$ac_try;;
22237: esac
22238: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22239: $as_echo "$ac_try_echo") >&5
22240: (eval "$ac_compile") 2>conftest.er1
22241: ac_status=$?
22242: grep -v '^ *+' conftest.er1 >conftest.err
22243: rm -f conftest.er1
22244: cat conftest.err >&5
22245: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246: (exit $ac_status); } && {
22247: test -z "$ac_c_werror_flag" ||
22248: test ! -s conftest.err
22249: } && test -s conftest.$ac_objext; then
22250: ac_cv_type_mbstate_t=yes
22251: else
22252: $as_echo "$as_me: failed program was:" >&5
22253: sed 's/^/| /' conftest.$ac_ext >&5
22254:
22255: ac_cv_type_mbstate_t=no
22256: fi
22257:
22258: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259: fi
22260: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22261: $as_echo "$ac_cv_type_mbstate_t" >&6; }
22262: if test $ac_cv_type_mbstate_t = yes; then
22263:
22264: cat >>confdefs.h <<\_ACEOF
22265: #define HAVE_MBSTATE_T 1
22266: _ACEOF
22267:
22268: else
22269:
22270: cat >>confdefs.h <<\_ACEOF
22271: #define mbstate_t int
22272: _ACEOF
22273:
22274: fi
22275:
22276:
22277:
22278:
22279:
22280:
22281:
22282:
22283:
22284:
22285:
22286: for ac_func in memmove
22287: do
22288: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22289: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22290: $as_echo_n "checking for $ac_func... " >&6; }
22291: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22292: $as_echo_n "(cached) " >&6
22293: else
22294: cat >conftest.$ac_ext <<_ACEOF
22295: /* confdefs.h. */
22296: _ACEOF
22297: cat confdefs.h >>conftest.$ac_ext
22298: cat >>conftest.$ac_ext <<_ACEOF
22299: /* end confdefs.h. */
22300: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22301: For example, HP-UX 11i <limits.h> declares gettimeofday. */
22302: #define $ac_func innocuous_$ac_func
22303:
22304: /* System header to define __stub macros and hopefully few prototypes,
22305: which can conflict with char $ac_func (); below.
22306: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22307: <limits.h> exists even on freestanding compilers. */
22308:
22309: #ifdef __STDC__
22310: # include <limits.h>
22311: #else
22312: # include <assert.h>
22313: #endif
22314:
22315: #undef $ac_func
22316:
22317: /* Override any GCC internal prototype to avoid an error.
22318: Use char because int might match the return type of a GCC
22319: builtin and then its argument prototype would still apply. */
22320: #ifdef __cplusplus
22321: extern "C"
22322: #endif
22323: char $ac_func ();
22324: /* The GNU C library defines this for functions which it implements
22325: to always fail with ENOSYS. Some functions are actually named
22326: something starting with __ and the normal name is an alias. */
22327: #if defined __stub_$ac_func || defined __stub___$ac_func
22328: choke me
22329: #endif
22330:
22331: int
22332: main ()
22333: {
22334: return $ac_func ();
22335: ;
22336: return 0;
22337: }
22338: _ACEOF
22339: rm -f conftest.$ac_objext conftest$ac_exeext
22340: if { (ac_try="$ac_link"
22341: case "(($ac_try" in
22342: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343: *) ac_try_echo=$ac_try;;
22344: esac
22345: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22346: $as_echo "$ac_try_echo") >&5
22347: (eval "$ac_link") 2>conftest.er1
22348: ac_status=$?
22349: grep -v '^ *+' conftest.er1 >conftest.err
22350: rm -f conftest.er1
22351: cat conftest.err >&5
22352: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353: (exit $ac_status); } && {
22354: test -z "$ac_c_werror_flag" ||
22355: test ! -s conftest.err
22356: } && test -s conftest$ac_exeext && {
22357: test "$cross_compiling" = yes ||
22358: $as_test_x conftest$ac_exeext
22359: }; then
22360: eval "$as_ac_var=yes"
22361: else
22362: $as_echo "$as_me: failed program was:" >&5
22363: sed 's/^/| /' conftest.$ac_ext >&5
22364:
22365: eval "$as_ac_var=no"
22366: fi
22367:
22368: rm -rf conftest.dSYM
22369: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22370: conftest$ac_exeext conftest.$ac_ext
22371: fi
22372: ac_res=`eval 'as_val=${'$as_ac_var'}
22373: $as_echo "$as_val"'`
22374: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22375: $as_echo "$ac_res" >&6; }
22376: as_val=`eval 'as_val=${'$as_ac_var'}
22377: $as_echo "$as_val"'`
22378: if test "x$as_val" = x""yes; then
22379: cat >>confdefs.h <<_ACEOF
22380: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22381: _ACEOF
22382:
22383: else
22384:
22385: gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22386:
22387: fi
22388: done
22389:
22390:
22391: if test $ac_cv_func_memmove = no; then
22392:
22393: :
22394:
22395: fi
22396:
22397:
22398:
22399:
22400:
22401:
22402:
22403:
22404:
22405:
22406:
22407:
22408:
22409:
22410:
22411:
22412:
22413:
22414:
22415:
22416:
22417:
22418:
22419:
22420: if test $ac_cv_func_readlink = no; then
22421: HAVE_READLINK=0
22422:
22423:
22424:
22425:
22426:
22427:
22428:
22429:
22430: gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22431:
22432:
22433: :
22434:
22435: fi
22436:
22437:
22438:
22439: GNULIB_READLINK=1
22440:
22441:
22442:
22443:
22444:
22445: if test $RELOCATABLE = yes; then
22446:
22447:
22448:
22449:
22450:
22451:
22452:
22453:
22454: gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
22455:
22456: fi
22457:
22458: if test $RELOCATABLE = yes; then
22459:
22460:
22461:
22462:
22463:
22464:
22465:
22466:
22467: gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
22468:
22469: fi
22470: : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
22471: RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
22472: RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
22473:
22474:
22475:
22476:
22477:
22478:
22479:
22480:
22481:
22482: :
22483:
22484:
22485:
22486:
22487:
22488:
22489:
22490:
22491:
22492:
22493:
22494:
22495:
22496:
22497:
22498:
22499:
22500:
22501:
22502:
22503:
22504:
22505:
22506:
22507:
22508:
22509:
22510:
22511:
22512:
22513:
22514:
22515:
22516:
22517:
22518:
22519:
22520:
22521:
22522:
22523:
22524:
22525:
22526:
22527:
22528:
22529:
22530: if test $ac_cv_func_setenv = no; then
22531: HAVE_SETENV=0
22532: fi
22533:
22534:
22535:
22536:
22537:
22538:
22539:
22540:
22541:
22542:
22543: for ac_header in search.h
22544: do
22545: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22546: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22547: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22548: $as_echo_n "checking for $ac_header... " >&6; }
22549: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22550: $as_echo_n "(cached) " >&6
22551: fi
22552: ac_res=`eval 'as_val=${'$as_ac_Header'}
22553: $as_echo "$as_val"'`
22554: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22555: $as_echo "$ac_res" >&6; }
22556: else
22557: # Is the header compilable?
22558: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22559: $as_echo_n "checking $ac_header usability... " >&6; }
22560: cat >conftest.$ac_ext <<_ACEOF
22561: /* confdefs.h. */
22562: _ACEOF
22563: cat confdefs.h >>conftest.$ac_ext
22564: cat >>conftest.$ac_ext <<_ACEOF
22565: /* end confdefs.h. */
22566: $ac_includes_default
22567: #include <$ac_header>
22568: _ACEOF
22569: rm -f conftest.$ac_objext
22570: if { (ac_try="$ac_compile"
22571: case "(($ac_try" in
22572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573: *) ac_try_echo=$ac_try;;
22574: esac
22575: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22576: $as_echo "$ac_try_echo") >&5
22577: (eval "$ac_compile") 2>conftest.er1
22578: ac_status=$?
22579: grep -v '^ *+' conftest.er1 >conftest.err
22580: rm -f conftest.er1
22581: cat conftest.err >&5
22582: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583: (exit $ac_status); } && {
22584: test -z "$ac_c_werror_flag" ||
22585: test ! -s conftest.err
22586: } && test -s conftest.$ac_objext; then
22587: ac_header_compiler=yes
22588: else
22589: $as_echo "$as_me: failed program was:" >&5
22590: sed 's/^/| /' conftest.$ac_ext >&5
22591:
22592: ac_header_compiler=no
22593: fi
22594:
22595: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22596: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22597: $as_echo "$ac_header_compiler" >&6; }
22598:
22599: # Is the header present?
22600: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22601: $as_echo_n "checking $ac_header presence... " >&6; }
22602: cat >conftest.$ac_ext <<_ACEOF
22603: /* confdefs.h. */
22604: _ACEOF
22605: cat confdefs.h >>conftest.$ac_ext
22606: cat >>conftest.$ac_ext <<_ACEOF
22607: /* end confdefs.h. */
22608: #include <$ac_header>
22609: _ACEOF
22610: if { (ac_try="$ac_cpp conftest.$ac_ext"
22611: case "(($ac_try" in
22612: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22613: *) ac_try_echo=$ac_try;;
22614: esac
22615: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22616: $as_echo "$ac_try_echo") >&5
22617: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22618: ac_status=$?
22619: grep -v '^ *+' conftest.er1 >conftest.err
22620: rm -f conftest.er1
22621: cat conftest.err >&5
22622: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623: (exit $ac_status); } >/dev/null && {
22624: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22625: test ! -s conftest.err
22626: }; then
22627: ac_header_preproc=yes
22628: else
22629: $as_echo "$as_me: failed program was:" >&5
22630: sed 's/^/| /' conftest.$ac_ext >&5
22631:
22632: ac_header_preproc=no
22633: fi
22634:
22635: rm -f conftest.err conftest.$ac_ext
22636: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22637: $as_echo "$ac_header_preproc" >&6; }
22638:
22639: # So? What about this header?
22640: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22641: yes:no: )
22642: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22643: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22644: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22645: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22646: ac_header_preproc=yes
22647: ;;
22648: no:yes:* )
22649: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22650: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22651: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22652: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22653: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22654: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22655: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22656: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22657: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22658: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22659: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22660: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22661:
22662: ;;
22663: esac
22664: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22665: $as_echo_n "checking for $ac_header... " >&6; }
22666: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22667: $as_echo_n "(cached) " >&6
22668: else
22669: eval "$as_ac_Header=\$ac_header_preproc"
22670: fi
22671: ac_res=`eval 'as_val=${'$as_ac_Header'}
22672: $as_echo "$as_val"'`
22673: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22674: $as_echo "$ac_res" >&6; }
22675:
22676: fi
22677: as_val=`eval 'as_val=${'$as_ac_Header'}
22678: $as_echo "$as_val"'`
22679: if test "x$as_val" = x""yes; then
22680: cat >>confdefs.h <<_ACEOF
22681: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22682: _ACEOF
22683:
22684: fi
22685:
22686: done
22687:
22688:
22689: for ac_func in tsearch
22690: do
22691: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22692: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22693: $as_echo_n "checking for $ac_func... " >&6; }
22694: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22695: $as_echo_n "(cached) " >&6
22696: else
22697: cat >conftest.$ac_ext <<_ACEOF
22698: /* confdefs.h. */
22699: _ACEOF
22700: cat confdefs.h >>conftest.$ac_ext
22701: cat >>conftest.$ac_ext <<_ACEOF
22702: /* end confdefs.h. */
22703: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22704: For example, HP-UX 11i <limits.h> declares gettimeofday. */
22705: #define $ac_func innocuous_$ac_func
22706:
22707: /* System header to define __stub macros and hopefully few prototypes,
22708: which can conflict with char $ac_func (); below.
22709: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22710: <limits.h> exists even on freestanding compilers. */
22711:
22712: #ifdef __STDC__
22713: # include <limits.h>
22714: #else
22715: # include <assert.h>
22716: #endif
22717:
22718: #undef $ac_func
22719:
22720: /* Override any GCC internal prototype to avoid an error.
22721: Use char because int might match the return type of a GCC
22722: builtin and then its argument prototype would still apply. */
22723: #ifdef __cplusplus
22724: extern "C"
22725: #endif
22726: char $ac_func ();
22727: /* The GNU C library defines this for functions which it implements
22728: to always fail with ENOSYS. Some functions are actually named
22729: something starting with __ and the normal name is an alias. */
22730: #if defined __stub_$ac_func || defined __stub___$ac_func
22731: choke me
22732: #endif
22733:
22734: int
22735: main ()
22736: {
22737: return $ac_func ();
22738: ;
22739: return 0;
22740: }
22741: _ACEOF
22742: rm -f conftest.$ac_objext conftest$ac_exeext
22743: if { (ac_try="$ac_link"
22744: case "(($ac_try" in
22745: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746: *) ac_try_echo=$ac_try;;
22747: esac
22748: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22749: $as_echo "$ac_try_echo") >&5
22750: (eval "$ac_link") 2>conftest.er1
22751: ac_status=$?
22752: grep -v '^ *+' conftest.er1 >conftest.err
22753: rm -f conftest.er1
22754: cat conftest.err >&5
22755: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756: (exit $ac_status); } && {
22757: test -z "$ac_c_werror_flag" ||
22758: test ! -s conftest.err
22759: } && test -s conftest$ac_exeext && {
22760: test "$cross_compiling" = yes ||
22761: $as_test_x conftest$ac_exeext
22762: }; then
22763: eval "$as_ac_var=yes"
22764: else
22765: $as_echo "$as_me: failed program was:" >&5
22766: sed 's/^/| /' conftest.$ac_ext >&5
22767:
22768: eval "$as_ac_var=no"
22769: fi
22770:
22771: rm -rf conftest.dSYM
22772: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22773: conftest$ac_exeext conftest.$ac_ext
22774: fi
22775: ac_res=`eval 'as_val=${'$as_ac_var'}
22776: $as_echo "$as_val"'`
22777: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22778: $as_echo "$ac_res" >&6; }
22779: as_val=`eval 'as_val=${'$as_ac_var'}
22780: $as_echo "$as_val"'`
22781: if test "x$as_val" = x""yes; then
22782: cat >>confdefs.h <<_ACEOF
22783: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22784: _ACEOF
22785:
22786: fi
22787: done
22788:
22789:
22790:
22791:
22792:
22793:
22794: if test -z "$ERRNO_H"; then
22795: { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
22796: $as_echo_n "checking for working strerror function... " >&6; }
22797: if test "${gl_cv_func_working_strerror+set}" = set; then
22798: $as_echo_n "(cached) " >&6
22799: else
22800: if test "$cross_compiling" = yes; then
22801: cat >conftest.$ac_ext <<_ACEOF
22802: /* confdefs.h. */
22803: _ACEOF
22804: cat confdefs.h >>conftest.$ac_ext
22805: cat >>conftest.$ac_ext <<_ACEOF
22806: /* end confdefs.h. */
22807: #include <string.h>
22808:
22809: int
22810: main ()
22811: {
22812: return !*strerror (-2);
22813: ;
22814: return 0;
22815: }
22816: _ACEOF
22817: rm -f conftest.$ac_objext
22818: if { (ac_try="$ac_compile"
22819: case "(($ac_try" in
22820: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821: *) ac_try_echo=$ac_try;;
22822: esac
22823: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22824: $as_echo "$ac_try_echo") >&5
22825: (eval "$ac_compile") 2>conftest.er1
22826: ac_status=$?
22827: grep -v '^ *+' conftest.er1 >conftest.err
22828: rm -f conftest.er1
22829: cat conftest.err >&5
22830: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831: (exit $ac_status); } && {
22832: test -z "$ac_c_werror_flag" ||
22833: test ! -s conftest.err
22834: } && test -s conftest.$ac_objext; then
22835: gl_cv_func_working_strerror=yes
22836: else
22837: $as_echo "$as_me: failed program was:" >&5
22838: sed 's/^/| /' conftest.$ac_ext >&5
22839:
22840: gl_cv_func_working_strerror=no
22841: fi
22842:
22843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844:
22845: else
22846: cat >conftest.$ac_ext <<_ACEOF
22847: /* confdefs.h. */
22848: _ACEOF
22849: cat confdefs.h >>conftest.$ac_ext
22850: cat >>conftest.$ac_ext <<_ACEOF
22851: /* end confdefs.h. */
22852: #include <string.h>
22853:
22854: int
22855: main ()
22856: {
22857: return !*strerror (-2);
22858: ;
22859: return 0;
22860: }
22861: _ACEOF
22862: rm -f conftest$ac_exeext
22863: if { (ac_try="$ac_link"
22864: case "(($ac_try" in
22865: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866: *) ac_try_echo=$ac_try;;
22867: esac
22868: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22869: $as_echo "$ac_try_echo") >&5
22870: (eval "$ac_link") 2>&5
22871: ac_status=$?
22872: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22874: { (case "(($ac_try" in
22875: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876: *) ac_try_echo=$ac_try;;
22877: esac
22878: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22879: $as_echo "$ac_try_echo") >&5
22880: (eval "$ac_try") 2>&5
22881: ac_status=$?
22882: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883: (exit $ac_status); }; }; then
22884: gl_cv_func_working_strerror=yes
22885: else
22886: $as_echo "$as_me: program exited with status $ac_status" >&5
22887: $as_echo "$as_me: failed program was:" >&5
22888: sed 's/^/| /' conftest.$ac_ext >&5
22889:
22890: ( exit $ac_status )
22891: gl_cv_func_working_strerror=no
22892: fi
22893: rm -rf conftest.dSYM
22894: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22895: fi
22896:
22897:
22898:
22899: fi
22900: { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
22901: $as_echo "$gl_cv_func_working_strerror" >&6; }
22902: if test $gl_cv_func_working_strerror = no; then
22903: REPLACE_STRERROR=1
22904: fi
22905: else
22906: REPLACE_STRERROR=1
22907: fi
22908: if test $REPLACE_STRERROR = 1; then
22909:
22910: { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
22911: $as_echo_n "checking whether strerror is declared... " >&6; }
22912: if test "${ac_cv_have_decl_strerror+set}" = set; then
22913: $as_echo_n "(cached) " >&6
22914: else
22915: cat >conftest.$ac_ext <<_ACEOF
22916: /* confdefs.h. */
22917: _ACEOF
22918: cat confdefs.h >>conftest.$ac_ext
22919: cat >>conftest.$ac_ext <<_ACEOF
22920: /* end confdefs.h. */
22921: $ac_includes_default
22922: int
22923: main ()
22924: {
22925: #ifndef strerror
22926: (void) strerror;
22927: #endif
22928:
22929: ;
22930: return 0;
22931: }
22932: _ACEOF
22933: rm -f conftest.$ac_objext
22934: if { (ac_try="$ac_compile"
22935: case "(($ac_try" in
22936: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937: *) ac_try_echo=$ac_try;;
22938: esac
22939: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22940: $as_echo "$ac_try_echo") >&5
22941: (eval "$ac_compile") 2>conftest.er1
22942: ac_status=$?
22943: grep -v '^ *+' conftest.er1 >conftest.err
22944: rm -f conftest.er1
22945: cat conftest.err >&5
22946: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947: (exit $ac_status); } && {
22948: test -z "$ac_c_werror_flag" ||
22949: test ! -s conftest.err
22950: } && test -s conftest.$ac_objext; then
22951: ac_cv_have_decl_strerror=yes
22952: else
22953: $as_echo "$as_me: failed program was:" >&5
22954: sed 's/^/| /' conftest.$ac_ext >&5
22955:
22956: ac_cv_have_decl_strerror=no
22957: fi
22958:
22959: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960: fi
22961: { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
22962: $as_echo "$ac_cv_have_decl_strerror" >&6; }
22963: if test "x$ac_cv_have_decl_strerror" = x""yes; then
22964:
22965: cat >>confdefs.h <<_ACEOF
22966: #define HAVE_DECL_STRERROR 1
22967: _ACEOF
22968:
22969:
22970: else
22971: cat >>confdefs.h <<_ACEOF
22972: #define HAVE_DECL_STRERROR 0
22973: _ACEOF
22974:
22975:
22976: fi
22977:
22978:
22979:
22980:
22981:
22982:
22983:
22984:
22985: if test $ac_cv_header_sys_socket_h != yes; then
22986:
22987: for ac_header in winsock2.h
22988: do
22989: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22990: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22991: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22992: $as_echo_n "checking for $ac_header... " >&6; }
22993: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22994: $as_echo_n "(cached) " >&6
22995: fi
22996: ac_res=`eval 'as_val=${'$as_ac_Header'}
22997: $as_echo "$as_val"'`
22998: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22999: $as_echo "$ac_res" >&6; }
23000: else
23001: # Is the header compilable?
23002: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23003: $as_echo_n "checking $ac_header usability... " >&6; }
23004: cat >conftest.$ac_ext <<_ACEOF
23005: /* confdefs.h. */
23006: _ACEOF
23007: cat confdefs.h >>conftest.$ac_ext
23008: cat >>conftest.$ac_ext <<_ACEOF
23009: /* end confdefs.h. */
23010: $ac_includes_default
23011: #include <$ac_header>
23012: _ACEOF
23013: rm -f conftest.$ac_objext
23014: if { (ac_try="$ac_compile"
23015: case "(($ac_try" in
23016: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017: *) ac_try_echo=$ac_try;;
23018: esac
23019: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23020: $as_echo "$ac_try_echo") >&5
23021: (eval "$ac_compile") 2>conftest.er1
23022: ac_status=$?
23023: grep -v '^ *+' conftest.er1 >conftest.err
23024: rm -f conftest.er1
23025: cat conftest.err >&5
23026: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027: (exit $ac_status); } && {
23028: test -z "$ac_c_werror_flag" ||
23029: test ! -s conftest.err
23030: } && test -s conftest.$ac_objext; then
23031: ac_header_compiler=yes
23032: else
23033: $as_echo "$as_me: failed program was:" >&5
23034: sed 's/^/| /' conftest.$ac_ext >&5
23035:
23036: ac_header_compiler=no
23037: fi
23038:
23039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23041: $as_echo "$ac_header_compiler" >&6; }
23042:
23043: # Is the header present?
23044: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23045: $as_echo_n "checking $ac_header presence... " >&6; }
23046: cat >conftest.$ac_ext <<_ACEOF
23047: /* confdefs.h. */
23048: _ACEOF
23049: cat confdefs.h >>conftest.$ac_ext
23050: cat >>conftest.$ac_ext <<_ACEOF
23051: /* end confdefs.h. */
23052: #include <$ac_header>
23053: _ACEOF
23054: if { (ac_try="$ac_cpp conftest.$ac_ext"
23055: case "(($ac_try" in
23056: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057: *) ac_try_echo=$ac_try;;
23058: esac
23059: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23060: $as_echo "$ac_try_echo") >&5
23061: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23062: ac_status=$?
23063: grep -v '^ *+' conftest.er1 >conftest.err
23064: rm -f conftest.er1
23065: cat conftest.err >&5
23066: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067: (exit $ac_status); } >/dev/null && {
23068: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23069: test ! -s conftest.err
23070: }; then
23071: ac_header_preproc=yes
23072: else
23073: $as_echo "$as_me: failed program was:" >&5
23074: sed 's/^/| /' conftest.$ac_ext >&5
23075:
23076: ac_header_preproc=no
23077: fi
23078:
23079: rm -f conftest.err conftest.$ac_ext
23080: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23081: $as_echo "$ac_header_preproc" >&6; }
23082:
23083: # So? What about this header?
23084: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23085: yes:no: )
23086: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23087: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23088: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23089: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23090: ac_header_preproc=yes
23091: ;;
23092: no:yes:* )
23093: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23094: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23095: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23096: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23097: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23098: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23099: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23100: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23101: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23102: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23103: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23104: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23105:
23106: ;;
23107: esac
23108: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23109: $as_echo_n "checking for $ac_header... " >&6; }
23110: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23111: $as_echo_n "(cached) " >&6
23112: else
23113: eval "$as_ac_Header=\$ac_header_preproc"
23114: fi
23115: ac_res=`eval 'as_val=${'$as_ac_Header'}
23116: $as_echo "$as_val"'`
23117: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23118: $as_echo "$ac_res" >&6; }
23119:
23120: fi
23121: as_val=`eval 'as_val=${'$as_ac_Header'}
23122: $as_echo "$as_val"'`
23123: if test "x$as_val" = x""yes; then
23124: cat >>confdefs.h <<_ACEOF
23125: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23126: _ACEOF
23127:
23128: fi
23129:
23130: done
23131:
23132: fi
23133:
23134: fi
23135:
23136:
23137:
23138:
23139:
23140:
23141:
23142:
23143:
23144:
23145:
23146:
23147:
23148:
23149: if test $gl_cv_have_include_next = yes; then
23150: gl_cv_next_signal_h='<'signal.h'>'
23151: else
23152: { $as_echo "$as_me:$LINENO: checking absolute name of <signal.h>" >&5
23153: $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23154: if test "${gl_cv_next_signal_h+set}" = set; then
23155: $as_echo_n "(cached) " >&6
23156: else
23157:
23158: if test $ac_cv_header_signal_h = yes; then
23159: cat >conftest.$ac_ext <<_ACEOF
23160: /* confdefs.h. */
23161: _ACEOF
23162: cat confdefs.h >>conftest.$ac_ext
23163: cat >>conftest.$ac_ext <<_ACEOF
23164: /* end confdefs.h. */
23165: #include <signal.h>
23166:
23167: _ACEOF
23168: case "$host_os" in
23169: aix*) gl_absname_cpp="$ac_cpp -C" ;;
23170: *) gl_absname_cpp="$ac_cpp" ;;
23171: esac
23172: gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23173: sed -n '\#/signal.h#{
23174: s#.*"\(.*/signal.h\)".*#\1#
23175: s#^/[^/]#//&#
23176: p
23177: q
23178: }'`'"'
23179: else
23180: gl_cv_next_signal_h='<'signal.h'>'
23181: fi
23182:
23183: fi
23184: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_signal_h" >&5
23185: $as_echo "$gl_cv_next_signal_h" >&6; }
23186: fi
23187: NEXT_SIGNAL_H=$gl_cv_next_signal_h
23188:
23189: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23190: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23191: gl_next_as_first_directive='<'signal.h'>'
23192: else
23193: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23194: gl_next_as_first_directive=$gl_cv_next_signal_h
23195: fi
23196: NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23197:
23198:
23199:
23200: # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23201: # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23202: { $as_echo "$as_me:$LINENO: checking for volatile sig_atomic_t" >&5
23203: $as_echo_n "checking for volatile sig_atomic_t... " >&6; }
23204: if test "${ac_cv_type_volatile_sig_atomic_t+set}" = set; then
23205: $as_echo_n "(cached) " >&6
23206: else
23207: ac_cv_type_volatile_sig_atomic_t=no
23208: cat >conftest.$ac_ext <<_ACEOF
23209: /* confdefs.h. */
23210: _ACEOF
23211: cat confdefs.h >>conftest.$ac_ext
23212: cat >>conftest.$ac_ext <<_ACEOF
23213: /* end confdefs.h. */
23214:
23215: #include <signal.h>
23216:
23217:
23218: int
23219: main ()
23220: {
23221: if (sizeof (volatile sig_atomic_t))
23222: return 0;
23223: ;
23224: return 0;
23225: }
23226: _ACEOF
23227: rm -f conftest.$ac_objext
23228: if { (ac_try="$ac_compile"
23229: case "(($ac_try" in
23230: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231: *) ac_try_echo=$ac_try;;
23232: esac
23233: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23234: $as_echo "$ac_try_echo") >&5
23235: (eval "$ac_compile") 2>conftest.er1
23236: ac_status=$?
23237: grep -v '^ *+' conftest.er1 >conftest.err
23238: rm -f conftest.er1
23239: cat conftest.err >&5
23240: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241: (exit $ac_status); } && {
23242: test -z "$ac_c_werror_flag" ||
23243: test ! -s conftest.err
23244: } && test -s conftest.$ac_objext; then
23245: cat >conftest.$ac_ext <<_ACEOF
23246: /* confdefs.h. */
23247: _ACEOF
23248: cat confdefs.h >>conftest.$ac_ext
23249: cat >>conftest.$ac_ext <<_ACEOF
23250: /* end confdefs.h. */
23251:
23252: #include <signal.h>
23253:
23254:
23255: int
23256: main ()
23257: {
23258: if (sizeof ((volatile sig_atomic_t)))
23259: return 0;
23260: ;
23261: return 0;
23262: }
23263: _ACEOF
23264: rm -f conftest.$ac_objext
23265: if { (ac_try="$ac_compile"
23266: case "(($ac_try" in
23267: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268: *) ac_try_echo=$ac_try;;
23269: esac
23270: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23271: $as_echo "$ac_try_echo") >&5
23272: (eval "$ac_compile") 2>conftest.er1
23273: ac_status=$?
23274: grep -v '^ *+' conftest.er1 >conftest.err
23275: rm -f conftest.er1
23276: cat conftest.err >&5
23277: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278: (exit $ac_status); } && {
23279: test -z "$ac_c_werror_flag" ||
23280: test ! -s conftest.err
23281: } && test -s conftest.$ac_objext; then
23282: :
23283: else
23284: $as_echo "$as_me: failed program was:" >&5
23285: sed 's/^/| /' conftest.$ac_ext >&5
23286:
23287: ac_cv_type_volatile_sig_atomic_t=yes
23288: fi
23289:
23290: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23291: else
23292: $as_echo "$as_me: failed program was:" >&5
23293: sed 's/^/| /' conftest.$ac_ext >&5
23294:
23295:
23296: fi
23297:
23298: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23299: fi
23300: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_volatile_sig_atomic_t" >&5
23301: $as_echo "$ac_cv_type_volatile_sig_atomic_t" >&6; }
23302: if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then
23303: :
23304: else
23305: HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23306: fi
23307:
23308:
23309:
23310:
23311:
23312:
23313:
23314: cat >>confdefs.h <<\_ACEOF
23315: #define GNULIB_SIGPIPE 1
23316: _ACEOF
23317:
23318:
23319:
23320: GNULIB_SIGNAL_H_SIGPIPE=1
23321:
23322: GNULIB_STDIO_H_SIGPIPE=1
23323:
23324: GNULIB_UNISTD_H_SIGPIPE=1
23325:
23326:
23327: signals_not_posix=
23328: cat >conftest.$ac_ext <<_ACEOF
23329: /* confdefs.h. */
23330: _ACEOF
23331: cat confdefs.h >>conftest.$ac_ext
23332: cat >>conftest.$ac_ext <<_ACEOF
23333: /* end confdefs.h. */
23334: #include <signal.h>
23335:
23336: _ACEOF
23337: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23338: $EGREP "sigset_t" >/dev/null 2>&1; then
23339: :
23340: else
23341: signals_not_posix=1
23342: fi
23343: rm -f conftest*
23344:
23345: if test -z "$signals_not_posix"; then
23346: { $as_echo "$as_me:$LINENO: checking for sigprocmask" >&5
23347: $as_echo_n "checking for sigprocmask... " >&6; }
23348: if test "${ac_cv_func_sigprocmask+set}" = set; then
23349: $as_echo_n "(cached) " >&6
23350: else
23351: cat >conftest.$ac_ext <<_ACEOF
23352: /* confdefs.h. */
23353: _ACEOF
23354: cat confdefs.h >>conftest.$ac_ext
23355: cat >>conftest.$ac_ext <<_ACEOF
23356: /* end confdefs.h. */
23357: /* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
23358: For example, HP-UX 11i <limits.h> declares gettimeofday. */
23359: #define sigprocmask innocuous_sigprocmask
23360:
23361: /* System header to define __stub macros and hopefully few prototypes,
23362: which can conflict with char sigprocmask (); below.
23363: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23364: <limits.h> exists even on freestanding compilers. */
23365:
23366: #ifdef __STDC__
23367: # include <limits.h>
23368: #else
23369: # include <assert.h>
23370: #endif
23371:
23372: #undef sigprocmask
23373:
23374: /* Override any GCC internal prototype to avoid an error.
23375: Use char because int might match the return type of a GCC
23376: builtin and then its argument prototype would still apply. */
23377: #ifdef __cplusplus
23378: extern "C"
23379: #endif
23380: char sigprocmask ();
23381: /* The GNU C library defines this for functions which it implements
23382: to always fail with ENOSYS. Some functions are actually named
23383: something starting with __ and the normal name is an alias. */
23384: #if defined __stub_sigprocmask || defined __stub___sigprocmask
23385: choke me
23386: #endif
23387:
23388: int
23389: main ()
23390: {
23391: return sigprocmask ();
23392: ;
23393: return 0;
23394: }
23395: _ACEOF
23396: rm -f conftest.$ac_objext conftest$ac_exeext
23397: if { (ac_try="$ac_link"
23398: case "(($ac_try" in
23399: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400: *) ac_try_echo=$ac_try;;
23401: esac
23402: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23403: $as_echo "$ac_try_echo") >&5
23404: (eval "$ac_link") 2>conftest.er1
23405: ac_status=$?
23406: grep -v '^ *+' conftest.er1 >conftest.err
23407: rm -f conftest.er1
23408: cat conftest.err >&5
23409: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410: (exit $ac_status); } && {
23411: test -z "$ac_c_werror_flag" ||
23412: test ! -s conftest.err
23413: } && test -s conftest$ac_exeext && {
23414: test "$cross_compiling" = yes ||
23415: $as_test_x conftest$ac_exeext
23416: }; then
23417: ac_cv_func_sigprocmask=yes
23418: else
23419: $as_echo "$as_me: failed program was:" >&5
23420: sed 's/^/| /' conftest.$ac_ext >&5
23421:
23422: ac_cv_func_sigprocmask=no
23423: fi
23424:
23425: rm -rf conftest.dSYM
23426: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23427: conftest$ac_exeext conftest.$ac_ext
23428: fi
23429: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5
23430: $as_echo "$ac_cv_func_sigprocmask" >&6; }
23431: if test "x$ac_cv_func_sigprocmask" = x""yes; then
23432: gl_cv_func_sigprocmask=1
23433: fi
23434:
23435: fi
23436: if test -z "$gl_cv_func_sigprocmask"; then
23437: HAVE_POSIX_SIGNALBLOCKING=0
23438:
23439:
23440:
23441:
23442:
23443:
23444:
23445:
23446: gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
23447:
23448:
23449:
23450: { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
23451: $as_echo_n "checking for sigset_t... " >&6; }
23452: if test "${ac_cv_type_sigset_t+set}" = set; then
23453: $as_echo_n "(cached) " >&6
23454: else
23455: ac_cv_type_sigset_t=no
23456: cat >conftest.$ac_ext <<_ACEOF
23457: /* confdefs.h. */
23458: _ACEOF
23459: cat confdefs.h >>conftest.$ac_ext
23460: cat >>conftest.$ac_ext <<_ACEOF
23461: /* end confdefs.h. */
23462: #include <signal.h>
23463: /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
23464: #include <sys/types.h>
23465:
23466: int
23467: main ()
23468: {
23469: if (sizeof (sigset_t))
23470: return 0;
23471: ;
23472: return 0;
23473: }
23474: _ACEOF
23475: rm -f conftest.$ac_objext
23476: if { (ac_try="$ac_compile"
23477: case "(($ac_try" in
23478: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479: *) ac_try_echo=$ac_try;;
23480: esac
23481: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23482: $as_echo "$ac_try_echo") >&5
23483: (eval "$ac_compile") 2>conftest.er1
23484: ac_status=$?
23485: grep -v '^ *+' conftest.er1 >conftest.err
23486: rm -f conftest.er1
23487: cat conftest.err >&5
23488: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489: (exit $ac_status); } && {
23490: test -z "$ac_c_werror_flag" ||
23491: test ! -s conftest.err
23492: } && test -s conftest.$ac_objext; then
23493: cat >conftest.$ac_ext <<_ACEOF
23494: /* confdefs.h. */
23495: _ACEOF
23496: cat confdefs.h >>conftest.$ac_ext
23497: cat >>conftest.$ac_ext <<_ACEOF
23498: /* end confdefs.h. */
23499: #include <signal.h>
23500: /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
23501: #include <sys/types.h>
23502:
23503: int
23504: main ()
23505: {
23506: if (sizeof ((sigset_t)))
23507: return 0;
23508: ;
23509: return 0;
23510: }
23511: _ACEOF
23512: rm -f conftest.$ac_objext
23513: if { (ac_try="$ac_compile"
23514: case "(($ac_try" in
23515: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516: *) ac_try_echo=$ac_try;;
23517: esac
23518: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23519: $as_echo "$ac_try_echo") >&5
23520: (eval "$ac_compile") 2>conftest.er1
23521: ac_status=$?
23522: grep -v '^ *+' conftest.er1 >conftest.err
23523: rm -f conftest.er1
23524: cat conftest.err >&5
23525: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526: (exit $ac_status); } && {
23527: test -z "$ac_c_werror_flag" ||
23528: test ! -s conftest.err
23529: } && test -s conftest.$ac_objext; then
23530: :
23531: else
23532: $as_echo "$as_me: failed program was:" >&5
23533: sed 's/^/| /' conftest.$ac_ext >&5
23534:
23535: ac_cv_type_sigset_t=yes
23536: fi
23537:
23538: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539: else
23540: $as_echo "$as_me: failed program was:" >&5
23541: sed 's/^/| /' conftest.$ac_ext >&5
23542:
23543:
23544: fi
23545:
23546: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547: fi
23548: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
23549: $as_echo "$ac_cv_type_sigset_t" >&6; }
23550: if test "x$ac_cv_type_sigset_t" = x""yes; then
23551:
23552: cat >>confdefs.h <<_ACEOF
23553: #define HAVE_SIGSET_T 1
23554: _ACEOF
23555:
23556: gl_cv_type_sigset_t=yes
23557: else
23558: gl_cv_type_sigset_t=no
23559: fi
23560:
23561: if test $gl_cv_type_sigset_t != yes; then
23562: HAVE_SIGSET_T=0
23563: fi
23564:
23565:
23566: fi
23567:
23568:
23569:
23570: GNULIB_SIGPROCMASK=1
23571:
23572:
23573: { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
23574: $as_echo_n "checking for ssize_t... " >&6; }
23575: if test "${gt_cv_ssize_t+set}" = set; then
23576: $as_echo_n "(cached) " >&6
23577: else
23578: cat >conftest.$ac_ext <<_ACEOF
23579: /* confdefs.h. */
23580: _ACEOF
23581: cat confdefs.h >>conftest.$ac_ext
23582: cat >>conftest.$ac_ext <<_ACEOF
23583: /* end confdefs.h. */
23584: #include <sys/types.h>
23585: int
23586: main ()
23587: {
23588: int x = sizeof (ssize_t *) + sizeof (ssize_t);
23589: return !x;
23590: ;
23591: return 0;
23592: }
23593: _ACEOF
23594: rm -f conftest.$ac_objext
23595: if { (ac_try="$ac_compile"
23596: case "(($ac_try" in
23597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598: *) ac_try_echo=$ac_try;;
23599: esac
23600: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23601: $as_echo "$ac_try_echo") >&5
23602: (eval "$ac_compile") 2>conftest.er1
23603: ac_status=$?
23604: grep -v '^ *+' conftest.er1 >conftest.err
23605: rm -f conftest.er1
23606: cat conftest.err >&5
23607: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608: (exit $ac_status); } && {
23609: test -z "$ac_c_werror_flag" ||
23610: test ! -s conftest.err
23611: } && test -s conftest.$ac_objext; then
23612: gt_cv_ssize_t=yes
23613: else
23614: $as_echo "$as_me: failed program was:" >&5
23615: sed 's/^/| /' conftest.$ac_ext >&5
23616:
23617: gt_cv_ssize_t=no
23618: fi
23619:
23620: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621: fi
23622: { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
23623: $as_echo "$gt_cv_ssize_t" >&6; }
23624: if test $gt_cv_ssize_t = no; then
23625:
23626: cat >>confdefs.h <<\_ACEOF
23627: #define ssize_t int
23628: _ACEOF
23629:
23630: fi
23631:
23632:
23633:
23634:
23635: # Define two additional variables used in the Makefile substitution.
23636:
23637: if test "$ac_cv_header_stdbool_h" = yes; then
23638: STDBOOL_H=''
23639: else
23640: STDBOOL_H='stdbool.h'
23641: fi
23642:
23643:
23644: if test "$ac_cv_type__Bool" = yes; then
23645: HAVE__BOOL=1
23646: else
23647: HAVE__BOOL=0
23648: fi
23649:
23650:
23651:
23652:
23653:
23654: if test $ac_cv_type_long_long_int = yes; then
23655: HAVE_LONG_LONG_INT=1
23656: else
23657: HAVE_LONG_LONG_INT=0
23658: fi
23659:
23660:
23661: if test $ac_cv_type_unsigned_long_long_int = yes; then
23662: HAVE_UNSIGNED_LONG_LONG_INT=1
23663: else
23664: HAVE_UNSIGNED_LONG_LONG_INT=0
23665: fi
23666:
23667:
23668: if test $ac_cv_header_inttypes_h = yes; then
23669: HAVE_INTTYPES_H=1
23670: else
23671: HAVE_INTTYPES_H=0
23672: fi
23673:
23674:
23675: if test $ac_cv_header_sys_types_h = yes; then
23676: HAVE_SYS_TYPES_H=1
23677: else
23678: HAVE_SYS_TYPES_H=0
23679: fi
23680:
23681:
23682:
23683:
23684:
23685:
23686:
23687:
23688:
23689:
23690:
23691:
23692:
23693: if test $gl_cv_have_include_next = yes; then
23694: gl_cv_next_stdint_h='<'stdint.h'>'
23695: else
23696: { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
23697: $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
23698: if test "${gl_cv_next_stdint_h+set}" = set; then
23699: $as_echo_n "(cached) " >&6
23700: else
23701:
23702: if test $ac_cv_header_stdint_h = yes; then
23703: cat >conftest.$ac_ext <<_ACEOF
23704: /* confdefs.h. */
23705: _ACEOF
23706: cat confdefs.h >>conftest.$ac_ext
23707: cat >>conftest.$ac_ext <<_ACEOF
23708: /* end confdefs.h. */
23709: #include <stdint.h>
23710:
23711: _ACEOF
23712: case "$host_os" in
23713: aix*) gl_absname_cpp="$ac_cpp -C" ;;
23714: *) gl_absname_cpp="$ac_cpp" ;;
23715: esac
23716: gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23717: sed -n '\#/stdint.h#{
23718: s#.*"\(.*/stdint.h\)".*#\1#
23719: s#^/[^/]#//&#
23720: p
23721: q
23722: }'`'"'
23723: else
23724: gl_cv_next_stdint_h='<'stdint.h'>'
23725: fi
23726:
23727: fi
23728: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
23729: $as_echo "$gl_cv_next_stdint_h" >&6; }
23730: fi
23731: NEXT_STDINT_H=$gl_cv_next_stdint_h
23732:
23733: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23734: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23735: gl_next_as_first_directive='<'stdint.h'>'
23736: else
23737: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23738: gl_next_as_first_directive=$gl_cv_next_stdint_h
23739: fi
23740: NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
23741:
23742:
23743:
23744: if test $ac_cv_header_stdint_h = yes; then
23745: HAVE_STDINT_H=1
23746: else
23747: HAVE_STDINT_H=0
23748: fi
23749:
23750:
23751: if test $ac_cv_header_stdint_h = yes; then
23752: { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
23753: $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
23754: if test "${gl_cv_header_working_stdint_h+set}" = set; then
23755: $as_echo_n "(cached) " >&6
23756: else
23757: gl_cv_header_working_stdint_h=no
23758: cat >conftest.$ac_ext <<_ACEOF
23759:
23760: /* confdefs.h. */
23761: _ACEOF
23762: cat confdefs.h >>conftest.$ac_ext
23763: cat >>conftest.$ac_ext <<_ACEOF
23764: /* end confdefs.h. */
23765:
23766: #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
23767: #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
23768: #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23769: #include <stdint.h>
23770: /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
23771: #if !(defined WCHAR_MIN && defined WCHAR_MAX)
23772: #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
23773: #endif
23774:
23775:
23776: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23777: included before <wchar.h>. */
23778: #include <stddef.h>
23779: #include <signal.h>
23780: #if HAVE_WCHAR_H
23781: # include <stdio.h>
23782: # include <time.h>
23783: # include <wchar.h>
23784: #endif
23785:
23786:
23787: #ifdef INT8_MAX
23788: int8_t a1 = INT8_MAX;
23789: int8_t a1min = INT8_MIN;
23790: #endif
23791: #ifdef INT16_MAX
23792: int16_t a2 = INT16_MAX;
23793: int16_t a2min = INT16_MIN;
23794: #endif
23795: #ifdef INT32_MAX
23796: int32_t a3 = INT32_MAX;
23797: int32_t a3min = INT32_MIN;
23798: #endif
23799: #ifdef INT64_MAX
23800: int64_t a4 = INT64_MAX;
23801: int64_t a4min = INT64_MIN;
23802: #endif
23803: #ifdef UINT8_MAX
23804: uint8_t b1 = UINT8_MAX;
23805: #else
23806: typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
23807: #endif
23808: #ifdef UINT16_MAX
23809: uint16_t b2 = UINT16_MAX;
23810: #endif
23811: #ifdef UINT32_MAX
23812: uint32_t b3 = UINT32_MAX;
23813: #endif
23814: #ifdef UINT64_MAX
23815: uint64_t b4 = UINT64_MAX;
23816: #endif
23817: int_least8_t c1 = INT8_C (0x7f);
23818: int_least8_t c1max = INT_LEAST8_MAX;
23819: int_least8_t c1min = INT_LEAST8_MIN;
23820: int_least16_t c2 = INT16_C (0x7fff);
23821: int_least16_t c2max = INT_LEAST16_MAX;
23822: int_least16_t c2min = INT_LEAST16_MIN;
23823: int_least32_t c3 = INT32_C (0x7fffffff);
23824: int_least32_t c3max = INT_LEAST32_MAX;
23825: int_least32_t c3min = INT_LEAST32_MIN;
23826: int_least64_t c4 = INT64_C (0x7fffffffffffffff);
23827: int_least64_t c4max = INT_LEAST64_MAX;
23828: int_least64_t c4min = INT_LEAST64_MIN;
23829: uint_least8_t d1 = UINT8_C (0xff);
23830: uint_least8_t d1max = UINT_LEAST8_MAX;
23831: uint_least16_t d2 = UINT16_C (0xffff);
23832: uint_least16_t d2max = UINT_LEAST16_MAX;
23833: uint_least32_t d3 = UINT32_C (0xffffffff);
23834: uint_least32_t d3max = UINT_LEAST32_MAX;
23835: uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
23836: uint_least64_t d4max = UINT_LEAST64_MAX;
23837: int_fast8_t e1 = INT_FAST8_MAX;
23838: int_fast8_t e1min = INT_FAST8_MIN;
23839: int_fast16_t e2 = INT_FAST16_MAX;
23840: int_fast16_t e2min = INT_FAST16_MIN;
23841: int_fast32_t e3 = INT_FAST32_MAX;
23842: int_fast32_t e3min = INT_FAST32_MIN;
23843: int_fast64_t e4 = INT_FAST64_MAX;
23844: int_fast64_t e4min = INT_FAST64_MIN;
23845: uint_fast8_t f1 = UINT_FAST8_MAX;
23846: uint_fast16_t f2 = UINT_FAST16_MAX;
23847: uint_fast32_t f3 = UINT_FAST32_MAX;
23848: uint_fast64_t f4 = UINT_FAST64_MAX;
23849: #ifdef INTPTR_MAX
23850: intptr_t g = INTPTR_MAX;
23851: intptr_t gmin = INTPTR_MIN;
23852: #endif
23853: #ifdef UINTPTR_MAX
23854: uintptr_t h = UINTPTR_MAX;
23855: #endif
23856: intmax_t i = INTMAX_MAX;
23857: uintmax_t j = UINTMAX_MAX;
23858:
23859: #include <limits.h> /* for CHAR_BIT */
23860: #define TYPE_MINIMUM(t) \
23861: ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
23862: #define TYPE_MAXIMUM(t) \
23863: ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
23864: struct s {
23865: int check_PTRDIFF:
23866: PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
23867: && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
23868: ? 1 : -1;
23869: /* Detect bug in FreeBSD 6.0 / ia64. */
23870: int check_SIG_ATOMIC:
23871: SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
23872: && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
23873: ? 1 : -1;
23874: int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
23875: int check_WCHAR:
23876: WCHAR_MIN == TYPE_MINIMUM (wchar_t)
23877: && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
23878: ? 1 : -1;
23879: /* Detect bug in mingw. */
23880: int check_WINT:
23881: WINT_MIN == TYPE_MINIMUM (wint_t)
23882: && WINT_MAX == TYPE_MAXIMUM (wint_t)
23883: ? 1 : -1;
23884:
23885: /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
23886: int check_UINT8_C:
23887: (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
23888: int check_UINT16_C:
23889: (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
23890:
23891: /* Detect bugs in OpenBSD 3.9 stdint.h. */
23892: #ifdef UINT8_MAX
23893: int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
23894: #endif
23895: #ifdef UINT16_MAX
23896: int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
23897: #endif
23898: #ifdef UINT32_MAX
23899: int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
23900: #endif
23901: #ifdef UINT64_MAX
23902: int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
23903: #endif
23904: int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
23905: int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
23906: int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
23907: int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
23908: int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
23909: int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
23910: int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
23911: int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
23912: int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
23913: int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
23914: int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
23915: };
23916:
23917: int
23918: main ()
23919: {
23920:
23921: ;
23922: return 0;
23923: }
23924: _ACEOF
23925: rm -f conftest.$ac_objext
23926: if { (ac_try="$ac_compile"
23927: case "(($ac_try" in
23928: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929: *) ac_try_echo=$ac_try;;
23930: esac
23931: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23932: $as_echo "$ac_try_echo") >&5
23933: (eval "$ac_compile") 2>conftest.er1
23934: ac_status=$?
23935: grep -v '^ *+' conftest.er1 >conftest.err
23936: rm -f conftest.er1
23937: cat conftest.err >&5
23938: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939: (exit $ac_status); } && {
23940: test -z "$ac_c_werror_flag" ||
23941: test ! -s conftest.err
23942: } && test -s conftest.$ac_objext; then
23943: if test "$cross_compiling" = yes; then
23944: gl_cv_header_working_stdint_h=yes
23945:
23946: else
23947: cat >conftest.$ac_ext <<_ACEOF
23948:
23949: /* confdefs.h. */
23950: _ACEOF
23951: cat confdefs.h >>conftest.$ac_ext
23952: cat >>conftest.$ac_ext <<_ACEOF
23953: /* end confdefs.h. */
23954:
23955: #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
23956: #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
23957: #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23958: #include <stdint.h>
23959:
23960:
23961: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23962: included before <wchar.h>. */
23963: #include <stddef.h>
23964: #include <signal.h>
23965: #if HAVE_WCHAR_H
23966: # include <stdio.h>
23967: # include <time.h>
23968: # include <wchar.h>
23969: #endif
23970:
23971:
23972: #include <stdio.h>
23973: #include <string.h>
23974: #define MVAL(macro) MVAL1(macro)
23975: #define MVAL1(expression) #expression
23976: static const char *macro_values[] =
23977: {
23978: #ifdef INT8_MAX
23979: MVAL (INT8_MAX),
23980: #endif
23981: #ifdef INT16_MAX
23982: MVAL (INT16_MAX),
23983: #endif
23984: #ifdef INT32_MAX
23985: MVAL (INT32_MAX),
23986: #endif
23987: #ifdef INT64_MAX
23988: MVAL (INT64_MAX),
23989: #endif
23990: #ifdef UINT8_MAX
23991: MVAL (UINT8_MAX),
23992: #endif
23993: #ifdef UINT16_MAX
23994: MVAL (UINT16_MAX),
23995: #endif
23996: #ifdef UINT32_MAX
23997: MVAL (UINT32_MAX),
23998: #endif
23999: #ifdef UINT64_MAX
24000: MVAL (UINT64_MAX),
24001: #endif
24002: NULL
24003: };
24004:
24005: int
24006: main ()
24007: {
24008:
24009: const char **mv;
24010: for (mv = macro_values; *mv != NULL; mv++)
24011: {
24012: const char *value = *mv;
24013: /* Test whether it looks like a cast expression. */
24014: if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
24015: || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
24016: || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
24017: || strncmp (value, "((int)"/*)*/, 6) == 0
24018: || strncmp (value, "((signed short)"/*)*/, 15) == 0
24019: || strncmp (value, "((signed char)"/*)*/, 14) == 0)
24020: return 1;
24021: }
24022: return 0;
24023:
24024: ;
24025: return 0;
24026: }
24027: _ACEOF
24028: rm -f conftest$ac_exeext
24029: if { (ac_try="$ac_link"
24030: case "(($ac_try" in
24031: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032: *) ac_try_echo=$ac_try;;
24033: esac
24034: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24035: $as_echo "$ac_try_echo") >&5
24036: (eval "$ac_link") 2>&5
24037: ac_status=$?
24038: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24040: { (case "(($ac_try" in
24041: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042: *) ac_try_echo=$ac_try;;
24043: esac
24044: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24045: $as_echo "$ac_try_echo") >&5
24046: (eval "$ac_try") 2>&5
24047: ac_status=$?
24048: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049: (exit $ac_status); }; }; then
24050: gl_cv_header_working_stdint_h=yes
24051: else
24052: $as_echo "$as_me: program exited with status $ac_status" >&5
24053: $as_echo "$as_me: failed program was:" >&5
24054: sed 's/^/| /' conftest.$ac_ext >&5
24055:
24056: fi
24057: rm -rf conftest.dSYM
24058: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24059: fi
24060:
24061:
24062:
24063: else
24064: $as_echo "$as_me: failed program was:" >&5
24065: sed 's/^/| /' conftest.$ac_ext >&5
24066:
24067:
24068: fi
24069:
24070: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071:
24072: fi
24073: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
24074: $as_echo "$gl_cv_header_working_stdint_h" >&6; }
24075: fi
24076: if test "$gl_cv_header_working_stdint_h" = yes; then
24077: STDINT_H=
24078: else
24079:
24080:
24081: for ac_header in sys/inttypes.h sys/bitypes.h
24082: do
24083: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24084: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24085: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24086: $as_echo_n "checking for $ac_header... " >&6; }
24087: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24088: $as_echo_n "(cached) " >&6
24089: fi
24090: ac_res=`eval 'as_val=${'$as_ac_Header'}
24091: $as_echo "$as_val"'`
24092: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24093: $as_echo "$ac_res" >&6; }
24094: else
24095: # Is the header compilable?
24096: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24097: $as_echo_n "checking $ac_header usability... " >&6; }
24098: cat >conftest.$ac_ext <<_ACEOF
24099: /* confdefs.h. */
24100: _ACEOF
24101: cat confdefs.h >>conftest.$ac_ext
24102: cat >>conftest.$ac_ext <<_ACEOF
24103: /* end confdefs.h. */
24104: $ac_includes_default
24105: #include <$ac_header>
24106: _ACEOF
24107: rm -f conftest.$ac_objext
24108: if { (ac_try="$ac_compile"
24109: case "(($ac_try" in
24110: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111: *) ac_try_echo=$ac_try;;
24112: esac
24113: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24114: $as_echo "$ac_try_echo") >&5
24115: (eval "$ac_compile") 2>conftest.er1
24116: ac_status=$?
24117: grep -v '^ *+' conftest.er1 >conftest.err
24118: rm -f conftest.er1
24119: cat conftest.err >&5
24120: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121: (exit $ac_status); } && {
24122: test -z "$ac_c_werror_flag" ||
24123: test ! -s conftest.err
24124: } && test -s conftest.$ac_objext; then
24125: ac_header_compiler=yes
24126: else
24127: $as_echo "$as_me: failed program was:" >&5
24128: sed 's/^/| /' conftest.$ac_ext >&5
24129:
24130: ac_header_compiler=no
24131: fi
24132:
24133: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24135: $as_echo "$ac_header_compiler" >&6; }
24136:
24137: # Is the header present?
24138: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24139: $as_echo_n "checking $ac_header presence... " >&6; }
24140: cat >conftest.$ac_ext <<_ACEOF
24141: /* confdefs.h. */
24142: _ACEOF
24143: cat confdefs.h >>conftest.$ac_ext
24144: cat >>conftest.$ac_ext <<_ACEOF
24145: /* end confdefs.h. */
24146: #include <$ac_header>
24147: _ACEOF
24148: if { (ac_try="$ac_cpp conftest.$ac_ext"
24149: case "(($ac_try" in
24150: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151: *) ac_try_echo=$ac_try;;
24152: esac
24153: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154: $as_echo "$ac_try_echo") >&5
24155: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24156: ac_status=$?
24157: grep -v '^ *+' conftest.er1 >conftest.err
24158: rm -f conftest.er1
24159: cat conftest.err >&5
24160: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161: (exit $ac_status); } >/dev/null && {
24162: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24163: test ! -s conftest.err
24164: }; then
24165: ac_header_preproc=yes
24166: else
24167: $as_echo "$as_me: failed program was:" >&5
24168: sed 's/^/| /' conftest.$ac_ext >&5
24169:
24170: ac_header_preproc=no
24171: fi
24172:
24173: rm -f conftest.err conftest.$ac_ext
24174: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24175: $as_echo "$ac_header_preproc" >&6; }
24176:
24177: # So? What about this header?
24178: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24179: yes:no: )
24180: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24181: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24182: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24183: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24184: ac_header_preproc=yes
24185: ;;
24186: no:yes:* )
24187: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24188: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24189: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24190: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24191: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24192: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24193: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24194: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24195: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24196: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24197: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24198: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24199:
24200: ;;
24201: esac
24202: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24203: $as_echo_n "checking for $ac_header... " >&6; }
24204: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24205: $as_echo_n "(cached) " >&6
24206: else
24207: eval "$as_ac_Header=\$ac_header_preproc"
24208: fi
24209: ac_res=`eval 'as_val=${'$as_ac_Header'}
24210: $as_echo "$as_val"'`
24211: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24212: $as_echo "$ac_res" >&6; }
24213:
24214: fi
24215: as_val=`eval 'as_val=${'$as_ac_Header'}
24216: $as_echo "$as_val"'`
24217: if test "x$as_val" = x""yes; then
24218: cat >>confdefs.h <<_ACEOF
24219: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24220: _ACEOF
24221:
24222: fi
24223:
24224: done
24225:
24226: if test $ac_cv_header_sys_inttypes_h = yes; then
24227: HAVE_SYS_INTTYPES_H=1
24228: else
24229: HAVE_SYS_INTTYPES_H=0
24230: fi
24231:
24232: if test $ac_cv_header_sys_bitypes_h = yes; then
24233: HAVE_SYS_BITYPES_H=1
24234: else
24235: HAVE_SYS_BITYPES_H=0
24236: fi
24237:
24238:
24239:
24240:
24241:
24242:
24243:
24244:
24245:
24246:
24247:
24248: if test $APPLE_UNIVERSAL_BUILD = 0; then
24249:
24250:
24251:
24252:
24253: for gltype in ptrdiff_t size_t ; do
24254: { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
24255: $as_echo_n "checking for bit size of $gltype... " >&6; }
24256: if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
24257: $as_echo_n "(cached) " >&6
24258: else
24259: if test "$cross_compiling" = yes; then
24260: # Depending upon the size, compute the lo and hi bounds.
24261: cat >conftest.$ac_ext <<_ACEOF
24262: /* confdefs.h. */
24263: _ACEOF
24264: cat confdefs.h >>conftest.$ac_ext
24265: cat >>conftest.$ac_ext <<_ACEOF
24266: /* end confdefs.h. */
24267:
24268: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24269: included before <wchar.h>. */
24270: #include <stddef.h>
24271: #include <signal.h>
24272: #if HAVE_WCHAR_H
24273: # include <stdio.h>
24274: # include <time.h>
24275: # include <wchar.h>
24276: #endif
24277:
24278: #include <limits.h>
24279: int
24280: main ()
24281: {
24282: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
24283: test_array [0] = 0
24284:
24285: ;
24286: return 0;
24287: }
24288: _ACEOF
24289: rm -f conftest.$ac_objext
24290: if { (ac_try="$ac_compile"
24291: case "(($ac_try" in
24292: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293: *) ac_try_echo=$ac_try;;
24294: esac
24295: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24296: $as_echo "$ac_try_echo") >&5
24297: (eval "$ac_compile") 2>conftest.er1
24298: ac_status=$?
24299: grep -v '^ *+' conftest.er1 >conftest.err
24300: rm -f conftest.er1
24301: cat conftest.err >&5
24302: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303: (exit $ac_status); } && {
24304: test -z "$ac_c_werror_flag" ||
24305: test ! -s conftest.err
24306: } && test -s conftest.$ac_objext; then
24307: ac_lo=0 ac_mid=0
24308: while :; do
24309: cat >conftest.$ac_ext <<_ACEOF
24310: /* confdefs.h. */
24311: _ACEOF
24312: cat confdefs.h >>conftest.$ac_ext
24313: cat >>conftest.$ac_ext <<_ACEOF
24314: /* end confdefs.h. */
24315:
24316: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24317: included before <wchar.h>. */
24318: #include <stddef.h>
24319: #include <signal.h>
24320: #if HAVE_WCHAR_H
24321: # include <stdio.h>
24322: # include <time.h>
24323: # include <wchar.h>
24324: #endif
24325:
24326: #include <limits.h>
24327: int
24328: main ()
24329: {
24330: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
24331: test_array [0] = 0
24332:
24333: ;
24334: return 0;
24335: }
24336: _ACEOF
24337: rm -f conftest.$ac_objext
24338: if { (ac_try="$ac_compile"
24339: case "(($ac_try" in
24340: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341: *) ac_try_echo=$ac_try;;
24342: esac
24343: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344: $as_echo "$ac_try_echo") >&5
24345: (eval "$ac_compile") 2>conftest.er1
24346: ac_status=$?
24347: grep -v '^ *+' conftest.er1 >conftest.err
24348: rm -f conftest.er1
24349: cat conftest.err >&5
24350: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351: (exit $ac_status); } && {
24352: test -z "$ac_c_werror_flag" ||
24353: test ! -s conftest.err
24354: } && test -s conftest.$ac_objext; then
24355: ac_hi=$ac_mid; break
24356: else
24357: $as_echo "$as_me: failed program was:" >&5
24358: sed 's/^/| /' conftest.$ac_ext >&5
24359:
24360: ac_lo=`expr $ac_mid + 1`
24361: if test $ac_lo -le $ac_mid; then
24362: ac_lo= ac_hi=
24363: break
24364: fi
24365: ac_mid=`expr 2 '*' $ac_mid + 1`
24366: fi
24367:
24368: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24369: done
24370: else
24371: $as_echo "$as_me: failed program was:" >&5
24372: sed 's/^/| /' conftest.$ac_ext >&5
24373:
24374: cat >conftest.$ac_ext <<_ACEOF
24375: /* confdefs.h. */
24376: _ACEOF
24377: cat confdefs.h >>conftest.$ac_ext
24378: cat >>conftest.$ac_ext <<_ACEOF
24379: /* end confdefs.h. */
24380:
24381: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24382: included before <wchar.h>. */
24383: #include <stddef.h>
24384: #include <signal.h>
24385: #if HAVE_WCHAR_H
24386: # include <stdio.h>
24387: # include <time.h>
24388: # include <wchar.h>
24389: #endif
24390:
24391: #include <limits.h>
24392: int
24393: main ()
24394: {
24395: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
24396: test_array [0] = 0
24397:
24398: ;
24399: return 0;
24400: }
24401: _ACEOF
24402: rm -f conftest.$ac_objext
24403: if { (ac_try="$ac_compile"
24404: case "(($ac_try" in
24405: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406: *) ac_try_echo=$ac_try;;
24407: esac
24408: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24409: $as_echo "$ac_try_echo") >&5
24410: (eval "$ac_compile") 2>conftest.er1
24411: ac_status=$?
24412: grep -v '^ *+' conftest.er1 >conftest.err
24413: rm -f conftest.er1
24414: cat conftest.err >&5
24415: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416: (exit $ac_status); } && {
24417: test -z "$ac_c_werror_flag" ||
24418: test ! -s conftest.err
24419: } && test -s conftest.$ac_objext; then
24420: ac_hi=-1 ac_mid=-1
24421: while :; do
24422: cat >conftest.$ac_ext <<_ACEOF
24423: /* confdefs.h. */
24424: _ACEOF
24425: cat confdefs.h >>conftest.$ac_ext
24426: cat >>conftest.$ac_ext <<_ACEOF
24427: /* end confdefs.h. */
24428:
24429: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24430: included before <wchar.h>. */
24431: #include <stddef.h>
24432: #include <signal.h>
24433: #if HAVE_WCHAR_H
24434: # include <stdio.h>
24435: # include <time.h>
24436: # include <wchar.h>
24437: #endif
24438:
24439: #include <limits.h>
24440: int
24441: main ()
24442: {
24443: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
24444: test_array [0] = 0
24445:
24446: ;
24447: return 0;
24448: }
24449: _ACEOF
24450: rm -f conftest.$ac_objext
24451: if { (ac_try="$ac_compile"
24452: case "(($ac_try" in
24453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454: *) ac_try_echo=$ac_try;;
24455: esac
24456: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457: $as_echo "$ac_try_echo") >&5
24458: (eval "$ac_compile") 2>conftest.er1
24459: ac_status=$?
24460: grep -v '^ *+' conftest.er1 >conftest.err
24461: rm -f conftest.er1
24462: cat conftest.err >&5
24463: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464: (exit $ac_status); } && {
24465: test -z "$ac_c_werror_flag" ||
24466: test ! -s conftest.err
24467: } && test -s conftest.$ac_objext; then
24468: ac_lo=$ac_mid; break
24469: else
24470: $as_echo "$as_me: failed program was:" >&5
24471: sed 's/^/| /' conftest.$ac_ext >&5
24472:
24473: ac_hi=`expr '(' $ac_mid ')' - 1`
24474: if test $ac_mid -le $ac_hi; then
24475: ac_lo= ac_hi=
24476: break
24477: fi
24478: ac_mid=`expr 2 '*' $ac_mid`
24479: fi
24480:
24481: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482: done
24483: else
24484: $as_echo "$as_me: failed program was:" >&5
24485: sed 's/^/| /' conftest.$ac_ext >&5
24486:
24487: ac_lo= ac_hi=
24488: fi
24489:
24490: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491: fi
24492:
24493: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494: # Binary search between lo and hi bounds.
24495: while test "x$ac_lo" != "x$ac_hi"; do
24496: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24497: cat >conftest.$ac_ext <<_ACEOF
24498: /* confdefs.h. */
24499: _ACEOF
24500: cat confdefs.h >>conftest.$ac_ext
24501: cat >>conftest.$ac_ext <<_ACEOF
24502: /* end confdefs.h. */
24503:
24504: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24505: included before <wchar.h>. */
24506: #include <stddef.h>
24507: #include <signal.h>
24508: #if HAVE_WCHAR_H
24509: # include <stdio.h>
24510: # include <time.h>
24511: # include <wchar.h>
24512: #endif
24513:
24514: #include <limits.h>
24515: int
24516: main ()
24517: {
24518: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
24519: test_array [0] = 0
24520:
24521: ;
24522: return 0;
24523: }
24524: _ACEOF
24525: rm -f conftest.$ac_objext
24526: if { (ac_try="$ac_compile"
24527: case "(($ac_try" in
24528: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529: *) ac_try_echo=$ac_try;;
24530: esac
24531: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24532: $as_echo "$ac_try_echo") >&5
24533: (eval "$ac_compile") 2>conftest.er1
24534: ac_status=$?
24535: grep -v '^ *+' conftest.er1 >conftest.err
24536: rm -f conftest.er1
24537: cat conftest.err >&5
24538: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539: (exit $ac_status); } && {
24540: test -z "$ac_c_werror_flag" ||
24541: test ! -s conftest.err
24542: } && test -s conftest.$ac_objext; then
24543: ac_hi=$ac_mid
24544: else
24545: $as_echo "$as_me: failed program was:" >&5
24546: sed 's/^/| /' conftest.$ac_ext >&5
24547:
24548: ac_lo=`expr '(' $ac_mid ')' + 1`
24549: fi
24550:
24551: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24552: done
24553: case $ac_lo in
24554: ?*) result=$ac_lo;;
24555: '') result=unknown ;;
24556: esac
24557: else
24558: cat >conftest.$ac_ext <<_ACEOF
24559: /* confdefs.h. */
24560: _ACEOF
24561: cat confdefs.h >>conftest.$ac_ext
24562: cat >>conftest.$ac_ext <<_ACEOF
24563: /* end confdefs.h. */
24564:
24565: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24566: included before <wchar.h>. */
24567: #include <stddef.h>
24568: #include <signal.h>
24569: #if HAVE_WCHAR_H
24570: # include <stdio.h>
24571: # include <time.h>
24572: # include <wchar.h>
24573: #endif
24574:
24575: #include <limits.h>
24576: static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
24577: static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
24578: #include <stdio.h>
24579: #include <stdlib.h>
24580: int
24581: main ()
24582: {
24583:
24584: FILE *f = fopen ("conftest.val", "w");
24585: if (! f)
24586: return 1;
24587: if ((sizeof ($gltype) * CHAR_BIT) < 0)
24588: {
24589: long int i = longval ();
24590: if (i != (sizeof ($gltype) * CHAR_BIT))
24591: return 1;
24592: fprintf (f, "%ld", i);
24593: }
24594: else
24595: {
24596: unsigned long int i = ulongval ();
24597: if (i != (sizeof ($gltype) * CHAR_BIT))
24598: return 1;
24599: fprintf (f, "%lu", i);
24600: }
24601: /* Do not output a trailing newline, as this causes \r\n confusion
24602: on some platforms. */
24603: return ferror (f) || fclose (f) != 0;
24604:
24605: ;
24606: return 0;
24607: }
24608: _ACEOF
24609: rm -f conftest$ac_exeext
24610: if { (ac_try="$ac_link"
24611: case "(($ac_try" in
24612: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613: *) ac_try_echo=$ac_try;;
24614: esac
24615: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24616: $as_echo "$ac_try_echo") >&5
24617: (eval "$ac_link") 2>&5
24618: ac_status=$?
24619: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24621: { (case "(($ac_try" in
24622: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623: *) ac_try_echo=$ac_try;;
24624: esac
24625: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24626: $as_echo "$ac_try_echo") >&5
24627: (eval "$ac_try") 2>&5
24628: ac_status=$?
24629: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630: (exit $ac_status); }; }; then
24631: result=`cat conftest.val`
24632: else
24633: $as_echo "$as_me: program exited with status $ac_status" >&5
24634: $as_echo "$as_me: failed program was:" >&5
24635: sed 's/^/| /' conftest.$ac_ext >&5
24636:
24637: ( exit $ac_status )
24638: result=unknown
24639: fi
24640: rm -rf conftest.dSYM
24641: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24642: fi
24643: rm -f conftest.val
24644: eval gl_cv_bitsizeof_${gltype}=\$result
24645:
24646: fi
24647: ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
24648: $as_echo "$as_val"'`
24649: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24650: $as_echo "$ac_res" >&6; }
24651: eval result=\$gl_cv_bitsizeof_${gltype}
24652: if test $result = unknown; then
24653: result=0
24654: fi
24655: GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24656: cat >>confdefs.h <<_ACEOF
24657: #define BITSIZEOF_${GLTYPE} $result
24658: _ACEOF
24659:
24660: eval BITSIZEOF_${GLTYPE}=\$result
24661: done
24662:
24663:
24664: fi
24665:
24666:
24667:
24668:
24669:
24670: for gltype in sig_atomic_t wchar_t wint_t ; do
24671: { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
24672: $as_echo_n "checking for bit size of $gltype... " >&6; }
24673: if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
24674: $as_echo_n "(cached) " >&6
24675: else
24676: if test "$cross_compiling" = yes; then
24677: # Depending upon the size, compute the lo and hi bounds.
24678: cat >conftest.$ac_ext <<_ACEOF
24679: /* confdefs.h. */
24680: _ACEOF
24681: cat confdefs.h >>conftest.$ac_ext
24682: cat >>conftest.$ac_ext <<_ACEOF
24683: /* end confdefs.h. */
24684:
24685: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24686: included before <wchar.h>. */
24687: #include <stddef.h>
24688: #include <signal.h>
24689: #if HAVE_WCHAR_H
24690: # include <stdio.h>
24691: # include <time.h>
24692: # include <wchar.h>
24693: #endif
24694:
24695: #include <limits.h>
24696: int
24697: main ()
24698: {
24699: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
24700: test_array [0] = 0
24701:
24702: ;
24703: return 0;
24704: }
24705: _ACEOF
24706: rm -f conftest.$ac_objext
24707: if { (ac_try="$ac_compile"
24708: case "(($ac_try" in
24709: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710: *) ac_try_echo=$ac_try;;
24711: esac
24712: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24713: $as_echo "$ac_try_echo") >&5
24714: (eval "$ac_compile") 2>conftest.er1
24715: ac_status=$?
24716: grep -v '^ *+' conftest.er1 >conftest.err
24717: rm -f conftest.er1
24718: cat conftest.err >&5
24719: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720: (exit $ac_status); } && {
24721: test -z "$ac_c_werror_flag" ||
24722: test ! -s conftest.err
24723: } && test -s conftest.$ac_objext; then
24724: ac_lo=0 ac_mid=0
24725: while :; do
24726: cat >conftest.$ac_ext <<_ACEOF
24727: /* confdefs.h. */
24728: _ACEOF
24729: cat confdefs.h >>conftest.$ac_ext
24730: cat >>conftest.$ac_ext <<_ACEOF
24731: /* end confdefs.h. */
24732:
24733: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24734: included before <wchar.h>. */
24735: #include <stddef.h>
24736: #include <signal.h>
24737: #if HAVE_WCHAR_H
24738: # include <stdio.h>
24739: # include <time.h>
24740: # include <wchar.h>
24741: #endif
24742:
24743: #include <limits.h>
24744: int
24745: main ()
24746: {
24747: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
24748: test_array [0] = 0
24749:
24750: ;
24751: return 0;
24752: }
24753: _ACEOF
24754: rm -f conftest.$ac_objext
24755: if { (ac_try="$ac_compile"
24756: case "(($ac_try" in
24757: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758: *) ac_try_echo=$ac_try;;
24759: esac
24760: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24761: $as_echo "$ac_try_echo") >&5
24762: (eval "$ac_compile") 2>conftest.er1
24763: ac_status=$?
24764: grep -v '^ *+' conftest.er1 >conftest.err
24765: rm -f conftest.er1
24766: cat conftest.err >&5
24767: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768: (exit $ac_status); } && {
24769: test -z "$ac_c_werror_flag" ||
24770: test ! -s conftest.err
24771: } && test -s conftest.$ac_objext; then
24772: ac_hi=$ac_mid; break
24773: else
24774: $as_echo "$as_me: failed program was:" >&5
24775: sed 's/^/| /' conftest.$ac_ext >&5
24776:
24777: ac_lo=`expr $ac_mid + 1`
24778: if test $ac_lo -le $ac_mid; then
24779: ac_lo= ac_hi=
24780: break
24781: fi
24782: ac_mid=`expr 2 '*' $ac_mid + 1`
24783: fi
24784:
24785: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24786: done
24787: else
24788: $as_echo "$as_me: failed program was:" >&5
24789: sed 's/^/| /' conftest.$ac_ext >&5
24790:
24791: cat >conftest.$ac_ext <<_ACEOF
24792: /* confdefs.h. */
24793: _ACEOF
24794: cat confdefs.h >>conftest.$ac_ext
24795: cat >>conftest.$ac_ext <<_ACEOF
24796: /* end confdefs.h. */
24797:
24798: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24799: included before <wchar.h>. */
24800: #include <stddef.h>
24801: #include <signal.h>
24802: #if HAVE_WCHAR_H
24803: # include <stdio.h>
24804: # include <time.h>
24805: # include <wchar.h>
24806: #endif
24807:
24808: #include <limits.h>
24809: int
24810: main ()
24811: {
24812: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
24813: test_array [0] = 0
24814:
24815: ;
24816: return 0;
24817: }
24818: _ACEOF
24819: rm -f conftest.$ac_objext
24820: if { (ac_try="$ac_compile"
24821: case "(($ac_try" in
24822: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24823: *) ac_try_echo=$ac_try;;
24824: esac
24825: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24826: $as_echo "$ac_try_echo") >&5
24827: (eval "$ac_compile") 2>conftest.er1
24828: ac_status=$?
24829: grep -v '^ *+' conftest.er1 >conftest.err
24830: rm -f conftest.er1
24831: cat conftest.err >&5
24832: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833: (exit $ac_status); } && {
24834: test -z "$ac_c_werror_flag" ||
24835: test ! -s conftest.err
24836: } && test -s conftest.$ac_objext; then
24837: ac_hi=-1 ac_mid=-1
24838: while :; do
24839: cat >conftest.$ac_ext <<_ACEOF
24840: /* confdefs.h. */
24841: _ACEOF
24842: cat confdefs.h >>conftest.$ac_ext
24843: cat >>conftest.$ac_ext <<_ACEOF
24844: /* end confdefs.h. */
24845:
24846: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24847: included before <wchar.h>. */
24848: #include <stddef.h>
24849: #include <signal.h>
24850: #if HAVE_WCHAR_H
24851: # include <stdio.h>
24852: # include <time.h>
24853: # include <wchar.h>
24854: #endif
24855:
24856: #include <limits.h>
24857: int
24858: main ()
24859: {
24860: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
24861: test_array [0] = 0
24862:
24863: ;
24864: return 0;
24865: }
24866: _ACEOF
24867: rm -f conftest.$ac_objext
24868: if { (ac_try="$ac_compile"
24869: case "(($ac_try" in
24870: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871: *) ac_try_echo=$ac_try;;
24872: esac
24873: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24874: $as_echo "$ac_try_echo") >&5
24875: (eval "$ac_compile") 2>conftest.er1
24876: ac_status=$?
24877: grep -v '^ *+' conftest.er1 >conftest.err
24878: rm -f conftest.er1
24879: cat conftest.err >&5
24880: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881: (exit $ac_status); } && {
24882: test -z "$ac_c_werror_flag" ||
24883: test ! -s conftest.err
24884: } && test -s conftest.$ac_objext; then
24885: ac_lo=$ac_mid; break
24886: else
24887: $as_echo "$as_me: failed program was:" >&5
24888: sed 's/^/| /' conftest.$ac_ext >&5
24889:
24890: ac_hi=`expr '(' $ac_mid ')' - 1`
24891: if test $ac_mid -le $ac_hi; then
24892: ac_lo= ac_hi=
24893: break
24894: fi
24895: ac_mid=`expr 2 '*' $ac_mid`
24896: fi
24897:
24898: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899: done
24900: else
24901: $as_echo "$as_me: failed program was:" >&5
24902: sed 's/^/| /' conftest.$ac_ext >&5
24903:
24904: ac_lo= ac_hi=
24905: fi
24906:
24907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24908: fi
24909:
24910: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24911: # Binary search between lo and hi bounds.
24912: while test "x$ac_lo" != "x$ac_hi"; do
24913: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24914: cat >conftest.$ac_ext <<_ACEOF
24915: /* confdefs.h. */
24916: _ACEOF
24917: cat confdefs.h >>conftest.$ac_ext
24918: cat >>conftest.$ac_ext <<_ACEOF
24919: /* end confdefs.h. */
24920:
24921: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24922: included before <wchar.h>. */
24923: #include <stddef.h>
24924: #include <signal.h>
24925: #if HAVE_WCHAR_H
24926: # include <stdio.h>
24927: # include <time.h>
24928: # include <wchar.h>
24929: #endif
24930:
24931: #include <limits.h>
24932: int
24933: main ()
24934: {
24935: static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
24936: test_array [0] = 0
24937:
24938: ;
24939: return 0;
24940: }
24941: _ACEOF
24942: rm -f conftest.$ac_objext
24943: if { (ac_try="$ac_compile"
24944: case "(($ac_try" in
24945: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946: *) ac_try_echo=$ac_try;;
24947: esac
24948: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24949: $as_echo "$ac_try_echo") >&5
24950: (eval "$ac_compile") 2>conftest.er1
24951: ac_status=$?
24952: grep -v '^ *+' conftest.er1 >conftest.err
24953: rm -f conftest.er1
24954: cat conftest.err >&5
24955: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956: (exit $ac_status); } && {
24957: test -z "$ac_c_werror_flag" ||
24958: test ! -s conftest.err
24959: } && test -s conftest.$ac_objext; then
24960: ac_hi=$ac_mid
24961: else
24962: $as_echo "$as_me: failed program was:" >&5
24963: sed 's/^/| /' conftest.$ac_ext >&5
24964:
24965: ac_lo=`expr '(' $ac_mid ')' + 1`
24966: fi
24967:
24968: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24969: done
24970: case $ac_lo in
24971: ?*) result=$ac_lo;;
24972: '') result=unknown ;;
24973: esac
24974: else
24975: cat >conftest.$ac_ext <<_ACEOF
24976: /* confdefs.h. */
24977: _ACEOF
24978: cat confdefs.h >>conftest.$ac_ext
24979: cat >>conftest.$ac_ext <<_ACEOF
24980: /* end confdefs.h. */
24981:
24982: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24983: included before <wchar.h>. */
24984: #include <stddef.h>
24985: #include <signal.h>
24986: #if HAVE_WCHAR_H
24987: # include <stdio.h>
24988: # include <time.h>
24989: # include <wchar.h>
24990: #endif
24991:
24992: #include <limits.h>
24993: static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
24994: static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
24995: #include <stdio.h>
24996: #include <stdlib.h>
24997: int
24998: main ()
24999: {
25000:
25001: FILE *f = fopen ("conftest.val", "w");
25002: if (! f)
25003: return 1;
25004: if ((sizeof ($gltype) * CHAR_BIT) < 0)
25005: {
25006: long int i = longval ();
25007: if (i != (sizeof ($gltype) * CHAR_BIT))
25008: return 1;
25009: fprintf (f, "%ld", i);
25010: }
25011: else
25012: {
25013: unsigned long int i = ulongval ();
25014: if (i != (sizeof ($gltype) * CHAR_BIT))
25015: return 1;
25016: fprintf (f, "%lu", i);
25017: }
25018: /* Do not output a trailing newline, as this causes \r\n confusion
25019: on some platforms. */
25020: return ferror (f) || fclose (f) != 0;
25021:
25022: ;
25023: return 0;
25024: }
25025: _ACEOF
25026: rm -f conftest$ac_exeext
25027: if { (ac_try="$ac_link"
25028: case "(($ac_try" in
25029: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030: *) ac_try_echo=$ac_try;;
25031: esac
25032: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25033: $as_echo "$ac_try_echo") >&5
25034: (eval "$ac_link") 2>&5
25035: ac_status=$?
25036: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25038: { (case "(($ac_try" in
25039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040: *) ac_try_echo=$ac_try;;
25041: esac
25042: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25043: $as_echo "$ac_try_echo") >&5
25044: (eval "$ac_try") 2>&5
25045: ac_status=$?
25046: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047: (exit $ac_status); }; }; then
25048: result=`cat conftest.val`
25049: else
25050: $as_echo "$as_me: program exited with status $ac_status" >&5
25051: $as_echo "$as_me: failed program was:" >&5
25052: sed 's/^/| /' conftest.$ac_ext >&5
25053:
25054: ( exit $ac_status )
25055: result=unknown
25056: fi
25057: rm -rf conftest.dSYM
25058: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25059: fi
25060: rm -f conftest.val
25061: eval gl_cv_bitsizeof_${gltype}=\$result
25062:
25063: fi
25064: ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
25065: $as_echo "$as_val"'`
25066: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25067: $as_echo "$ac_res" >&6; }
25068: eval result=\$gl_cv_bitsizeof_${gltype}
25069: if test $result = unknown; then
25070: result=0
25071: fi
25072: GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25073: cat >>confdefs.h <<_ACEOF
25074: #define BITSIZEOF_${GLTYPE} $result
25075: _ACEOF
25076:
25077: eval BITSIZEOF_${GLTYPE}=\$result
25078: done
25079:
25080:
25081:
25082:
25083:
25084:
25085:
25086: for gltype in sig_atomic_t wchar_t wint_t ; do
25087: { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
25088: $as_echo_n "checking whether $gltype is signed... " >&6; }
25089: if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
25090: $as_echo_n "(cached) " >&6
25091: else
25092: cat >conftest.$ac_ext <<_ACEOF
25093: /* confdefs.h. */
25094: _ACEOF
25095: cat confdefs.h >>conftest.$ac_ext
25096: cat >>conftest.$ac_ext <<_ACEOF
25097: /* end confdefs.h. */
25098:
25099: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25100: included before <wchar.h>. */
25101: #include <stddef.h>
25102: #include <signal.h>
25103: #if HAVE_WCHAR_H
25104: # include <stdio.h>
25105: # include <time.h>
25106: # include <wchar.h>
25107: #endif
25108:
25109: int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
25110: int
25111: main ()
25112: {
25113:
25114: ;
25115: return 0;
25116: }
25117: _ACEOF
25118: rm -f conftest.$ac_objext
25119: if { (ac_try="$ac_compile"
25120: case "(($ac_try" in
25121: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122: *) ac_try_echo=$ac_try;;
25123: esac
25124: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25125: $as_echo "$ac_try_echo") >&5
25126: (eval "$ac_compile") 2>conftest.er1
25127: ac_status=$?
25128: grep -v '^ *+' conftest.er1 >conftest.err
25129: rm -f conftest.er1
25130: cat conftest.err >&5
25131: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132: (exit $ac_status); } && {
25133: test -z "$ac_c_werror_flag" ||
25134: test ! -s conftest.err
25135: } && test -s conftest.$ac_objext; then
25136: result=yes
25137: else
25138: $as_echo "$as_me: failed program was:" >&5
25139: sed 's/^/| /' conftest.$ac_ext >&5
25140:
25141: result=no
25142: fi
25143:
25144: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25145: eval gl_cv_type_${gltype}_signed=\$result
25146:
25147: fi
25148: ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
25149: $as_echo "$as_val"'`
25150: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25151: $as_echo "$ac_res" >&6; }
25152: eval result=\$gl_cv_type_${gltype}_signed
25153: GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25154: if test "$result" = yes; then
25155: cat >>confdefs.h <<_ACEOF
25156: #define HAVE_SIGNED_${GLTYPE} 1
25157: _ACEOF
25158:
25159: eval HAVE_SIGNED_${GLTYPE}=1
25160: else
25161: eval HAVE_SIGNED_${GLTYPE}=0
25162: fi
25163: done
25164:
25165:
25166: gl_cv_type_ptrdiff_t_signed=yes
25167: gl_cv_type_size_t_signed=no
25168: if test $APPLE_UNIVERSAL_BUILD = 0; then
25169:
25170:
25171:
25172:
25173: for gltype in ptrdiff_t size_t ; do
25174: { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
25175: $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25176: if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
25177: $as_echo_n "(cached) " >&6
25178: else
25179: eval gl_cv_type_${gltype}_suffix=no
25180: eval result=\$gl_cv_type_${gltype}_signed
25181: if test "$result" = yes; then
25182: glsufu=
25183: else
25184: glsufu=u
25185: fi
25186: for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25187: case $glsuf in
25188: '') gltype1='int';;
25189: l) gltype1='long int';;
25190: ll) gltype1='long long int';;
25191: i64) gltype1='__int64';;
25192: u) gltype1='unsigned int';;
25193: ul) gltype1='unsigned long int';;
25194: ull) gltype1='unsigned long long int';;
25195: ui64)gltype1='unsigned __int64';;
25196: esac
25197: cat >conftest.$ac_ext <<_ACEOF
25198: /* confdefs.h. */
25199: _ACEOF
25200: cat confdefs.h >>conftest.$ac_ext
25201: cat >>conftest.$ac_ext <<_ACEOF
25202: /* end confdefs.h. */
25203:
25204: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25205: included before <wchar.h>. */
25206: #include <stddef.h>
25207: #include <signal.h>
25208: #if HAVE_WCHAR_H
25209: # include <stdio.h>
25210: # include <time.h>
25211: # include <wchar.h>
25212: #endif
25213:
25214: extern $gltype foo;
25215: extern $gltype1 foo;
25216: int
25217: main ()
25218: {
25219:
25220: ;
25221: return 0;
25222: }
25223: _ACEOF
25224: rm -f conftest.$ac_objext
25225: if { (ac_try="$ac_compile"
25226: case "(($ac_try" in
25227: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228: *) ac_try_echo=$ac_try;;
25229: esac
25230: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25231: $as_echo "$ac_try_echo") >&5
25232: (eval "$ac_compile") 2>conftest.er1
25233: ac_status=$?
25234: grep -v '^ *+' conftest.er1 >conftest.err
25235: rm -f conftest.er1
25236: cat conftest.err >&5
25237: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238: (exit $ac_status); } && {
25239: test -z "$ac_c_werror_flag" ||
25240: test ! -s conftest.err
25241: } && test -s conftest.$ac_objext; then
25242: eval gl_cv_type_${gltype}_suffix=\$glsuf
25243: else
25244: $as_echo "$as_me: failed program was:" >&5
25245: sed 's/^/| /' conftest.$ac_ext >&5
25246:
25247:
25248: fi
25249:
25250: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25251: eval result=\$gl_cv_type_${gltype}_suffix
25252: test "$result" != no && break
25253: done
25254: fi
25255: ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
25256: $as_echo "$as_val"'`
25257: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25258: $as_echo "$ac_res" >&6; }
25259: GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25260: eval result=\$gl_cv_type_${gltype}_suffix
25261: test "$result" = no && result=
25262: eval ${GLTYPE}_SUFFIX=\$result
25263: cat >>confdefs.h <<_ACEOF
25264: #define ${GLTYPE}_SUFFIX $result
25265: _ACEOF
25266:
25267: done
25268:
25269:
25270: fi
25271:
25272:
25273:
25274:
25275:
25276: for gltype in sig_atomic_t wchar_t wint_t ; do
25277: { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
25278: $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25279: if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
25280: $as_echo_n "(cached) " >&6
25281: else
25282: eval gl_cv_type_${gltype}_suffix=no
25283: eval result=\$gl_cv_type_${gltype}_signed
25284: if test "$result" = yes; then
25285: glsufu=
25286: else
25287: glsufu=u
25288: fi
25289: for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25290: case $glsuf in
25291: '') gltype1='int';;
25292: l) gltype1='long int';;
25293: ll) gltype1='long long int';;
25294: i64) gltype1='__int64';;
25295: u) gltype1='unsigned int';;
25296: ul) gltype1='unsigned long int';;
25297: ull) gltype1='unsigned long long int';;
25298: ui64)gltype1='unsigned __int64';;
25299: esac
25300: cat >conftest.$ac_ext <<_ACEOF
25301: /* confdefs.h. */
25302: _ACEOF
25303: cat confdefs.h >>conftest.$ac_ext
25304: cat >>conftest.$ac_ext <<_ACEOF
25305: /* end confdefs.h. */
25306:
25307: /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25308: included before <wchar.h>. */
25309: #include <stddef.h>
25310: #include <signal.h>
25311: #if HAVE_WCHAR_H
25312: # include <stdio.h>
25313: # include <time.h>
25314: # include <wchar.h>
25315: #endif
25316:
25317: extern $gltype foo;
25318: extern $gltype1 foo;
25319: int
25320: main ()
25321: {
25322:
25323: ;
25324: return 0;
25325: }
25326: _ACEOF
25327: rm -f conftest.$ac_objext
25328: if { (ac_try="$ac_compile"
25329: case "(($ac_try" in
25330: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331: *) ac_try_echo=$ac_try;;
25332: esac
25333: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25334: $as_echo "$ac_try_echo") >&5
25335: (eval "$ac_compile") 2>conftest.er1
25336: ac_status=$?
25337: grep -v '^ *+' conftest.er1 >conftest.err
25338: rm -f conftest.er1
25339: cat conftest.err >&5
25340: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341: (exit $ac_status); } && {
25342: test -z "$ac_c_werror_flag" ||
25343: test ! -s conftest.err
25344: } && test -s conftest.$ac_objext; then
25345: eval gl_cv_type_${gltype}_suffix=\$glsuf
25346: else
25347: $as_echo "$as_me: failed program was:" >&5
25348: sed 's/^/| /' conftest.$ac_ext >&5
25349:
25350:
25351: fi
25352:
25353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25354: eval result=\$gl_cv_type_${gltype}_suffix
25355: test "$result" != no && break
25356: done
25357: fi
25358: ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
25359: $as_echo "$as_val"'`
25360: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25361: $as_echo "$ac_res" >&6; }
25362: GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25363: eval result=\$gl_cv_type_${gltype}_suffix
25364: test "$result" = no && result=
25365: eval ${GLTYPE}_SUFFIX=\$result
25366: cat >>confdefs.h <<_ACEOF
25367: #define ${GLTYPE}_SUFFIX $result
25368: _ACEOF
25369:
25370: done
25371:
25372:
25373:
25374: STDINT_H=stdint.h
25375: fi
25376:
25377:
25378:
25379:
25380:
25381:
25382:
25383:
25384:
25385:
25386:
25387:
25388:
25389:
25390:
25391: if test $gl_cv_have_include_next = yes; then
25392: gl_cv_next_stdio_h='<'stdio.h'>'
25393: else
25394: { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
25395: $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25396: if test "${gl_cv_next_stdio_h+set}" = set; then
25397: $as_echo_n "(cached) " >&6
25398: else
25399:
25400: if test $ac_cv_header_stdio_h = yes; then
25401: cat >conftest.$ac_ext <<_ACEOF
25402: /* confdefs.h. */
25403: _ACEOF
25404: cat confdefs.h >>conftest.$ac_ext
25405: cat >>conftest.$ac_ext <<_ACEOF
25406: /* end confdefs.h. */
25407: #include <stdio.h>
25408:
25409: _ACEOF
25410: case "$host_os" in
25411: aix*) gl_absname_cpp="$ac_cpp -C" ;;
25412: *) gl_absname_cpp="$ac_cpp" ;;
25413: esac
25414: gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25415: sed -n '\#/stdio.h#{
25416: s#.*"\(.*/stdio.h\)".*#\1#
25417: s#^/[^/]#//&#
25418: p
25419: q
25420: }'`'"'
25421: else
25422: gl_cv_next_stdio_h='<'stdio.h'>'
25423: fi
25424:
25425: fi
25426: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
25427: $as_echo "$gl_cv_next_stdio_h" >&6; }
25428: fi
25429: NEXT_STDIO_H=$gl_cv_next_stdio_h
25430:
25431: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25432: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25433: gl_next_as_first_directive='<'stdio.h'>'
25434: else
25435: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25436: gl_next_as_first_directive=$gl_cv_next_stdio_h
25437: fi
25438: NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
25439:
25440:
25441:
25442: GNULIB_FPRINTF=1
25443: GNULIB_PRINTF=1
25444: GNULIB_VFPRINTF=1
25445: GNULIB_VPRINTF=1
25446: GNULIB_FPUTC=1
25447: GNULIB_PUTC=1
25448: GNULIB_PUTCHAR=1
25449: GNULIB_FPUTS=1
25450: GNULIB_PUTS=1
25451: GNULIB_FWRITE=1
25452:
25453:
25454:
25455:
25456: if test $gl_cv_header_signal_h_SIGPIPE != yes; then
25457: REPLACE_STDIO_WRITE_FUNCS=1
25458:
25459:
25460:
25461:
25462:
25463:
25464:
25465:
25466: gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
25467:
25468: fi
25469:
25470:
25471:
25472:
25473:
25474:
25475:
25476:
25477:
25478:
25479:
25480:
25481:
25482:
25483:
25484: if test $gl_cv_have_include_next = yes; then
25485: gl_cv_next_stdlib_h='<'stdlib.h'>'
25486: else
25487: { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
25488: $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25489: if test "${gl_cv_next_stdlib_h+set}" = set; then
25490: $as_echo_n "(cached) " >&6
25491: else
25492:
25493: if test $ac_cv_header_stdlib_h = yes; then
25494: cat >conftest.$ac_ext <<_ACEOF
25495: /* confdefs.h. */
25496: _ACEOF
25497: cat confdefs.h >>conftest.$ac_ext
25498: cat >>conftest.$ac_ext <<_ACEOF
25499: /* end confdefs.h. */
25500: #include <stdlib.h>
25501:
25502: _ACEOF
25503: case "$host_os" in
25504: aix*) gl_absname_cpp="$ac_cpp -C" ;;
25505: *) gl_absname_cpp="$ac_cpp" ;;
25506: esac
25507: gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25508: sed -n '\#/stdlib.h#{
25509: s#.*"\(.*/stdlib.h\)".*#\1#
25510: s#^/[^/]#//&#
25511: p
25512: q
25513: }'`'"'
25514: else
25515: gl_cv_next_stdlib_h='<'stdlib.h'>'
25516: fi
25517:
25518: fi
25519: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
25520: $as_echo "$gl_cv_next_stdlib_h" >&6; }
25521: fi
25522: NEXT_STDLIB_H=$gl_cv_next_stdlib_h
25523:
25524: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25525: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25526: gl_next_as_first_directive='<'stdlib.h'>'
25527: else
25528: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25529: gl_next_as_first_directive=$gl_cv_next_stdlib_h
25530: fi
25531: NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
25532:
25533:
25534:
25535:
25536: for ac_header in random.h
25537: do
25538: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25539: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25540: $as_echo_n "checking for $ac_header... " >&6; }
25541: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542: $as_echo_n "(cached) " >&6
25543: else
25544: cat >conftest.$ac_ext <<_ACEOF
25545: /* confdefs.h. */
25546: _ACEOF
25547: cat confdefs.h >>conftest.$ac_ext
25548: cat >>conftest.$ac_ext <<_ACEOF
25549: /* end confdefs.h. */
25550: $ac_includes_default
25551:
25552: #include <$ac_header>
25553: _ACEOF
25554: rm -f conftest.$ac_objext
25555: if { (ac_try="$ac_compile"
25556: case "(($ac_try" in
25557: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558: *) ac_try_echo=$ac_try;;
25559: esac
25560: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25561: $as_echo "$ac_try_echo") >&5
25562: (eval "$ac_compile") 2>conftest.er1
25563: ac_status=$?
25564: grep -v '^ *+' conftest.er1 >conftest.err
25565: rm -f conftest.er1
25566: cat conftest.err >&5
25567: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568: (exit $ac_status); } && {
25569: test -z "$ac_c_werror_flag" ||
25570: test ! -s conftest.err
25571: } && test -s conftest.$ac_objext; then
25572: eval "$as_ac_Header=yes"
25573: else
25574: $as_echo "$as_me: failed program was:" >&5
25575: sed 's/^/| /' conftest.$ac_ext >&5
25576:
25577: eval "$as_ac_Header=no"
25578: fi
25579:
25580: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25581: fi
25582: ac_res=`eval 'as_val=${'$as_ac_Header'}
25583: $as_echo "$as_val"'`
25584: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25585: $as_echo "$ac_res" >&6; }
25586: as_val=`eval 'as_val=${'$as_ac_Header'}
25587: $as_echo "$as_val"'`
25588: if test "x$as_val" = x""yes; then
25589: cat >>confdefs.h <<_ACEOF
25590: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25591: _ACEOF
25592:
25593: fi
25594:
25595: done
25596:
25597: if test $ac_cv_header_random_h = yes; then
25598: HAVE_RANDOM_H=1
25599: else
25600: HAVE_RANDOM_H=0
25601: fi
25602:
25603: { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
25604: $as_echo_n "checking for struct random_data... " >&6; }
25605: if test "${ac_cv_type_struct_random_data+set}" = set; then
25606: $as_echo_n "(cached) " >&6
25607: else
25608: ac_cv_type_struct_random_data=no
25609: cat >conftest.$ac_ext <<_ACEOF
25610: /* confdefs.h. */
25611: _ACEOF
25612: cat confdefs.h >>conftest.$ac_ext
25613: cat >>conftest.$ac_ext <<_ACEOF
25614: /* end confdefs.h. */
25615: #include <stdlib.h>
25616: #if HAVE_RANDOM_H
25617: # include <random.h>
25618: #endif
25619:
25620:
25621: int
25622: main ()
25623: {
25624: if (sizeof (struct random_data))
25625: return 0;
25626: ;
25627: return 0;
25628: }
25629: _ACEOF
25630: rm -f conftest.$ac_objext
25631: if { (ac_try="$ac_compile"
25632: case "(($ac_try" in
25633: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634: *) ac_try_echo=$ac_try;;
25635: esac
25636: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25637: $as_echo "$ac_try_echo") >&5
25638: (eval "$ac_compile") 2>conftest.er1
25639: ac_status=$?
25640: grep -v '^ *+' conftest.er1 >conftest.err
25641: rm -f conftest.er1
25642: cat conftest.err >&5
25643: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644: (exit $ac_status); } && {
25645: test -z "$ac_c_werror_flag" ||
25646: test ! -s conftest.err
25647: } && test -s conftest.$ac_objext; then
25648: cat >conftest.$ac_ext <<_ACEOF
25649: /* confdefs.h. */
25650: _ACEOF
25651: cat confdefs.h >>conftest.$ac_ext
25652: cat >>conftest.$ac_ext <<_ACEOF
25653: /* end confdefs.h. */
25654: #include <stdlib.h>
25655: #if HAVE_RANDOM_H
25656: # include <random.h>
25657: #endif
25658:
25659:
25660: int
25661: main ()
25662: {
25663: if (sizeof ((struct random_data)))
25664: return 0;
25665: ;
25666: return 0;
25667: }
25668: _ACEOF
25669: rm -f conftest.$ac_objext
25670: if { (ac_try="$ac_compile"
25671: case "(($ac_try" in
25672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673: *) ac_try_echo=$ac_try;;
25674: esac
25675: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676: $as_echo "$ac_try_echo") >&5
25677: (eval "$ac_compile") 2>conftest.er1
25678: ac_status=$?
25679: grep -v '^ *+' conftest.er1 >conftest.err
25680: rm -f conftest.er1
25681: cat conftest.err >&5
25682: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683: (exit $ac_status); } && {
25684: test -z "$ac_c_werror_flag" ||
25685: test ! -s conftest.err
25686: } && test -s conftest.$ac_objext; then
25687: :
25688: else
25689: $as_echo "$as_me: failed program was:" >&5
25690: sed 's/^/| /' conftest.$ac_ext >&5
25691:
25692: ac_cv_type_struct_random_data=yes
25693: fi
25694:
25695: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696: else
25697: $as_echo "$as_me: failed program was:" >&5
25698: sed 's/^/| /' conftest.$ac_ext >&5
25699:
25700:
25701: fi
25702:
25703: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25704: fi
25705: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
25706: $as_echo "$ac_cv_type_struct_random_data" >&6; }
25707: if test "x$ac_cv_type_struct_random_data" = x""yes; then
25708:
25709: cat >>confdefs.h <<_ACEOF
25710: #define HAVE_STRUCT_RANDOM_DATA 1
25711: _ACEOF
25712:
25713:
25714: else
25715: HAVE_STRUCT_RANDOM_DATA=0
25716: fi
25717:
25718:
25719:
25720:
25721: if test $REPLACE_STRERROR = 1; then
25722:
25723:
25724:
25725:
25726:
25727:
25728:
25729:
25730: gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
25731:
25732:
25733: cat >>confdefs.h <<_ACEOF
25734: #define REPLACE_STRERROR $REPLACE_STRERROR
25735: _ACEOF
25736:
25737: fi
25738:
25739:
25740:
25741: GNULIB_STRERROR=1
25742:
25743:
25744:
25745:
25746:
25747:
25748:
25749:
25750:
25751:
25752:
25753:
25754:
25755:
25756:
25757:
25758:
25759:
25760: if test $gl_cv_have_include_next = yes; then
25761: gl_cv_next_unistd_h='<'unistd.h'>'
25762: else
25763: { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
25764: $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25765: if test "${gl_cv_next_unistd_h+set}" = set; then
25766: $as_echo_n "(cached) " >&6
25767: else
25768:
25769: if test $ac_cv_header_unistd_h = yes; then
25770: cat >conftest.$ac_ext <<_ACEOF
25771: /* confdefs.h. */
25772: _ACEOF
25773: cat confdefs.h >>conftest.$ac_ext
25774: cat >>conftest.$ac_ext <<_ACEOF
25775: /* end confdefs.h. */
25776: #include <unistd.h>
25777:
25778: _ACEOF
25779: case "$host_os" in
25780: aix*) gl_absname_cpp="$ac_cpp -C" ;;
25781: *) gl_absname_cpp="$ac_cpp" ;;
25782: esac
25783: gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25784: sed -n '\#/unistd.h#{
25785: s#.*"\(.*/unistd.h\)".*#\1#
25786: s#^/[^/]#//&#
25787: p
25788: q
25789: }'`'"'
25790: else
25791: gl_cv_next_unistd_h='<'unistd.h'>'
25792: fi
25793:
25794: fi
25795: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
25796: $as_echo "$gl_cv_next_unistd_h" >&6; }
25797: fi
25798: NEXT_UNISTD_H=$gl_cv_next_unistd_h
25799:
25800: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25801: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25802: gl_next_as_first_directive='<'unistd.h'>'
25803: else
25804: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25805: gl_next_as_first_directive=$gl_cv_next_unistd_h
25806: fi
25807: NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25808:
25809:
25810:
25811:
25812:
25813:
25814:
25815:
25816:
25817:
25818: if test $ac_cv_header_unistd_h = yes; then
25819: HAVE_UNISTD_H=1
25820: else
25821: HAVE_UNISTD_H=0
25822: fi
25823:
25824:
25825:
25826:
25827: cat >>confdefs.h <<\_ACEOF
25828: #define USE_UNLOCKED_IO 1
25829: _ACEOF
25830:
25831:
25832:
25833:
25834:
25835:
25836:
25837:
25838:
25839:
25840:
25841:
25842:
25843:
25844:
25845:
25846:
25847:
25848:
25849:
25850:
25851:
25852:
25853:
25854:
25855:
25856:
25857:
25858:
25859:
25860:
25861:
25862:
25863:
25864:
25865:
25866:
25867:
25868:
25869:
25870:
25871:
25872:
25873:
25874:
25875:
25876:
25877:
25878:
25879:
25880:
25881:
25882:
25883:
25884:
25885:
25886:
25887:
25888:
25889: { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
25890: $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
25891: if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
25892: $as_echo_n "(cached) " >&6
25893: else
25894: cat >conftest.$ac_ext <<_ACEOF
25895: #include <wchar.h>
25896: wchar_t w;
25897: _ACEOF
25898: rm -f conftest.$ac_objext
25899: if { (ac_try="$ac_compile"
25900: case "(($ac_try" in
25901: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902: *) ac_try_echo=$ac_try;;
25903: esac
25904: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25905: $as_echo "$ac_try_echo") >&5
25906: (eval "$ac_compile") 2>conftest.er1
25907: ac_status=$?
25908: grep -v '^ *+' conftest.er1 >conftest.err
25909: rm -f conftest.er1
25910: cat conftest.err >&5
25911: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912: (exit $ac_status); } && {
25913: test -z "$ac_c_werror_flag" ||
25914: test ! -s conftest.err
25915: } && test -s conftest.$ac_objext; then
25916: gl_cv_header_wchar_h_standalone=yes
25917: else
25918: $as_echo "$as_me: failed program was:" >&5
25919: sed 's/^/| /' conftest.$ac_ext >&5
25920:
25921: gl_cv_header_wchar_h_standalone=no
25922: fi
25923:
25924: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25925: fi
25926: { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
25927: $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
25928:
25929:
25930: if test $gt_cv_c_wint_t = yes; then
25931: HAVE_WINT_T=1
25932: else
25933: HAVE_WINT_T=0
25934: fi
25935:
25936:
25937: if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
25938: WCHAR_H=wchar.h
25939: fi
25940:
25941:
25942:
25943:
25944:
25945:
25946:
25947: if test $ac_cv_header_wchar_h = yes; then
25948: HAVE_WCHAR_H=1
25949: else
25950: HAVE_WCHAR_H=0
25951: fi
25952:
25953:
25954:
25955:
25956:
25957:
25958:
25959:
25960:
25961:
25962:
25963:
25964: if test $gl_cv_have_include_next = yes; then
25965: gl_cv_next_wchar_h='<'wchar.h'>'
25966: else
25967: { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
25968: $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25969: if test "${gl_cv_next_wchar_h+set}" = set; then
25970: $as_echo_n "(cached) " >&6
25971: else
25972:
25973: if test $ac_cv_header_wchar_h = yes; then
25974: cat >conftest.$ac_ext <<_ACEOF
25975: /* confdefs.h. */
25976: _ACEOF
25977: cat confdefs.h >>conftest.$ac_ext
25978: cat >>conftest.$ac_ext <<_ACEOF
25979: /* end confdefs.h. */
25980: #include <wchar.h>
25981:
25982: _ACEOF
25983: case "$host_os" in
25984: aix*) gl_absname_cpp="$ac_cpp -C" ;;
25985: *) gl_absname_cpp="$ac_cpp" ;;
25986: esac
25987: gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25988: sed -n '\#/wchar.h#{
25989: s#.*"\(.*/wchar.h\)".*#\1#
25990: s#^/[^/]#//&#
25991: p
25992: q
25993: }'`'"'
25994: else
25995: gl_cv_next_wchar_h='<'wchar.h'>'
25996: fi
25997:
25998: fi
25999: { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
26000: $as_echo "$gl_cv_next_wchar_h" >&6; }
26001: fi
26002: NEXT_WCHAR_H=$gl_cv_next_wchar_h
26003:
26004: if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26005: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26006: gl_next_as_first_directive='<'wchar.h'>'
26007: else
26008: # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26009: gl_next_as_first_directive=$gl_cv_next_wchar_h
26010: fi
26011: NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
26012:
26013:
26014:
26015:
26016:
26017:
26018:
26019:
26020:
26021:
26022:
26023:
26024:
26025: gltests_libdeps=
26026: gltests_ltlibdeps=
26027:
26028:
26029:
26030:
26031:
26032:
26033:
26034:
26035:
26036: gl_source_base='tests'
26037:
26038:
26039:
26040:
26041:
26042:
26043:
26044: LIBICRT_LIBDEPS="$gl_libdeps"
26045:
26046: LIBICRT_LTLIBDEPS="$gl_ltlibdeps"
26047:
26048:
26049:
26050:
26051:
26052:
26053:
26054:
26055: if test "$enable_shared" = yes; then
26056: case "$host_os" in
26057: mingw* | cygwin*) is_woe32dll=yes ;;
26058: *) is_woe32dll=no ;;
26059: esac
26060: else
26061: is_woe32dll=no
26062: fi
26063: WOE32DLL=$is_woe32dll
26064:
26065: if test $is_woe32dll = yes; then
26066: DLL_VARIABLE='__declspec (dllimport)'
26067: else
26068: DLL_VARIABLE=
26069: fi
26070:
26071:
26072:
26073:
26074:
26075:
26076:
26077: subdirs="$subdirs libcharset"
26078:
26079: subdirs="$subdirs preload"
26080:
26081: ac_config_files="$ac_config_files Makefile"
26082:
26083: ac_config_files="$ac_config_files lib/Makefile"
26084:
26085: ac_config_files="$ac_config_files srclib/Makefile"
26086:
26087: ac_config_files="$ac_config_files src/Makefile"
26088:
26089: ac_config_files="$ac_config_files po/Makefile.in"
26090:
26091: ac_config_files="$ac_config_files man/Makefile"
26092:
26093: if test -d "${srcdir}/tests"; then
26094: ac_config_files="$ac_config_files tests/Makefile"
26095:
26096: fi
26097: ac_config_files="$ac_config_files include/iconv.h:include/iconv.h.build.in"
26098:
26099: ac_config_files="$ac_config_files include/iconv.h.inst:include/iconv.h.in"
26100:
26101: cat >confcache <<\_ACEOF
26102: # This file is a shell script that caches the results of configure
26103: # tests run on this system so they can be shared between configure
26104: # scripts and configure runs, see configure's option --config-cache.
26105: # It is not useful on other systems. If it contains results you don't
26106: # want to keep, you may remove or edit it.
26107: #
26108: # config.status only pays attention to the cache file if you give it
26109: # the --recheck option to rerun configure.
26110: #
26111: # `ac_cv_env_foo' variables (set or unset) will be overridden when
26112: # loading this file, other *unset* `ac_cv_foo' will be assigned the
26113: # following values.
26114:
26115: _ACEOF
26116:
26117: # The following way of writing the cache mishandles newlines in values,
26118: # but we know of no workaround that is simple, portable, and efficient.
26119: # So, we kill variables containing newlines.
26120: # Ultrix sh set writes to stderr and can't be redirected directly,
26121: # and sets the high bit in the cache file unless we assign to the vars.
26122: (
26123: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26124: eval ac_val=\$$ac_var
26125: case $ac_val in #(
26126: *${as_nl}*)
26127: case $ac_var in #(
26128: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26129: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26130: esac
26131: case $ac_var in #(
26132: _ | IFS | as_nl) ;; #(
26133: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26134: *) $as_unset $ac_var ;;
26135: esac ;;
26136: esac
26137: done
26138:
26139: (set) 2>&1 |
26140: case $as_nl`(ac_space=' '; set) 2>&1` in #(
26141: *${as_nl}ac_space=\ *)
26142: # `set' does not quote correctly, so add quotes (double-quote
26143: # substitution turns \\\\ into \\, and sed turns \\ into \).
26144: sed -n \
26145: "s/'/'\\\\''/g;
26146: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26147: ;; #(
26148: *)
26149: # `set' quotes correctly as required by POSIX, so do not add quotes.
26150: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26151: ;;
26152: esac |
26153: sort
26154: ) |
26155: sed '
26156: /^ac_cv_env_/b end
26157: t clear
26158: :clear
26159: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26160: t end
26161: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26162: :end' >>confcache
26163: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26164: if test -w "$cache_file"; then
26165: test "x$cache_file" != "x/dev/null" &&
26166: { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26167: $as_echo "$as_me: updating cache $cache_file" >&6;}
26168: cat confcache >$cache_file
26169: else
26170: { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26171: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26172: fi
26173: fi
26174: rm -f confcache
26175:
26176: test "x$prefix" = xNONE && prefix=$ac_default_prefix
26177: # Let make expand exec_prefix.
26178: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26179:
26180: DEFS=-DHAVE_CONFIG_H
26181:
26182: ac_libobjs=
26183: ac_ltlibobjs=
26184: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26185: # 1. Remove the extension, and $U if already installed.
26186: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26187: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26188: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26189: # will be set to the directory where LIBOBJS objects are built.
26190: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26191: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26192: done
26193: LIBOBJS=$ac_libobjs
26194:
26195: LTLIBOBJS=$ac_ltlibobjs
26196:
26197:
26198: if test -n "$EXEEXT"; then
26199: am__EXEEXT_TRUE=
26200: am__EXEEXT_FALSE='#'
26201: else
26202: am__EXEEXT_TRUE='#'
26203: am__EXEEXT_FALSE=
26204: fi
26205:
26206: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26207: { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26208: Usually this means the macro was only invoked conditionally." >&5
26209: $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
26210: Usually this means the macro was only invoked conditionally." >&2;}
26211: { (exit 1); exit 1; }; }
26212: fi
26213: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26214: { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26215: Usually this means the macro was only invoked conditionally." >&5
26216: $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26217: Usually this means the macro was only invoked conditionally." >&2;}
26218: { (exit 1); exit 1; }; }
26219: fi
26220: if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
26221: { { $as_echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
26222: Usually this means the macro was only invoked conditionally." >&5
26223: $as_echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
26224: Usually this means the macro was only invoked conditionally." >&2;}
26225: { (exit 1); exit 1; }; }
26226: fi
26227: if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26228: { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26229: Usually this means the macro was only invoked conditionally." >&5
26230: $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26231: Usually this means the macro was only invoked conditionally." >&2;}
26232: { (exit 1); exit 1; }; }
26233: fi
26234:
26235: gl_libobjs=
26236: gl_ltlibobjs=
26237: if test -n "$gl_LIBOBJS"; then
26238: # Remove the extension.
26239: sed_drop_objext='s/\.o$//;s/\.obj$//'
26240: for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26241: gl_libobjs="$gl_libobjs $i.$ac_objext"
26242: gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26243: done
26244: fi
26245: gl_LIBOBJS=$gl_libobjs
26246:
26247: gl_LTLIBOBJS=$gl_ltlibobjs
26248:
26249:
26250:
26251: gltests_libobjs=
26252: gltests_ltlibobjs=
26253: if test -n "$gltests_LIBOBJS"; then
26254: # Remove the extension.
26255: sed_drop_objext='s/\.o$//;s/\.obj$//'
26256: for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26257: gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26258: gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26259: done
26260: fi
26261: gltests_LIBOBJS=$gltests_libobjs
26262:
26263: gltests_LTLIBOBJS=$gltests_ltlibobjs
26264:
26265:
26266:
26267: : ${CONFIG_STATUS=./config.status}
26268: ac_write_fail=0
26269: ac_clean_files_save=$ac_clean_files
26270: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26271: { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26272: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26273: cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26274: #! $SHELL
26275: # Generated by $as_me.
26276: # Run this file to recreate the current configuration.
26277: # Compiler output produced by configure, useful for debugging
26278: # configure, is in config.log if it exists.
26279:
26280: debug=false
26281: ac_cs_recheck=false
26282: ac_cs_silent=false
26283: SHELL=\${CONFIG_SHELL-$SHELL}
26284: _ACEOF
26285:
26286: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26287: ## --------------------- ##
26288: ## M4sh Initialization. ##
26289: ## --------------------- ##
26290:
26291: # Be more Bourne compatible
26292: DUALCASE=1; export DUALCASE # for MKS sh
26293: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26294: emulate sh
26295: NULLCMD=:
26296: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26297: # is contrary to our usage. Disable this feature.
26298: alias -g '${1+"$@"}'='"$@"'
26299: setopt NO_GLOB_SUBST
26300: else
26301: case `(set -o) 2>/dev/null` in
26302: *posix*) set -o posix ;;
26303: esac
26304:
26305: fi
26306:
26307:
26308:
26309:
26310: # PATH needs CR
26311: # Avoid depending upon Character Ranges.
26312: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26313: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26314: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26315: as_cr_digits='0123456789'
26316: as_cr_alnum=$as_cr_Letters$as_cr_digits
26317:
26318: as_nl='
26319: '
26320: export as_nl
26321: # Printing a long string crashes Solaris 7 /usr/bin/printf.
26322: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26323: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26324: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26325: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26326: as_echo='printf %s\n'
26327: as_echo_n='printf %s'
26328: else
26329: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26330: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26331: as_echo_n='/usr/ucb/echo -n'
26332: else
26333: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26334: as_echo_n_body='eval
26335: arg=$1;
26336: case $arg in
26337: *"$as_nl"*)
26338: expr "X$arg" : "X\\(.*\\)$as_nl";
26339: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26340: esac;
26341: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26342: '
26343: export as_echo_n_body
26344: as_echo_n='sh -c $as_echo_n_body as_echo'
26345: fi
26346: export as_echo_body
26347: as_echo='sh -c $as_echo_body as_echo'
26348: fi
26349:
26350: # The user is always right.
26351: if test "${PATH_SEPARATOR+set}" != set; then
26352: PATH_SEPARATOR=:
26353: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26354: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26355: PATH_SEPARATOR=';'
26356: }
26357: fi
26358:
26359: # Support unset when possible.
26360: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26361: as_unset=unset
26362: else
26363: as_unset=false
26364: fi
26365:
26366:
26367: # IFS
26368: # We need space, tab and new line, in precisely that order. Quoting is
26369: # there to prevent editors from complaining about space-tab.
26370: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26371: # splitting by setting IFS to empty value.)
26372: IFS=" "" $as_nl"
26373:
26374: # Find who we are. Look in the path if we contain no directory separator.
26375: case $0 in
26376: *[\\/]* ) as_myself=$0 ;;
26377: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26378: for as_dir in $PATH
26379: do
26380: IFS=$as_save_IFS
26381: test -z "$as_dir" && as_dir=.
26382: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26383: done
26384: IFS=$as_save_IFS
26385:
26386: ;;
26387: esac
26388: # We did not find ourselves, most probably we were run as `sh COMMAND'
26389: # in which case we are not to be found in the path.
26390: if test "x$as_myself" = x; then
26391: as_myself=$0
26392: fi
26393: if test ! -f "$as_myself"; then
26394: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26395: { (exit 1); exit 1; }
26396: fi
26397:
26398: # Work around bugs in pre-3.0 UWIN ksh.
26399: for as_var in ENV MAIL MAILPATH
26400: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26401: done
26402: PS1='$ '
26403: PS2='> '
26404: PS4='+ '
26405:
26406: # NLS nuisances.
26407: LC_ALL=C
26408: export LC_ALL
26409: LANGUAGE=C
26410: export LANGUAGE
26411:
26412: # Required to use basename.
26413: if expr a : '\(a\)' >/dev/null 2>&1 &&
26414: test "X`expr 00001 : '.*\(...\)'`" = X001; then
26415: as_expr=expr
26416: else
26417: as_expr=false
26418: fi
26419:
26420: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26421: as_basename=basename
26422: else
26423: as_basename=false
26424: fi
26425:
26426:
26427: # Name of the executable.
26428: as_me=`$as_basename -- "$0" ||
26429: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26430: X"$0" : 'X\(//\)$' \| \
26431: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26432: $as_echo X/"$0" |
26433: sed '/^.*\/\([^/][^/]*\)\/*$/{
26434: s//\1/
26435: q
26436: }
26437: /^X\/\(\/\/\)$/{
26438: s//\1/
26439: q
26440: }
26441: /^X\/\(\/\).*/{
26442: s//\1/
26443: q
26444: }
26445: s/.*/./; q'`
26446:
26447: # CDPATH.
26448: $as_unset CDPATH
26449:
26450:
26451:
26452: as_lineno_1=$LINENO
26453: as_lineno_2=$LINENO
26454: test "x$as_lineno_1" != "x$as_lineno_2" &&
26455: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26456:
26457: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26458: # uniformly replaced by the line number. The first 'sed' inserts a
26459: # line-number line after each line using $LINENO; the second 'sed'
26460: # does the real work. The second script uses 'N' to pair each
26461: # line-number line with the line containing $LINENO, and appends
26462: # trailing '-' during substitution so that $LINENO is not a special
26463: # case at line end.
26464: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26465: # scripts with optimization help from Paolo Bonzini. Blame Lee
26466: # E. McMahon (1931-1989) for sed's syntax. :-)
26467: sed -n '
26468: p
26469: /[$]LINENO/=
26470: ' <$as_myself |
26471: sed '
26472: s/[$]LINENO.*/&-/
26473: t lineno
26474: b
26475: :lineno
26476: N
26477: :loop
26478: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26479: t loop
26480: s/-\n.*//
26481: ' >$as_me.lineno &&
26482: chmod +x "$as_me.lineno" ||
26483: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26484: { (exit 1); exit 1; }; }
26485:
26486: # Don't try to exec as it changes $[0], causing all sort of problems
26487: # (the dirname of $[0] is not the place where we might find the
26488: # original and so on. Autoconf is especially sensitive to this).
26489: . "./$as_me.lineno"
26490: # Exit status is that of the last command.
26491: exit
26492: }
26493:
26494:
26495: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26496: as_dirname=dirname
26497: else
26498: as_dirname=false
26499: fi
26500:
26501: ECHO_C= ECHO_N= ECHO_T=
26502: case `echo -n x` in
26503: -n*)
26504: case `echo 'x\c'` in
26505: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26506: *) ECHO_C='\c';;
26507: esac;;
26508: *)
26509: ECHO_N='-n';;
26510: esac
26511: if expr a : '\(a\)' >/dev/null 2>&1 &&
26512: test "X`expr 00001 : '.*\(...\)'`" = X001; then
26513: as_expr=expr
26514: else
26515: as_expr=false
26516: fi
26517:
26518: rm -f conf$$ conf$$.exe conf$$.file
26519: if test -d conf$$.dir; then
26520: rm -f conf$$.dir/conf$$.file
26521: else
26522: rm -f conf$$.dir
26523: mkdir conf$$.dir 2>/dev/null
26524: fi
26525: if (echo >conf$$.file) 2>/dev/null; then
26526: if ln -s conf$$.file conf$$ 2>/dev/null; then
26527: as_ln_s='ln -s'
26528: # ... but there are two gotchas:
26529: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26530: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26531: # In both cases, we have to default to `cp -p'.
26532: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26533: as_ln_s='cp -p'
26534: elif ln conf$$.file conf$$ 2>/dev/null; then
26535: as_ln_s=ln
26536: else
26537: as_ln_s='cp -p'
26538: fi
26539: else
26540: as_ln_s='cp -p'
26541: fi
26542: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26543: rmdir conf$$.dir 2>/dev/null
26544:
26545: if mkdir -p . 2>/dev/null; then
26546: as_mkdir_p=:
26547: else
26548: test -d ./-p && rmdir ./-p
26549: as_mkdir_p=false
26550: fi
26551:
26552: if test -x / >/dev/null 2>&1; then
26553: as_test_x='test -x'
26554: else
26555: if ls -dL / >/dev/null 2>&1; then
26556: as_ls_L_option=L
26557: else
26558: as_ls_L_option=
26559: fi
26560: as_test_x='
26561: eval sh -c '\''
26562: if test -d "$1"; then
26563: test -d "$1/.";
26564: else
26565: case $1 in
26566: -*)set "./$1";;
26567: esac;
26568: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26569: ???[sx]*):;;*)false;;esac;fi
26570: '\'' sh
26571: '
26572: fi
26573: as_executable_p=$as_test_x
26574:
26575: # Sed expression to map a string onto a valid CPP name.
26576: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26577:
26578: # Sed expression to map a string onto a valid variable name.
26579: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26580:
26581:
26582: exec 6>&1
26583:
26584: # Save the log message, to keep $[0] and so on meaningful, and to
26585: # report actual input values of CONFIG_FILES etc. instead of their
26586: # values after options handling.
26587: ac_log="
26588: This file was extended by $as_me, which was
26589: generated by GNU Autoconf 2.63. Invocation command line was
26590:
26591: CONFIG_FILES = $CONFIG_FILES
26592: CONFIG_HEADERS = $CONFIG_HEADERS
26593: CONFIG_LINKS = $CONFIG_LINKS
26594: CONFIG_COMMANDS = $CONFIG_COMMANDS
26595: $ $0 $@
26596:
26597: on `(hostname || uname -n) 2>/dev/null | sed 1q`
26598: "
26599:
26600: _ACEOF
26601:
26602: case $ac_config_files in *"
26603: "*) set x $ac_config_files; shift; ac_config_files=$*;;
26604: esac
26605:
26606: case $ac_config_headers in *"
26607: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26608: esac
26609:
26610:
26611: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26612: # Files that config.status was made for.
26613: config_files="$ac_config_files"
26614: config_headers="$ac_config_headers"
26615: config_commands="$ac_config_commands"
26616:
26617: _ACEOF
26618:
26619: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26620: ac_cs_usage="\
26621: \`$as_me' instantiates files from templates according to the
26622: current configuration.
26623:
26624: Usage: $0 [OPTION]... [FILE]...
26625:
26626: -h, --help print this help, then exit
26627: -V, --version print version number and configuration settings, then exit
26628: -q, --quiet, --silent
26629: do not print progress messages
26630: -d, --debug don't remove temporary files
26631: --recheck update $as_me by reconfiguring in the same conditions
26632: --file=FILE[:TEMPLATE]
26633: instantiate the configuration file FILE
26634: --header=FILE[:TEMPLATE]
26635: instantiate the configuration header FILE
26636:
26637: Configuration files:
26638: $config_files
26639:
26640: Configuration headers:
26641: $config_headers
26642:
26643: Configuration commands:
26644: $config_commands
26645:
26646: Report bugs to <bug-autoconf@gnu.org>."
26647:
26648: _ACEOF
26649: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650: ac_cs_version="\\
26651: config.status
26652: configured by $0, generated by GNU Autoconf 2.63,
26653: with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26654:
26655: Copyright (C) 2008 Free Software Foundation, Inc.
26656: This config.status script is free software; the Free Software Foundation
26657: gives unlimited permission to copy, distribute and modify it."
26658:
26659: ac_pwd='$ac_pwd'
26660: srcdir='$srcdir'
26661: INSTALL='$INSTALL'
26662: MKDIR_P='$MKDIR_P'
26663: AWK='$AWK'
26664: test -n "\$AWK" || AWK=awk
26665: _ACEOF
26666:
26667: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26668: # The default lists apply if the user does not specify any file.
26669: ac_need_defaults=:
26670: while test $# != 0
26671: do
26672: case $1 in
26673: --*=*)
26674: ac_option=`expr "X$1" : 'X\([^=]*\)='`
26675: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26676: ac_shift=:
26677: ;;
26678: *)
26679: ac_option=$1
26680: ac_optarg=$2
26681: ac_shift=shift
26682: ;;
26683: esac
26684:
26685: case $ac_option in
26686: # Handling of the options.
26687: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26688: ac_cs_recheck=: ;;
26689: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26690: $as_echo "$ac_cs_version"; exit ;;
26691: --debug | --debu | --deb | --de | --d | -d )
26692: debug=: ;;
26693: --file | --fil | --fi | --f )
26694: $ac_shift
26695: case $ac_optarg in
26696: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26697: esac
26698: CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26699: ac_need_defaults=false;;
26700: --header | --heade | --head | --hea )
26701: $ac_shift
26702: case $ac_optarg in
26703: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26704: esac
26705: CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26706: ac_need_defaults=false;;
26707: --he | --h)
26708: # Conflict between --help and --header
26709: { $as_echo "$as_me: error: ambiguous option: $1
26710: Try \`$0 --help' for more information." >&2
26711: { (exit 1); exit 1; }; };;
26712: --help | --hel | -h )
26713: $as_echo "$ac_cs_usage"; exit ;;
26714: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26715: | -silent | --silent | --silen | --sile | --sil | --si | --s)
26716: ac_cs_silent=: ;;
26717:
26718: # This is an error.
26719: -*) { $as_echo "$as_me: error: unrecognized option: $1
26720: Try \`$0 --help' for more information." >&2
26721: { (exit 1); exit 1; }; } ;;
26722:
26723: *) ac_config_targets="$ac_config_targets $1"
26724: ac_need_defaults=false ;;
26725:
26726: esac
26727: shift
26728: done
26729:
26730: ac_configure_extra_args=
26731:
26732: if $ac_cs_silent; then
26733: exec 6>/dev/null
26734: ac_configure_extra_args="$ac_configure_extra_args --silent"
26735: fi
26736:
26737: _ACEOF
26738: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26739: if \$ac_cs_recheck; then
26740: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26741: shift
26742: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26743: CONFIG_SHELL='$SHELL'
26744: export CONFIG_SHELL
26745: exec "\$@"
26746: fi
26747:
26748: _ACEOF
26749: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26750: exec 5>>config.log
26751: {
26752: echo
26753: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26754: ## Running $as_me. ##
26755: _ASBOX
26756: $as_echo "$ac_log"
26757: } >&5
26758:
26759: _ACEOF
26760: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26761: #
26762: # INIT-COMMANDS
26763: #
26764: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26765:
26766:
26767: # The HP-UX ksh and POSIX shell print the target directory to stdout
26768: # if CDPATH is set.
26769: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26770:
26771: sed_quote_subst='$sed_quote_subst'
26772: double_quote_subst='$double_quote_subst'
26773: delay_variable_subst='$delay_variable_subst'
26774: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26775: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26776: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26777: AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
26778: DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26779: OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26780: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26781: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26782: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26783: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26784: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26785: host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26786: build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26787: build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26788: build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26789: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26790: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26791: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26792: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26793: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26794: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26795: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26796: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26797: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26798: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26799: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26800: lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26801: lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26802: lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26803: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26804: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26805: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26806: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26807: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26808: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26809: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26810: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26811: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26812: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26813: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26814: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26815: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26816: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26817: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26818: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26819: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26820: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
26821: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26822: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26823: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26824: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26825: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26826: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26827: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26828: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26829: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26830: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26831: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26832: DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26833: NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26834: LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26835: OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26836: OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26837: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26838: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26839: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26840: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26841: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26842: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26843: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26844: compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26845: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26846: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26847: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26848: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26849: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26850: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26851: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26852: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26853: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26854: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26855: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26856: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26857: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26858: hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26859: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26860: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26861: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26862: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26863: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26864: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26865: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26866: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26867: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26868: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26869: prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26870: file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26871: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26872: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26873: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26874: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26875: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26876: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26877: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26878: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26879: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26880: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26881: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26882: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26883: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26884: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26885: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26886: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26887: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26888: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26889: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26890: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26891: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26892: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26893: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26894: LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
26895: old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26896: compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
26897: GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
26898: lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
26899: lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
26900: lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
26901: lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
26902: lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
26903: archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
26904: enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
26905: export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
26906: whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
26907: compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
26908: old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26909: old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26910: archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26911: archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26912: module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26913: module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26914: with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
26915: allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
26916: no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
26917: hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
26918: hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
26919: hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
26920: hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
26921: hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
26922: hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
26923: hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
26924: hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
26925: inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
26926: link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
26927: fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
26928: always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
26929: export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26930: exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
26931: include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
26932: prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
26933: file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
26934: hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
26935:
26936: LTCC='$LTCC'
26937: LTCFLAGS='$LTCFLAGS'
26938: compiler='$compiler_DEFAULT'
26939:
26940: # Quote evaled strings.
26941: for var in SED \
26942: GREP \
26943: EGREP \
26944: FGREP \
26945: LD \
26946: NM \
26947: LN_S \
26948: lt_SP2NL \
26949: lt_NL2SP \
26950: reload_flag \
26951: deplibs_check_method \
26952: file_magic_cmd \
26953: AR \
26954: AR_FLAGS \
26955: STRIP \
26956: RANLIB \
26957: CC \
26958: CFLAGS \
26959: compiler \
26960: lt_cv_sys_global_symbol_pipe \
26961: lt_cv_sys_global_symbol_to_cdecl \
26962: lt_cv_sys_global_symbol_to_c_name_address \
26963: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26964: SHELL \
26965: ECHO \
26966: lt_prog_compiler_no_builtin_flag \
26967: lt_prog_compiler_wl \
26968: lt_prog_compiler_pic \
26969: lt_prog_compiler_static \
26970: lt_cv_prog_compiler_c_o \
26971: need_locks \
26972: DSYMUTIL \
26973: NMEDIT \
26974: LIPO \
26975: OTOOL \
26976: OTOOL64 \
26977: shrext_cmds \
26978: export_dynamic_flag_spec \
26979: whole_archive_flag_spec \
26980: compiler_needs_object \
26981: with_gnu_ld \
26982: allow_undefined_flag \
26983: no_undefined_flag \
26984: hardcode_libdir_flag_spec \
26985: hardcode_libdir_flag_spec_ld \
26986: hardcode_libdir_separator \
26987: fix_srcfile_path \
26988: exclude_expsyms \
26989: include_expsyms \
26990: file_list_spec \
26991: variables_saved_for_relink \
26992: libname_spec \
26993: library_names_spec \
26994: soname_spec \
26995: finish_eval \
26996: old_striplib \
26997: striplib \
26998: LD_RC \
26999: compiler_RC \
27000: lt_prog_compiler_no_builtin_flag_RC \
27001: lt_prog_compiler_wl_RC \
27002: lt_prog_compiler_pic_RC \
27003: lt_prog_compiler_static_RC \
27004: lt_cv_prog_compiler_c_o_RC \
27005: export_dynamic_flag_spec_RC \
27006: whole_archive_flag_spec_RC \
27007: compiler_needs_object_RC \
27008: with_gnu_ld_RC \
27009: allow_undefined_flag_RC \
27010: no_undefined_flag_RC \
27011: hardcode_libdir_flag_spec_RC \
27012: hardcode_libdir_flag_spec_ld_RC \
27013: hardcode_libdir_separator_RC \
27014: fix_srcfile_path_RC \
27015: exclude_expsyms_RC \
27016: include_expsyms_RC \
27017: file_list_spec_RC; do
27018: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
27019: *[\\\\\\\`\\"\\\$]*)
27020: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27021: ;;
27022: *)
27023: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27024: ;;
27025: esac
27026: done
27027:
27028: # Double-quote double-evaled strings.
27029: for var in reload_cmds \
27030: old_postinstall_cmds \
27031: old_postuninstall_cmds \
27032: old_archive_cmds \
27033: extract_expsyms_cmds \
27034: old_archive_from_new_cmds \
27035: old_archive_from_expsyms_cmds \
27036: archive_cmds \
27037: archive_expsym_cmds \
27038: module_cmds \
27039: module_expsym_cmds \
27040: export_symbols_cmds \
27041: prelink_cmds \
27042: postinstall_cmds \
27043: postuninstall_cmds \
27044: finish_cmds \
27045: sys_lib_search_path_spec \
27046: sys_lib_dlsearch_path_spec \
27047: old_archive_cmds_RC \
27048: old_archive_from_new_cmds_RC \
27049: old_archive_from_expsyms_cmds_RC \
27050: archive_cmds_RC \
27051: archive_expsym_cmds_RC \
27052: module_cmds_RC \
27053: module_expsym_cmds_RC \
27054: export_symbols_cmds_RC \
27055: prelink_cmds_RC; do
27056: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
27057: *[\\\\\\\`\\"\\\$]*)
27058: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27059: ;;
27060: *)
27061: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27062: ;;
27063: esac
27064: done
27065:
27066: # Fix-up fallback echo if it was mangled by the above quoting rules.
27067: case \$lt_ECHO in
27068: *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
27069: ;;
27070: esac
27071:
27072: ac_aux_dir='$ac_aux_dir'
27073: xsi_shell='$xsi_shell'
27074: lt_shell_append='$lt_shell_append'
27075:
27076: # See if we are running on zsh, and set the options which allow our
27077: # commands through without removal of \ escapes INIT.
27078: if test -n "\${ZSH_VERSION+set}" ; then
27079: setopt NO_GLOB_SUBST
27080: fi
27081:
27082:
27083: PACKAGE='$PACKAGE'
27084: VERSION='$VERSION'
27085: TIMESTAMP='$TIMESTAMP'
27086: RM='$RM'
27087: ofile='$ofile'
27088:
27089:
27090:
27091:
27092:
27093: # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27094: # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27095: # from automake < 1.5.
27096: eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27097: # Capture the value of LINGUAS because we need it to compute CATALOGS.
27098: LINGUAS="${LINGUAS-%UNSET%}"
27099:
27100:
27101: _ACEOF
27102:
27103: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27104:
27105: # Handling of arguments.
27106: for ac_config_target in $ac_config_targets
27107: do
27108: case $ac_config_target in
27109: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27110: "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
27111: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27112: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27113: "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
27114: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27115: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27116: "srclib/Makefile") CONFIG_FILES="$CONFIG_FILES srclib/Makefile" ;;
27117: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27118: "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27119: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27120: "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27121: "include/iconv.h") CONFIG_FILES="$CONFIG_FILES include/iconv.h:include/iconv.h.build.in" ;;
27122: "include/iconv.h.inst") CONFIG_FILES="$CONFIG_FILES include/iconv.h.inst:include/iconv.h.in" ;;
27123:
27124: *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27125: $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27126: { (exit 1); exit 1; }; };;
27127: esac
27128: done
27129:
27130:
27131: # If the user did not use the arguments to specify the items to instantiate,
27132: # then the envvar interface is used. Set only those that are not.
27133: # We use the long form for the default assignment because of an extremely
27134: # bizarre bug on SunOS 4.1.3.
27135: if $ac_need_defaults; then
27136: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27137: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27138: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27139: fi
27140:
27141: # Have a temporary directory for convenience. Make it in the build tree
27142: # simply because there is no reason against having it here, and in addition,
27143: # creating and moving files from /tmp can sometimes cause problems.
27144: # Hook for its removal unless debugging.
27145: # Note that there is a small window in which the directory will not be cleaned:
27146: # after its creation but before its name has been assigned to `$tmp'.
27147: $debug ||
27148: {
27149: tmp=
27150: trap 'exit_status=$?
27151: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27152: ' 0
27153: trap '{ (exit 1); exit 1; }' 1 2 13 15
27154: }
27155: # Create a (secure) tmp directory for tmp files.
27156:
27157: {
27158: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27159: test -n "$tmp" && test -d "$tmp"
27160: } ||
27161: {
27162: tmp=./conf$$-$RANDOM
27163: (umask 077 && mkdir "$tmp")
27164: } ||
27165: {
27166: $as_echo "$as_me: cannot create a temporary directory in ." >&2
27167: { (exit 1); exit 1; }
27168: }
27169:
27170: # Set up the scripts for CONFIG_FILES section.
27171: # No need to generate them if there are no CONFIG_FILES.
27172: # This happens for instance with `./config.status config.h'.
27173: if test -n "$CONFIG_FILES"; then
27174:
27175:
27176: ac_cr='
'
27177: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27178: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27179: ac_cs_awk_cr='\\r'
27180: else
27181: ac_cs_awk_cr=$ac_cr
27182: fi
27183:
27184: echo 'BEGIN {' >"$tmp/subs1.awk" &&
27185: _ACEOF
27186:
27187:
27188: {
27189: echo "cat >conf$$subs.awk <<_ACEOF" &&
27190: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27191: echo "_ACEOF"
27192: } >conf$$subs.sh ||
27193: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27194: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27195: { (exit 1); exit 1; }; }
27196: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27197: ac_delim='%!_!# '
27198: for ac_last_try in false false false false false :; do
27199: . ./conf$$subs.sh ||
27200: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27201: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27202: { (exit 1); exit 1; }; }
27203:
27204: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27205: if test $ac_delim_n = $ac_delim_num; then
27206: break
27207: elif $ac_last_try; then
27208: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27209: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27210: { (exit 1); exit 1; }; }
27211: else
27212: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27213: fi
27214: done
27215: rm -f conf$$subs.sh
27216:
27217: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27218: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27219: _ACEOF
27220: sed -n '
27221: h
27222: s/^/S["/; s/!.*/"]=/
27223: p
27224: g
27225: s/^[^!]*!//
27226: :repl
27227: t repl
27228: s/'"$ac_delim"'$//
27229: t delim
27230: :nl
27231: h
27232: s/\(.\{148\}\).*/\1/
27233: t more1
27234: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27235: p
27236: n
27237: b repl
27238: :more1
27239: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27240: p
27241: g
27242: s/.\{148\}//
27243: t nl
27244: :delim
27245: h
27246: s/\(.\{148\}\).*/\1/
27247: t more2
27248: s/["\\]/\\&/g; s/^/"/; s/$/"/
27249: p
27250: b
27251: :more2
27252: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27253: p
27254: g
27255: s/.\{148\}//
27256: t delim
27257: ' <conf$$subs.awk | sed '
27258: /^[^""]/{
27259: N
27260: s/\n//
27261: }
27262: ' >>$CONFIG_STATUS || ac_write_fail=1
27263: rm -f conf$$subs.awk
27264: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27265: _ACAWK
27266: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27267: for (key in S) S_is_set[key] = 1
27268: FS = ""
27269:
27270: }
27271: {
27272: line = $ 0
27273: nfields = split(line, field, "@")
27274: substed = 0
27275: len = length(field[1])
27276: for (i = 2; i < nfields; i++) {
27277: key = field[i]
27278: keylen = length(key)
27279: if (S_is_set[key]) {
27280: value = S[key]
27281: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27282: len += length(value) + length(field[++i])
27283: substed = 1
27284: } else
27285: len += 1 + keylen
27286: }
27287:
27288: print line
27289: }
27290:
27291: _ACAWK
27292: _ACEOF
27293: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27294: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27295: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27296: else
27297: cat
27298: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27299: || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27300: $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27301: { (exit 1); exit 1; }; }
27302: _ACEOF
27303:
27304: # VPATH may cause trouble with some makes, so we remove $(srcdir),
27305: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27306: # trailing colons and then remove the whole line if VPATH becomes empty
27307: # (actually we leave an empty line to preserve line numbers).
27308: if test "x$srcdir" = x.; then
27309: ac_vpsub='/^[ ]*VPATH[ ]*=/{
27310: s/:*\$(srcdir):*/:/
27311: s/:*\${srcdir}:*/:/
27312: s/:*@srcdir@:*/:/
27313: s/^\([^=]*=[ ]*\):*/\1/
27314: s/:*$//
27315: s/^[^=]*=[ ]*$//
27316: }'
27317: fi
27318:
27319: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27320: fi # test -n "$CONFIG_FILES"
27321:
27322: # Set up the scripts for CONFIG_HEADERS section.
27323: # No need to generate them if there are no CONFIG_HEADERS.
27324: # This happens for instance with `./config.status Makefile'.
27325: if test -n "$CONFIG_HEADERS"; then
27326: cat >"$tmp/defines.awk" <<\_ACAWK ||
27327: BEGIN {
27328: _ACEOF
27329:
27330: # Transform confdefs.h into an awk script `defines.awk', embedded as
27331: # here-document in config.status, that substitutes the proper values into
27332: # config.h.in to produce config.h.
27333:
27334: # Create a delimiter string that does not exist in confdefs.h, to ease
27335: # handling of long lines.
27336: ac_delim='%!_!# '
27337: for ac_last_try in false false :; do
27338: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27339: if test -z "$ac_t"; then
27340: break
27341: elif $ac_last_try; then
27342: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27343: $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27344: { (exit 1); exit 1; }; }
27345: else
27346: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27347: fi
27348: done
27349:
27350: # For the awk script, D is an array of macro values keyed by name,
27351: # likewise P contains macro parameters if any. Preserve backslash
27352: # newline sequences.
27353:
27354: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27355: sed -n '
27356: s/.\{148\}/&'"$ac_delim"'/g
27357: t rset
27358: :rset
27359: s/^[ ]*#[ ]*define[ ][ ]*/ /
27360: t def
27361: d
27362: :def
27363: s/\\$//
27364: t bsnl
27365: s/["\\]/\\&/g
27366: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27367: D["\1"]=" \3"/p
27368: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27369: d
27370: :bsnl
27371: s/["\\]/\\&/g
27372: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27373: D["\1"]=" \3\\\\\\n"\\/p
27374: t cont
27375: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27376: t cont
27377: d
27378: :cont
27379: n
27380: s/.\{148\}/&'"$ac_delim"'/g
27381: t clear
27382: :clear
27383: s/\\$//
27384: t bsnlc
27385: s/["\\]/\\&/g; s/^/"/; s/$/"/p
27386: d
27387: :bsnlc
27388: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27389: b cont
27390: ' <confdefs.h | sed '
27391: s/'"$ac_delim"'/"\\\
27392: "/g' >>$CONFIG_STATUS || ac_write_fail=1
27393:
27394: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27395: for (key in D) D_is_set[key] = 1
27396: FS = ""
27397: }
27398: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27399: line = \$ 0
27400: split(line, arg, " ")
27401: if (arg[1] == "#") {
27402: defundef = arg[2]
27403: mac1 = arg[3]
27404: } else {
27405: defundef = substr(arg[1], 2)
27406: mac1 = arg[2]
27407: }
27408: split(mac1, mac2, "(") #)
27409: macro = mac2[1]
27410: prefix = substr(line, 1, index(line, defundef) - 1)
27411: if (D_is_set[macro]) {
27412: # Preserve the white space surrounding the "#".
27413: print prefix "define", macro P[macro] D[macro]
27414: next
27415: } else {
27416: # Replace #undef with comments. This is necessary, for example,
27417: # in the case of _POSIX_SOURCE, which is predefined and required
27418: # on some systems where configure will not decide to define it.
27419: if (defundef == "undef") {
27420: print "/*", prefix defundef, macro, "*/"
27421: next
27422: }
27423: }
27424: }
27425: { print }
27426: _ACAWK
27427: _ACEOF
27428: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27429: { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27430: $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27431: { (exit 1); exit 1; }; }
27432: fi # test -n "$CONFIG_HEADERS"
27433:
27434:
27435: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27436: shift
27437: for ac_tag
27438: do
27439: case $ac_tag in
27440: :[FHLC]) ac_mode=$ac_tag; continue;;
27441: esac
27442: case $ac_mode$ac_tag in
27443: :[FHL]*:*);;
27444: :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27445: $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27446: { (exit 1); exit 1; }; };;
27447: :[FH]-) ac_tag=-:-;;
27448: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27449: esac
27450: ac_save_IFS=$IFS
27451: IFS=:
27452: set x $ac_tag
27453: IFS=$ac_save_IFS
27454: shift
27455: ac_file=$1
27456: shift
27457:
27458: case $ac_mode in
27459: :L) ac_source=$1;;
27460: :[FH])
27461: ac_file_inputs=
27462: for ac_f
27463: do
27464: case $ac_f in
27465: -) ac_f="$tmp/stdin";;
27466: *) # Look for the file first in the build tree, then in the source tree
27467: # (if the path is not absolute). The absolute path cannot be DOS-style,
27468: # because $ac_f cannot contain `:'.
27469: test -f "$ac_f" ||
27470: case $ac_f in
27471: [\\/$]*) false;;
27472: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27473: esac ||
27474: { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27475: $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27476: { (exit 1); exit 1; }; };;
27477: esac
27478: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27479: ac_file_inputs="$ac_file_inputs '$ac_f'"
27480: done
27481:
27482: # Let's still pretend it is `configure' which instantiates (i.e., don't
27483: # use $as_me), people would be surprised to read:
27484: # /* config.h. Generated by config.status. */
27485: configure_input='Generated from '`
27486: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27487: `' by configure.'
27488: if test x"$ac_file" != x-; then
27489: configure_input="$ac_file. $configure_input"
27490: { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27491: $as_echo "$as_me: creating $ac_file" >&6;}
27492: fi
27493: # Neutralize special characters interpreted by sed in replacement strings.
27494: case $configure_input in #(
27495: *\&* | *\|* | *\\* )
27496: ac_sed_conf_input=`$as_echo "$configure_input" |
27497: sed 's/[\\\\&|]/\\\\&/g'`;; #(
27498: *) ac_sed_conf_input=$configure_input;;
27499: esac
27500:
27501: case $ac_tag in
27502: *:-:* | *:-) cat >"$tmp/stdin" \
27503: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27504: $as_echo "$as_me: error: could not create $ac_file" >&2;}
27505: { (exit 1); exit 1; }; } ;;
27506: esac
27507: ;;
27508: esac
27509:
27510: ac_dir=`$as_dirname -- "$ac_file" ||
27511: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27512: X"$ac_file" : 'X\(//\)[^/]' \| \
27513: X"$ac_file" : 'X\(//\)$' \| \
27514: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27515: $as_echo X"$ac_file" |
27516: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27517: s//\1/
27518: q
27519: }
27520: /^X\(\/\/\)[^/].*/{
27521: s//\1/
27522: q
27523: }
27524: /^X\(\/\/\)$/{
27525: s//\1/
27526: q
27527: }
27528: /^X\(\/\).*/{
27529: s//\1/
27530: q
27531: }
27532: s/.*/./; q'`
27533: { as_dir="$ac_dir"
27534: case $as_dir in #(
27535: -*) as_dir=./$as_dir;;
27536: esac
27537: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27538: as_dirs=
27539: while :; do
27540: case $as_dir in #(
27541: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27542: *) as_qdir=$as_dir;;
27543: esac
27544: as_dirs="'$as_qdir' $as_dirs"
27545: as_dir=`$as_dirname -- "$as_dir" ||
27546: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27547: X"$as_dir" : 'X\(//\)[^/]' \| \
27548: X"$as_dir" : 'X\(//\)$' \| \
27549: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27550: $as_echo X"$as_dir" |
27551: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27552: s//\1/
27553: q
27554: }
27555: /^X\(\/\/\)[^/].*/{
27556: s//\1/
27557: q
27558: }
27559: /^X\(\/\/\)$/{
27560: s//\1/
27561: q
27562: }
27563: /^X\(\/\).*/{
27564: s//\1/
27565: q
27566: }
27567: s/.*/./; q'`
27568: test -d "$as_dir" && break
27569: done
27570: test -z "$as_dirs" || eval "mkdir $as_dirs"
27571: } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27572: $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27573: { (exit 1); exit 1; }; }; }
27574: ac_builddir=.
27575:
27576: case "$ac_dir" in
27577: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27578: *)
27579: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27580: # A ".." for each directory in $ac_dir_suffix.
27581: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27582: case $ac_top_builddir_sub in
27583: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27584: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27585: esac ;;
27586: esac
27587: ac_abs_top_builddir=$ac_pwd
27588: ac_abs_builddir=$ac_pwd$ac_dir_suffix
27589: # for backward compatibility:
27590: ac_top_builddir=$ac_top_build_prefix
27591:
27592: case $srcdir in
27593: .) # We are building in place.
27594: ac_srcdir=.
27595: ac_top_srcdir=$ac_top_builddir_sub
27596: ac_abs_top_srcdir=$ac_pwd ;;
27597: [\\/]* | ?:[\\/]* ) # Absolute name.
27598: ac_srcdir=$srcdir$ac_dir_suffix;
27599: ac_top_srcdir=$srcdir
27600: ac_abs_top_srcdir=$srcdir ;;
27601: *) # Relative name.
27602: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27603: ac_top_srcdir=$ac_top_build_prefix$srcdir
27604: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27605: esac
27606: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27607:
27608:
27609: case $ac_mode in
27610: :F)
27611: #
27612: # CONFIG_FILE
27613: #
27614:
27615: case $INSTALL in
27616: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27617: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27618: esac
27619: ac_MKDIR_P=$MKDIR_P
27620: case $MKDIR_P in
27621: [\\/$]* | ?:[\\/]* ) ;;
27622: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27623: esac
27624: _ACEOF
27625:
27626: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27627: # If the template does not know about datarootdir, expand it.
27628: # FIXME: This hack should be removed a few years after 2.60.
27629: ac_datarootdir_hack=; ac_datarootdir_seen=
27630:
27631: ac_sed_dataroot='
27632: /datarootdir/ {
27633: p
27634: q
27635: }
27636: /@datadir@/p
27637: /@docdir@/p
27638: /@infodir@/p
27639: /@localedir@/p
27640: /@mandir@/p
27641: '
27642: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27643: *datarootdir*) ac_datarootdir_seen=yes;;
27644: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27645: { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27646: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27647: _ACEOF
27648: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27649: ac_datarootdir_hack='
27650: s&@datadir@&$datadir&g
27651: s&@docdir@&$docdir&g
27652: s&@infodir@&$infodir&g
27653: s&@localedir@&$localedir&g
27654: s&@mandir@&$mandir&g
27655: s&\\\${datarootdir}&$datarootdir&g' ;;
27656: esac
27657: _ACEOF
27658:
27659: # Neutralize VPATH when `$srcdir' = `.'.
27660: # Shell code in configure.ac might set extrasub.
27661: # FIXME: do we really want to maintain this feature?
27662: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27663: ac_sed_extra="$ac_vpsub
27664: $extrasub
27665: _ACEOF
27666: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27667: :t
27668: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27669: s|@configure_input@|$ac_sed_conf_input|;t t
27670: s&@top_builddir@&$ac_top_builddir_sub&;t t
27671: s&@top_build_prefix@&$ac_top_build_prefix&;t t
27672: s&@srcdir@&$ac_srcdir&;t t
27673: s&@abs_srcdir@&$ac_abs_srcdir&;t t
27674: s&@top_srcdir@&$ac_top_srcdir&;t t
27675: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27676: s&@builddir@&$ac_builddir&;t t
27677: s&@abs_builddir@&$ac_abs_builddir&;t t
27678: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27679: s&@INSTALL@&$ac_INSTALL&;t t
27680: s&@MKDIR_P@&$ac_MKDIR_P&;t t
27681: $ac_datarootdir_hack
27682: "
27683: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27684: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27685: $as_echo "$as_me: error: could not create $ac_file" >&2;}
27686: { (exit 1); exit 1; }; }
27687:
27688: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27689: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27690: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27691: { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27692: which seems to be undefined. Please make sure it is defined." >&5
27693: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27694: which seems to be undefined. Please make sure it is defined." >&2;}
27695:
27696: rm -f "$tmp/stdin"
27697: case $ac_file in
27698: -) cat "$tmp/out" && rm -f "$tmp/out";;
27699: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27700: esac \
27701: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27702: $as_echo "$as_me: error: could not create $ac_file" >&2;}
27703: { (exit 1); exit 1; }; }
27704: ;;
27705: :H)
27706: #
27707: # CONFIG_HEADER
27708: #
27709: if test x"$ac_file" != x-; then
27710: {
27711: $as_echo "/* $configure_input */" \
27712: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27713: } >"$tmp/config.h" \
27714: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27715: $as_echo "$as_me: error: could not create $ac_file" >&2;}
27716: { (exit 1); exit 1; }; }
27717: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27718: { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27719: $as_echo "$as_me: $ac_file is unchanged" >&6;}
27720: else
27721: rm -f "$ac_file"
27722: mv "$tmp/config.h" "$ac_file" \
27723: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27724: $as_echo "$as_me: error: could not create $ac_file" >&2;}
27725: { (exit 1); exit 1; }; }
27726: fi
27727: else
27728: $as_echo "/* $configure_input */" \
27729: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27730: || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27731: $as_echo "$as_me: error: could not create -" >&2;}
27732: { (exit 1); exit 1; }; }
27733: fi
27734: # Compute "$ac_file"'s index in $config_headers.
27735: _am_arg="$ac_file"
27736: _am_stamp_count=1
27737: for _am_header in $config_headers :; do
27738: case $_am_header in
27739: $_am_arg | $_am_arg:* )
27740: break ;;
27741: * )
27742: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27743: esac
27744: done
27745: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27746: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27747: X"$_am_arg" : 'X\(//\)[^/]' \| \
27748: X"$_am_arg" : 'X\(//\)$' \| \
27749: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27750: $as_echo X"$_am_arg" |
27751: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27752: s//\1/
27753: q
27754: }
27755: /^X\(\/\/\)[^/].*/{
27756: s//\1/
27757: q
27758: }
27759: /^X\(\/\/\)$/{
27760: s//\1/
27761: q
27762: }
27763: /^X\(\/\).*/{
27764: s//\1/
27765: q
27766: }
27767: s/.*/./; q'`/stamp-h$_am_stamp_count
27768: ;;
27769:
27770: :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27771: $as_echo "$as_me: executing $ac_file commands" >&6;}
27772: ;;
27773: esac
27774:
27775:
27776: case $ac_file$ac_mode in
27777: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27778: # Autoconf 2.62 quotes --file arguments for eval, but not when files
27779: # are listed without --file. Let's play safe and only enable the eval
27780: # if we detect the quoting.
27781: case $CONFIG_FILES in
27782: *\'*) eval set x "$CONFIG_FILES" ;;
27783: *) set x $CONFIG_FILES ;;
27784: esac
27785: shift
27786: for mf
27787: do
27788: # Strip MF so we end up with the name of the file.
27789: mf=`echo "$mf" | sed -e 's/:.*$//'`
27790: # Check whether this is an Automake generated Makefile or not.
27791: # We used to match only the files named `Makefile.in', but
27792: # some people rename them; so instead we look at the file content.
27793: # Grep'ing the first line is not enough: some people post-process
27794: # each Makefile.in and add a new line on top of each file to say so.
27795: # Grep'ing the whole file is not good either: AIX grep has a line
27796: # limit of 2048, but all sed's we know have understand at least 4000.
27797: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27798: dirpart=`$as_dirname -- "$mf" ||
27799: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27800: X"$mf" : 'X\(//\)[^/]' \| \
27801: X"$mf" : 'X\(//\)$' \| \
27802: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27803: $as_echo X"$mf" |
27804: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27805: s//\1/
27806: q
27807: }
27808: /^X\(\/\/\)[^/].*/{
27809: s//\1/
27810: q
27811: }
27812: /^X\(\/\/\)$/{
27813: s//\1/
27814: q
27815: }
27816: /^X\(\/\).*/{
27817: s//\1/
27818: q
27819: }
27820: s/.*/./; q'`
27821: else
27822: continue
27823: fi
27824: # Extract the definition of DEPDIR, am__include, and am__quote
27825: # from the Makefile without running `make'.
27826: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27827: test -z "$DEPDIR" && continue
27828: am__include=`sed -n 's/^am__include = //p' < "$mf"`
27829: test -z "am__include" && continue
27830: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27831: # When using ansi2knr, U may be empty or an underscore; expand it
27832: U=`sed -n 's/^U = //p' < "$mf"`
27833: # Find all dependency output files, they are included files with
27834: # $(DEPDIR) in their names. We invoke sed twice because it is the
27835: # simplest approach to changing $(DEPDIR) to its actual value in the
27836: # expansion.
27837: for file in `sed -n "
27838: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27839: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27840: # Make sure the directory exists.
27841: test -f "$dirpart/$file" && continue
27842: fdir=`$as_dirname -- "$file" ||
27843: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27844: X"$file" : 'X\(//\)[^/]' \| \
27845: X"$file" : 'X\(//\)$' \| \
27846: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27847: $as_echo X"$file" |
27848: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27849: s//\1/
27850: q
27851: }
27852: /^X\(\/\/\)[^/].*/{
27853: s//\1/
27854: q
27855: }
27856: /^X\(\/\/\)$/{
27857: s//\1/
27858: q
27859: }
27860: /^X\(\/\).*/{
27861: s//\1/
27862: q
27863: }
27864: s/.*/./; q'`
27865: { as_dir=$dirpart/$fdir
27866: case $as_dir in #(
27867: -*) as_dir=./$as_dir;;
27868: esac
27869: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27870: as_dirs=
27871: while :; do
27872: case $as_dir in #(
27873: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27874: *) as_qdir=$as_dir;;
27875: esac
27876: as_dirs="'$as_qdir' $as_dirs"
27877: as_dir=`$as_dirname -- "$as_dir" ||
27878: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27879: X"$as_dir" : 'X\(//\)[^/]' \| \
27880: X"$as_dir" : 'X\(//\)$' \| \
27881: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27882: $as_echo X"$as_dir" |
27883: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27884: s//\1/
27885: q
27886: }
27887: /^X\(\/\/\)[^/].*/{
27888: s//\1/
27889: q
27890: }
27891: /^X\(\/\/\)$/{
27892: s//\1/
27893: q
27894: }
27895: /^X\(\/\).*/{
27896: s//\1/
27897: q
27898: }
27899: s/.*/./; q'`
27900: test -d "$as_dir" && break
27901: done
27902: test -z "$as_dirs" || eval "mkdir $as_dirs"
27903: } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27904: $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27905: { (exit 1); exit 1; }; }; }
27906: # echo "creating $dirpart/$file"
27907: echo '# dummy' > "$dirpart/$file"
27908: done
27909: done
27910: }
27911: ;;
27912: "libtool":C)
27913:
27914: # See if we are running on zsh, and set the options which allow our
27915: # commands through without removal of \ escapes.
27916: if test -n "${ZSH_VERSION+set}" ; then
27917: setopt NO_GLOB_SUBST
27918: fi
27919:
27920: cfgfile="${ofile}T"
27921: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27922: $RM "$cfgfile"
27923:
27924: cat <<_LT_EOF >> "$cfgfile"
27925: #! $SHELL
27926:
27927: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27928: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27929: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27930: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27931: #
27932: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27933: # 2006, 2007, 2008 Free Software Foundation, Inc.
27934: # Written by Gordon Matzigkeit, 1996
27935: #
27936: # This file is part of GNU Libtool.
27937: #
27938: # GNU Libtool is free software; you can redistribute it and/or
27939: # modify it under the terms of the GNU General Public License as
27940: # published by the Free Software Foundation; either version 2 of
27941: # the License, or (at your option) any later version.
27942: #
27943: # As a special exception to the GNU General Public License,
27944: # if you distribute this file as part of a program or library that
27945: # is built using GNU Libtool, you may include this file under the
27946: # same distribution terms that you use for the rest of that program.
27947: #
27948: # GNU Libtool is distributed in the hope that it will be useful,
27949: # but WITHOUT ANY WARRANTY; without even the implied warranty of
27950: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27951: # GNU General Public License for more details.
27952: #
27953: # You should have received a copy of the GNU General Public License
27954: # along with GNU Libtool; see the file COPYING. If not, a copy
27955: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27956: # obtained by writing to the Free Software Foundation, Inc.,
27957: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27958:
27959:
27960: # The names of the tagged configurations supported by this script.
27961: available_tags="RC "
27962:
27963: # ### BEGIN LIBTOOL CONFIG
27964:
27965: # Which release of libtool.m4 was used?
27966: macro_version=$macro_version
27967: macro_revision=$macro_revision
27968:
27969: # Whether or not to build static libraries.
27970: build_old_libs=$enable_static
27971:
27972: # Assembler program.
27973: AS=$AS
27974:
27975: # DLL creation program.
27976: DLLTOOL=$DLLTOOL
27977:
27978: # Object dumper program.
27979: OBJDUMP=$OBJDUMP
27980:
27981: # Whether or not to build shared libraries.
27982: build_libtool_libs=$enable_shared
27983:
27984: # What type of objects to build.
27985: pic_mode=$pic_mode
27986:
27987: # Whether or not to optimize for fast installation.
27988: fast_install=$enable_fast_install
27989:
27990: # The host system.
27991: host_alias=$host_alias
27992: host=$host
27993: host_os=$host_os
27994:
27995: # The build system.
27996: build_alias=$build_alias
27997: build=$build
27998: build_os=$build_os
27999:
28000: # A sed program that does not truncate output.
28001: SED=$lt_SED
28002:
28003: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28004: Xsed="\$SED -e 1s/^X//"
28005:
28006: # A grep program that handles long lines.
28007: GREP=$lt_GREP
28008:
28009: # An ERE matcher.
28010: EGREP=$lt_EGREP
28011:
28012: # A literal string matcher.
28013: FGREP=$lt_FGREP
28014:
28015: # A BSD- or MS-compatible name lister.
28016: NM=$lt_NM
28017:
28018: # Whether we need soft or hard links.
28019: LN_S=$lt_LN_S
28020:
28021: # What is the maximum length of a command?
28022: max_cmd_len=$max_cmd_len
28023:
28024: # Object file suffix (normally "o").
28025: objext=$ac_objext
28026:
28027: # Executable file suffix (normally "").
28028: exeext=$exeext
28029:
28030: # whether the shell understands "unset".
28031: lt_unset=$lt_unset
28032:
28033: # turn spaces into newlines.
28034: SP2NL=$lt_lt_SP2NL
28035:
28036: # turn newlines into spaces.
28037: NL2SP=$lt_lt_NL2SP
28038:
28039: # How to create reloadable object files.
28040: reload_flag=$lt_reload_flag
28041: reload_cmds=$lt_reload_cmds
28042:
28043: # Method to check whether dependent libraries are shared objects.
28044: deplibs_check_method=$lt_deplibs_check_method
28045:
28046: # Command to use when deplibs_check_method == "file_magic".
28047: file_magic_cmd=$lt_file_magic_cmd
28048:
28049: # The archiver.
28050: AR=$lt_AR
28051: AR_FLAGS=$lt_AR_FLAGS
28052:
28053: # A symbol stripping program.
28054: STRIP=$lt_STRIP
28055:
28056: # Commands used to install an old-style archive.
28057: RANLIB=$lt_RANLIB
28058: old_postinstall_cmds=$lt_old_postinstall_cmds
28059: old_postuninstall_cmds=$lt_old_postuninstall_cmds
28060:
28061: # A C compiler.
28062: LTCC=$lt_CC
28063:
28064: # LTCC compiler flags.
28065: LTCFLAGS=$lt_CFLAGS
28066:
28067: # Take the output of nm and produce a listing of raw symbols and C names.
28068: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28069:
28070: # Transform the output of nm in a proper C declaration.
28071: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28072:
28073: # Transform the output of nm in a C name address pair.
28074: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28075:
28076: # Transform the output of nm in a C name address pair when lib prefix is needed.
28077: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28078:
28079: # The name of the directory that contains temporary libtool files.
28080: objdir=$objdir
28081:
28082: # Shell to use when invoking shell scripts.
28083: SHELL=$lt_SHELL
28084:
28085: # An echo program that does not interpret backslashes.
28086: ECHO=$lt_ECHO
28087:
28088: # Used to examine libraries when file_magic_cmd begins with "file".
28089: MAGIC_CMD=$MAGIC_CMD
28090:
28091: # Must we lock files when doing compilation?
28092: need_locks=$lt_need_locks
28093:
28094: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28095: DSYMUTIL=$lt_DSYMUTIL
28096:
28097: # Tool to change global to local symbols on Mac OS X.
28098: NMEDIT=$lt_NMEDIT
28099:
28100: # Tool to manipulate fat objects and archives on Mac OS X.
28101: LIPO=$lt_LIPO
28102:
28103: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28104: OTOOL=$lt_OTOOL
28105:
28106: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28107: OTOOL64=$lt_OTOOL64
28108:
28109: # Old archive suffix (normally "a").
28110: libext=$libext
28111:
28112: # Shared library suffix (normally ".so").
28113: shrext_cmds=$lt_shrext_cmds
28114:
28115: # The commands to extract the exported symbol list from a shared archive.
28116: extract_expsyms_cmds=$lt_extract_expsyms_cmds
28117:
28118: # Variables whose values should be saved in libtool wrapper scripts and
28119: # restored at link time.
28120: variables_saved_for_relink=$lt_variables_saved_for_relink
28121:
28122: # Do we need the "lib" prefix for modules?
28123: need_lib_prefix=$need_lib_prefix
28124:
28125: # Do we need a version for libraries?
28126: need_version=$need_version
28127:
28128: # Library versioning type.
28129: version_type=$version_type
28130:
28131: # Shared library runtime path variable.
28132: runpath_var=$runpath_var
28133:
28134: # Shared library path variable.
28135: shlibpath_var=$shlibpath_var
28136:
28137: # Is shlibpath searched before the hard-coded library search path?
28138: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28139:
28140: # Format of library name prefix.
28141: libname_spec=$lt_libname_spec
28142:
28143: # List of archive names. First name is the real one, the rest are links.
28144: # The last name is the one that the linker finds with -lNAME
28145: library_names_spec=$lt_library_names_spec
28146:
28147: # The coded name of the library, if different from the real name.
28148: soname_spec=$lt_soname_spec
28149:
28150: # Command to use after installation of a shared archive.
28151: postinstall_cmds=$lt_postinstall_cmds
28152:
28153: # Command to use after uninstallation of a shared archive.
28154: postuninstall_cmds=$lt_postuninstall_cmds
28155:
28156: # Commands used to finish a libtool library installation in a directory.
28157: finish_cmds=$lt_finish_cmds
28158:
28159: # As "finish_cmds", except a single script fragment to be evaled but
28160: # not shown.
28161: finish_eval=$lt_finish_eval
28162:
28163: # Whether we should hardcode library paths into libraries.
28164: hardcode_into_libs=$hardcode_into_libs
28165:
28166: # Compile-time system search path for libraries.
28167: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28168:
28169: # Run-time system search path for libraries.
28170: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28171:
28172: # Whether dlopen is supported.
28173: dlopen_support=$enable_dlopen
28174:
28175: # Whether dlopen of programs is supported.
28176: dlopen_self=$enable_dlopen_self
28177:
28178: # Whether dlopen of statically linked programs is supported.
28179: dlopen_self_static=$enable_dlopen_self_static
28180:
28181: # Commands to strip libraries.
28182: old_striplib=$lt_old_striplib
28183: striplib=$lt_striplib
28184:
28185:
28186: # The linker used to build libraries.
28187: LD=$lt_LD
28188:
28189: # Commands used to build an old-style archive.
28190: old_archive_cmds=$lt_old_archive_cmds
28191:
28192: # A language specific compiler.
28193: CC=$lt_compiler
28194:
28195: # Is the compiler the GNU compiler?
28196: with_gcc=$GCC
28197:
28198: # Compiler flag to turn off builtin functions.
28199: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28200:
28201: # How to pass a linker flag through the compiler.
28202: wl=$lt_lt_prog_compiler_wl
28203:
28204: # Additional compiler flags for building library objects.
28205: pic_flag=$lt_lt_prog_compiler_pic
28206:
28207: # Compiler flag to prevent dynamic linking.
28208: link_static_flag=$lt_lt_prog_compiler_static
28209:
28210: # Does compiler simultaneously support -c and -o options?
28211: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28212:
28213: # Whether or not to add -lc for building shared libraries.
28214: build_libtool_need_lc=$archive_cmds_need_lc
28215:
28216: # Whether or not to disallow shared libs when runtime libs are static.
28217: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28218:
28219: # Compiler flag to allow reflexive dlopens.
28220: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28221:
28222: # Compiler flag to generate shared objects directly from archives.
28223: whole_archive_flag_spec=$lt_whole_archive_flag_spec
28224:
28225: # Whether the compiler copes with passing no objects directly.
28226: compiler_needs_object=$lt_compiler_needs_object
28227:
28228: # Create an old-style archive from a shared archive.
28229: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28230:
28231: # Create a temporary old-style archive to link instead of a shared archive.
28232: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28233:
28234: # Commands used to build a shared archive.
28235: archive_cmds=$lt_archive_cmds
28236: archive_expsym_cmds=$lt_archive_expsym_cmds
28237:
28238: # Commands used to build a loadable module if different from building
28239: # a shared archive.
28240: module_cmds=$lt_module_cmds
28241: module_expsym_cmds=$lt_module_expsym_cmds
28242:
28243: # Whether we are building with GNU ld or not.
28244: with_gnu_ld=$lt_with_gnu_ld
28245:
28246: # Flag that allows shared libraries with undefined symbols to be built.
28247: allow_undefined_flag=$lt_allow_undefined_flag
28248:
28249: # Flag that enforces no undefined symbols.
28250: no_undefined_flag=$lt_no_undefined_flag
28251:
28252: # Flag to hardcode \$libdir into a binary during linking.
28253: # This must work even if \$libdir does not exist
28254: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28255:
28256: # If ld is used when linking, flag to hardcode \$libdir into a binary
28257: # during linking. This must work even if \$libdir does not exist.
28258: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28259:
28260: # Whether we need a single "-rpath" flag with a separated argument.
28261: hardcode_libdir_separator=$lt_hardcode_libdir_separator
28262:
28263: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28264: # DIR into the resulting binary.
28265: hardcode_direct=$hardcode_direct
28266:
28267: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28268: # DIR into the resulting binary and the resulting library dependency is
28269: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28270: # library is relocated.
28271: hardcode_direct_absolute=$hardcode_direct_absolute
28272:
28273: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28274: # into the resulting binary.
28275: hardcode_minus_L=$hardcode_minus_L
28276:
28277: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28278: # into the resulting binary.
28279: hardcode_shlibpath_var=$hardcode_shlibpath_var
28280:
28281: # Set to "yes" if building a shared library automatically hardcodes DIR
28282: # into the library and all subsequent libraries and executables linked
28283: # against it.
28284: hardcode_automatic=$hardcode_automatic
28285:
28286: # Set to yes if linker adds runtime paths of dependent libraries
28287: # to runtime path list.
28288: inherit_rpath=$inherit_rpath
28289:
28290: # Whether libtool must link a program against all its dependency libraries.
28291: link_all_deplibs=$link_all_deplibs
28292:
28293: # Fix the shell variable \$srcfile for the compiler.
28294: fix_srcfile_path=$lt_fix_srcfile_path
28295:
28296: # Set to "yes" if exported symbols are required.
28297: always_export_symbols=$always_export_symbols
28298:
28299: # The commands to list exported symbols.
28300: export_symbols_cmds=$lt_export_symbols_cmds
28301:
28302: # Symbols that should not be listed in the preloaded symbols.
28303: exclude_expsyms=$lt_exclude_expsyms
28304:
28305: # Symbols that must always be exported.
28306: include_expsyms=$lt_include_expsyms
28307:
28308: # Commands necessary for linking programs (against libraries) with templates.
28309: prelink_cmds=$lt_prelink_cmds
28310:
28311: # Specify filename containing input files.
28312: file_list_spec=$lt_file_list_spec
28313:
28314: # How to hardcode a shared library path into an executable.
28315: hardcode_action=$hardcode_action
28316:
28317: # ### END LIBTOOL CONFIG
28318:
28319: _LT_EOF
28320:
28321: case $host_os in
28322: aix3*)
28323: cat <<\_LT_EOF >> "$cfgfile"
28324: # AIX sometimes has problems with the GCC collect2 program. For some
28325: # reason, if we set the COLLECT_NAMES environment variable, the problems
28326: # vanish in a puff of smoke.
28327: if test "X${COLLECT_NAMES+set}" != Xset; then
28328: COLLECT_NAMES=
28329: export COLLECT_NAMES
28330: fi
28331: _LT_EOF
28332: ;;
28333: esac
28334:
28335:
28336: ltmain="$ac_aux_dir/ltmain.sh"
28337:
28338:
28339: # We use sed instead of cat because bash on DJGPP gets confused if
28340: # if finds mixed CR/LF and LF-only lines. Since sed operates in
28341: # text mode, it properly converts lines to CR/LF. This bash problem
28342: # is reportedly fixed, but why not run on old versions too?
28343: sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28344: || (rm -f "$cfgfile"; exit 1)
28345:
28346: case $xsi_shell in
28347: yes)
28348: cat << \_LT_EOF >> "$cfgfile"
28349:
28350: # func_dirname file append nondir_replacement
28351: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28352: # otherwise set result to NONDIR_REPLACEMENT.
28353: func_dirname ()
28354: {
28355: case ${1} in
28356: */*) func_dirname_result="${1%/*}${2}" ;;
28357: * ) func_dirname_result="${3}" ;;
28358: esac
28359: }
28360:
28361: # func_basename file
28362: func_basename ()
28363: {
28364: func_basename_result="${1##*/}"
28365: }
28366:
28367: # func_dirname_and_basename file append nondir_replacement
28368: # perform func_basename and func_dirname in a single function
28369: # call:
28370: # dirname: Compute the dirname of FILE. If nonempty,
28371: # add APPEND to the result, otherwise set result
28372: # to NONDIR_REPLACEMENT.
28373: # value returned in "$func_dirname_result"
28374: # basename: Compute filename of FILE.
28375: # value retuned in "$func_basename_result"
28376: # Implementation must be kept synchronized with func_dirname
28377: # and func_basename. For efficiency, we do not delegate to
28378: # those functions but instead duplicate the functionality here.
28379: func_dirname_and_basename ()
28380: {
28381: case ${1} in
28382: */*) func_dirname_result="${1%/*}${2}" ;;
28383: * ) func_dirname_result="${3}" ;;
28384: esac
28385: func_basename_result="${1##*/}"
28386: }
28387:
28388: # func_stripname prefix suffix name
28389: # strip PREFIX and SUFFIX off of NAME.
28390: # PREFIX and SUFFIX must not contain globbing or regex special
28391: # characters, hashes, percent signs, but SUFFIX may contain a leading
28392: # dot (in which case that matches only a dot).
28393: func_stripname ()
28394: {
28395: # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28396: # positional parameters, so assign one to ordinary parameter first.
28397: func_stripname_result=${3}
28398: func_stripname_result=${func_stripname_result#"${1}"}
28399: func_stripname_result=${func_stripname_result%"${2}"}
28400: }
28401:
28402: # func_opt_split
28403: func_opt_split ()
28404: {
28405: func_opt_split_opt=${1%%=*}
28406: func_opt_split_arg=${1#*=}
28407: }
28408:
28409: # func_lo2o object
28410: func_lo2o ()
28411: {
28412: case ${1} in
28413: *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28414: *) func_lo2o_result=${1} ;;
28415: esac
28416: }
28417:
28418: # func_xform libobj-or-source
28419: func_xform ()
28420: {
28421: func_xform_result=${1%.*}.lo
28422: }
28423:
28424: # func_arith arithmetic-term...
28425: func_arith ()
28426: {
28427: func_arith_result=$(( $* ))
28428: }
28429:
28430: # func_len string
28431: # STRING may not start with a hyphen.
28432: func_len ()
28433: {
28434: func_len_result=${#1}
28435: }
28436:
28437: _LT_EOF
28438: ;;
28439: *) # Bourne compatible functions.
28440: cat << \_LT_EOF >> "$cfgfile"
28441:
28442: # func_dirname file append nondir_replacement
28443: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28444: # otherwise set result to NONDIR_REPLACEMENT.
28445: func_dirname ()
28446: {
28447: # Extract subdirectory from the argument.
28448: func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
28449: if test "X$func_dirname_result" = "X${1}"; then
28450: func_dirname_result="${3}"
28451: else
28452: func_dirname_result="$func_dirname_result${2}"
28453: fi
28454: }
28455:
28456: # func_basename file
28457: func_basename ()
28458: {
28459: func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
28460: }
28461:
28462:
28463: # func_stripname prefix suffix name
28464: # strip PREFIX and SUFFIX off of NAME.
28465: # PREFIX and SUFFIX must not contain globbing or regex special
28466: # characters, hashes, percent signs, but SUFFIX may contain a leading
28467: # dot (in which case that matches only a dot).
28468: # func_strip_suffix prefix name
28469: func_stripname ()
28470: {
28471: case ${2} in
28472: .*) func_stripname_result=`$ECHO "X${3}" \
28473: | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
28474: *) func_stripname_result=`$ECHO "X${3}" \
28475: | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
28476: esac
28477: }
28478:
28479: # sed scripts:
28480: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28481: my_sed_long_arg='1s/^-[^=]*=//'
28482:
28483: # func_opt_split
28484: func_opt_split ()
28485: {
28486: func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
28487: func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
28488: }
28489:
28490: # func_lo2o object
28491: func_lo2o ()
28492: {
28493: func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
28494: }
28495:
28496: # func_xform libobj-or-source
28497: func_xform ()
28498: {
28499: func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
28500: }
28501:
28502: # func_arith arithmetic-term...
28503: func_arith ()
28504: {
28505: func_arith_result=`expr "$@"`
28506: }
28507:
28508: # func_len string
28509: # STRING may not start with a hyphen.
28510: func_len ()
28511: {
28512: func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28513: }
28514:
28515: _LT_EOF
28516: esac
28517:
28518: case $lt_shell_append in
28519: yes)
28520: cat << \_LT_EOF >> "$cfgfile"
28521:
28522: # func_append var value
28523: # Append VALUE to the end of shell variable VAR.
28524: func_append ()
28525: {
28526: eval "$1+=\$2"
28527: }
28528: _LT_EOF
28529: ;;
28530: *)
28531: cat << \_LT_EOF >> "$cfgfile"
28532:
28533: # func_append var value
28534: # Append VALUE to the end of shell variable VAR.
28535: func_append ()
28536: {
28537: eval "$1=\$$1\$2"
28538: }
28539:
28540: _LT_EOF
28541: ;;
28542: esac
28543:
28544:
28545: sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28546: || (rm -f "$cfgfile"; exit 1)
28547:
28548: mv -f "$cfgfile" "$ofile" ||
28549: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28550: chmod +x "$ofile"
28551:
28552:
28553: cat <<_LT_EOF >> "$ofile"
28554:
28555: # ### BEGIN LIBTOOL TAG CONFIG: RC
28556:
28557: # The linker used to build libraries.
28558: LD=$lt_LD_RC
28559:
28560: # Commands used to build an old-style archive.
28561: old_archive_cmds=$lt_old_archive_cmds_RC
28562:
28563: # A language specific compiler.
28564: CC=$lt_compiler_RC
28565:
28566: # Is the compiler the GNU compiler?
28567: with_gcc=$GCC_RC
28568:
28569: # Compiler flag to turn off builtin functions.
28570: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
28571:
28572: # How to pass a linker flag through the compiler.
28573: wl=$lt_lt_prog_compiler_wl_RC
28574:
28575: # Additional compiler flags for building library objects.
28576: pic_flag=$lt_lt_prog_compiler_pic_RC
28577:
28578: # Compiler flag to prevent dynamic linking.
28579: link_static_flag=$lt_lt_prog_compiler_static_RC
28580:
28581: # Does compiler simultaneously support -c and -o options?
28582: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28583:
28584: # Whether or not to add -lc for building shared libraries.
28585: build_libtool_need_lc=$archive_cmds_need_lc_RC
28586:
28587: # Whether or not to disallow shared libs when runtime libs are static.
28588: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28589:
28590: # Compiler flag to allow reflexive dlopens.
28591: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
28592:
28593: # Compiler flag to generate shared objects directly from archives.
28594: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
28595:
28596: # Whether the compiler copes with passing no objects directly.
28597: compiler_needs_object=$lt_compiler_needs_object_RC
28598:
28599: # Create an old-style archive from a shared archive.
28600: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
28601:
28602: # Create a temporary old-style archive to link instead of a shared archive.
28603: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
28604:
28605: # Commands used to build a shared archive.
28606: archive_cmds=$lt_archive_cmds_RC
28607: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
28608:
28609: # Commands used to build a loadable module if different from building
28610: # a shared archive.
28611: module_cmds=$lt_module_cmds_RC
28612: module_expsym_cmds=$lt_module_expsym_cmds_RC
28613:
28614: # Whether we are building with GNU ld or not.
28615: with_gnu_ld=$lt_with_gnu_ld_RC
28616:
28617: # Flag that allows shared libraries with undefined symbols to be built.
28618: allow_undefined_flag=$lt_allow_undefined_flag_RC
28619:
28620: # Flag that enforces no undefined symbols.
28621: no_undefined_flag=$lt_no_undefined_flag_RC
28622:
28623: # Flag to hardcode \$libdir into a binary during linking.
28624: # This must work even if \$libdir does not exist
28625: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28626:
28627: # If ld is used when linking, flag to hardcode \$libdir into a binary
28628: # during linking. This must work even if \$libdir does not exist.
28629: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
28630:
28631: # Whether we need a single "-rpath" flag with a separated argument.
28632: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28633:
28634: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28635: # DIR into the resulting binary.
28636: hardcode_direct=$hardcode_direct_RC
28637:
28638: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28639: # DIR into the resulting binary and the resulting library dependency is
28640: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28641: # library is relocated.
28642: hardcode_direct_absolute=$hardcode_direct_absolute_RC
28643:
28644: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28645: # into the resulting binary.
28646: hardcode_minus_L=$hardcode_minus_L_RC
28647:
28648: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28649: # into the resulting binary.
28650: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28651:
28652: # Set to "yes" if building a shared library automatically hardcodes DIR
28653: # into the library and all subsequent libraries and executables linked
28654: # against it.
28655: hardcode_automatic=$hardcode_automatic_RC
28656:
28657: # Set to yes if linker adds runtime paths of dependent libraries
28658: # to runtime path list.
28659: inherit_rpath=$inherit_rpath_RC
28660:
28661: # Whether libtool must link a program against all its dependency libraries.
28662: link_all_deplibs=$link_all_deplibs_RC
28663:
28664: # Fix the shell variable \$srcfile for the compiler.
28665: fix_srcfile_path=$lt_fix_srcfile_path_RC
28666:
28667: # Set to "yes" if exported symbols are required.
28668: always_export_symbols=$always_export_symbols_RC
28669:
28670: # The commands to list exported symbols.
28671: export_symbols_cmds=$lt_export_symbols_cmds_RC
28672:
28673: # Symbols that should not be listed in the preloaded symbols.
28674: exclude_expsyms=$lt_exclude_expsyms_RC
28675:
28676: # Symbols that must always be exported.
28677: include_expsyms=$lt_include_expsyms_RC
28678:
28679: # Commands necessary for linking programs (against libraries) with templates.
28680: prelink_cmds=$lt_prelink_cmds_RC
28681:
28682: # Specify filename containing input files.
28683: file_list_spec=$lt_file_list_spec_RC
28684:
28685: # How to hardcode a shared library path into an executable.
28686: hardcode_action=$hardcode_action_RC
28687:
28688: # ### END LIBTOOL TAG CONFIG: RC
28689: _LT_EOF
28690:
28691: ;;
28692: "po-directories":C)
28693: for ac_file in $CONFIG_FILES; do
28694: # Support "outfile[:infile[:infile...]]"
28695: case "$ac_file" in
28696: *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28697: esac
28698: # PO directories have a Makefile.in generated from Makefile.in.in.
28699: case "$ac_file" in */Makefile.in)
28700: # Adjust a relative srcdir.
28701: ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28702: ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28703: ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28704: # In autoconf-2.13 it is called $ac_given_srcdir.
28705: # In autoconf-2.50 it is called $srcdir.
28706: test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28707: case "$ac_given_srcdir" in
28708: .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28709: /*) top_srcdir="$ac_given_srcdir" ;;
28710: *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28711: esac
28712: # Treat a directory as a PO directory if and only if it has a
28713: # POTFILES.in file. This allows packages to have multiple PO
28714: # directories under different names or in different locations.
28715: if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28716: rm -f "$ac_dir/POTFILES"
28717: test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28718: cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28719: POMAKEFILEDEPS="POTFILES.in"
28720: # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28721: # on $ac_dir but don't depend on user-specified configuration
28722: # parameters.
28723: if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28724: # The LINGUAS file contains the set of available languages.
28725: if test -n "$OBSOLETE_ALL_LINGUAS"; then
28726: test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28727: fi
28728: ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28729: # Hide the ALL_LINGUAS assigment from automake < 1.5.
28730: eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28731: POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28732: else
28733: # The set of available languages was given in configure.in.
28734: # Hide the ALL_LINGUAS assigment from automake < 1.5.
28735: eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28736: fi
28737: # Compute POFILES
28738: # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28739: # Compute UPDATEPOFILES
28740: # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28741: # Compute DUMMYPOFILES
28742: # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28743: # Compute GMOFILES
28744: # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28745: case "$ac_given_srcdir" in
28746: .) srcdirpre= ;;
28747: *) srcdirpre='$(srcdir)/' ;;
28748: esac
28749: POFILES=
28750: UPDATEPOFILES=
28751: DUMMYPOFILES=
28752: GMOFILES=
28753: for lang in $ALL_LINGUAS; do
28754: POFILES="$POFILES $srcdirpre$lang.po"
28755: UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28756: DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28757: GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28758: done
28759: # CATALOGS depends on both $ac_dir and the user's LINGUAS
28760: # environment variable.
28761: INST_LINGUAS=
28762: if test -n "$ALL_LINGUAS"; then
28763: for presentlang in $ALL_LINGUAS; do
28764: useit=no
28765: if test "%UNSET%" != "$LINGUAS"; then
28766: desiredlanguages="$LINGUAS"
28767: else
28768: desiredlanguages="$ALL_LINGUAS"
28769: fi
28770: for desiredlang in $desiredlanguages; do
28771: # Use the presentlang catalog if desiredlang is
28772: # a. equal to presentlang, or
28773: # b. a variant of presentlang (because in this case,
28774: # presentlang can be used as a fallback for messages
28775: # which are not translated in the desiredlang catalog).
28776: case "$desiredlang" in
28777: "$presentlang"*) useit=yes;;
28778: esac
28779: done
28780: if test $useit = yes; then
28781: INST_LINGUAS="$INST_LINGUAS $presentlang"
28782: fi
28783: done
28784: fi
28785: CATALOGS=
28786: if test -n "$INST_LINGUAS"; then
28787: for lang in $INST_LINGUAS; do
28788: CATALOGS="$CATALOGS $lang.gmo"
28789: done
28790: fi
28791: test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28792: sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28793: for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28794: if test -f "$f"; then
28795: case "$f" in
28796: *.orig | *.bak | *~) ;;
28797: *) cat "$f" >> "$ac_dir/Makefile" ;;
28798: esac
28799: fi
28800: done
28801: fi
28802: ;;
28803: esac
28804: done ;;
28805:
28806: esac
28807: done # for ac_tag
28808:
28809:
28810: { (exit 0); exit 0; }
28811: _ACEOF
28812: chmod +x $CONFIG_STATUS
28813: ac_clean_files=$ac_clean_files_save
28814:
28815: test $ac_write_fail = 0 ||
28816: { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28817: $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28818: { (exit 1); exit 1; }; }
28819:
28820:
28821: # configure is writing to config.log, and then calls config.status.
28822: # config.status does its own redirection, appending to config.log.
28823: # Unfortunately, on DOS this fails, as config.log is still kept open
28824: # by configure, so config.status won't be able to write to it; its
28825: # output is simply discarded. So we exec the FD to /dev/null,
28826: # effectively closing config.log, so it can be properly (re)opened and
28827: # appended to by config.status. When coming back to configure, we
28828: # need to make the FD available again.
28829: if test "$no_create" != yes; then
28830: ac_cs_success=:
28831: ac_config_status_args=
28832: test "$silent" = yes &&
28833: ac_config_status_args="$ac_config_status_args --quiet"
28834: exec 5>/dev/null
28835: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28836: exec 5>>config.log
28837: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28838: # would make configure fail if this is the last instruction.
28839: $ac_cs_success || { (exit 1); exit 1; }
28840: fi
28841:
28842: #
28843: # CONFIG_SUBDIRS section.
28844: #
28845: if test "$no_recursion" != yes; then
28846:
28847: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28848: # so they do not pile up.
28849: ac_sub_configure_args=
28850: ac_prev=
28851: eval "set x $ac_configure_args"
28852: shift
28853: for ac_arg
28854: do
28855: if test -n "$ac_prev"; then
28856: ac_prev=
28857: continue
28858: fi
28859: case $ac_arg in
28860: -cache-file | --cache-file | --cache-fil | --cache-fi \
28861: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28862: ac_prev=cache_file ;;
28863: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28864: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28865: | --c=*)
28866: ;;
28867: --config-cache | -C)
28868: ;;
28869: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28870: ac_prev=srcdir ;;
28871: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28872: ;;
28873: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28874: ac_prev=prefix ;;
28875: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28876: ;;
28877: --disable-option-checking)
28878: ;;
28879: *)
28880: case $ac_arg in
28881: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28882: esac
28883: ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28884: esac
28885: done
28886:
28887: # Always prepend --prefix to ensure using the same prefix
28888: # in subdir configurations.
28889: ac_arg="--prefix=$prefix"
28890: case $ac_arg in
28891: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28892: esac
28893: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28894:
28895: # Pass --silent
28896: if test "$silent" = yes; then
28897: ac_sub_configure_args="--silent $ac_sub_configure_args"
28898: fi
28899:
28900: # Always prepend --disable-option-checking to silence warnings, since
28901: # different subdirs can have different --enable and --with options.
28902: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28903:
28904: ac_popdir=`pwd`
28905: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28906:
28907: # Do not complain, so a configure script can configure whichever
28908: # parts of a large source tree are present.
28909: test -d "$srcdir/$ac_dir" || continue
28910:
28911: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28912: $as_echo "$as_me:$LINENO: $ac_msg" >&5
28913: $as_echo "$ac_msg" >&6
28914: { as_dir="$ac_dir"
28915: case $as_dir in #(
28916: -*) as_dir=./$as_dir;;
28917: esac
28918: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28919: as_dirs=
28920: while :; do
28921: case $as_dir in #(
28922: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28923: *) as_qdir=$as_dir;;
28924: esac
28925: as_dirs="'$as_qdir' $as_dirs"
28926: as_dir=`$as_dirname -- "$as_dir" ||
28927: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28928: X"$as_dir" : 'X\(//\)[^/]' \| \
28929: X"$as_dir" : 'X\(//\)$' \| \
28930: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28931: $as_echo X"$as_dir" |
28932: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28933: s//\1/
28934: q
28935: }
28936: /^X\(\/\/\)[^/].*/{
28937: s//\1/
28938: q
28939: }
28940: /^X\(\/\/\)$/{
28941: s//\1/
28942: q
28943: }
28944: /^X\(\/\).*/{
28945: s//\1/
28946: q
28947: }
28948: s/.*/./; q'`
28949: test -d "$as_dir" && break
28950: done
28951: test -z "$as_dirs" || eval "mkdir $as_dirs"
28952: } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28953: $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28954: { (exit 1); exit 1; }; }; }
28955: ac_builddir=.
28956:
28957: case "$ac_dir" in
28958: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28959: *)
28960: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28961: # A ".." for each directory in $ac_dir_suffix.
28962: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28963: case $ac_top_builddir_sub in
28964: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28965: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28966: esac ;;
28967: esac
28968: ac_abs_top_builddir=$ac_pwd
28969: ac_abs_builddir=$ac_pwd$ac_dir_suffix
28970: # for backward compatibility:
28971: ac_top_builddir=$ac_top_build_prefix
28972:
28973: case $srcdir in
28974: .) # We are building in place.
28975: ac_srcdir=.
28976: ac_top_srcdir=$ac_top_builddir_sub
28977: ac_abs_top_srcdir=$ac_pwd ;;
28978: [\\/]* | ?:[\\/]* ) # Absolute name.
28979: ac_srcdir=$srcdir$ac_dir_suffix;
28980: ac_top_srcdir=$srcdir
28981: ac_abs_top_srcdir=$srcdir ;;
28982: *) # Relative name.
28983: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28984: ac_top_srcdir=$ac_top_build_prefix$srcdir
28985: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28986: esac
28987: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28988:
28989:
28990: cd "$ac_dir"
28991:
28992: # Check for guested configure; otherwise get Cygnus style configure.
28993: if test -f "$ac_srcdir/configure.gnu"; then
28994: ac_sub_configure=$ac_srcdir/configure.gnu
28995: elif test -f "$ac_srcdir/configure"; then
28996: ac_sub_configure=$ac_srcdir/configure
28997: elif test -f "$ac_srcdir/configure.in"; then
28998: # This should be Cygnus configure.
28999: ac_sub_configure=$ac_aux_dir/configure
29000: else
29001: { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
29002: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
29003: ac_sub_configure=
29004: fi
29005:
29006: # The recursion is here.
29007: if test -n "$ac_sub_configure"; then
29008: # Make the cache file name correct relative to the subdirectory.
29009: case $cache_file in
29010: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
29011: *) # Relative name.
29012: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
29013: esac
29014:
29015: { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
29016: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29017: # The eval makes quoting arguments work.
29018: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
29019: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
29020: { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
29021: $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
29022: { (exit 1); exit 1; }; }
29023: fi
29024:
29025: cd "$ac_popdir"
29026: done
29027: fi
29028: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29029: { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29030: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29031: fi
29032:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>