Annotation of parser3/configure, revision 1.246
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.237 moko 3: # Generated by GNU Autoconf 2.72 for parser 3.5.2b.
1.150 moko 4: #
5: #
1.237 moko 6: # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7: # Inc.
1.150 moko 8: #
1.1 paf 9: #
10: # This configure script is free software; the Free Software Foundation
11: # gives unlimited permission to copy, distribute and modify it.
1.150 moko 12: ## -------------------- ##
13: ## M4sh Initialization. ##
14: ## -------------------- ##
1.62 paf 15:
1.150 moko 16: # Be more Bourne compatible
17: DUALCASE=1; export DUALCASE # for MKS sh
1.237 moko 18: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19: then :
1.62 paf 20: emulate sh
21: NULLCMD=:
1.150 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.150 moko 25: setopt NO_GLOB_SUBST
1.237 moko 26: else case e in #(
27: e) case `(set -o) 2>/dev/null` in #(
1.150 moko 28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
1.237 moko 32: esac ;;
1.150 moko 33: esac
34: fi
35:
36:
1.237 moko 37:
38: # Reset variables that may have inherited troublesome values from
39: # the environment.
40:
41: # IFS needs to be set, to space, tab, and newline, in precisely that order.
42: # (If _AS_PATH_WALK were called with IFS unset, it would have the
43: # side effect of setting IFS to empty, thus disabling word splitting.)
44: # Quoting is to prevent editors from complaining about space-tab.
1.150 moko 45: as_nl='
46: '
47: export as_nl
1.237 moko 48: IFS=" "" $as_nl"
49:
50: PS1='$ '
51: PS2='> '
52: PS4='+ '
53:
54: # Ensure predictable behavior from utilities with locale-dependent output.
55: LC_ALL=C
56: export LC_ALL
57: LANGUAGE=C
58: export LANGUAGE
59:
60: # We cannot yet rely on "unset" to work, but we need these variables
61: # to be unset--not just set to an empty or harmless value--now, to
62: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63: # also avoids known problems related to "unset" and subshell syntax
64: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66: do eval test \${$as_var+y} \
67: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68: done
69:
70: # Ensure that fds 0, 1, and 2 are open.
71: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.62 paf 74:
1.150 moko 75: # The user is always right.
1.237 moko 76: if ${PATH_SEPARATOR+false} :; then
1.150 moko 77: PATH_SEPARATOR=:
78: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80: PATH_SEPARATOR=';'
81: }
1.62 paf 82: fi
83:
84:
1.150 moko 85: # Find who we are. Look in the path if we contain no directory separator.
86: as_myself=
87: case $0 in #((
88: *[\\/]* ) as_myself=$0 ;;
89: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90: for as_dir in $PATH
91: do
92: IFS=$as_save_IFS
1.237 moko 93: case $as_dir in #(((
94: '') as_dir=./ ;;
95: */) ;;
96: *) as_dir=$as_dir/ ;;
97: esac
98: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.150 moko 99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
1.237 moko 104: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.150 moko 105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
1.237 moko 110: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.150 moko 111: exit 1
112: fi
113:
114:
1.166 moko 115: # Use a proper internal environment variable to ensure we don't fall
116: # into an infinite loop, continuously re-executing ourselves.
117: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118: _as_can_reexec=no; export _as_can_reexec;
119: # We cannot yet assume a decent shell, so we have to provide a
120: # neutralization value for shells without unset; and this also
121: # works around shells that cannot unset nonexistent variables.
122: # Preserve -v and -x to the replacement shell.
123: BASH_ENV=/dev/null
124: ENV=/dev/null
125: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126: case $- in # ((((
127: *v*x* | *x*v* ) as_opts=-vx ;;
128: *v* ) as_opts=-v ;;
129: *x* ) as_opts=-x ;;
130: * ) as_opts= ;;
131: esac
132: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133: # Admittedly, this is quite paranoid, since all the known shells bail
1.237 moko 134: # out after a failed 'exec'.
135: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136: exit 255
1.166 moko 137: fi
138: # We don't want this to propagate to other subprocesses.
139: { _as_can_reexec=; unset _as_can_reexec;}
1.150 moko 140: if test "x$CONFIG_SHELL" = x; then
1.237 moko 141: as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142: then :
1.150 moko 143: emulate sh
144: NULLCMD=:
145: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146: # is contrary to our usage. Disable this feature.
147: alias -g '\${1+\"\$@\"}'='\"\$@\"'
148: setopt NO_GLOB_SUBST
1.237 moko 149: else case e in #(
150: e) case \`(set -o) 2>/dev/null\` in #(
1.150 moko 151: *posix*) :
152: set -o posix ;; #(
153: *) :
154: ;;
1.237 moko 155: esac ;;
1.150 moko 156: esac
157: fi
158: "
159: as_required="as_fn_return () { (exit \$1); }
160: as_fn_success () { as_fn_return 0; }
161: as_fn_failure () { as_fn_return 1; }
162: as_fn_ret_success () { return 0; }
163: as_fn_ret_failure () { return 1; }
164:
165: exitcode=0
166: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.237 moko 170: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171: then :
1.150 moko 172:
1.237 moko 173: else case e in #(
174: e) exitcode=1; echo positional parameters were not saved. ;;
175: esac
1.150 moko 176: fi
1.166 moko 177: test x\$exitcode = x0 || exit 1
1.237 moko 178: blah=\$(echo \$(echo blah))
179: test x\"\$blah\" = xblah || exit 1
1.166 moko 180: test -x / || exit 1"
1.150 moko 181: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185:
186: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190: PATH=/empty FPATH=/empty; export PATH FPATH
191: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193: test \$(( 1 + 1 )) = 2 || exit 1"
1.237 moko 194: if (eval "$as_required") 2>/dev/null
195: then :
1.150 moko 196: as_have_required=yes
1.237 moko 197: else case e in #(
198: e) as_have_required=no ;;
199: esac
1.150 moko 200: fi
1.237 moko 201: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202: then :
1.150 moko 203:
1.237 moko 204: else case e in #(
205: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.150 moko 206: as_found=false
207: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.62 paf 208: do
1.150 moko 209: IFS=$as_save_IFS
1.237 moko 210: case $as_dir in #(((
211: '') as_dir=./ ;;
212: */) ;;
213: *) as_dir=$as_dir/ ;;
214: esac
1.150 moko 215: as_found=:
216: case $as_dir in #(
217: /*)
218: for as_base in sh bash ksh sh5; do
219: # Try only shells that exist, to save several forks.
1.237 moko 220: as_shell=$as_dir$as_base
1.150 moko 221: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.237 moko 222: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223: then :
1.150 moko 224: CONFIG_SHELL=$as_shell as_have_required=yes
1.237 moko 225: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226: then :
1.150 moko 227: break 2
228: fi
229: fi
230: done;;
231: esac
232: as_found=false
233: done
1.237 moko 234: IFS=$as_save_IFS
235: if $as_found
236: then :
237:
238: else case e in #(
239: e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241: then :
1.150 moko 242: CONFIG_SHELL=$SHELL as_have_required=yes
1.237 moko 243: fi ;;
244: esac
245: fi
1.150 moko 246:
247:
1.237 moko 248: if test "x$CONFIG_SHELL" != x
249: then :
1.166 moko 250: export CONFIG_SHELL
251: # We cannot yet assume a decent shell, so we have to provide a
252: # neutralization value for shells without unset; and this also
253: # works around shells that cannot unset nonexistent variables.
254: # Preserve -v and -x to the replacement shell.
255: BASH_ENV=/dev/null
256: ENV=/dev/null
257: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258: case $- in # ((((
259: *v*x* | *x*v* ) as_opts=-vx ;;
260: *v* ) as_opts=-v ;;
261: *x* ) as_opts=-x ;;
262: * ) as_opts= ;;
263: esac
264: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265: # Admittedly, this is quite paranoid, since all the known shells bail
1.237 moko 266: # out after a failed 'exec'.
267: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.166 moko 268: exit 255
1.150 moko 269: fi
270:
1.237 moko 271: if test x$as_have_required = xno
272: then :
273: printf "%s\n" "$0: This script requires a shell more modern than all"
274: printf "%s\n" "$0: the shells that I found on your system."
275: if test ${ZSH_VERSION+y} ; then
276: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.62 paf 278: else
1.237 moko 279: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
1.150 moko 280: $0: including any error possibly output before this
281: $0: message. Then install a modern shell, or manually run
282: $0: the script under such a shell if you do have one."
1.62 paf 283: fi
1.150 moko 284: exit 1
1.237 moko 285: fi ;;
286: esac
1.150 moko 287: fi
288: fi
289: SHELL=${CONFIG_SHELL-/bin/sh}
290: export SHELL
291: # Unset more variables known to interfere with behavior of common tools.
292: CLICOLOR_FORCE= GREP_OPTIONS=
293: unset CLICOLOR_FORCE GREP_OPTIONS
294:
295: ## --------------------- ##
296: ## M4sh Shell Functions. ##
297: ## --------------------- ##
298: # as_fn_unset VAR
299: # ---------------
300: # Portably unset VAR.
301: as_fn_unset ()
302: {
303: { eval $1=; unset $1;}
304: }
305: as_unset=as_fn_unset
306:
1.237 moko 307:
1.150 moko 308: # as_fn_set_status STATUS
309: # -----------------------
310: # Set $? to STATUS, without forking.
311: as_fn_set_status ()
312: {
313: return $1
314: } # as_fn_set_status
315:
316: # as_fn_exit STATUS
317: # -----------------
318: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319: as_fn_exit ()
320: {
321: set +e
322: as_fn_set_status $1
323: exit $1
324: } # as_fn_exit
325:
326: # as_fn_mkdir_p
327: # -------------
328: # Create "$as_dir" as a directory, including parents if necessary.
329: as_fn_mkdir_p ()
330: {
331:
332: case $as_dir in #(
333: -*) as_dir=./$as_dir;;
334: esac
335: test -d "$as_dir" || eval $as_mkdir_p || {
336: as_dirs=
337: while :; do
338: case $as_dir in #(
1.237 moko 339: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.150 moko 340: *) as_qdir=$as_dir;;
341: esac
342: as_dirs="'$as_qdir' $as_dirs"
343: as_dir=`$as_dirname -- "$as_dir" ||
344: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345: X"$as_dir" : 'X\(//\)[^/]' \| \
346: X"$as_dir" : 'X\(//\)$' \| \
347: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 348: printf "%s\n" X"$as_dir" |
1.150 moko 349: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350: s//\1/
351: q
352: }
353: /^X\(\/\/\)[^/].*/{
354: s//\1/
355: q
356: }
357: /^X\(\/\/\)$/{
358: s//\1/
359: q
360: }
361: /^X\(\/\).*/{
362: s//\1/
363: q
364: }
365: s/.*/./; q'`
366: test -d "$as_dir" && break
367: done
368: test -z "$as_dirs" || eval "mkdir $as_dirs"
369: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370:
371:
372: } # as_fn_mkdir_p
1.166 moko 373:
374: # as_fn_executable_p FILE
375: # -----------------------
376: # Test if FILE is an executable regular file.
377: as_fn_executable_p ()
378: {
379: test -f "$1" && test -x "$1"
380: } # as_fn_executable_p
1.150 moko 381: # as_fn_append VAR VALUE
382: # ----------------------
383: # Append the text in VALUE to the end of the definition contained in VAR. Take
384: # advantage of any shell optimizations that allow amortized linear growth over
385: # repeated appends, instead of the typical quadratic growth present in naive
386: # implementations.
1.237 moko 387: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388: then :
1.150 moko 389: eval 'as_fn_append ()
390: {
391: eval $1+=\$2
392: }'
1.237 moko 393: else case e in #(
394: e) as_fn_append ()
1.150 moko 395: {
396: eval $1=\$$1\$2
1.237 moko 397: } ;;
398: esac
1.150 moko 399: fi # as_fn_append
400:
401: # as_fn_arith ARG...
402: # ------------------
403: # Perform arithmetic evaluation on the ARGs, and store the result in the
404: # global $as_val. Take advantage of shells that can avoid forks. The arguments
405: # must be portable across $(()) and expr.
1.237 moko 406: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407: then :
1.150 moko 408: eval 'as_fn_arith ()
409: {
410: as_val=$(( $* ))
411: }'
1.237 moko 412: else case e in #(
413: e) as_fn_arith ()
1.150 moko 414: {
415: as_val=`expr "$@" || test $? -eq 1`
1.237 moko 416: } ;;
417: esac
1.150 moko 418: fi # as_fn_arith
419:
420:
421: # as_fn_error STATUS ERROR [LINENO LOG_FD]
422: # ----------------------------------------
423: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425: # script with STATUS, using 1 if that was 0.
426: as_fn_error ()
427: {
428: as_status=$1; test $as_status -eq 0 && as_status=1
429: if test "$4"; then
430: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 431: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.150 moko 432: fi
1.237 moko 433: printf "%s\n" "$as_me: error: $2" >&2
1.150 moko 434: as_fn_exit $as_status
435: } # as_fn_error
1.62 paf 436:
1.150 moko 437: if expr a : '\(a\)' >/dev/null 2>&1 &&
438: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 439: as_expr=expr
440: else
441: as_expr=false
442: fi
443:
1.150 moko 444: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 445: as_basename=basename
446: else
447: as_basename=false
448: fi
449:
1.150 moko 450: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451: as_dirname=dirname
452: else
453: as_dirname=false
454: fi
1.62 paf 455:
1.150 moko 456: as_me=`$as_basename -- "$0" ||
1.62 paf 457: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458: X"$0" : 'X\(//\)$' \| \
1.150 moko 459: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 460: printf "%s\n" X/"$0" |
1.150 moko 461: sed '/^.*\/\([^/][^/]*\)\/*$/{
462: s//\1/
463: q
464: }
465: /^X\/\(\/\/\)$/{
466: s//\1/
467: q
468: }
469: /^X\/\(\/\).*/{
470: s//\1/
471: q
472: }
473: s/.*/./; q'`
1.62 paf 474:
475: # Avoid depending upon Character Ranges.
476: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479: as_cr_digits='0123456789'
480: as_cr_alnum=$as_cr_Letters$as_cr_digits
481:
482:
1.150 moko 483: as_lineno_1=$LINENO as_lineno_1a=$LINENO
484: as_lineno_2=$LINENO as_lineno_2a=$LINENO
485: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488: sed -n '
489: p
490: /[$]LINENO/=
491: ' <$as_myself |
1.62 paf 492: sed '
1.237 moko 493: t clear
494: :clear
1.150 moko 495: s/[$]LINENO.*/&-/
496: t lineno
497: b
498: :lineno
1.62 paf 499: N
1.150 moko 500: :loop
501: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.62 paf 502: t loop
1.150 moko 503: s/-\n.*//
1.62 paf 504: ' >$as_me.lineno &&
1.150 moko 505: chmod +x "$as_me.lineno" ||
1.237 moko 506: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.62 paf 507:
1.166 moko 508: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509: # already done that, so ensure we don't try to do so again and fall
510: # in an infinite loop. This has already happened in practice.
511: _as_can_reexec=no; export _as_can_reexec
1.62 paf 512: # Don't try to exec as it changes $[0], causing all sort of problems
513: # (the dirname of $[0] is not the place where we might find the
1.150 moko 514: # original and so on. Autoconf is especially sensitive to this).
515: . "./$as_me.lineno"
1.62 paf 516: # Exit status is that of the last command.
517: exit
518: }
519:
1.237 moko 520:
521: # Determine whether it's possible to make 'echo' print without a newline.
522: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523: # for compatibility with existing Makefiles.
1.150 moko 524: ECHO_C= ECHO_N= ECHO_T=
525: case `echo -n x` in #(((((
526: -n*)
527: case `echo 'xy\c'` in
528: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529: xy) ECHO_C='\c';;
530: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531: ECHO_T=' ';;
532: esac;;
533: *)
534: ECHO_N='-n';;
1.62 paf 535: esac
536:
1.237 moko 537: # For backward compatibility with old third-party macros, we provide
538: # the shell variables $as_echo and $as_echo_n. New code should use
539: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540: as_echo='printf %s\n'
541: as_echo_n='printf %s'
542:
1.150 moko 543: rm -f conf$$ conf$$.exe conf$$.file
544: if test -d conf$$.dir; then
545: rm -f conf$$.dir/conf$$.file
1.62 paf 546: else
1.150 moko 547: rm -f conf$$.dir
548: mkdir conf$$.dir 2>/dev/null
1.62 paf 549: fi
1.150 moko 550: if (echo >conf$$.file) 2>/dev/null; then
551: if ln -s conf$$.file conf$$ 2>/dev/null; then
552: as_ln_s='ln -s'
553: # ... but there are two gotchas:
1.237 moko 554: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556: # In both cases, we have to default to 'cp -pR'.
1.150 moko 557: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 558: as_ln_s='cp -pR'
1.150 moko 559: elif ln conf$$.file conf$$ 2>/dev/null; then
560: as_ln_s=ln
561: else
1.166 moko 562: as_ln_s='cp -pR'
1.62 paf 563: fi
564: else
1.166 moko 565: as_ln_s='cp -pR'
1.62 paf 566: fi
1.150 moko 567: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568: rmdir conf$$.dir 2>/dev/null
1.62 paf 569:
570: if mkdir -p . 2>/dev/null; then
1.150 moko 571: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 572: else
1.86 paf 573: test -d ./-p && rmdir ./-p
1.62 paf 574: as_mkdir_p=false
575: fi
576:
1.166 moko 577: as_test_x='test -x'
578: as_executable_p=as_fn_executable_p
1.62 paf 579:
580: # Sed expression to map a string onto a valid CPP name.
1.237 moko 581: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.62 paf 583:
584: # Sed expression to map a string onto a valid variable name.
1.237 moko 585: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.62 paf 587:
1.128 moko 588: lt_ltdl_dir='src/lib/ltdl'
589:
590: SHELL=${CONFIG_SHELL-/bin/sh}
591:
1.237 moko 592: lt_dlopen_dir=$lt_ltdl_dir
1.128 moko 593:
1.1 paf 594:
1.150 moko 595: test -n "$DJDIR" || exec 7<&0 </dev/null
596: exec 6>&1
597:
1.62 paf 598: # Name of the host.
1.150 moko 599: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.62 paf 600: # so uname gets run too.
601: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602:
603: #
604: # Initializations.
605: #
1.1 paf 606: ac_default_prefix=/usr/local
1.150 moko 607: ac_clean_files=
1.62 paf 608: ac_config_libobj_dir=.
1.150 moko 609: LIBOBJS=
1.62 paf 610: cross_compiling=no
611: subdirs=
612: MFLAGS=
613: MAKEFLAGS=
614:
615: # Identity of this package.
1.128 moko 616: PACKAGE_NAME='parser'
617: PACKAGE_TARNAME='parser'
1.230 moko 618: PACKAGE_VERSION='3.5.2b'
619: PACKAGE_STRING='parser 3.5.2b'
1.128 moko 620: PACKAGE_BUGREPORT=''
1.150 moko 621: PACKAGE_URL=''
1.62 paf 622:
623: ac_unique_file="README"
624: # Factoring default headers for most tests.
625: ac_includes_default="\
1.237 moko 626: #include <stddef.h>
627: #ifdef HAVE_STDIO_H
628: # include <stdio.h>
1.62 paf 629: #endif
1.237 moko 630: #ifdef HAVE_STDLIB_H
1.62 paf 631: # include <stdlib.h>
632: #endif
1.150 moko 633: #ifdef HAVE_STRING_H
1.62 paf 634: # include <string.h>
635: #endif
1.150 moko 636: #ifdef HAVE_INTTYPES_H
1.62 paf 637: # include <inttypes.h>
638: #endif
1.150 moko 639: #ifdef HAVE_STDINT_H
640: # include <stdint.h>
641: #endif
1.237 moko 642: #ifdef HAVE_STRINGS_H
643: # include <strings.h>
644: #endif
645: #ifdef HAVE_SYS_TYPES_H
646: # include <sys/types.h>
647: #endif
648: #ifdef HAVE_SYS_STAT_H
649: # include <sys/stat.h>
650: #endif
1.150 moko 651: #ifdef HAVE_UNISTD_H
1.62 paf 652: # include <unistd.h>
653: #endif"
654:
1.237 moko 655: ac_header_c_list=
1.150 moko 656: enable_option_checking=no
1.237 moko 657: enable_year2038=no
1.150 moko 658: ac_subst_vars='ltdl_LTLIBOBJS
659: ltdl_LIBOBJS
660: am__EXEEXT_FALSE
661: am__EXEEXT_TRUE
662: LTLIBOBJS
663: LIBOBJS
664: LTDLOPEN
665: LT_CONFIG_H
666: subdirs
1.237 moko 667: LTARGZH_EXISTS_FALSE
668: LTARGZH_EXISTS_TRUE
1.150 moko 669: CONVENIENCE_LTDL_FALSE
670: CONVENIENCE_LTDL_TRUE
671: INSTALL_LTDL_FALSE
672: INSTALL_LTDL_TRUE
1.237 moko 673: LT_ARGZ_H
1.150 moko 674: sys_symbol_underscore
675: LIBADD_DL
676: LT_DLPREOPEN
677: LIBADD_DLD_LINK
678: LIBADD_SHL_LOAD
679: LIBADD_DLOPEN
680: LT_DLLOADERS
681: INCLTDL
682: LTDLINCL
683: LTDLDEPS
684: LIBLTDL
685: CXXCPP
1.237 moko 686: LT_SYS_LIBRARY_PATH
1.150 moko 687: OTOOL64
688: OTOOL
689: LIPO
690: NMEDIT
691: DSYMUTIL
692: MANIFEST_TOOL
693: RANLIB
694: ac_ct_AR
695: AR
1.237 moko 696: FILECMD
1.150 moko 697: LN_S
698: NM
699: ac_ct_DUMPBIN
700: DUMPBIN
701: LD
702: FGREP
703: EGREP
704: GREP
705: SED
706: LIBTOOL
707: OBJDUMP
708: DLLTOOL
709: AS
710: COMPILE_APACHE_MODULE_FALSE
711: COMPILE_APACHE_MODULE_TRUE
712: APACHE_CFLAGS
713: APACHE_INC
714: APACHE
1.239 moko 715: REDIS_LIBS
716: REDIS_INCLUDES
1.232 moko 717: AMQP_LIBS
718: AMQP_INCLUDES
1.150 moko 719: MIME_LIBS
720: MIME_INCLUDES
721: XML_LIBS
722: XML_INCLUDES
723: PCRE_LIBS
724: PCRE_INCLUDES
725: GC_LIBS
726: dll_extension
727: am__fastdepCC_FALSE
728: am__fastdepCC_TRUE
729: CCDEPMODE
730: ac_ct_CC
731: CFLAGS
732: CC
733: am__fastdepCXX_FALSE
734: am__fastdepCXX_TRUE
735: CXXDEPMODE
1.187 moko 736: am__nodep
1.150 moko 737: AMDEPBACKSLASH
738: AMDEP_FALSE
739: AMDEP_TRUE
740: am__include
741: DEPDIR
742: OBJEXT
743: EXEEXT
744: ac_ct_CXX
745: CPPFLAGS
746: LDFLAGS
747: CXXFLAGS
748: CXX
749: YFLAGS
750: YACC
751: host_os
752: host_vendor
753: host_cpu
754: host
755: build_os
756: build_vendor
757: build_cpu
758: build
759: P3S
1.237 moko 760: am__xargs_n
761: am__rm_f_notfound
1.187 moko 762: AM_BACKSLASH
763: AM_DEFAULT_VERBOSITY
764: AM_DEFAULT_V
765: AM_V
1.237 moko 766: CSCOPE
767: ETAGS
768: CTAGS
1.150 moko 769: am__untar
770: am__tar
771: AMTAR
772: am__leading_dot
773: SET_MAKE
774: AWK
775: mkdir_p
776: MKDIR_P
777: INSTALL_STRIP_PROGRAM
778: STRIP
779: install_sh
780: MAKEINFO
781: AUTOHEADER
782: AUTOMAKE
783: AUTOCONF
784: ACLOCAL
785: VERSION
786: PACKAGE
787: CYGPATH_W
788: am__isrc
789: INSTALL_DATA
790: INSTALL_SCRIPT
791: INSTALL_PROGRAM
792: target_alias
793: host_alias
794: build_alias
795: LIBS
796: ECHO_T
797: ECHO_N
798: ECHO_C
799: DEFS
800: mandir
801: localedir
802: libdir
803: psdir
804: pdfdir
805: dvidir
806: htmldir
807: infodir
808: docdir
809: oldincludedir
810: includedir
1.191 moko 811: runstatedir
1.150 moko 812: localstatedir
813: sharedstatedir
814: sysconfdir
815: datadir
816: datarootdir
817: libexecdir
818: sbindir
819: bindir
820: program_transform_name
821: prefix
822: exec_prefix
823: PACKAGE_URL
824: PACKAGE_BUGREPORT
825: PACKAGE_STRING
826: PACKAGE_VERSION
827: PACKAGE_TARNAME
828: PACKAGE_NAME
829: PATH_SEPARATOR
1.199 moko 830: SHELL
831: am__quote'
1.62 paf 832: ac_subst_files=''
1.150 moko 833: ac_user_opts='
834: enable_option_checking
1.187 moko 835: enable_silent_rules
1.150 moko 836: enable_dependency_tracking
837: with_build_warnings
1.182 moko 838: with_coverage
839: with_profiler
1.150 moko 840: with_assertions
841: with_sjlj_exceptions
1.203 moko 842: with_system_cfg
1.150 moko 843: enable_safe_mode
844: enable_execs
845: enable_stringstream
846: with_gc
847: with_pcre
848: with_xml
1.154 moko 849: with_mailreceive
1.232 moko 850: with_amqp
1.239 moko 851: with_redis
1.150 moko 852: with_sendmail
853: with_apache
1.237 moko 854: enable_pic
1.150 moko 855: with_pic
856: enable_shared
857: enable_static
858: enable_fast_install
1.237 moko 859: enable_aix_soname
860: with_aix_soname
1.150 moko 861: with_gnu_ld
862: with_sysroot
863: enable_libtool_lock
864: with_included_ltdl
865: with_ltdl_include
866: with_ltdl_lib
867: enable_ltdl_install
1.171 moko 868: enable_largefile
1.237 moko 869: enable_year2038
1.150 moko 870: '
871: ac_precious_vars='build_alias
872: host_alias
873: target_alias
874: YACC
875: YFLAGS
876: CXX
877: CXXFLAGS
878: LDFLAGS
879: LIBS
880: CPPFLAGS
881: CCC
882: CC
883: CFLAGS
1.237 moko 884: LT_SYS_LIBRARY_PATH
1.150 moko 885: CXXCPP'
886: ac_subdirs_all='src/lib/ltdl'
1.1 paf 887:
888: # Initialize some variables set by options.
1.62 paf 889: ac_init_help=
890: ac_init_version=false
1.150 moko 891: ac_unrecognized_opts=
892: ac_unrecognized_sep=
1.1 paf 893: # The variables have the same names as the options, with
894: # dashes changed to underlines.
1.62 paf 895: cache_file=/dev/null
1.1 paf 896: exec_prefix=NONE
897: no_create=
898: no_recursion=
899: prefix=NONE
900: program_prefix=NONE
901: program_suffix=NONE
902: program_transform_name=s,x,x,
903: silent=
904: site=
905: srcdir=
906: verbose=
907: x_includes=NONE
908: x_libraries=NONE
1.62 paf 909:
910: # Installation directory options.
911: # These are left unexpanded so users can "make install exec_prefix=/foo"
912: # and all the variables that are supposed to be based on exec_prefix
913: # by default will actually change.
914: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 915: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 916: bindir='${exec_prefix}/bin'
917: sbindir='${exec_prefix}/sbin'
918: libexecdir='${exec_prefix}/libexec'
1.150 moko 919: datarootdir='${prefix}/share'
920: datadir='${datarootdir}'
1.1 paf 921: sysconfdir='${prefix}/etc'
922: sharedstatedir='${prefix}/com'
923: localstatedir='${prefix}/var'
1.191 moko 924: runstatedir='${localstatedir}/run'
1.1 paf 925: includedir='${prefix}/include'
926: oldincludedir='/usr/include'
1.150 moko 927: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928: infodir='${datarootdir}/info'
929: htmldir='${docdir}'
930: dvidir='${docdir}'
931: pdfdir='${docdir}'
932: psdir='${docdir}'
933: libdir='${exec_prefix}/lib'
934: localedir='${datarootdir}/locale'
935: mandir='${datarootdir}/man'
1.1 paf 936:
937: ac_prev=
1.150 moko 938: ac_dashdash=
1.1 paf 939: for ac_option
940: do
941: # If the previous option needs an argument, assign it.
942: if test -n "$ac_prev"; then
1.150 moko 943: eval $ac_prev=\$ac_option
1.1 paf 944: ac_prev=
945: continue
946: fi
947:
1.150 moko 948: case $ac_option in
949: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950: *=) ac_optarg= ;;
951: *) ac_optarg=yes ;;
952: esac
1.1 paf 953:
1.150 moko 954: case $ac_dashdash$ac_option in
955: --)
956: ac_dashdash=yes ;;
1.1 paf 957:
958: -bindir | --bindir | --bindi | --bind | --bin | --bi)
959: ac_prev=bindir ;;
960: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 961: bindir=$ac_optarg ;;
1.1 paf 962:
963: -build | --build | --buil | --bui | --bu)
1.62 paf 964: ac_prev=build_alias ;;
1.1 paf 965: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 966: build_alias=$ac_optarg ;;
1.1 paf 967:
968: -cache-file | --cache-file | --cache-fil | --cache-fi \
969: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970: ac_prev=cache_file ;;
971: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 973: cache_file=$ac_optarg ;;
974:
975: --config-cache | -C)
976: cache_file=config.cache ;;
1.1 paf 977:
1.150 moko 978: -datadir | --datadir | --datadi | --datad)
1.1 paf 979: ac_prev=datadir ;;
1.150 moko 980: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 981: datadir=$ac_optarg ;;
1.1 paf 982:
1.150 moko 983: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984: | --dataroo | --dataro | --datar)
985: ac_prev=datarootdir ;;
986: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988: datarootdir=$ac_optarg ;;
989:
1.1 paf 990: -disable-* | --disable-*)
1.150 moko 991: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 992: # Reject names that are not valid shell variable names.
1.150 moko 993: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 994: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 995: ac_useropt_orig=$ac_useropt
1.237 moko 996: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 997: case $ac_user_opts in
998: *"
999: "enable_$ac_useropt"
1000: "*) ;;
1001: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002: ac_unrecognized_sep=', ';;
1003: esac
1004: eval enable_$ac_useropt=no ;;
1005:
1006: -docdir | --docdir | --docdi | --doc | --do)
1007: ac_prev=docdir ;;
1008: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009: docdir=$ac_optarg ;;
1010:
1011: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012: ac_prev=dvidir ;;
1013: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014: dvidir=$ac_optarg ;;
1.1 paf 1015:
1016: -enable-* | --enable-*)
1.150 moko 1017: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 1018: # Reject names that are not valid shell variable names.
1.150 moko 1019: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1020: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 1021: ac_useropt_orig=$ac_useropt
1.237 moko 1022: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1023: case $ac_user_opts in
1024: *"
1025: "enable_$ac_useropt"
1026: "*) ;;
1027: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028: ac_unrecognized_sep=', ';;
1.1 paf 1029: esac
1.150 moko 1030: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 1031:
1032: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034: | --exec | --exe | --ex)
1035: ac_prev=exec_prefix ;;
1036: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038: | --exec=* | --exe=* | --ex=*)
1.62 paf 1039: exec_prefix=$ac_optarg ;;
1.1 paf 1040:
1041: -gas | --gas | --ga | --g)
1042: # Obsolete; use --with-gas.
1043: with_gas=yes ;;
1044:
1.62 paf 1045: -help | --help | --hel | --he | -h)
1046: ac_init_help=long ;;
1047: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048: ac_init_help=recursive ;;
1049: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050: ac_init_help=short ;;
1.1 paf 1051:
1052: -host | --host | --hos | --ho)
1.62 paf 1053: ac_prev=host_alias ;;
1.1 paf 1054: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1055: host_alias=$ac_optarg ;;
1.1 paf 1056:
1.150 moko 1057: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058: ac_prev=htmldir ;;
1059: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060: | --ht=*)
1061: htmldir=$ac_optarg ;;
1062:
1.1 paf 1063: -includedir | --includedir | --includedi | --included | --include \
1064: | --includ | --inclu | --incl | --inc)
1065: ac_prev=includedir ;;
1066: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1068: includedir=$ac_optarg ;;
1.1 paf 1069:
1070: -infodir | --infodir | --infodi | --infod | --info | --inf)
1071: ac_prev=infodir ;;
1072: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1073: infodir=$ac_optarg ;;
1.1 paf 1074:
1075: -libdir | --libdir | --libdi | --libd)
1076: ac_prev=libdir ;;
1077: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1078: libdir=$ac_optarg ;;
1.1 paf 1079:
1080: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081: | --libexe | --libex | --libe)
1082: ac_prev=libexecdir ;;
1083: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1085: libexecdir=$ac_optarg ;;
1.1 paf 1086:
1.150 moko 1087: -localedir | --localedir | --localedi | --localed | --locale)
1088: ac_prev=localedir ;;
1089: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090: localedir=$ac_optarg ;;
1091:
1.1 paf 1092: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1093: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1094: ac_prev=localstatedir ;;
1095: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1096: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1097: localstatedir=$ac_optarg ;;
1.1 paf 1098:
1099: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100: ac_prev=mandir ;;
1101: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1102: mandir=$ac_optarg ;;
1.1 paf 1103:
1104: -nfp | --nfp | --nf)
1105: # Obsolete; use --without-fp.
1106: with_fp=no ;;
1107:
1108: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1109: | --no-cr | --no-c | -n)
1.1 paf 1110: no_create=yes ;;
1111:
1112: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114: no_recursion=yes ;;
1115:
1116: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118: | --oldin | --oldi | --old | --ol | --o)
1119: ac_prev=oldincludedir ;;
1120: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1123: oldincludedir=$ac_optarg ;;
1.1 paf 1124:
1125: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126: ac_prev=prefix ;;
1127: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1128: prefix=$ac_optarg ;;
1.1 paf 1129:
1130: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131: | --program-pre | --program-pr | --program-p)
1132: ac_prev=program_prefix ;;
1133: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1135: program_prefix=$ac_optarg ;;
1.1 paf 1136:
1137: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138: | --program-suf | --program-su | --program-s)
1139: ac_prev=program_suffix ;;
1140: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1142: program_suffix=$ac_optarg ;;
1.1 paf 1143:
1144: -program-transform-name | --program-transform-name \
1145: | --program-transform-nam | --program-transform-na \
1146: | --program-transform-n | --program-transform- \
1147: | --program-transform | --program-transfor \
1148: | --program-transfo | --program-transf \
1149: | --program-trans | --program-tran \
1150: | --progr-tra | --program-tr | --program-t)
1151: ac_prev=program_transform_name ;;
1152: -program-transform-name=* | --program-transform-name=* \
1153: | --program-transform-nam=* | --program-transform-na=* \
1154: | --program-transform-n=* | --program-transform-=* \
1155: | --program-transform=* | --program-transfor=* \
1156: | --program-transfo=* | --program-transf=* \
1157: | --program-trans=* | --program-tran=* \
1158: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1159: program_transform_name=$ac_optarg ;;
1.1 paf 1160:
1.150 moko 1161: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162: ac_prev=pdfdir ;;
1163: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164: pdfdir=$ac_optarg ;;
1165:
1166: -psdir | --psdir | --psdi | --psd | --ps)
1167: ac_prev=psdir ;;
1168: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169: psdir=$ac_optarg ;;
1170:
1.1 paf 1171: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172: | -silent | --silent | --silen | --sile | --sil)
1173: silent=yes ;;
1174:
1.191 moko 1175: -runstatedir | --runstatedir | --runstatedi | --runstated \
1176: | --runstate | --runstat | --runsta | --runst | --runs \
1177: | --run | --ru | --r)
1178: ac_prev=runstatedir ;;
1179: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1180: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1181: | --run=* | --ru=* | --r=*)
1182: runstatedir=$ac_optarg ;;
1183:
1.1 paf 1184: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185: ac_prev=sbindir ;;
1186: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187: | --sbi=* | --sb=*)
1.62 paf 1188: sbindir=$ac_optarg ;;
1.1 paf 1189:
1190: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192: | --sharedst | --shareds | --shared | --share | --shar \
1193: | --sha | --sh)
1194: ac_prev=sharedstatedir ;;
1195: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198: | --sha=* | --sh=*)
1.62 paf 1199: sharedstatedir=$ac_optarg ;;
1.1 paf 1200:
1201: -site | --site | --sit)
1202: ac_prev=site ;;
1203: -site=* | --site=* | --sit=*)
1.62 paf 1204: site=$ac_optarg ;;
1.1 paf 1205:
1206: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207: ac_prev=srcdir ;;
1208: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1209: srcdir=$ac_optarg ;;
1.1 paf 1210:
1211: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212: | --syscon | --sysco | --sysc | --sys | --sy)
1213: ac_prev=sysconfdir ;;
1214: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1216: sysconfdir=$ac_optarg ;;
1.1 paf 1217:
1218: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1219: ac_prev=target_alias ;;
1.1 paf 1220: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1221: target_alias=$ac_optarg ;;
1.1 paf 1222:
1223: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224: verbose=yes ;;
1225:
1.62 paf 1226: -version | --version | --versio | --versi | --vers | -V)
1227: ac_init_version=: ;;
1.1 paf 1228:
1229: -with-* | --with-*)
1.150 moko 1230: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1231: # Reject names that are not valid shell variable names.
1.150 moko 1232: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1233: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1234: ac_useropt_orig=$ac_useropt
1.237 moko 1235: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1236: case $ac_user_opts in
1237: *"
1238: "with_$ac_useropt"
1239: "*) ;;
1240: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241: ac_unrecognized_sep=', ';;
1.1 paf 1242: esac
1.150 moko 1243: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1244:
1245: -without-* | --without-*)
1.150 moko 1246: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1247: # Reject names that are not valid shell variable names.
1.150 moko 1248: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1249: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1250: ac_useropt_orig=$ac_useropt
1.237 moko 1251: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1252: case $ac_user_opts in
1253: *"
1254: "with_$ac_useropt"
1255: "*) ;;
1256: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257: ac_unrecognized_sep=', ';;
1258: esac
1259: eval with_$ac_useropt=no ;;
1.1 paf 1260:
1261: --x)
1262: # Obsolete; use --with-x.
1263: with_x=yes ;;
1264:
1265: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266: | --x-incl | --x-inc | --x-in | --x-i)
1267: ac_prev=x_includes ;;
1268: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1270: x_includes=$ac_optarg ;;
1.1 paf 1271:
1272: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274: ac_prev=x_libraries ;;
1275: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1277: x_libraries=$ac_optarg ;;
1.1 paf 1278:
1.237 moko 1279: -*) as_fn_error $? "unrecognized option: '$ac_option'
1280: Try '$0 --help' for more information"
1.1 paf 1281: ;;
1282:
1.62 paf 1283: *=*)
1284: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285: # Reject names that are not valid shell variable names.
1.150 moko 1286: case $ac_envvar in #(
1287: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.237 moko 1288: as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1.150 moko 1289: esac
1290: eval $ac_envvar=\$ac_optarg
1.62 paf 1291: export $ac_envvar ;;
1292:
1.1 paf 1293: *)
1.62 paf 1294: # FIXME: should be removed in autoconf 3.0.
1.237 moko 1295: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1296: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.237 moko 1297: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.150 moko 1298: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1299: ;;
1300:
1301: esac
1302: done
1303:
1304: if test -n "$ac_prev"; then
1.62 paf 1305: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1306: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1307: fi
1308:
1.150 moko 1309: if test -n "$ac_unrecognized_opts"; then
1310: case $enable_option_checking in
1311: no) ;;
1312: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.237 moko 1313: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.150 moko 1314: esac
1315: fi
1316:
1317: # Check all directory arguments for consistency.
1318: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319: datadir sysconfdir sharedstatedir localstatedir includedir \
1320: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1321: libdir localedir mandir runstatedir
1.62 paf 1322: do
1.150 moko 1323: eval ac_val=\$$ac_var
1324: # Remove trailing slashes.
1.62 paf 1325: case $ac_val in
1.150 moko 1326: */ )
1327: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328: eval $ac_var=\$ac_val;;
1.62 paf 1329: esac
1.150 moko 1330: # Be sure to have absolute directory names.
1.62 paf 1331: case $ac_val in
1.150 moko 1332: [\\/$]* | ?:[\\/]* ) continue;;
1333: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1334: esac
1.150 moko 1335: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1336: done
1337:
1.237 moko 1338: # There might be people who depend on the old broken behavior: '$host'
1.62 paf 1339: # used to hold the argument of --host etc.
1340: # FIXME: To remove some day.
1341: build=$build_alias
1342: host=$host_alias
1343: target=$target_alias
1344:
1345: # FIXME: To remove some day.
1346: if test "x$host_alias" != x; then
1347: if test "x$build_alias" = x; then
1348: cross_compiling=maybe
1349: elif test "x$build_alias" != "x$host_alias"; then
1350: cross_compiling=yes
1351: fi
1352: fi
1353:
1354: ac_tool_prefix=
1355: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1356:
1.62 paf 1357: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1358:
1359:
1.150 moko 1360: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361: ac_ls_di=`ls -di .` &&
1362: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363: as_fn_error $? "working directory cannot be determined"
1364: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365: as_fn_error $? "pwd does not report name of working directory"
1366:
1367:
1.1 paf 1368: # Find the source files, if location was not specified.
1369: if test -z "$srcdir"; then
1370: ac_srcdir_defaulted=yes
1.150 moko 1371: # Try the directory containing this script, then the parent directory.
1372: ac_confdir=`$as_dirname -- "$as_myself" ||
1373: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374: X"$as_myself" : 'X\(//\)[^/]' \| \
1375: X"$as_myself" : 'X\(//\)$' \| \
1376: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 1377: printf "%s\n" X"$as_myself" |
1.150 moko 1378: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379: s//\1/
1380: q
1381: }
1382: /^X\(\/\/\)[^/].*/{
1383: s//\1/
1384: q
1385: }
1386: /^X\(\/\/\)$/{
1387: s//\1/
1388: q
1389: }
1390: /^X\(\/\).*/{
1391: s//\1/
1392: q
1393: }
1394: s/.*/./; q'`
1.1 paf 1395: srcdir=$ac_confdir
1.150 moko 1396: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1397: srcdir=..
1398: fi
1399: else
1400: ac_srcdir_defaulted=no
1401: fi
1.150 moko 1402: if test ! -r "$srcdir/$ac_unique_file"; then
1403: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405: fi
1.237 moko 1406: ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1.150 moko 1407: ac_abs_confdir=`(
1408: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409: pwd)`
1410: # When building in place, set srcdir=.
1411: if test "$ac_abs_confdir" = "$ac_pwd"; then
1412: srcdir=.
1413: fi
1414: # Remove unnecessary trailing slashes from srcdir.
1415: # Double slashes in file names in object file debugging info
1416: # mess up M-x gdb in Emacs.
1417: case $srcdir in
1418: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419: esac
1420: for ac_var in $ac_precious_vars; do
1421: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422: eval ac_env_${ac_var}_value=\$${ac_var}
1423: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425: done
1.62 paf 1426:
1427: #
1428: # Report the --help message.
1429: #
1430: if test "$ac_init_help" = "long"; then
1431: # Omit some internal or obsolete options to make the list less imposing.
1432: # This message is too long to be a string in the A/UX 3.1 sh.
1433: cat <<_ACEOF
1.237 moko 1434: 'configure' configures parser 3.5.2b to adapt to many kinds of systems.
1.62 paf 1435:
1436: Usage: $0 [OPTION]... [VAR=VALUE]...
1437:
1438: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439: VAR=VALUE. See below for descriptions of some of the useful variables.
1440:
1441: Defaults for the options are specified in brackets.
1442:
1443: Configuration:
1444: -h, --help display this help and exit
1445: --help=short display options specific to this package
1446: --help=recursive display the short help of all the included packages
1447: -V, --version display version information and exit
1.237 moko 1448: -q, --quiet, --silent do not print 'checking ...' messages
1.62 paf 1449: --cache-file=FILE cache test results in FILE [disabled]
1.237 moko 1450: -C, --config-cache alias for '--cache-file=config.cache'
1.62 paf 1451: -n, --no-create do not create output files
1.237 moko 1452: --srcdir=DIR find the sources in DIR [configure dir or '..']
1.62 paf 1453:
1454: Installation directories:
1455: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1456: [$ac_default_prefix]
1.62 paf 1457: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1458: [PREFIX]
1.62 paf 1459:
1.237 moko 1460: By default, 'make install' will install all the files in
1461: '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1462: an installation prefix other than '$ac_default_prefix' using '--prefix',
1463: for instance '--prefix=\$HOME'.
1.62 paf 1464:
1465: For better control, use the options below.
1466:
1467: Fine tuning of the installation directories:
1.150 moko 1468: --bindir=DIR user executables [EPREFIX/bin]
1469: --sbindir=DIR system admin executables [EPREFIX/sbin]
1470: --libexecdir=DIR program executables [EPREFIX/libexec]
1471: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1474: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1475: --libdir=DIR object code libraries [EPREFIX/lib]
1476: --includedir=DIR C header files [PREFIX/include]
1477: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480: --infodir=DIR info documentation [DATAROOTDIR/info]
1481: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482: --mandir=DIR man documentation [DATAROOTDIR/man]
1483: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1484: --htmldir=DIR html documentation [DOCDIR]
1485: --dvidir=DIR dvi documentation [DOCDIR]
1486: --pdfdir=DIR pdf documentation [DOCDIR]
1487: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1488: _ACEOF
1489:
1490: cat <<\_ACEOF
1491:
1492: Program names:
1493: --program-prefix=PREFIX prepend PREFIX to installed program names
1494: --program-suffix=SUFFIX append SUFFIX to installed program names
1495: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496:
1497: System types:
1498: --build=BUILD configure for building on BUILD [guessed]
1499: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500: _ACEOF
1501: fi
1502:
1503: if test -n "$ac_init_help"; then
1.128 moko 1504: case $ac_init_help in
1.230 moko 1505: short | recursive ) echo "Configuration of parser 3.5.2b:";;
1.128 moko 1506: esac
1.62 paf 1507: cat <<\_ACEOF
1508:
1509: Optional Features:
1.150 moko 1510: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1511: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1513: --enable-silent-rules less verbose build output (undo: "make V=1")
1514: --disable-silent-rules verbose build output (undo: "make V=0")
1515: --enable-dependency-tracking
1516: do not reject slow dependency extractors
1517: --disable-dependency-tracking
1518: speeds up one-time build
1.67 paf 1519: --disable-safe-mode to enable reading and executing
1.62 paf 1520: files belonging to group+user other then effective
1.146 moko 1521: --disable-execs to disable any execs
1.62 paf 1522: (file::exec, file::cgi, unix mail:send)
1.195 moko 1523: --disable-stringstream to disable stringstream usage.
1524: when disabled table.save uses more memory, but more compilers are supported
1.237 moko 1525: --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526: both]
1.150 moko 1527: --enable-shared[=PKGS] build shared libraries [default=yes]
1528: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1529: --enable-fast-install[=PKGS]
1530: optimize for fast installation [default=yes]
1.237 moko 1531: --enable-aix-soname=aix|svr4|both
1532: shared library versioning (aka "SONAME") variant to
1533: provide on AIX, [default=aix].
1.128 moko 1534: --disable-libtool-lock avoid locking (might break parallel builds)
1535: --enable-ltdl-install install libltdl
1.171 moko 1536: --disable-largefile omit support for large files
1.237 moko 1537: --enable-year2038 support timestamps after 2038
1.62 paf 1538:
1539: Optional Packages:
1540: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1542: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1543: --with-coverage to enable gcov code coverage support
1544: --with-profiler to enable gprof code profiler support
1.67 paf 1545: --with-assertions to enable assertions
1.201 moko 1546: --with-sjlj-exceptions to enable simple 'throw' from dynamic library
1547: --with-system-cfg=FILE to specify system-wide auto.p
1548: --with-gc=DIR DIR is the directory where
1.142 moko 1549: Boehm garbage collecting library is installed
1.201 moko 1550: --with-pcre=DIR DIR is the directory where
1.142 moko 1551: PCRE library is installed
1.201 moko 1552: --with-xml=DIR DIR is the directory where
1.142 moko 1553: Gnome XML libraries are installed
1.201 moko 1554: --with-mailreceive=DIR is the directory where
1.154 moko 1555: Gnome MIME library is installed
1.232 moko 1556: --with-amqp=DIR DIR is the directory where
1557: RabbitMQ C library (librabbitmq) is installed
1.239 moko 1558: --with-redis=DIR DIR is the directory where
1559: Redis C library (hiredis) is installed
1.62 paf 1560: \"--with-sendmail=COMMAND\" forces this command to send mail.
1561: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1562: (makes parser ignore user-defined sendmail commands)
1.146 moko 1563: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1564: builds apache DSO module using apxs
1.128 moko 1565: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.237 moko 1566: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1567: compiler's sysroot if not specified).
1.128 moko 1568: --with-included-ltdl use the GNU ltdl sources included here
1569: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1570: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1571:
1572: Some influential environment variables:
1.237 moko 1573: YACC The 'Yet Another Compiler Compiler' implementation to use.
1574: Defaults to the first program found out of: 'bison -y', 'byacc',
1575: 'yacc'.
1.150 moko 1576: YFLAGS The list of arguments that will be passed by default to $YACC.
1577: This script will default YFLAGS to the empty string to avoid a
1.237 moko 1578: default value of '-d' given by some make applications.
1.66 paf 1579: CXX C++ compiler command
1580: CXXFLAGS C++ compiler flags
1.62 paf 1581: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582: nonstandard directory <lib dir>
1.150 moko 1583: LIBS libraries to pass to the linker, e.g. -l<library>
1584: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1585: you have headers in a nonstandard directory <include dir>
1.66 paf 1586: CC C compiler command
1587: CFLAGS C compiler flags
1.237 moko 1588: LT_SYS_LIBRARY_PATH
1589: User-defined run-time library search path.
1.128 moko 1590: CXXCPP C++ preprocessor
1.62 paf 1591:
1.237 moko 1592: Use these variables to override the choices made by 'configure' or to help
1.62 paf 1593: it to find libraries and programs with nonstandard names/locations.
1594:
1.150 moko 1595: Report bugs to the package provider.
1.62 paf 1596: _ACEOF
1.150 moko 1597: ac_status=$?
1.62 paf 1598: fi
1599:
1600: if test "$ac_init_help" = "recursive"; then
1601: # If there are subdirs, report their specific --help.
1602: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1603: test -d "$ac_dir" ||
1604: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605: continue
1.62 paf 1606: ac_builddir=.
1607:
1.150 moko 1608: case "$ac_dir" in
1609: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610: *)
1.237 moko 1611: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 1612: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 1613: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 1614: case $ac_top_builddir_sub in
1615: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617: esac ;;
1618: esac
1619: ac_abs_top_builddir=$ac_pwd
1620: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621: # for backward compatibility:
1622: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1623:
1624: case $srcdir in
1.150 moko 1625: .) # We are building in place.
1.62 paf 1626: ac_srcdir=.
1.150 moko 1627: ac_top_srcdir=$ac_top_builddir_sub
1628: ac_abs_top_srcdir=$ac_pwd ;;
1629: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1630: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1631: ac_top_srcdir=$srcdir
1632: ac_abs_top_srcdir=$srcdir ;;
1633: *) # Relative name.
1634: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635: ac_top_srcdir=$ac_top_build_prefix$srcdir
1636: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1637: esac
1.150 moko 1638: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1639:
1.150 moko 1640: cd "$ac_dir" || { ac_status=$?; continue; }
1.237 moko 1641: # Check for configure.gnu first; this name is used for a wrapper for
1642: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 1643: if test -f "$ac_srcdir/configure.gnu"; then
1644: echo &&
1645: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646: elif test -f "$ac_srcdir/configure"; then
1647: echo &&
1648: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1649: else
1.237 moko 1650: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.150 moko 1651: fi || ac_status=$?
1652: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1653: done
1654: fi
1655:
1.150 moko 1656: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1657: if $ac_init_version; then
1658: cat <<\_ACEOF
1.230 moko 1659: parser configure 3.5.2b
1.237 moko 1660: generated by GNU Autoconf 2.72
1.62 paf 1661:
1.237 moko 1662: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 1663: This configure script is free software; the Free Software Foundation
1664: gives unlimited permission to copy, distribute and modify it.
1665: _ACEOF
1.150 moko 1666: exit
1.62 paf 1667: fi
1668:
1.150 moko 1669: ## ------------------------ ##
1670: ## Autoconf initialization. ##
1671: ## ------------------------ ##
1672:
1673: # ac_fn_cxx_try_compile LINENO
1674: # ----------------------------
1675: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676: ac_fn_cxx_try_compile ()
1.62 paf 1677: {
1.150 moko 1678: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1679: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1680: if { { ac_try="$ac_compile"
1681: case "(($ac_try" in
1682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683: *) ac_try_echo=$ac_try;;
1684: esac
1685: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1686: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1687: (eval "$ac_compile") 2>conftest.err
1688: ac_status=$?
1689: if test -s conftest.err; then
1690: grep -v '^ *+' conftest.err >conftest.er1
1691: cat conftest.er1 >&5
1692: mv -f conftest.er1 conftest.err
1693: fi
1.237 moko 1694: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1695: test $ac_status = 0; } && {
1696: test -z "$ac_cxx_werror_flag" ||
1697: test ! -s conftest.err
1.237 moko 1698: } && test -s conftest.$ac_objext
1699: then :
1.150 moko 1700: ac_retval=0
1.237 moko 1701: else case e in #(
1702: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1703: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1704:
1.237 moko 1705: ac_retval=1 ;;
1706: esac
1.150 moko 1707: fi
1708: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709: as_fn_set_status $ac_retval
1.62 paf 1710:
1.150 moko 1711: } # ac_fn_cxx_try_compile
1712:
1713: # ac_fn_c_try_compile LINENO
1714: # --------------------------
1715: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716: ac_fn_c_try_compile ()
1717: {
1718: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1719: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1720: if { { ac_try="$ac_compile"
1721: case "(($ac_try" in
1722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723: *) ac_try_echo=$ac_try;;
1724: esac
1725: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1726: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1727: (eval "$ac_compile") 2>conftest.err
1728: ac_status=$?
1729: if test -s conftest.err; then
1730: grep -v '^ *+' conftest.err >conftest.er1
1731: cat conftest.er1 >&5
1732: mv -f conftest.er1 conftest.err
1733: fi
1.237 moko 1734: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1735: test $ac_status = 0; } && {
1736: test -z "$ac_c_werror_flag" ||
1737: test ! -s conftest.err
1.237 moko 1738: } && test -s conftest.$ac_objext
1739: then :
1.150 moko 1740: ac_retval=0
1.237 moko 1741: else case e in #(
1742: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1743: sed 's/^/| /' conftest.$ac_ext >&5
1744:
1.237 moko 1745: ac_retval=1 ;;
1746: esac
1.150 moko 1747: fi
1748: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749: as_fn_set_status $ac_retval
1750:
1751: } # ac_fn_c_try_compile
1752:
1753: # ac_fn_c_try_link LINENO
1754: # -----------------------
1755: # Try to link conftest.$ac_ext, and return whether this succeeded.
1756: ac_fn_c_try_link ()
1757: {
1758: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1759: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1760: if { { ac_try="$ac_link"
1761: case "(($ac_try" in
1762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763: *) ac_try_echo=$ac_try;;
1764: esac
1765: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1766: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1767: (eval "$ac_link") 2>conftest.err
1768: ac_status=$?
1769: if test -s conftest.err; then
1770: grep -v '^ *+' conftest.err >conftest.er1
1771: cat conftest.er1 >&5
1772: mv -f conftest.er1 conftest.err
1773: fi
1.237 moko 1774: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1775: test $ac_status = 0; } && {
1776: test -z "$ac_c_werror_flag" ||
1777: test ! -s conftest.err
1778: } && test -s conftest$ac_exeext && {
1779: test "$cross_compiling" = yes ||
1.166 moko 1780: test -x conftest$ac_exeext
1.237 moko 1781: }
1782: then :
1.150 moko 1783: ac_retval=0
1.237 moko 1784: else case e in #(
1785: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1786: sed 's/^/| /' conftest.$ac_ext >&5
1787:
1.237 moko 1788: ac_retval=1 ;;
1789: esac
1.150 moko 1790: fi
1791: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793: # interfere with the next link command; also delete a directory that is
1794: # left behind by Apple's compiler. We do this before executing the actions.
1795: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797: as_fn_set_status $ac_retval
1798:
1799: } # ac_fn_c_try_link
1800:
1801: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802: # -------------------------------------------------------
1803: # Tests whether HEADER exists and can be compiled using the include files in
1804: # INCLUDES, setting the cache variable VAR accordingly.
1805: ac_fn_c_check_header_compile ()
1806: {
1807: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1808: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809: printf %s "checking for $2... " >&6; }
1810: if eval test \${$3+y}
1811: then :
1812: printf %s "(cached) " >&6
1813: else case e in #(
1814: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1815: /* end confdefs.h. */
1816: $4
1817: #include <$2>
1818: _ACEOF
1.237 moko 1819: if ac_fn_c_try_compile "$LINENO"
1820: then :
1.150 moko 1821: eval "$3=yes"
1.237 moko 1822: else case e in #(
1823: e) eval "$3=no" ;;
1824: esac
1.150 moko 1825: fi
1.237 moko 1826: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1827: esac
1.150 moko 1828: fi
1829: eval ac_res=\$$3
1.237 moko 1830: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1832: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833:
1834: } # ac_fn_c_check_header_compile
1835:
1836: # ac_fn_c_check_func LINENO FUNC VAR
1837: # ----------------------------------
1838: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839: ac_fn_c_check_func ()
1840: {
1841: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843: printf %s "checking for $2... " >&6; }
1844: if eval test \${$3+y}
1845: then :
1846: printf %s "(cached) " >&6
1847: else case e in #(
1848: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1849: /* end confdefs.h. */
1850: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852: #define $2 innocuous_$2
1853:
1854: /* System header to define __stub macros and hopefully few prototypes,
1.237 moko 1855: which can conflict with char $2 (void); below. */
1.150 moko 1856:
1.237 moko 1857: #include <limits.h>
1.150 moko 1858: #undef $2
1859:
1860: /* Override any GCC internal prototype to avoid an error.
1861: Use char because int might match the return type of a GCC
1862: builtin and then its argument prototype would still apply. */
1863: #ifdef __cplusplus
1864: extern "C"
1865: #endif
1.237 moko 1866: char $2 (void);
1.150 moko 1867: /* The GNU C library defines this for functions which it implements
1868: to always fail with ENOSYS. Some functions are actually named
1869: something starting with __ and the normal name is an alias. */
1870: #if defined __stub_$2 || defined __stub___$2
1871: choke me
1872: #endif
1873:
1874: int
1.237 moko 1875: main (void)
1.150 moko 1876: {
1877: return $2 ();
1878: ;
1879: return 0;
1880: }
1881: _ACEOF
1.237 moko 1882: if ac_fn_c_try_link "$LINENO"
1883: then :
1.150 moko 1884: eval "$3=yes"
1.237 moko 1885: else case e in #(
1886: e) eval "$3=no" ;;
1887: esac
1.150 moko 1888: fi
1.237 moko 1889: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1890: conftest$ac_exeext conftest.$ac_ext ;;
1891: esac
1.150 moko 1892: fi
1893: eval ac_res=\$$3
1.237 moko 1894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1896: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897:
1898: } # ac_fn_c_check_func
1899:
1900: # ac_fn_cxx_try_cpp LINENO
1901: # ------------------------
1902: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903: ac_fn_cxx_try_cpp ()
1904: {
1905: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906: if { { ac_try="$ac_cpp conftest.$ac_ext"
1907: case "(($ac_try" in
1908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909: *) ac_try_echo=$ac_try;;
1910: esac
1911: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1912: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1913: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914: ac_status=$?
1915: if test -s conftest.err; then
1916: grep -v '^ *+' conftest.err >conftest.er1
1917: cat conftest.er1 >&5
1918: mv -f conftest.er1 conftest.err
1919: fi
1.237 moko 1920: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1921: test $ac_status = 0; } > conftest.i && {
1922: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923: test ! -s conftest.err
1.237 moko 1924: }
1925: then :
1.150 moko 1926: ac_retval=0
1.237 moko 1927: else case e in #(
1928: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1929: sed 's/^/| /' conftest.$ac_ext >&5
1930:
1.237 moko 1931: ac_retval=1 ;;
1932: esac
1.150 moko 1933: fi
1934: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935: as_fn_set_status $ac_retval
1936:
1937: } # ac_fn_cxx_try_cpp
1938:
1939: # ac_fn_cxx_try_link LINENO
1940: # -------------------------
1941: # Try to link conftest.$ac_ext, and return whether this succeeded.
1942: ac_fn_cxx_try_link ()
1943: {
1944: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1945: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1946: if { { ac_try="$ac_link"
1947: case "(($ac_try" in
1948: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949: *) ac_try_echo=$ac_try;;
1950: esac
1951: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1952: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1953: (eval "$ac_link") 2>conftest.err
1954: ac_status=$?
1955: if test -s conftest.err; then
1956: grep -v '^ *+' conftest.err >conftest.er1
1957: cat conftest.er1 >&5
1958: mv -f conftest.er1 conftest.err
1959: fi
1.237 moko 1960: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1961: test $ac_status = 0; } && {
1962: test -z "$ac_cxx_werror_flag" ||
1963: test ! -s conftest.err
1964: } && test -s conftest$ac_exeext && {
1965: test "$cross_compiling" = yes ||
1.166 moko 1966: test -x conftest$ac_exeext
1.237 moko 1967: }
1968: then :
1.150 moko 1969: ac_retval=0
1.237 moko 1970: else case e in #(
1971: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1972: sed 's/^/| /' conftest.$ac_ext >&5
1973:
1.237 moko 1974: ac_retval=1 ;;
1975: esac
1.150 moko 1976: fi
1977: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979: # interfere with the next link command; also delete a directory that is
1980: # left behind by Apple's compiler. We do this before executing the actions.
1981: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983: as_fn_set_status $ac_retval
1984:
1985: } # ac_fn_cxx_try_link
1986:
1.237 moko 1987: # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1988: # ------------------------------------------------------------------
1.150 moko 1989: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1.237 moko 1990: # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1991: ac_fn_check_decl ()
1.150 moko 1992: {
1993: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994: as_decl_name=`echo $2|sed 's/ *(.*//'`
1.237 moko 1995: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1996: printf %s "checking whether $as_decl_name is declared... " >&6; }
1997: if eval test \${$3+y}
1998: then :
1999: printf %s "(cached) " >&6
2000: else case e in #(
2001: e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2002: eval ac_save_FLAGS=\$$6
2003: as_fn_append $6 " $5"
1.150 moko 2004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005: /* end confdefs.h. */
2006: $4
2007: int
1.237 moko 2008: main (void)
1.150 moko 2009: {
2010: #ifndef $as_decl_name
2011: #ifdef __cplusplus
2012: (void) $as_decl_use;
2013: #else
2014: (void) $as_decl_name;
2015: #endif
2016: #endif
2017:
2018: ;
2019: return 0;
2020: }
2021: _ACEOF
1.237 moko 2022: if ac_fn_c_try_compile "$LINENO"
2023: then :
1.150 moko 2024: eval "$3=yes"
1.237 moko 2025: else case e in #(
2026: e) eval "$3=no" ;;
2027: esac
1.150 moko 2028: fi
1.237 moko 2029: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2030: eval $6=\$ac_save_FLAGS
2031: ;;
2032: esac
1.150 moko 2033: fi
2034: eval ac_res=\$$3
1.237 moko 2035: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2037: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038:
1.237 moko 2039: } # ac_fn_check_decl
1.150 moko 2040:
2041: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2042: # -------------------------------------------
2043: # Tests whether TYPE exists after having included INCLUDES, setting cache
2044: # variable VAR accordingly.
2045: ac_fn_c_check_type ()
2046: {
2047: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2048: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049: printf %s "checking for $2... " >&6; }
2050: if eval test \${$3+y}
2051: then :
2052: printf %s "(cached) " >&6
2053: else case e in #(
2054: e) eval "$3=no"
1.150 moko 2055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056: /* end confdefs.h. */
2057: $4
2058: int
1.237 moko 2059: main (void)
1.150 moko 2060: {
2061: if (sizeof ($2))
2062: return 0;
2063: ;
2064: return 0;
2065: }
2066: _ACEOF
1.237 moko 2067: if ac_fn_c_try_compile "$LINENO"
2068: then :
1.150 moko 2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
2072: int
1.237 moko 2073: main (void)
1.150 moko 2074: {
2075: if (sizeof (($2)))
2076: return 0;
2077: ;
2078: return 0;
2079: }
2080: _ACEOF
1.237 moko 2081: if ac_fn_c_try_compile "$LINENO"
2082: then :
1.150 moko 2083:
1.237 moko 2084: else case e in #(
2085: e) eval "$3=yes" ;;
2086: esac
1.150 moko 2087: fi
1.237 moko 2088: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 2089: fi
1.237 moko 2090: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2091: esac
1.150 moko 2092: fi
2093: eval ac_res=\$$3
1.237 moko 2094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2096: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097:
2098: } # ac_fn_c_check_type
2099:
1.237 moko 2100: # ac_fn_c_try_run LINENO
2101: # ----------------------
2102: # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2103: # executables *can* be run.
2104: ac_fn_c_try_run ()
2105: {
2106: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107: if { { ac_try="$ac_link"
2108: case "(($ac_try" in
2109: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110: *) ac_try_echo=$ac_try;;
2111: esac
2112: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113: printf "%s\n" "$ac_try_echo"; } >&5
2114: (eval "$ac_link") 2>&5
2115: ac_status=$?
2116: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2118: { { case "(($ac_try" in
2119: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120: *) ac_try_echo=$ac_try;;
2121: esac
2122: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123: printf "%s\n" "$ac_try_echo"; } >&5
2124: (eval "$ac_try") 2>&5
2125: ac_status=$?
2126: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127: test $ac_status = 0; }; }
2128: then :
2129: ac_retval=0
2130: else case e in #(
2131: e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2132: printf "%s\n" "$as_me: failed program was:" >&5
2133: sed 's/^/| /' conftest.$ac_ext >&5
2134:
2135: ac_retval=$ac_status ;;
2136: esac
2137: fi
2138: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140: as_fn_set_status $ac_retval
2141:
2142: } # ac_fn_c_try_run
2143:
1.156 moko 2144: # ac_fn_c_find_uintX_t LINENO BITS VAR
2145: # ------------------------------------
2146: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2147: # accordingly.
2148: ac_fn_c_find_uintX_t ()
2149: {
2150: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2151: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2152: printf %s "checking for uint$2_t... " >&6; }
2153: if eval test \${$3+y}
2154: then :
2155: printf %s "(cached) " >&6
2156: else case e in #(
2157: e) eval "$3=no"
1.156 moko 2158: # Order is important - never check a type that is potentially smaller
2159: # than half of the expected target width.
2160: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2161: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163: /* end confdefs.h. */
2164: $ac_includes_default
2165: int
1.237 moko 2166: main (void)
1.156 moko 2167: {
2168: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2169: test_array [0] = 0;
2170: return test_array [0];
1.156 moko 2171:
2172: ;
2173: return 0;
2174: }
2175: _ACEOF
1.237 moko 2176: if ac_fn_c_try_compile "$LINENO"
2177: then :
1.156 moko 2178: case $ac_type in #(
2179: uint$2_t) :
2180: eval "$3=yes" ;; #(
2181: *) :
2182: eval "$3=\$ac_type" ;;
2183: esac
2184: fi
1.237 moko 2185: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2186: if eval test \"x\$"$3"\" = x"no"
2187: then :
1.156 moko 2188:
1.237 moko 2189: else case e in #(
2190: e) break ;;
2191: esac
1.156 moko 2192: fi
1.237 moko 2193: done ;;
2194: esac
1.156 moko 2195: fi
2196: eval ac_res=\$$3
1.237 moko 2197: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198: printf "%s\n" "$ac_res" >&6; }
1.156 moko 2199: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200:
2201: } # ac_fn_c_find_uintX_t
2202:
1.234 moko 2203: # ac_fn_c_find_intX_t LINENO BITS VAR
2204: # -----------------------------------
2205: # Finds a signed integer type with width BITS, setting cache variable VAR
2206: # accordingly.
2207: ac_fn_c_find_intX_t ()
2208: {
2209: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2210: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2211: printf %s "checking for int$2_t... " >&6; }
2212: if eval test \${$3+y}
2213: then :
2214: printf %s "(cached) " >&6
2215: else case e in #(
2216: e) eval "$3=no"
1.234 moko 2217: # Order is important - never check a type that is potentially smaller
2218: # than half of the expected target width.
2219: for ac_type in int$2_t 'int' 'long int' \
2220: 'long long int' 'short int' 'signed char'; do
2221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222: /* end confdefs.h. */
2223: $ac_includes_default
2224: enum { N = $2 / 2 - 1 };
2225: int
1.237 moko 2226: main (void)
1.234 moko 2227: {
2228: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2229: test_array [0] = 0;
2230: return test_array [0];
2231:
2232: ;
2233: return 0;
2234: }
2235: _ACEOF
1.237 moko 2236: if ac_fn_c_try_compile "$LINENO"
2237: then :
1.234 moko 2238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239: /* end confdefs.h. */
2240: $ac_includes_default
2241: enum { N = $2 / 2 - 1 };
2242: int
1.237 moko 2243: main (void)
1.234 moko 2244: {
2245: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2246: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2247: test_array [0] = 0;
2248: return test_array [0];
2249:
2250: ;
2251: return 0;
2252: }
2253: _ACEOF
1.237 moko 2254: if ac_fn_c_try_compile "$LINENO"
2255: then :
1.234 moko 2256:
1.237 moko 2257: else case e in #(
2258: e) case $ac_type in #(
1.234 moko 2259: int$2_t) :
2260: eval "$3=yes" ;; #(
2261: *) :
2262: eval "$3=\$ac_type" ;;
1.237 moko 2263: esac ;;
1.234 moko 2264: esac
2265: fi
1.237 moko 2266: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.234 moko 2267: fi
1.237 moko 2268: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2269: if eval test \"x\$"$3"\" = x"no"
2270: then :
1.234 moko 2271:
1.237 moko 2272: else case e in #(
2273: e) break ;;
2274: esac
1.234 moko 2275: fi
1.237 moko 2276: done ;;
2277: esac
1.234 moko 2278: fi
2279: eval ac_res=\$$3
1.237 moko 2280: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281: printf "%s\n" "$ac_res" >&6; }
1.234 moko 2282: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283:
2284: } # ac_fn_c_find_intX_t
2285:
1.161 moko 2286: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2287: # ----------------------------------------------------
2288: # Tries to find if the field MEMBER exists in type AGGR, after including
2289: # INCLUDES, setting cache variable VAR accordingly.
2290: ac_fn_c_check_member ()
2291: {
2292: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2293: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2294: printf %s "checking for $2.$3... " >&6; }
2295: if eval test \${$4+y}
2296: then :
2297: printf %s "(cached) " >&6
2298: else case e in #(
2299: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2300: /* end confdefs.h. */
2301: $5
2302: int
1.237 moko 2303: main (void)
1.161 moko 2304: {
2305: static $2 ac_aggr;
2306: if (ac_aggr.$3)
2307: return 0;
2308: ;
2309: return 0;
2310: }
2311: _ACEOF
1.237 moko 2312: if ac_fn_c_try_compile "$LINENO"
2313: then :
1.161 moko 2314: eval "$4=yes"
1.237 moko 2315: else case e in #(
2316: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2317: /* end confdefs.h. */
2318: $5
2319: int
1.237 moko 2320: main (void)
1.161 moko 2321: {
2322: static $2 ac_aggr;
2323: if (sizeof ac_aggr.$3)
2324: return 0;
2325: ;
2326: return 0;
2327: }
2328: _ACEOF
1.237 moko 2329: if ac_fn_c_try_compile "$LINENO"
2330: then :
1.161 moko 2331: eval "$4=yes"
1.237 moko 2332: else case e in #(
2333: e) eval "$4=no" ;;
2334: esac
1.161 moko 2335: fi
1.237 moko 2336: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2337: esac
1.161 moko 2338: fi
1.237 moko 2339: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2340: esac
1.161 moko 2341: fi
2342: eval ac_res=\$$4
1.237 moko 2343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344: printf "%s\n" "$ac_res" >&6; }
1.161 moko 2345: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346:
2347: } # ac_fn_c_check_member
1.237 moko 2348: ac_configure_args_raw=
2349: for ac_arg
2350: do
2351: case $ac_arg in
2352: *\'*)
2353: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2354: esac
2355: as_fn_append ac_configure_args_raw " '$ac_arg'"
2356: done
2357:
2358: case $ac_configure_args_raw in
2359: *$as_nl*)
2360: ac_safe_unquote= ;;
2361: *)
2362: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2363: ac_unsafe_a="$ac_unsafe_z#~"
2364: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2365: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2366: esac
2367:
2368: cat >config.log <<_ACEOF
2369: This file contains any messages produced by compilers while
2370: running configure, to aid debugging if configure makes a mistake.
2371:
2372: It was created by parser $as_me 3.5.2b, which was
2373: generated by GNU Autoconf 2.72. Invocation command line was
2374:
2375: $ $0$ac_configure_args_raw
1.161 moko 2376:
1.237 moko 2377: _ACEOF
2378: exec 5>>config.log
1.150 moko 2379: {
1.237 moko 2380: cat <<_ASUNAME
2381: ## --------- ##
2382: ## Platform. ##
2383: ## --------- ##
1.150 moko 2384:
2385: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2386: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2387: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2388: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2389: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390:
2391: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2392: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2393:
2394: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2395: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2396: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2397: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2398: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2399: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2400: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2401:
2402: _ASUNAME
2403:
2404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405: for as_dir in $PATH
2406: do
2407: IFS=$as_save_IFS
1.237 moko 2408: case $as_dir in #(((
2409: '') as_dir=./ ;;
2410: */) ;;
2411: *) as_dir=$as_dir/ ;;
2412: esac
2413: printf "%s\n" "PATH: $as_dir"
1.150 moko 2414: done
2415: IFS=$as_save_IFS
1.1 paf 2416:
1.62 paf 2417: } >&5
2418:
2419: cat >&5 <<_ACEOF
2420:
2421:
2422: ## ----------- ##
2423: ## Core tests. ##
2424: ## ----------- ##
2425:
2426: _ACEOF
2427:
2428:
2429: # Keep a trace of the command line.
2430: # Strip out --no-create and --no-recursion so they do not pile up.
2431: # Strip out --silent because we don't want to record it for future runs.
2432: # Also quote any args containing shell meta-characters.
2433: # Make two passes to allow for proper duplicate-argument suppression.
2434: ac_configure_args=
2435: ac_configure_args0=
2436: ac_configure_args1=
2437: ac_must_keep_next=false
2438: for ac_pass in 1 2
2439: do
2440: for ac_arg
2441: do
2442: case $ac_arg in
2443: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2444: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2445: | -silent | --silent | --silen | --sile | --sil)
2446: continue ;;
1.150 moko 2447: *\'*)
1.237 moko 2448: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2449: esac
2450: case $ac_pass in
1.150 moko 2451: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2452: 2)
1.150 moko 2453: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2454: if test $ac_must_keep_next = true; then
1.86 paf 2455: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2456: else
1.86 paf 2457: case $ac_arg in
2458: *=* | --config-cache | -C | -disable-* | --disable-* \
2459: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2460: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2461: | -with-* | --with-* | -without-* | --without-* | --x)
2462: case "$ac_configure_args0 " in
2463: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2464: esac
2465: ;;
2466: -* ) ac_must_keep_next=true ;;
2467: esac
1.62 paf 2468: fi
1.150 moko 2469: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2470: ;;
2471: esac
2472: done
2473: done
1.150 moko 2474: { ac_configure_args0=; unset ac_configure_args0;}
2475: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2476:
2477: # When interrupted or exit'd, cleanup temporary files, and complete
2478: # config.log. We remove comments because anyway the quotes in there
2479: # would cause problems or look ugly.
1.150 moko 2480: # WARNING: Use '\'' to represent an apostrophe within the trap.
2481: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2482: trap 'exit_status=$?
1.237 moko 2483: # Sanitize IFS.
2484: IFS=" "" $as_nl"
1.62 paf 2485: # Save into config.log some information that might help in debugging.
2486: {
2487: echo
2488:
1.237 moko 2489: printf "%s\n" "## ---------------- ##
1.62 paf 2490: ## Cache variables. ##
1.150 moko 2491: ## ---------------- ##"
1.62 paf 2492: echo
2493: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2494: (
2495: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2496: eval ac_val=\$$ac_var
2497: case $ac_val in #(
2498: *${as_nl}*)
2499: case $ac_var in #(
1.237 moko 2500: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2501: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 2502: esac
2503: case $ac_var in #(
2504: _ | IFS | as_nl) ;; #(
2505: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2506: *) { eval $ac_var=; unset $ac_var;} ;;
2507: esac ;;
2508: esac
2509: done
1.62 paf 2510: (set) 2>&1 |
1.150 moko 2511: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2512: *${as_nl}ac_space=\ *)
1.62 paf 2513: sed -n \
1.150 moko 2514: "s/'\''/'\''\\\\'\'''\''/g;
2515: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2516: ;; #(
1.62 paf 2517: *)
1.150 moko 2518: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2519: ;;
1.150 moko 2520: esac |
2521: sort
2522: )
1.62 paf 2523: echo
2524:
1.237 moko 2525: printf "%s\n" "## ----------------- ##
1.62 paf 2526: ## Output variables. ##
1.150 moko 2527: ## ----------------- ##"
1.62 paf 2528: echo
2529: for ac_var in $ac_subst_vars
2530: do
1.150 moko 2531: eval ac_val=\$$ac_var
2532: case $ac_val in
1.237 moko 2533: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2534: esac
1.237 moko 2535: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2536: done | sort
2537: echo
2538:
2539: if test -n "$ac_subst_files"; then
1.237 moko 2540: printf "%s\n" "## ------------------- ##
1.150 moko 2541: ## File substitutions. ##
2542: ## ------------------- ##"
1.62 paf 2543: echo
2544: for ac_var in $ac_subst_files
2545: do
1.150 moko 2546: eval ac_val=\$$ac_var
2547: case $ac_val in
1.237 moko 2548: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2549: esac
1.237 moko 2550: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2551: done | sort
2552: echo
2553: fi
2554:
2555: if test -s confdefs.h; then
1.237 moko 2556: printf "%s\n" "## ----------- ##
1.62 paf 2557: ## confdefs.h. ##
1.150 moko 2558: ## ----------- ##"
1.62 paf 2559: echo
1.150 moko 2560: cat confdefs.h
1.62 paf 2561: echo
2562: fi
2563: test "$ac_signal" != 0 &&
1.237 moko 2564: printf "%s\n" "$as_me: caught signal $ac_signal"
2565: printf "%s\n" "$as_me: exit $exit_status"
1.62 paf 2566: } >&5
1.150 moko 2567: rm -f core *.core core.conftest.* &&
2568: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2569: exit $exit_status
1.150 moko 2570: ' 0
1.62 paf 2571: for ac_signal in 1 2 13 15; do
1.150 moko 2572: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2573: done
2574: ac_signal=0
2575:
2576: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2577: rm -f -r conftest* confdefs.h
2578:
1.237 moko 2579: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.62 paf 2580:
2581: # Predefined preprocessor variables.
2582:
1.237 moko 2583: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.62 paf 2584:
1.237 moko 2585: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.62 paf 2586:
1.237 moko 2587: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.62 paf 2588:
1.237 moko 2589: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.62 paf 2590:
1.237 moko 2591: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.62 paf 2592:
1.237 moko 2593: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.62 paf 2594:
2595:
2596: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2597: # Prefer an explicitly selected file to automatically selected ones.
2598: if test -n "$CONFIG_SITE"; then
1.237 moko 2599: ac_site_files="$CONFIG_SITE"
1.150 moko 2600: elif test "x$prefix" != xNONE; then
1.237 moko 2601: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.150 moko 2602: else
1.237 moko 2603: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.150 moko 2604: fi
1.237 moko 2605:
2606: for ac_site_file in $ac_site_files
1.150 moko 2607: do
1.237 moko 2608: case $ac_site_file in #(
2609: */*) :
2610: ;; #(
2611: *) :
2612: ac_site_file=./$ac_site_file ;;
2613: esac
2614: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2615: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2617: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2618: . "$ac_site_file" \
1.237 moko 2619: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2620: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 2621: as_fn_error $? "failed to load site script $ac_site_file
1.237 moko 2622: See 'config.log' for more details" "$LINENO" 5; }
1.1 paf 2623: fi
2624: done
2625:
2626: if test -r "$cache_file"; then
1.150 moko 2627: # Some versions of bash will fail to source /dev/null (special files
2628: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.237 moko 2630: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2632: case $cache_file in
1.150 moko 2633: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634: *) . "./$cache_file";;
1.62 paf 2635: esac
2636: fi
1.1 paf 2637: else
1.237 moko 2638: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2640: >$cache_file
2641: fi
2642:
1.237 moko 2643: # Test code for whether the C++ compiler supports C++98 (global declarations)
2644: ac_cxx_conftest_cxx98_globals='
2645: // Does the compiler advertise C++98 conformance?
2646: #if !defined __cplusplus || __cplusplus < 199711L
2647: # error "Compiler does not advertise C++98 conformance"
2648: #endif
2649:
2650: // These inclusions are to reject old compilers that
2651: // lack the unsuffixed header files.
2652: #include <cstdlib>
2653: #include <exception>
2654:
2655: // <cassert> and <cstring> are *not* freestanding headers in C++98.
2656: extern void assert (int);
2657: namespace std {
2658: extern int strcmp (const char *, const char *);
2659: }
2660:
2661: // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2662: using std::exception;
2663: using std::strcmp;
2664:
2665: namespace {
2666:
2667: void test_exception_syntax()
2668: {
2669: try {
2670: throw "test";
2671: } catch (const char *s) {
2672: // Extra parentheses suppress a warning when building autoconf itself,
2673: // due to lint rules shared with more typical C programs.
2674: assert (!(strcmp) (s, "test"));
2675: }
2676: }
2677:
2678: template <typename T> struct test_template
2679: {
2680: T const val;
2681: explicit test_template(T t) : val(t) {}
2682: template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2683: };
2684:
2685: } // anonymous namespace
2686: '
2687:
2688: # Test code for whether the C++ compiler supports C++98 (body of main)
2689: ac_cxx_conftest_cxx98_main='
2690: assert (argc);
2691: assert (! argv[0]);
2692: {
2693: test_exception_syntax ();
2694: test_template<double> tt (2.0);
2695: assert (tt.add (4) == 6.0);
2696: assert (true && !false);
2697: }
2698: '
2699:
2700: # Test code for whether the C++ compiler supports C++11 (global declarations)
2701: ac_cxx_conftest_cxx11_globals='
2702: // Does the compiler advertise C++ 2011 conformance?
2703: #if !defined __cplusplus || __cplusplus < 201103L
2704: # error "Compiler does not advertise C++11 conformance"
2705: #endif
2706:
2707: namespace cxx11test
2708: {
2709: constexpr int get_val() { return 20; }
2710:
2711: struct testinit
2712: {
2713: int i;
2714: double d;
2715: };
2716:
2717: class delegate
2718: {
2719: public:
2720: delegate(int n) : n(n) {}
2721: delegate(): delegate(2354) {}
2722:
2723: virtual int getval() { return this->n; };
2724: protected:
2725: int n;
2726: };
2727:
2728: class overridden : public delegate
2729: {
2730: public:
2731: overridden(int n): delegate(n) {}
2732: virtual int getval() override final { return this->n * 2; }
2733: };
2734:
2735: class nocopy
2736: {
2737: public:
2738: nocopy(int i): i(i) {}
2739: nocopy() = default;
2740: nocopy(const nocopy&) = delete;
2741: nocopy & operator=(const nocopy&) = delete;
2742: private:
2743: int i;
2744: };
2745:
2746: // for testing lambda expressions
2747: template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2748: {
2749: return f(v);
2750: }
2751:
2752: // for testing variadic templates and trailing return types
2753: template <typename V> auto sum(V first) -> V
2754: {
2755: return first;
2756: }
2757: template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2758: {
2759: return first + sum(rest...);
2760: }
2761: }
2762: '
2763:
2764: # Test code for whether the C++ compiler supports C++11 (body of main)
2765: ac_cxx_conftest_cxx11_main='
2766: {
2767: // Test auto and decltype
2768: auto a1 = 6538;
2769: auto a2 = 48573953.4;
2770: auto a3 = "String literal";
2771:
2772: int total = 0;
2773: for (auto i = a3; *i; ++i) { total += *i; }
2774:
2775: decltype(a2) a4 = 34895.034;
2776: }
2777: {
2778: // Test constexpr
2779: short sa[cxx11test::get_val()] = { 0 };
2780: }
2781: {
2782: // Test initializer lists
2783: cxx11test::testinit il = { 4323, 435234.23544 };
2784: }
2785: {
2786: // Test range-based for
2787: int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2788: 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2789: for (auto &x : array) { x += 23; }
2790: }
2791: {
2792: // Test lambda expressions
2793: using cxx11test::eval;
2794: assert (eval ([](int x) { return x*2; }, 21) == 42);
2795: double d = 2.0;
2796: assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2797: assert (d == 5.0);
2798: assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2799: assert (d == 5.0);
2800: }
2801: {
2802: // Test use of variadic templates
2803: using cxx11test::sum;
2804: auto a = sum(1);
2805: auto b = sum(1, 2);
2806: auto c = sum(1.0, 2.0, 3.0);
2807: }
2808: {
2809: // Test constructor delegation
2810: cxx11test::delegate d1;
2811: cxx11test::delegate d2();
2812: cxx11test::delegate d3(45);
2813: }
2814: {
2815: // Test override and final
2816: cxx11test::overridden o1(55464);
2817: }
2818: {
2819: // Test nullptr
2820: char *c = nullptr;
2821: }
2822: {
2823: // Test template brackets
2824: test_template<::test_template<int>> v(test_template<int>(12));
2825: }
2826: {
2827: // Unicode literals
2828: char const *utf8 = u8"UTF-8 string \u2500";
2829: char16_t const *utf16 = u"UTF-8 string \u2500";
2830: char32_t const *utf32 = U"UTF-32 string \u2500";
2831: }
2832: '
2833:
2834: # Test code for whether the C compiler supports C++11 (complete).
2835: ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2836: ${ac_cxx_conftest_cxx11_globals}
2837:
2838: int
2839: main (int argc, char **argv)
2840: {
2841: int ok = 0;
2842: ${ac_cxx_conftest_cxx98_main}
2843: ${ac_cxx_conftest_cxx11_main}
2844: return ok;
2845: }
2846: "
2847:
2848: # Test code for whether the C compiler supports C++98 (complete).
2849: ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2850: int
2851: main (int argc, char **argv)
2852: {
2853: int ok = 0;
2854: ${ac_cxx_conftest_cxx98_main}
2855: return ok;
2856: }
2857: "
2858:
2859: # Test code for whether the C compiler supports C89 (global declarations)
2860: ac_c_conftest_c89_globals='
2861: /* Does the compiler advertise C89 conformance?
2862: Do not test the value of __STDC__, because some compilers set it to 0
2863: while being otherwise adequately conformant. */
2864: #if !defined __STDC__
2865: # error "Compiler does not advertise C89 conformance"
2866: #endif
2867:
2868: #include <stddef.h>
2869: #include <stdarg.h>
2870: struct stat;
2871: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2872: struct buf { int x; };
2873: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2874: static char *e (char **p, int i)
2875: {
2876: return p[i];
2877: }
2878: static char *f (char * (*g) (char **, int), char **p, ...)
2879: {
2880: char *s;
2881: va_list v;
2882: va_start (v,p);
2883: s = g (p, va_arg (v,int));
2884: va_end (v);
2885: return s;
2886: }
2887:
2888: /* C89 style stringification. */
2889: #define noexpand_stringify(a) #a
2890: const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2891:
2892: /* C89 style token pasting. Exercises some of the corner cases that
2893: e.g. old MSVC gets wrong, but not very hard. */
2894: #define noexpand_concat(a,b) a##b
2895: #define expand_concat(a,b) noexpand_concat(a,b)
2896: extern int vA;
2897: extern int vbee;
2898: #define aye A
2899: #define bee B
2900: int *pvA = &expand_concat(v,aye);
2901: int *pvbee = &noexpand_concat(v,bee);
2902:
2903: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2904: function prototypes and stuff, but not \xHH hex character constants.
2905: These do not provoke an error unfortunately, instead are silently treated
2906: as an "x". The following induces an error, until -std is added to get
2907: proper ANSI mode. Curiously \x00 != x always comes out true, for an
2908: array size at least. It is necessary to write \x00 == 0 to get something
2909: that is true only with -std. */
2910: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2911:
2912: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2913: inside strings and character constants. */
2914: #define FOO(x) '\''x'\''
2915: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2916:
2917: int test (int i, double x);
2918: struct s1 {int (*f) (int a);};
2919: struct s2 {int (*f) (double a);};
2920: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2921: int, int);'
2922:
2923: # Test code for whether the C compiler supports C89 (body of main).
2924: ac_c_conftest_c89_main='
2925: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2926: '
2927:
2928: # Test code for whether the C compiler supports C99 (global declarations)
2929: ac_c_conftest_c99_globals='
2930: /* Does the compiler advertise C99 conformance? */
2931: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2932: # error "Compiler does not advertise C99 conformance"
2933: #endif
2934:
2935: // See if C++-style comments work.
2936:
2937: #include <stdbool.h>
2938: extern int puts (const char *);
2939: extern int printf (const char *, ...);
2940: extern int dprintf (int, const char *, ...);
2941: extern void *malloc (size_t);
2942: extern void free (void *);
2943:
2944: // Check varargs macros. These examples are taken from C99 6.10.3.5.
2945: // dprintf is used instead of fprintf to avoid needing to declare
2946: // FILE and stderr.
2947: #define debug(...) dprintf (2, __VA_ARGS__)
2948: #define showlist(...) puts (#__VA_ARGS__)
2949: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2950: static void
2951: test_varargs_macros (void)
2952: {
2953: int x = 1234;
2954: int y = 5678;
2955: debug ("Flag");
2956: debug ("X = %d\n", x);
2957: showlist (The first, second, and third items.);
2958: report (x>y, "x is %d but y is %d", x, y);
2959: }
2960:
2961: // Check long long types.
2962: #define BIG64 18446744073709551615ull
2963: #define BIG32 4294967295ul
2964: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2965: #if !BIG_OK
2966: #error "your preprocessor is broken"
2967: #endif
2968: #if BIG_OK
2969: #else
2970: #error "your preprocessor is broken"
2971: #endif
2972: static long long int bignum = -9223372036854775807LL;
2973: static unsigned long long int ubignum = BIG64;
2974:
2975: struct incomplete_array
2976: {
2977: int datasize;
2978: double data[];
2979: };
2980:
2981: struct named_init {
2982: int number;
2983: const wchar_t *name;
2984: double average;
2985: };
2986:
2987: typedef const char *ccp;
2988:
2989: static inline int
2990: test_restrict (ccp restrict text)
2991: {
2992: // Iterate through items via the restricted pointer.
2993: // Also check for declarations in for loops.
2994: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2995: continue;
2996: return 0;
2997: }
2998:
2999: // Check varargs and va_copy.
3000: static bool
3001: test_varargs (const char *format, ...)
3002: {
3003: va_list args;
3004: va_start (args, format);
3005: va_list args_copy;
3006: va_copy (args_copy, args);
3007:
3008: const char *str = "";
3009: int number = 0;
3010: float fnumber = 0;
3011:
3012: while (*format)
3013: {
3014: switch (*format++)
3015: {
3016: case '\''s'\'': // string
3017: str = va_arg (args_copy, const char *);
3018: break;
3019: case '\''d'\'': // int
3020: number = va_arg (args_copy, int);
3021: break;
3022: case '\''f'\'': // float
3023: fnumber = va_arg (args_copy, double);
3024: break;
3025: default:
3026: break;
3027: }
3028: }
3029: va_end (args_copy);
3030: va_end (args);
3031:
3032: return *str && number && fnumber;
3033: }
3034: '
3035:
3036: # Test code for whether the C compiler supports C99 (body of main).
3037: ac_c_conftest_c99_main='
3038: // Check bool.
3039: _Bool success = false;
3040: success |= (argc != 0);
3041:
3042: // Check restrict.
3043: if (test_restrict ("String literal") == 0)
3044: success = true;
3045: char *restrict newvar = "Another string";
3046:
3047: // Check varargs.
3048: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3049: test_varargs_macros ();
3050:
3051: // Check flexible array members.
3052: struct incomplete_array *ia =
3053: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3054: ia->datasize = 10;
3055: for (int i = 0; i < ia->datasize; ++i)
3056: ia->data[i] = i * 1.234;
3057: // Work around memory leak warnings.
3058: free (ia);
3059:
3060: // Check named initializers.
3061: struct named_init ni = {
3062: .number = 34,
3063: .name = L"Test wide string",
3064: .average = 543.34343,
3065: };
3066:
3067: ni.number = 58;
3068:
3069: int dynamic_array[ni.number];
3070: dynamic_array[0] = argv[0][0];
3071: dynamic_array[ni.number - 1] = 543;
3072:
3073: // work around unused variable warnings
3074: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3075: || dynamic_array[ni.number - 1] != 543);
3076: '
3077:
3078: # Test code for whether the C compiler supports C11 (global declarations)
3079: ac_c_conftest_c11_globals='
3080: /* Does the compiler advertise C11 conformance? */
3081: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3082: # error "Compiler does not advertise C11 conformance"
3083: #endif
3084:
3085: // Check _Alignas.
3086: char _Alignas (double) aligned_as_double;
3087: char _Alignas (0) no_special_alignment;
3088: extern char aligned_as_int;
3089: char _Alignas (0) _Alignas (int) aligned_as_int;
3090:
3091: // Check _Alignof.
3092: enum
3093: {
3094: int_alignment = _Alignof (int),
3095: int_array_alignment = _Alignof (int[100]),
3096: char_alignment = _Alignof (char)
3097: };
3098: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3099:
3100: // Check _Noreturn.
3101: int _Noreturn does_not_return (void) { for (;;) continue; }
3102:
3103: // Check _Static_assert.
3104: struct test_static_assert
3105: {
3106: int x;
3107: _Static_assert (sizeof (int) <= sizeof (long int),
3108: "_Static_assert does not work in struct");
3109: long int y;
3110: };
3111:
3112: // Check UTF-8 literals.
3113: #define u8 syntax error!
3114: char const utf8_literal[] = u8"happens to be ASCII" "another string";
3115:
3116: // Check duplicate typedefs.
3117: typedef long *long_ptr;
3118: typedef long int *long_ptr;
3119: typedef long_ptr long_ptr;
3120:
3121: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3122: struct anonymous
3123: {
3124: union {
3125: struct { int i; int j; };
3126: struct { int k; long int l; } w;
3127: };
3128: int m;
3129: } v1;
3130: '
3131:
3132: # Test code for whether the C compiler supports C11 (body of main).
3133: ac_c_conftest_c11_main='
3134: _Static_assert ((offsetof (struct anonymous, i)
3135: == offsetof (struct anonymous, w.k)),
3136: "Anonymous union alignment botch");
3137: v1.i = 2;
3138: v1.w.k = 5;
3139: ok |= v1.i != 5;
3140: '
3141:
3142: # Test code for whether the C compiler supports C11 (complete).
3143: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3144: ${ac_c_conftest_c99_globals}
3145: ${ac_c_conftest_c11_globals}
3146:
3147: int
3148: main (int argc, char **argv)
3149: {
3150: int ok = 0;
3151: ${ac_c_conftest_c89_main}
3152: ${ac_c_conftest_c99_main}
3153: ${ac_c_conftest_c11_main}
3154: return ok;
3155: }
3156: "
3157:
3158: # Test code for whether the C compiler supports C99 (complete).
3159: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3160: ${ac_c_conftest_c99_globals}
3161:
3162: int
3163: main (int argc, char **argv)
3164: {
3165: int ok = 0;
3166: ${ac_c_conftest_c89_main}
3167: ${ac_c_conftest_c99_main}
3168: return ok;
3169: }
3170: "
3171:
3172: # Test code for whether the C compiler supports C89 (complete).
3173: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3174:
3175: int
3176: main (int argc, char **argv)
3177: {
3178: int ok = 0;
3179: ${ac_c_conftest_c89_main}
3180: return ok;
3181: }
3182: "
3183:
3184: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3185: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3186: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3187: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3188: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3189: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3190: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3191: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3192: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3193:
3194: # Auxiliary files required by this configure script.
3195: ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
3196:
3197: # Locations in which to look for auxiliary files.
3198: ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3199:
3200: # Search for a directory containing all of the required auxiliary files,
3201: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3202: # If we don't find one directory that contains all the files we need,
3203: # we report the set of missing files from the *first* directory in
3204: # $ac_aux_dir_candidates and give up.
3205: ac_missing_aux_files=""
3206: ac_first_candidate=:
3207: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209: as_found=false
3210: for as_dir in $ac_aux_dir_candidates
3211: do
3212: IFS=$as_save_IFS
3213: case $as_dir in #(((
3214: '') as_dir=./ ;;
3215: */) ;;
3216: *) as_dir=$as_dir/ ;;
3217: esac
3218: as_found=:
3219:
3220: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3221: ac_aux_dir_found=yes
3222: ac_install_sh=
3223: for ac_aux in $ac_aux_files
3224: do
3225: # As a special case, if "install-sh" is required, that requirement
3226: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3227: # and $ac_install_sh is set appropriately for whichever one is found.
3228: if test x"$ac_aux" = x"install-sh"
3229: then
3230: if test -f "${as_dir}install-sh"; then
3231: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3232: ac_install_sh="${as_dir}install-sh -c"
3233: elif test -f "${as_dir}install.sh"; then
3234: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3235: ac_install_sh="${as_dir}install.sh -c"
3236: elif test -f "${as_dir}shtool"; then
3237: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3238: ac_install_sh="${as_dir}shtool install -c"
3239: else
3240: ac_aux_dir_found=no
3241: if $ac_first_candidate; then
3242: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3243: else
3244: break
3245: fi
3246: fi
3247: else
3248: if test -f "${as_dir}${ac_aux}"; then
3249: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3250: else
3251: ac_aux_dir_found=no
3252: if $ac_first_candidate; then
3253: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3254: else
3255: break
3256: fi
3257: fi
3258: fi
3259: done
3260: if test "$ac_aux_dir_found" = yes; then
3261: ac_aux_dir="$as_dir"
3262: break
3263: fi
3264: ac_first_candidate=false
3265:
3266: as_found=false
3267: done
3268: IFS=$as_save_IFS
3269: if $as_found
3270: then :
3271:
3272: else case e in #(
3273: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3274: esac
3275: fi
3276:
3277:
3278: # These three variables are undocumented and unsupported,
3279: # and are intended to be withdrawn in a future Autoconf release.
3280: # They can cause serious problems if a builder's source tree is in a directory
3281: # whose full name contains unusual characters.
3282: if test -f "${ac_aux_dir}config.guess"; then
3283: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3284: fi
3285: if test -f "${ac_aux_dir}config.sub"; then
3286: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3287: fi
3288: if test -f "$ac_aux_dir/configure"; then
3289: ac_configure="$SHELL ${ac_aux_dir}configure"
3290: fi
3291:
1.62 paf 3292: # Check that the precious variables saved in the cache have kept the same
3293: # value.
3294: ac_cache_corrupted=false
1.150 moko 3295: for ac_var in $ac_precious_vars; do
1.62 paf 3296: eval ac_old_set=\$ac_cv_env_${ac_var}_set
3297: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 3298: eval ac_old_val=\$ac_cv_env_${ac_var}_value
3299: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 3300: case $ac_old_set,$ac_new_set in
3301: set,)
1.237 moko 3302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3303: printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
1.62 paf 3304: ac_cache_corrupted=: ;;
3305: ,set)
1.237 moko 3306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3307: printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
1.62 paf 3308: ac_cache_corrupted=: ;;
3309: ,);;
3310: *)
3311: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 3312: # differences in whitespace do not lead to failure.
3313: ac_old_val_w=`echo x $ac_old_val`
3314: ac_new_val_w=`echo x $ac_new_val`
3315: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.237 moko 3316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3317: printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
1.150 moko 3318: ac_cache_corrupted=:
3319: else
1.237 moko 3320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3321: printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
1.150 moko 3322: eval $ac_var=\$ac_old_val
3323: fi
1.237 moko 3324: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3325: printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3326: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3327: printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
1.62 paf 3328: fi;;
3329: esac
3330: # Pass precious variables to config.status.
3331: if test "$ac_new_set" = set; then
3332: case $ac_new_val in
1.237 moko 3333: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 3334: *) ac_arg=$ac_var=$ac_new_val ;;
3335: esac
3336: case " $ac_configure_args " in
3337: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 3338: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 3339: esac
3340: fi
3341: done
3342: if $ac_cache_corrupted; then
1.237 moko 3343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3344: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3345: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3346: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3347: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3348: and start over" "$LINENO" 5
1.150 moko 3349: fi
3350: ## -------------------- ##
3351: ## Main body of script. ##
3352: ## -------------------- ##
1.1 paf 3353:
3354: ac_ext=c
3355: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 3356: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359:
3360:
3361:
3362:
3363:
1.229 moko 3364:
1.237 moko 3365: am__api_version='1.17'
3366:
1.150 moko 3367:
1.1 paf 3368:
1.237 moko 3369: # Find a good install program. We prefer a C program (faster),
1.1 paf 3370: # so one script is as good as another. But avoid the broken or
3371: # incompatible versions:
3372: # SysV /etc/install, /usr/sbin/install
3373: # SunOS /usr/etc/install
3374: # IRIX /sbin/install
3375: # AIX /bin/install
1.62 paf 3376: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 3377: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3378: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3379: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 3380: # OS/2's system install, which has a completely different semantic
1.1 paf 3381: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 3382: # Reject install programs that cannot install multiple files.
1.237 moko 3383: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3384: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 paf 3385: if test -z "$INSTALL"; then
1.237 moko 3386: if test ${ac_cv_path_install+y}
3387: then :
3388: printf %s "(cached) " >&6
3389: else case e in #(
3390: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.62 paf 3391: for as_dir in $PATH
3392: do
3393: IFS=$as_save_IFS
1.237 moko 3394: case $as_dir in #(((
3395: '') as_dir=./ ;;
3396: */) ;;
3397: *) as_dir=$as_dir/ ;;
3398: esac
3399: # Account for fact that we put trailing slashes in our PATH walk.
3400: case $as_dir in #((
3401: ./ | /[cC]/* | \
1.62 paf 3402: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 3403: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 3404: /usr/ucb/* ) ;;
3405: *)
3406: # OSF1 and SCO ODT 3.0 have their own names for install.
3407: # Don't use installbsd from OSF since it installs stuff as root
3408: # by default.
3409: for ac_prog in ginstall scoinst install; do
3410: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3411: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.86 paf 3412: if test $ac_prog = install &&
1.237 moko 3413: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3414: # AIX install. It has an incompatible calling convention.
3415: :
3416: elif test $ac_prog = install &&
1.237 moko 3417: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3418: # program-specific install script used by HP pwplus--don't use.
3419: :
3420: else
1.150 moko 3421: rm -rf conftest.one conftest.two conftest.dir
3422: echo one > conftest.one
3423: echo two > conftest.two
3424: mkdir conftest.dir
1.237 moko 3425: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.150 moko 3426: test -s conftest.one && test -s conftest.two &&
3427: test -s conftest.dir/conftest.one &&
3428: test -s conftest.dir/conftest.two
3429: then
1.237 moko 3430: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.150 moko 3431: break 3
3432: fi
1.86 paf 3433: fi
3434: fi
1.1 paf 3435: done
1.62 paf 3436: done
3437: ;;
3438: esac
3439:
1.150 moko 3440: done
3441: IFS=$as_save_IFS
3442:
3443: rm -rf conftest.one conftest.two conftest.dir
1.237 moko 3444: ;;
3445: esac
1.1 paf 3446: fi
1.237 moko 3447: if test ${ac_cv_path_install+y}; then
1.62 paf 3448: INSTALL=$ac_cv_path_install
1.1 paf 3449: else
1.150 moko 3450: # As a last resort, use the slow shell script. Don't cache a
3451: # value for INSTALL within a source directory, because that will
1.1 paf 3452: # break other packages using the cache if that directory is
1.150 moko 3453: # removed, or if the value is a relative name.
1.62 paf 3454: INSTALL=$ac_install_sh
1.1 paf 3455: fi
3456: fi
1.237 moko 3457: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3458: printf "%s\n" "$INSTALL" >&6; }
1.1 paf 3459:
3460: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3461: # It thinks the first close brace ends the variable substitution.
3462: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3463:
1.62 paf 3464: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 3465:
3466: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3467:
1.237 moko 3468: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3469: printf %s "checking whether sleep supports fractional seconds... " >&6; }
3470: if test ${am_cv_sleep_fractional_seconds+y}
3471: then :
3472: printf %s "(cached) " >&6
3473: else case e in #(
3474: e) if sleep 0.001 2>/dev/null
3475: then :
3476: am_cv_sleep_fractional_seconds=yes
3477: else case e in #(
3478: e) am_cv_sleep_fractional_seconds=no ;;
3479: esac
3480: fi
3481: ;;
3482: esac
3483: fi
3484: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3485: printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3486:
3487: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3488: printf %s "checking filesystem timestamp resolution... " >&6; }
3489: if test ${am_cv_filesystem_timestamp_resolution+y}
3490: then :
3491: printf %s "(cached) " >&6
3492: else case e in #(
3493: e) # Default to the worst case.
3494: am_cv_filesystem_timestamp_resolution=2
3495:
3496: # Only try to go finer than 1 sec if sleep can do it.
3497: # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3498: # - 1 sec is not much of a win compared to 2 sec, and
3499: # - it takes 2 seconds to perform the test whether 1 sec works.
3500: #
3501: # Instead, just use the default 2s on platforms that have 1s resolution,
3502: # accept the extra 1s delay when using $sleep in the Automake tests, in
3503: # exchange for not incurring the 2s delay for running the test for all
3504: # packages.
3505: #
3506: am_try_resolutions=
3507: if test "$am_cv_sleep_fractional_seconds" = yes; then
3508: # Even a millisecond often causes a bunch of false positives,
3509: # so just try a hundredth of a second. The time saved between .001 and
3510: # .01 is not terribly consequential.
3511: am_try_resolutions="0.01 0.1 $am_try_resolutions"
3512: fi
3513:
3514: # In order to catch current-generation FAT out, we must *modify* files
3515: # that already exist; the *creation* timestamp is finer. Use names
3516: # that make ls -t sort them differently when they have equal
3517: # timestamps than when they have distinct timestamps, keeping
3518: # in mind that ls -t prints the *newest* file first.
3519: rm -f conftest.ts?
3520: : > conftest.ts1
3521: : > conftest.ts2
3522: : > conftest.ts3
3523:
3524: # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3525: # clobber the current shell's arguments. (Outer-level square brackets
3526: # are removed by m4; they're present so that m4 does not expand
3527: # <dollar><star>; be careful, easy to get confused.)
3528: if (
3529: set X `ls -t conftest.ts[12]` &&
3530: {
3531: test "$*" != "X conftest.ts1 conftest.ts2" ||
3532: test "$*" != "X conftest.ts2 conftest.ts1";
3533: }
3534: ); then :; else
3535: # If neither matched, then we have a broken ls. This can happen
3536: # if, for instance, CONFIG_SHELL is bash and it inherits a
3537: # broken ls alias from the environment. This has actually
3538: # happened. Such a system could not be considered "sane".
3539: printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3540: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3541: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3542: as_fn_error $? "ls -t produces unexpected output.
3543: Make sure there is not a broken ls alias in your environment.
3544: See 'config.log' for more details" "$LINENO" 5; }
3545: fi
3546:
3547: for am_try_res in $am_try_resolutions; do
3548: # Any one fine-grained sleep might happen to cross the boundary
3549: # between two values of a coarser actual resolution, but if we do
3550: # two fine-grained sleeps in a row, at least one of them will fall
3551: # entirely within a coarse interval.
3552: echo alpha > conftest.ts1
3553: sleep $am_try_res
3554: echo beta > conftest.ts2
3555: sleep $am_try_res
3556: echo gamma > conftest.ts3
3557:
3558: # We assume that 'ls -t' will make use of high-resolution
3559: # timestamps if the operating system supports them at all.
3560: if (set X `ls -t conftest.ts?` &&
3561: test "$2" = conftest.ts3 &&
3562: test "$3" = conftest.ts2 &&
3563: test "$4" = conftest.ts1); then
3564: #
3565: # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3566: # because we don't need to test make.
3567: make_ok=true
3568: if test $am_try_res != 1; then
3569: # But if we've succeeded so far with a subsecond resolution, we
3570: # have one more thing to check: make. It can happen that
3571: # everything else supports the subsecond mtimes, but make doesn't;
3572: # notably on macOS, which ships make 3.81 from 2006 (the last one
3573: # released under GPLv2). https://bugs.gnu.org/68808
3574: #
3575: # We test $MAKE if it is defined in the environment, else "make".
3576: # It might get overridden later, but our hope is that in practice
3577: # it does not matter: it is the system "make" which is (by far)
3578: # the most likely to be broken, whereas if the user overrides it,
3579: # probably they did so with a better, or at least not worse, make.
3580: # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3581: #
3582: # Create a Makefile (real tab character here):
3583: rm -f conftest.mk
3584: echo 'conftest.ts1: conftest.ts2' >conftest.mk
3585: echo ' touch conftest.ts2' >>conftest.mk
3586: #
3587: # Now, running
3588: # touch conftest.ts1; touch conftest.ts2; make
3589: # should touch ts1 because ts2 is newer. This could happen by luck,
3590: # but most often, it will fail if make's support is insufficient. So
3591: # test for several consecutive successes.
3592: #
3593: # (We reuse conftest.ts[12] because we still want to modify existing
3594: # files, not create new ones, per above.)
3595: n=0
3596: make=${MAKE-make}
3597: until test $n -eq 3; do
3598: echo one > conftest.ts1
3599: sleep $am_try_res
3600: echo two > conftest.ts2 # ts2 should now be newer than ts1
3601: if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3602: make_ok=false
3603: break # out of $n loop
3604: fi
3605: n=`expr $n + 1`
3606: done
3607: fi
3608: #
3609: if $make_ok; then
3610: # Everything we know to check worked out, so call this resolution good.
3611: am_cv_filesystem_timestamp_resolution=$am_try_res
3612: break # out of $am_try_res loop
3613: fi
3614: # Otherwise, we'll go on to check the next resolution.
3615: fi
3616: done
3617: rm -f conftest.ts?
3618: # (end _am_filesystem_timestamp_resolution)
3619: ;;
3620: esac
3621: fi
3622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3623: printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3624:
3625: # This check should not be cached, as it may vary across builds of
3626: # different projects.
3627: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3628: printf %s "checking whether build environment is sane... " >&6; }
1.150 moko 3629: # Reject unsafe characters in $srcdir or the absolute working directory
3630: # name. Accept space and tab only in the latter.
3631: am_lf='
3632: '
3633: case `pwd` in
3634: *[\\\"\#\$\&\'\`$am_lf]*)
3635: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3636: esac
3637: case $srcdir in
3638: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 3639: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 3640: esac
3641:
1.187 moko 3642: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 3643: # arguments. Must try -L first in case configure is actually a
3644: # symlink; some systems play weird games with the mod time of symlinks
3645: # (eg FreeBSD returns the mod time of the symlink's containing
3646: # directory).
1.237 moko 3647: am_build_env_is_sane=no
3648: am_has_slept=no
3649: rm -f conftest.file
3650: for am_try in 1 2; do
3651: echo "timestamp, slept: $am_has_slept" > conftest.file
3652: if (
3653: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3654: if test "$*" = "X"; then
3655: # -L didn't work.
3656: set X `ls -t "$srcdir/configure" conftest.file`
3657: fi
3658: test "$2" = conftest.file
3659: ); then
3660: am_build_env_is_sane=yes
3661: break
3662: fi
3663: # Just in case.
3664: sleep "$am_cv_filesystem_timestamp_resolution"
3665: am_has_slept=yes
3666: done
1.1 paf 3667:
1.237 moko 3668: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3669: printf "%s\n" "$am_build_env_is_sane" >&6; }
3670: if test "$am_build_env_is_sane" = no; then
3671: as_fn_error $? "newly created file is older than distributed files!
1.150 moko 3672: Check your system clock" "$LINENO" 5
1.1 paf 3673: fi
1.237 moko 3674:
1.187 moko 3675: # If we didn't sleep, we still need to ensure time stamps of config.status and
3676: # generated files are strictly newer.
3677: am_sleep_pid=
1.237 moko 3678: if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3679: then :
3680:
3681: else case e in #(
3682: e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
1.187 moko 3683: am_sleep_pid=$!
1.237 moko 3684: ;;
3685: esac
1.187 moko 3686: fi
3687:
3688: rm -f conftest.file
3689:
1.1 paf 3690: test "$program_prefix" != NONE &&
1.150 moko 3691: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 3692: # Use a double $ so make ignores it.
3693: test "$program_suffix" != NONE &&
1.150 moko 3694: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3695: # Double any \ or $.
1.237 moko 3696: # By default was 's,x,x', remove it if useless.
1.150 moko 3697: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1.237 moko 3698: program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3699:
1.62 paf 3700:
1.187 moko 3701: # Expand $ac_aux_dir to an absolute path.
3702: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 3703:
1.237 moko 3704:
3705: if test x"${MISSING+set}" != xset; then
1.216 moko 3706: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.150 moko 3707: fi
1.62 paf 3708: # Use eval to expand $SHELL
1.187 moko 3709: if eval "$MISSING --is-lightweight"; then
3710: am_missing_run="$MISSING "
1.62 paf 3711: else
3712: am_missing_run=
1.237 moko 3713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3714: printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 3715: fi
3716:
1.187 moko 3717: if test x"${install_sh+set}" != xset; then
1.150 moko 3718: case $am_aux_dir in
3719: *\ * | *\ *)
3720: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3721: *)
3722: install_sh="\${SHELL} $am_aux_dir/install-sh"
3723: esac
1.86 paf 3724: fi
3725:
1.187 moko 3726: # Installed binaries are usually stripped using 'strip' when the user
3727: # run "make install-strip". However 'strip' might not be the right
1.150 moko 3728: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 3729: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 3730: if test "$cross_compiling" != no; then
3731: if test -n "$ac_tool_prefix"; then
3732: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3733: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.237 moko 3734: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735: printf %s "checking for $ac_word... " >&6; }
3736: if test ${ac_cv_prog_STRIP+y}
3737: then :
3738: printf %s "(cached) " >&6
3739: else case e in #(
3740: e) if test -n "$STRIP"; then
1.150 moko 3741: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3742: else
3743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744: for as_dir in $PATH
3745: do
3746: IFS=$as_save_IFS
1.237 moko 3747: case $as_dir in #(((
3748: '') as_dir=./ ;;
3749: */) ;;
3750: *) as_dir=$as_dir/ ;;
3751: esac
1.150 moko 3752: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3753: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3754: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.237 moko 3755: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3756: break 2
3757: fi
3758: done
3759: done
3760: IFS=$as_save_IFS
3761:
1.237 moko 3762: fi ;;
3763: esac
1.150 moko 3764: fi
3765: STRIP=$ac_cv_prog_STRIP
3766: if test -n "$STRIP"; then
1.237 moko 3767: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3768: printf "%s\n" "$STRIP" >&6; }
1.150 moko 3769: else
1.237 moko 3770: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771: printf "%s\n" "no" >&6; }
1.150 moko 3772: fi
3773:
3774:
3775: fi
3776: if test -z "$ac_cv_prog_STRIP"; then
3777: ac_ct_STRIP=$STRIP
3778: # Extract the first word of "strip", so it can be a program name with args.
3779: set dummy strip; ac_word=$2
1.237 moko 3780: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781: printf %s "checking for $ac_word... " >&6; }
3782: if test ${ac_cv_prog_ac_ct_STRIP+y}
3783: then :
3784: printf %s "(cached) " >&6
3785: else case e in #(
3786: e) if test -n "$ac_ct_STRIP"; then
1.150 moko 3787: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3788: else
3789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790: for as_dir in $PATH
3791: do
3792: IFS=$as_save_IFS
1.237 moko 3793: case $as_dir in #(((
3794: '') as_dir=./ ;;
3795: */) ;;
3796: *) as_dir=$as_dir/ ;;
3797: esac
1.150 moko 3798: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3799: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3800: ac_cv_prog_ac_ct_STRIP="strip"
1.237 moko 3801: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3802: break 2
3803: fi
3804: done
3805: done
3806: IFS=$as_save_IFS
3807:
1.237 moko 3808: fi ;;
3809: esac
1.150 moko 3810: fi
3811: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3812: if test -n "$ac_ct_STRIP"; then
1.237 moko 3813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3814: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.150 moko 3815: else
1.237 moko 3816: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817: printf "%s\n" "no" >&6; }
1.150 moko 3818: fi
3819:
3820: if test "x$ac_ct_STRIP" = x; then
3821: STRIP=":"
3822: else
3823: case $cross_compiling:$ac_tool_warned in
3824: yes:)
1.237 moko 3825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 3827: ac_tool_warned=yes ;;
3828: esac
3829: STRIP=$ac_ct_STRIP
3830: fi
3831: else
3832: STRIP="$ac_cv_prog_STRIP"
3833: fi
3834:
3835: fi
3836: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3837:
1.237 moko 3838:
3839: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3840: printf %s "checking for a race-free mkdir -p... " >&6; }
1.150 moko 3841: if test -z "$MKDIR_P"; then
1.237 moko 3842: if test ${ac_cv_path_mkdir+y}
3843: then :
3844: printf %s "(cached) " >&6
3845: else case e in #(
3846: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.150 moko 3847: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3848: do
3849: IFS=$as_save_IFS
1.237 moko 3850: case $as_dir in #(((
3851: '') as_dir=./ ;;
3852: */) ;;
3853: *) as_dir=$as_dir/ ;;
3854: esac
1.150 moko 3855: for ac_prog in mkdir gmkdir; do
3856: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3857: as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3858: case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3859: 'mkdir ('*'coreutils) '* | \
3860: *'BusyBox '* | \
1.150 moko 3861: 'mkdir (fileutils) '4.1*)
1.237 moko 3862: ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
1.150 moko 3863: break 3;;
3864: esac
3865: done
3866: done
3867: done
3868: IFS=$as_save_IFS
1.237 moko 3869: ;;
3870: esac
1.150 moko 3871: fi
3872:
3873: test -d ./--version && rmdir ./--version
1.237 moko 3874: if test ${ac_cv_path_mkdir+y}; then
1.150 moko 3875: MKDIR_P="$ac_cv_path_mkdir -p"
3876: else
1.237 moko 3877: # As a last resort, use plain mkdir -p,
3878: # in the hope it doesn't have the bugs of ancient mkdir.
3879: MKDIR_P='mkdir -p'
1.150 moko 3880: fi
3881: fi
1.237 moko 3882: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3883: printf "%s\n" "$MKDIR_P" >&6; }
1.150 moko 3884:
3885: for ac_prog in gawk mawk nawk awk
1.62 paf 3886: do
3887: # Extract the first word of "$ac_prog", so it can be a program name with args.
3888: set dummy $ac_prog; ac_word=$2
1.237 moko 3889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890: printf %s "checking for $ac_word... " >&6; }
3891: if test ${ac_cv_prog_AWK+y}
3892: then :
3893: printf %s "(cached) " >&6
3894: else case e in #(
3895: e) if test -n "$AWK"; then
1.62 paf 3896: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3897: else
3898: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899: for as_dir in $PATH
3900: do
3901: IFS=$as_save_IFS
1.237 moko 3902: case $as_dir in #(((
3903: '') as_dir=./ ;;
3904: */) ;;
3905: *) as_dir=$as_dir/ ;;
3906: esac
1.150 moko 3907: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3908: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 3909: ac_cv_prog_AWK="$ac_prog"
1.237 moko 3910: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 3911: break 2
3912: fi
3913: done
1.150 moko 3914: done
3915: IFS=$as_save_IFS
1.62 paf 3916:
1.237 moko 3917: fi ;;
3918: esac
1.62 paf 3919: fi
3920: AWK=$ac_cv_prog_AWK
3921: if test -n "$AWK"; then
1.237 moko 3922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3923: printf "%s\n" "$AWK" >&6; }
1.62 paf 3924: else
1.237 moko 3925: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926: printf "%s\n" "no" >&6; }
1.62 paf 3927: fi
1.1 paf 3928:
1.150 moko 3929:
1.62 paf 3930: test -n "$AWK" && break
3931: done
1.1 paf 3932:
1.237 moko 3933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3934: printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1.150 moko 3935: set x ${MAKE-make}
1.237 moko 3936: ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3937: if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3938: then :
3939: printf %s "(cached) " >&6
3940: else case e in #(
3941: e) cat >conftest.make <<\_ACEOF
1.150 moko 3942: SHELL = /bin/sh
1.1 paf 3943: all:
1.150 moko 3944: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3945: _ACEOF
1.150 moko 3946: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3947: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3948: *@@@%%%=?*=@@@%%%*)
3949: eval ac_cv_prog_make_${ac_make}_set=yes;;
3950: *)
3951: eval ac_cv_prog_make_${ac_make}_set=no;;
3952: esac
1.237 moko 3953: rm -f conftest.make ;;
3954: esac
1.1 paf 3955: fi
1.150 moko 3956: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.237 moko 3957: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958: printf "%s\n" "yes" >&6; }
1.1 paf 3959: SET_MAKE=
3960: else
1.237 moko 3961: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962: printf "%s\n" "no" >&6; }
1.1 paf 3963: SET_MAKE="MAKE=${MAKE-make}"
3964: fi
3965:
1.86 paf 3966: rm -rf .tst 2>/dev/null
3967: mkdir .tst 2>/dev/null
3968: if test -d .tst; then
3969: am__leading_dot=.
3970: else
3971: am__leading_dot=_
3972: fi
3973: rmdir .tst 2>/dev/null
3974:
1.237 moko 3975: AM_DEFAULT_VERBOSITY=1
1.187 moko 3976: # Check whether --enable-silent-rules was given.
1.237 moko 3977: if test ${enable_silent_rules+y}
3978: then :
1.187 moko 3979: enableval=$enable_silent_rules;
3980: fi
3981:
3982: am_make=${MAKE-make}
1.237 moko 3983: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3984: printf %s "checking whether $am_make supports nested variables... " >&6; }
3985: if test ${am_cv_make_support_nested_variables+y}
3986: then :
3987: printf %s "(cached) " >&6
3988: else case e in #(
3989: e) if printf "%s\n" 'TRUE=$(BAR$(V))
1.187 moko 3990: BAR0=false
3991: BAR1=true
3992: V=1
3993: am__doit:
3994: @$(TRUE)
3995: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3996: am_cv_make_support_nested_variables=yes
3997: else
3998: am_cv_make_support_nested_variables=no
1.237 moko 3999: fi ;;
4000: esac
1.187 moko 4001: fi
1.237 moko 4002: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4003: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4004: AM_BACKSLASH='\'
4005:
4006: am__rm_f_notfound=
4007: if (rm -f && rm -fr && rm -rf) 2>/dev/null
4008: then :
4009:
4010: else case e in #(
4011: e) am__rm_f_notfound='""' ;;
4012: esac
1.187 moko 4013: fi
1.237 moko 4014:
4015:
4016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4017: printf %s "checking xargs -n works... " >&6; }
4018: if test ${am_cv_xargs_n_works+y}
4019: then :
4020: printf %s "(cached) " >&6
4021: else case e in #(
4022: e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4023: 3"
4024: then :
4025: am_cv_xargs_n_works=yes
4026: else case e in #(
4027: e) am_cv_xargs_n_works=no ;;
4028: esac
4029: fi ;;
4030: esac
4031: fi
4032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4033: printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4034: if test "$am_cv_xargs_n_works" = yes
4035: then :
4036: am__xargs_n='xargs -n'
4037: else case e in #(
4038: e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4039: ;;
4040: esac
1.187 moko 4041: fi
4042:
1.150 moko 4043: if test "`cd $srcdir && pwd`" != "`pwd`"; then
4044: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4045: # is not polluted with repeated "-I."
4046: am__isrc=' -I$(srcdir)'
4047: # test to see if srcdir already configured
4048: if test -f $srcdir/config.status; then
4049: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4050: fi
1.62 paf 4051: fi
4052:
4053: # test whether we have cygpath
4054: if test -z "$CYGPATH_W"; then
4055: if (cygpath --version) >/dev/null 2>/dev/null; then
4056: CYGPATH_W='cygpath -w'
4057: else
4058: CYGPATH_W=echo
4059: fi
4060: fi
4061:
4062:
4063: # Define the identity of the package.
1.128 moko 4064: PACKAGE='parser'
1.230 moko 4065: VERSION='3.5.2b'
1.128 moko 4066:
4067:
1.237 moko 4068: printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
1.1 paf 4069:
4070:
1.237 moko 4071: printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
1.128 moko 4072:
1.62 paf 4073: # Some tools Automake needs.
4074:
4075: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4076:
4077:
4078: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4079:
4080:
4081: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4082:
4083:
4084: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4085:
4086:
4087: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 4088:
1.187 moko 4089: # For better backward compatibility. To be removed once Automake 1.9.x
4090: # dies out for good. For more background, see:
1.199 moko 4091: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4092: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.187 moko 4093: mkdir_p='$(MKDIR_P)'
4094:
4095: # We need awk for the "check" target (and possibly the TAP driver). The
4096: # system "awk" is bad on some platforms.
4097: # Always define AMTAR for backward compatibility. Yes, it's still used
4098: # in the wild :-( We should find a proper way to deprecate it ...
4099: AMTAR='$${TAR-tar}'
4100:
4101:
4102: # We'll loop over all known methods to create a tar archive until one works.
4103: _am_tools='gnutar pax cpio none'
4104:
4105: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4106:
1.86 paf 4107:
4108:
4109:
4110:
1.237 moko 4111: # Variables for tags utilities; see am/tags.am
4112: if test -z "$CTAGS"; then
4113: CTAGS=ctags
4114: fi
4115:
4116: if test -z "$ETAGS"; then
4117: ETAGS=etags
4118: fi
4119:
4120: if test -z "$CSCOPE"; then
4121: CSCOPE=cscope
4122: fi
4123:
1.62 paf 4124:
1.187 moko 4125:
4126:
4127:
4128:
1.1 paf 4129:
4130:
1.128 moko 4131:
1.12 paf 4132: P3S=`cd $srcdir/src ; pwd`
1.1 paf 4133:
4134:
1.128 moko 4135:
1.237 moko 4136:
4137:
4138: # Make sure we can run config.sub.
4139: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4140: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4141:
4142: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4143: printf %s "checking build system type... " >&6; }
4144: if test ${ac_cv_build+y}
4145: then :
4146: printf %s "(cached) " >&6
4147: else case e in #(
4148: e) ac_build_alias=$build_alias
1.150 moko 4149: test "x$ac_build_alias" = x &&
1.237 moko 4150: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.150 moko 4151: test "x$ac_build_alias" = x &&
4152: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.237 moko 4153: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4154: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4155: ;;
4156: esac
1.150 moko 4157: fi
1.237 moko 4158: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4159: printf "%s\n" "$ac_cv_build" >&6; }
1.150 moko 4160: case $ac_cv_build in
4161: *-*-*) ;;
4162: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4163: esac
4164: build=$ac_cv_build
4165: ac_save_IFS=$IFS; IFS='-'
4166: set x $ac_cv_build
4167: shift
4168: build_cpu=$1
4169: build_vendor=$2
4170: shift; shift
4171: # Remember, the first character of IFS is used to create $*,
4172: # except with old shells:
4173: build_os=$*
4174: IFS=$ac_save_IFS
4175: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4176:
4177:
1.237 moko 4178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4179: printf %s "checking host system type... " >&6; }
4180: if test ${ac_cv_host+y}
4181: then :
4182: printf %s "(cached) " >&6
4183: else case e in #(
4184: e) if test "x$host_alias" = x; then
1.150 moko 4185: ac_cv_host=$ac_cv_build
4186: else
1.237 moko 4187: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4188: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.62 paf 4189: fi
1.237 moko 4190: ;;
4191: esac
1.62 paf 4192: fi
1.237 moko 4193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4194: printf "%s\n" "$ac_cv_host" >&6; }
1.150 moko 4195: case $ac_cv_host in
4196: *-*-*) ;;
4197: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4198: esac
1.62 paf 4199: host=$ac_cv_host
1.150 moko 4200: ac_save_IFS=$IFS; IFS='-'
4201: set x $ac_cv_host
4202: shift
4203: host_cpu=$1
4204: host_vendor=$2
4205: shift; shift
4206: # Remember, the first character of IFS is used to create $*,
4207: # except with old shells:
4208: host_os=$*
4209: IFS=$ac_save_IFS
4210: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 4211:
4212:
4213:
1.237 moko 4214: printf "%s\n" "#define PARSER_VERSION \"$VERSION (compiled on $host)\"" >>confdefs.h
1.147 moko 4215:
4216:
1.41 paf 4217:
1.67 paf 4218: case $host_os in
4219: *cygwin* )
1.237 moko 4220: printf "%s\n" "#define CYGWIN /**/" >>confdefs.h
1.67 paf 4221: ;;
4222: esac
1.41 paf 4223:
1.128 moko 4224:
1.1 paf 4225:
1.62 paf 4226: for ac_prog in gawk mawk nawk awk
1.41 paf 4227: do
1.62 paf 4228: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4229: set dummy $ac_prog; ac_word=$2
1.237 moko 4230: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231: printf %s "checking for $ac_word... " >&6; }
4232: if test ${ac_cv_prog_AWK+y}
4233: then :
4234: printf %s "(cached) " >&6
4235: else case e in #(
4236: e) if test -n "$AWK"; then
1.41 paf 4237: ac_cv_prog_AWK="$AWK" # Let the user override the test.
4238: else
1.62 paf 4239: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240: for as_dir in $PATH
4241: do
4242: IFS=$as_save_IFS
1.237 moko 4243: case $as_dir in #(((
4244: '') as_dir=./ ;;
4245: */) ;;
4246: *) as_dir=$as_dir/ ;;
4247: esac
1.150 moko 4248: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4249: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4250: ac_cv_prog_AWK="$ac_prog"
1.237 moko 4251: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4252: break 2
4253: fi
4254: done
1.150 moko 4255: done
4256: IFS=$as_save_IFS
1.62 paf 4257:
1.237 moko 4258: fi ;;
4259: esac
1.41 paf 4260: fi
1.62 paf 4261: AWK=$ac_cv_prog_AWK
1.41 paf 4262: if test -n "$AWK"; then
1.237 moko 4263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4264: printf "%s\n" "$AWK" >&6; }
1.41 paf 4265: else
1.237 moko 4266: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267: printf "%s\n" "no" >&6; }
1.41 paf 4268: fi
4269:
1.150 moko 4270:
1.62 paf 4271: test -n "$AWK" && break
1.41 paf 4272: done
4273:
4274:
4275: for ac_prog in 'bison -y' byacc
4276: do
1.62 paf 4277: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4278: set dummy $ac_prog; ac_word=$2
1.237 moko 4279: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280: printf %s "checking for $ac_word... " >&6; }
4281: if test ${ac_cv_prog_YACC+y}
4282: then :
4283: printf %s "(cached) " >&6
4284: else case e in #(
4285: e) if test -n "$YACC"; then
1.41 paf 4286: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4287: else
1.62 paf 4288: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289: for as_dir in $PATH
4290: do
4291: IFS=$as_save_IFS
1.237 moko 4292: case $as_dir in #(((
4293: '') as_dir=./ ;;
4294: */) ;;
4295: *) as_dir=$as_dir/ ;;
4296: esac
1.150 moko 4297: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4298: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4299: ac_cv_prog_YACC="$ac_prog"
1.237 moko 4300: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4301: break 2
4302: fi
4303: done
1.150 moko 4304: done
4305: IFS=$as_save_IFS
1.62 paf 4306:
1.237 moko 4307: fi ;;
4308: esac
1.41 paf 4309: fi
1.62 paf 4310: YACC=$ac_cv_prog_YACC
1.41 paf 4311: if test -n "$YACC"; then
1.237 moko 4312: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4313: printf "%s\n" "$YACC" >&6; }
1.41 paf 4314: else
1.237 moko 4315: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316: printf "%s\n" "no" >&6; }
1.41 paf 4317: fi
4318:
1.150 moko 4319:
1.62 paf 4320: test -n "$YACC" && break
1.41 paf 4321: done
4322: test -n "$YACC" || YACC="yacc"
4323:
4324: if test "$YACC" != "bison -y"; then
1.237 moko 4325: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
4326: printf "%s\n" "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 4327: else
1.237 moko 4328: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
4329: printf %s "checking bison version... " >&6; }
1.67 paf 4330: oldIFS=$IFS; IFS=.
4331: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
4332: IFS=$oldIFS
4333: if test "$1" = "1" -a "$2" -lt "25"; then
1.237 moko 4334: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
4335: printf "%s\n" "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 4336: fi
1.237 moko 4337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
4338: printf "%s\n" "$1.$2 (ok)" >&6; }
1.62 paf 4339: fi
4340:
1.237 moko 4341:
4342:
4343:
4344:
4345:
4346:
1.150 moko 4347: ac_ext=cpp
1.66 paf 4348: ac_cpp='$CXXCPP $CPPFLAGS'
4349: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 4352: if test -z "$CXX"; then
4353: if test -n "$CCC"; then
4354: CXX=$CCC
4355: else
4356: if test -n "$ac_tool_prefix"; then
1.237 moko 4357: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4358: do
4359: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 4361: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362: printf %s "checking for $ac_word... " >&6; }
4363: if test ${ac_cv_prog_CXX+y}
4364: then :
4365: printf %s "(cached) " >&6
4366: else case e in #(
4367: e) if test -n "$CXX"; then
1.66 paf 4368: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 4369: else
4370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371: for as_dir in $PATH
4372: do
4373: IFS=$as_save_IFS
1.237 moko 4374: case $as_dir in #(((
4375: '') as_dir=./ ;;
4376: */) ;;
4377: *) as_dir=$as_dir/ ;;
4378: esac
1.150 moko 4379: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4380: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4381: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.237 moko 4382: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4383: break 2
4384: fi
4385: done
1.150 moko 4386: done
4387: IFS=$as_save_IFS
1.62 paf 4388:
1.237 moko 4389: fi ;;
4390: esac
1.62 paf 4391: fi
1.66 paf 4392: CXX=$ac_cv_prog_CXX
4393: if test -n "$CXX"; then
1.237 moko 4394: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4395: printf "%s\n" "$CXX" >&6; }
1.62 paf 4396: else
1.237 moko 4397: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398: printf "%s\n" "no" >&6; }
1.41 paf 4399: fi
4400:
1.150 moko 4401:
1.66 paf 4402: test -n "$CXX" && break
4403: done
1.62 paf 4404: fi
1.66 paf 4405: if test -z "$CXX"; then
4406: ac_ct_CXX=$CXX
1.237 moko 4407: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4408: do
4409: # Extract the first word of "$ac_prog", so it can be a program name with args.
4410: set dummy $ac_prog; ac_word=$2
1.237 moko 4411: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412: printf %s "checking for $ac_word... " >&6; }
4413: if test ${ac_cv_prog_ac_ct_CXX+y}
4414: then :
4415: printf %s "(cached) " >&6
4416: else case e in #(
4417: e) if test -n "$ac_ct_CXX"; then
1.66 paf 4418: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 4419: else
4420: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421: for as_dir in $PATH
4422: do
4423: IFS=$as_save_IFS
1.237 moko 4424: case $as_dir in #(((
4425: '') as_dir=./ ;;
4426: */) ;;
4427: *) as_dir=$as_dir/ ;;
4428: esac
1.150 moko 4429: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4430: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4431: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.237 moko 4432: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4433: break 2
4434: fi
4435: done
1.150 moko 4436: done
4437: IFS=$as_save_IFS
1.62 paf 4438:
1.237 moko 4439: fi ;;
4440: esac
1.62 paf 4441: fi
1.66 paf 4442: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4443: if test -n "$ac_ct_CXX"; then
1.237 moko 4444: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4445: printf "%s\n" "$ac_ct_CXX" >&6; }
1.62 paf 4446: else
1.237 moko 4447: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448: printf "%s\n" "no" >&6; }
1.62 paf 4449: fi
4450:
1.150 moko 4451:
1.66 paf 4452: test -n "$ac_ct_CXX" && break
4453: done
4454:
1.150 moko 4455: if test "x$ac_ct_CXX" = x; then
4456: CXX="g++"
4457: else
4458: case $cross_compiling:$ac_tool_warned in
4459: yes:)
1.237 moko 4460: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4461: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 4462: ac_tool_warned=yes ;;
4463: esac
4464: CXX=$ac_ct_CXX
4465: fi
1.62 paf 4466: fi
4467:
1.150 moko 4468: fi
4469: fi
1.66 paf 4470: # Provide some information about the compiler.
1.237 moko 4471: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
1.150 moko 4472: set X $ac_compile
4473: ac_compiler=$2
4474: for ac_option in --version -v -V -qversion; do
4475: { { ac_try="$ac_compiler $ac_option >&5"
4476: case "(($ac_try" in
4477: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478: *) ac_try_echo=$ac_try;;
4479: esac
4480: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4481: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4482: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 4483: ac_status=$?
1.150 moko 4484: if test -s conftest.err; then
4485: sed '10a\
4486: ... rest of stderr output deleted ...
4487: 10q' conftest.err >conftest.er1
4488: cat conftest.er1 >&5
4489: fi
4490: rm -f conftest.er1 conftest.err
1.237 moko 4491: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4492: test $ac_status = 0; }
4493: done
1.66 paf 4494:
1.150 moko 4495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4496: /* end confdefs.h. */
4497:
4498: int
1.237 moko 4499: main (void)
1.66 paf 4500: {
4501:
4502: ;
4503: return 0;
4504: }
4505: _ACEOF
4506: ac_clean_files_save=$ac_clean_files
1.150 moko 4507: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 4508: # Try to create an executable without -o first, disregard a.out.
4509: # It will help us diagnose broken compilers, and finding out an intuition
4510: # of exeext.
1.237 moko 4511: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4512: printf %s "checking whether the C++ compiler works... " >&6; }
4513: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.150 moko 4514:
4515: # The possible output files:
4516: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4517:
4518: ac_rmfiles=
4519: for ac_file in $ac_files
4520: do
4521: case $ac_file in
4522: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4523: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4524: esac
4525: done
4526: rm -f $ac_rmfiles
4527:
4528: if { { ac_try="$ac_link_default"
4529: case "(($ac_try" in
4530: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531: *) ac_try_echo=$ac_try;;
4532: esac
4533: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4534: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4535: (eval "$ac_link_default") 2>&5
4536: ac_status=$?
1.237 moko 4537: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538: test $ac_status = 0; }
4539: then :
4540: # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4541: # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
1.150 moko 4542: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4543: # so that the user can short-circuit this test for compilers unknown to
4544: # Autoconf.
4545: for ac_file in $ac_files ''
1.62 paf 4546: do
1.66 paf 4547: test -f "$ac_file" || continue
4548: case $ac_file in
1.150 moko 4549: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 4550: ;;
1.66 paf 4551: [ab].out )
1.86 paf 4552: # We found the default executable, but exeext='' is most
4553: # certainly right.
4554: break;;
1.66 paf 4555: *.* )
1.237 moko 4556: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.150 moko 4557: then :; else
4558: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4559: fi
4560: # We set ac_cv_exeext here because the later test for it is not
1.237 moko 4561: # safe: cross compilers may not add the suffix if given an '-o'
1.150 moko 4562: # argument, so we may need to know it at that point already.
4563: # Even if this section looks crufty: it has the advantage of
4564: # actually working.
1.86 paf 4565: break;;
1.66 paf 4566: * )
1.86 paf 4567: break;;
1.66 paf 4568: esac
1.62 paf 4569: done
1.150 moko 4570: test "$ac_cv_exeext" = no && ac_cv_exeext=
4571:
1.237 moko 4572: else case e in #(
4573: e) ac_file='' ;;
4574: esac
1.150 moko 4575: fi
1.237 moko 4576: if test -z "$ac_file"
4577: then :
4578: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579: printf "%s\n" "no" >&6; }
4580: printf "%s\n" "$as_me: failed program was:" >&5
1.66 paf 4581: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 4582:
1.237 moko 4583: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4584: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4585: as_fn_error 77 "C++ compiler cannot create executables
1.237 moko 4586: See 'config.log' for more details" "$LINENO" 5; }
4587: else case e in #(
4588: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589: printf "%s\n" "yes" >&6; } ;;
4590: esac
1.1 paf 4591: fi
1.237 moko 4592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4593: printf %s "checking for C++ compiler default output file name... " >&6; }
4594: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4595: printf "%s\n" "$ac_file" >&6; }
1.66 paf 4596: ac_exeext=$ac_cv_exeext
1.62 paf 4597:
1.150 moko 4598: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 4599: ac_clean_files=$ac_clean_files_save
1.237 moko 4600: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4601: printf %s "checking for suffix of executables... " >&6; }
1.150 moko 4602: if { { ac_try="$ac_link"
4603: case "(($ac_try" in
4604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605: *) ac_try_echo=$ac_try;;
4606: esac
4607: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4608: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4609: (eval "$ac_link") 2>&5
1.62 paf 4610: ac_status=$?
1.237 moko 4611: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612: test $ac_status = 0; }
4613: then :
4614: # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4615: # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4616: # work properly (i.e., refer to 'conftest.exe'), while it won't with
4617: # 'rm'.
1.62 paf 4618: for ac_file in conftest.exe conftest conftest.*; do
4619: test -f "$ac_file" || continue
4620: case $ac_file in
1.150 moko 4621: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 4622: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 4623: break;;
1.62 paf 4624: * ) break;;
4625: esac
4626: done
1.237 moko 4627: else case e in #(
4628: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4629: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4630: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.237 moko 4631: See 'config.log' for more details" "$LINENO" 5; } ;;
4632: esac
1.150 moko 4633: fi
4634: rm -f conftest conftest$ac_cv_exeext
1.237 moko 4635: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4636: printf "%s\n" "$ac_cv_exeext" >&6; }
1.62 paf 4637:
4638: rm -f conftest.$ac_ext
4639: EXEEXT=$ac_cv_exeext
4640: ac_exeext=$EXEEXT
1.150 moko 4641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642: /* end confdefs.h. */
4643: #include <stdio.h>
4644: int
1.237 moko 4645: main (void)
1.150 moko 4646: {
4647: FILE *f = fopen ("conftest.out", "w");
1.237 moko 4648: if (!f)
4649: return 1;
1.150 moko 4650: return ferror (f) || fclose (f) != 0;
4651:
4652: ;
4653: return 0;
4654: }
4655: _ACEOF
4656: ac_clean_files="$ac_clean_files conftest.out"
4657: # Check that the compiler produces executables we can run. If not, either
4658: # the compiler is broken, or we cross compile.
1.237 moko 4659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4660: printf %s "checking whether we are cross compiling... " >&6; }
1.150 moko 4661: if test "$cross_compiling" != yes; then
4662: { { ac_try="$ac_link"
4663: case "(($ac_try" in
4664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665: *) ac_try_echo=$ac_try;;
4666: esac
4667: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4668: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4669: (eval "$ac_link") 2>&5
4670: ac_status=$?
1.237 moko 4671: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4672: test $ac_status = 0; }
4673: if { ac_try='./conftest$ac_cv_exeext'
4674: { { case "(($ac_try" in
4675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676: *) ac_try_echo=$ac_try;;
4677: esac
4678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4679: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4680: (eval "$ac_try") 2>&5
4681: ac_status=$?
1.237 moko 4682: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4683: test $ac_status = 0; }; }; then
4684: cross_compiling=no
4685: else
4686: if test "$cross_compiling" = maybe; then
4687: cross_compiling=yes
4688: else
1.237 moko 4689: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4690: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4691: as_fn_error 77 "cannot run C++ compiled programs.
4692: If you meant to cross compile, use '--host'.
4693: See 'config.log' for more details" "$LINENO" 5; }
1.150 moko 4694: fi
4695: fi
4696: fi
1.237 moko 4697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4698: printf "%s\n" "$cross_compiling" >&6; }
1.150 moko 4699:
1.237 moko 4700: rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4701: conftest.o conftest.obj conftest.out
1.150 moko 4702: ac_clean_files=$ac_clean_files_save
1.237 moko 4703: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4704: printf %s "checking for suffix of object files... " >&6; }
4705: if test ${ac_cv_objext+y}
4706: then :
4707: printf %s "(cached) " >&6
4708: else case e in #(
4709: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4710: /* end confdefs.h. */
4711:
4712: int
1.237 moko 4713: main (void)
1.62 paf 4714: {
4715:
4716: ;
4717: return 0;
4718: }
4719: _ACEOF
4720: rm -f conftest.o conftest.obj
1.150 moko 4721: if { { ac_try="$ac_compile"
4722: case "(($ac_try" in
4723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724: *) ac_try_echo=$ac_try;;
4725: esac
4726: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4727: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4728: (eval "$ac_compile") 2>&5
4729: ac_status=$?
1.237 moko 4730: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731: test $ac_status = 0; }
4732: then :
1.150 moko 4733: for ac_file in conftest.o conftest.obj conftest.*; do
4734: test -f "$ac_file" || continue;
1.62 paf 4735: case $ac_file in
1.150 moko 4736: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 4737: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4738: break;;
4739: esac
4740: done
1.237 moko 4741: else case e in #(
4742: e) printf "%s\n" "$as_me: failed program was:" >&5
1.62 paf 4743: sed 's/^/| /' conftest.$ac_ext >&5
4744:
1.237 moko 4745: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4746: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4747: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.237 moko 4748: See 'config.log' for more details" "$LINENO" 5; } ;;
4749: esac
1.62 paf 4750: fi
1.237 moko 4751: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4752: esac
1.62 paf 4753: fi
1.237 moko 4754: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4755: printf "%s\n" "$ac_cv_objext" >&6; }
1.66 paf 4756: OBJEXT=$ac_cv_objext
4757: ac_objext=$OBJEXT
1.237 moko 4758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4759: printf %s "checking whether the compiler supports GNU C++... " >&6; }
4760: if test ${ac_cv_cxx_compiler_gnu+y}
4761: then :
4762: printf %s "(cached) " >&6
4763: else case e in #(
4764: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4765: /* end confdefs.h. */
1.66 paf 4766:
1.62 paf 4767: int
1.237 moko 4768: main (void)
1.62 paf 4769: {
1.66 paf 4770: #ifndef __GNUC__
4771: choke me
4772: #endif
4773:
1.62 paf 4774: ;
4775: return 0;
4776: }
4777: _ACEOF
1.237 moko 4778: if ac_fn_cxx_try_compile "$LINENO"
4779: then :
1.66 paf 4780: ac_compiler_gnu=yes
1.237 moko 4781: else case e in #(
4782: e) ac_compiler_gnu=no ;;
4783: esac
1.1 paf 4784: fi
1.237 moko 4785: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 4786: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.237 moko 4787: ;;
4788: esac
4789: fi
4790: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4791: printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4792: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 paf 4793:
1.150 moko 4794: if test $ac_compiler_gnu = yes; then
4795: GXX=yes
4796: else
4797: GXX=
4798: fi
1.237 moko 4799: ac_test_CXXFLAGS=${CXXFLAGS+y}
1.66 paf 4800: ac_save_CXXFLAGS=$CXXFLAGS
1.237 moko 4801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4802: printf %s "checking whether $CXX accepts -g... " >&6; }
4803: if test ${ac_cv_prog_cxx_g+y}
4804: then :
4805: printf %s "(cached) " >&6
4806: else case e in #(
4807: e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1.150 moko 4808: ac_cxx_werror_flag=yes
4809: ac_cv_prog_cxx_g=no
4810: CXXFLAGS="-g"
4811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4812: /* end confdefs.h. */
1.1 paf 4813:
1.66 paf 4814: int
1.237 moko 4815: main (void)
1.66 paf 4816: {
1.1 paf 4817:
1.66 paf 4818: ;
4819: return 0;
4820: }
1.62 paf 4821: _ACEOF
1.237 moko 4822: if ac_fn_cxx_try_compile "$LINENO"
4823: then :
1.66 paf 4824: ac_cv_prog_cxx_g=yes
1.237 moko 4825: else case e in #(
4826: e) CXXFLAGS=""
1.150 moko 4827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828: /* end confdefs.h. */
1.66 paf 4829:
1.62 paf 4830: int
1.237 moko 4831: main (void)
1.62 paf 4832: {
1.150 moko 4833:
1.62 paf 4834: ;
4835: return 0;
4836: }
4837: _ACEOF
1.237 moko 4838: if ac_fn_cxx_try_compile "$LINENO"
4839: then :
1.150 moko 4840:
1.237 moko 4841: else case e in #(
4842: e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1.150 moko 4843: CXXFLAGS="-g"
4844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845: /* end confdefs.h. */
1.62 paf 4846:
4847: int
1.237 moko 4848: main (void)
1.62 paf 4849: {
1.150 moko 4850:
1.62 paf 4851: ;
4852: return 0;
4853: }
4854: _ACEOF
1.237 moko 4855: if ac_fn_cxx_try_compile "$LINENO"
4856: then :
1.150 moko 4857: ac_cv_prog_cxx_g=yes
4858: fi
1.237 moko 4859: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4860: esac
1.150 moko 4861: fi
1.237 moko 4862: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4863: esac
1.150 moko 4864: fi
1.237 moko 4865: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866: ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4867: esac
1.150 moko 4868: fi
1.237 moko 4869: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870: printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4871: if test $ac_test_CXXFLAGS; then
1.150 moko 4872: CXXFLAGS=$ac_save_CXXFLAGS
4873: elif test $ac_cv_prog_cxx_g = yes; then
4874: if test "$GXX" = yes; then
4875: CXXFLAGS="-g -O2"
4876: else
4877: CXXFLAGS="-g"
4878: fi
1.1 paf 4879: else
1.150 moko 4880: if test "$GXX" = yes; then
4881: CXXFLAGS="-O2"
4882: else
4883: CXXFLAGS=
4884: fi
1.1 paf 4885: fi
1.237 moko 4886: ac_prog_cxx_stdcxx=no
4887: if test x$ac_prog_cxx_stdcxx = xno
4888: then :
4889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4890: printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4891: if test ${ac_cv_prog_cxx_cxx11+y}
4892: then :
4893: printf %s "(cached) " >&6
4894: else case e in #(
4895: e) ac_cv_prog_cxx_cxx11=no
4896: ac_save_CXX=$CXX
4897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898: /* end confdefs.h. */
4899: $ac_cxx_conftest_cxx11_program
4900: _ACEOF
4901: for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4902: do
4903: CXX="$ac_save_CXX $ac_arg"
4904: if ac_fn_cxx_try_compile "$LINENO"
4905: then :
4906: ac_cv_prog_cxx_cxx11=$ac_arg
4907: fi
4908: rm -f core conftest.err conftest.$ac_objext conftest.beam
4909: test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4910: done
4911: rm -f conftest.$ac_ext
4912: CXX=$ac_save_CXX ;;
4913: esac
4914: fi
4915:
4916: if test "x$ac_cv_prog_cxx_cxx11" = xno
4917: then :
4918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4919: printf "%s\n" "unsupported" >&6; }
4920: else case e in #(
4921: e) if test "x$ac_cv_prog_cxx_cxx11" = x
4922: then :
4923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4924: printf "%s\n" "none needed" >&6; }
4925: else case e in #(
4926: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4927: printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4928: CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4929: esac
4930: fi
4931: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4932: ac_prog_cxx_stdcxx=cxx11 ;;
4933: esac
4934: fi
4935: fi
4936: if test x$ac_prog_cxx_stdcxx = xno
4937: then :
4938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4939: printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4940: if test ${ac_cv_prog_cxx_cxx98+y}
4941: then :
4942: printf %s "(cached) " >&6
4943: else case e in #(
4944: e) ac_cv_prog_cxx_cxx98=no
4945: ac_save_CXX=$CXX
4946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947: /* end confdefs.h. */
4948: $ac_cxx_conftest_cxx98_program
4949: _ACEOF
4950: for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4951: do
4952: CXX="$ac_save_CXX $ac_arg"
4953: if ac_fn_cxx_try_compile "$LINENO"
4954: then :
4955: ac_cv_prog_cxx_cxx98=$ac_arg
4956: fi
4957: rm -f core conftest.err conftest.$ac_objext conftest.beam
4958: test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4959: done
4960: rm -f conftest.$ac_ext
4961: CXX=$ac_save_CXX ;;
4962: esac
4963: fi
4964:
4965: if test "x$ac_cv_prog_cxx_cxx98" = xno
4966: then :
4967: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968: printf "%s\n" "unsupported" >&6; }
4969: else case e in #(
4970: e) if test "x$ac_cv_prog_cxx_cxx98" = x
4971: then :
4972: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4973: printf "%s\n" "none needed" >&6; }
4974: else case e in #(
4975: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4976: printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4977: CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4978: esac
4979: fi
4980: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4981: ac_prog_cxx_stdcxx=cxx98 ;;
4982: esac
4983: fi
4984: fi
4985:
1.62 paf 4986: ac_ext=c
4987: ac_cpp='$CPP $CPPFLAGS'
4988: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 4991: DEPDIR="${am__leading_dot}deps"
1.62 paf 4992:
1.150 moko 4993: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 4994:
1.237 moko 4995: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4996: printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
1.199 moko 4997: cat > confinc.mk << 'END'
1.86 paf 4998: am__doit:
1.199 moko 4999: @echo this is the am__doit target >confinc.out
1.86 paf 5000: .PHONY: am__doit
1.62 paf 5001: END
5002: am__include="#"
5003: am__quote=
1.199 moko 5004: # BSD make does it like this.
5005: echo '.include "confinc.mk" # ignored' > confmf.BSD
5006: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5007: echo 'include confinc.mk # ignored' > confmf.GNU
5008: _am_result=no
5009: for s in GNU BSD; do
5010: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5011: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5012: ac_status=$?
5013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014: (exit $ac_status); }
5015: case $?:`cat confinc.out 2>/dev/null` in #(
5016: '0:this is the am__doit target') :
5017: case $s in #(
5018: BSD) :
5019: am__include='.include' am__quote='"' ;; #(
5020: *) :
5021: am__include='include' am__quote='' ;;
5022: esac ;; #(
5023: *) :
1.150 moko 5024: ;;
1.199 moko 5025: esac
5026: if test "$am__include" != "#"; then
5027: _am_result="yes ($s style)"
5028: break
5029: fi
5030: done
5031: rm -f confinc.* confmf.*
1.237 moko 5032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5033: printf "%s\n" "${_am_result}" >&6; }
1.62 paf 5034:
1.150 moko 5035: # Check whether --enable-dependency-tracking was given.
1.237 moko 5036: if test ${enable_dependency_tracking+y}
5037: then :
1.150 moko 5038: enableval=$enable_dependency_tracking;
5039: fi
1.62 paf 5040:
5041: if test "x$enable_dependency_tracking" != xno; then
5042: am_depcomp="$ac_aux_dir/depcomp"
5043: AMDEPBACKSLASH='\'
1.187 moko 5044: am__nodep='_no'
1.1 paf 5045: fi
1.150 moko 5046: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 5047: AMDEP_TRUE=
5048: AMDEP_FALSE='#'
5049: else
5050: AMDEP_TRUE='#'
5051: AMDEP_FALSE=
5052: fi
1.1 paf 5053:
5054:
5055:
1.66 paf 5056: depcc="$CXX" am_compiler_list=
1.1 paf 5057:
1.237 moko 5058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5059: printf %s "checking dependency style of $depcc... " >&6; }
5060: if test ${am_cv_CXX_dependencies_compiler_type+y}
5061: then :
5062: printf %s "(cached) " >&6
5063: else case e in #(
5064: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 5065: # We make a subdir and do the tests there. Otherwise we can end up
5066: # making bogus files that we don't know about and never remove. For
5067: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 5068: # making a dummy file named 'D' -- because '-MD' means "put the output
5069: # in D".
5070: rm -rf conftest.dir
1.62 paf 5071: mkdir conftest.dir
5072: # Copy depcomp to subdir because otherwise we won't find it if we're
5073: # using a relative directory.
5074: cp "$am_depcomp" conftest.dir
5075: cd conftest.dir
1.86 paf 5076: # We will build objects and dependencies in a subdirectory because
5077: # it helps to detect inapplicable dependency modes. For instance
5078: # both Tru64's cc and ICC support -MD to output dependencies as a
5079: # side effect of compilation, but ICC will put the dependencies in
5080: # the current directory while Tru64 will put them in the object
5081: # directory.
5082: mkdir sub
1.1 paf 5083:
1.66 paf 5084: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 5085: if test "$am_compiler_list" = ""; then
5086: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 5087: fi
1.150 moko 5088: am__universal=false
5089: case " $depcc " in #(
5090: *\ -arch\ *\ -arch\ *) am__universal=true ;;
5091: esac
5092:
1.62 paf 5093: for depmode in $am_compiler_list; do
1.86 paf 5094: # Setup a source with many dependencies, because some compilers
5095: # like to wrap large dependency lists on column 80 (with \), and
5096: # we should not choose a depcomp mode which is confused by this.
5097: #
1.62 paf 5098: # We need to recreate these files for each test, as the compiler may
5099: # overwrite some of them when testing with obscure command lines.
5100: # This happens at least with the AIX C compiler.
1.86 paf 5101: : > sub/conftest.c
5102: for i in 1 2 3 4 5 6; do
5103: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 5104: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5105: # Solaris 10 /bin/sh.
5106: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 5107: done
5108: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 5109:
1.187 moko 5110: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 5111: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 5112: # handle '-M -o', and we need to detect this. Also, some Intel
5113: # versions had trouble with output in subdirs.
1.150 moko 5114: am__obj=sub/conftest.${OBJEXT-o}
5115: am__minus_obj="-o $am__obj"
1.62 paf 5116: case $depmode in
1.150 moko 5117: gcc)
5118: # This depmode causes a compiler race in universal mode.
5119: test "$am__universal" = false || continue
5120: ;;
1.62 paf 5121: nosideeffect)
1.187 moko 5122: # After this tag, mechanisms are not by side-effect, so they'll
5123: # only be used when explicitly requested.
1.62 paf 5124: if test "x$enable_dependency_tracking" = xyes; then
5125: continue
5126: else
5127: break
5128: fi
5129: ;;
1.187 moko 5130: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5131: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 5132: # not run yet. These depmodes are late enough in the game, and
5133: # so weak that their functioning should not be impacted.
5134: am__obj=conftest.${OBJEXT-o}
5135: am__minus_obj=
5136: ;;
1.62 paf 5137: none) break ;;
5138: esac
5139: if depmode=$depmode \
1.150 moko 5140: source=sub/conftest.c object=$am__obj \
1.86 paf 5141: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 5142: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 5143: >/dev/null 2>conftest.err &&
1.150 moko 5144: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 5145: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 5146: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 5147: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 5148: # icc doesn't choke on unknown options, it will just issue warnings
5149: # or remarks (even with -Werror). So we grep stderr for any message
5150: # that says an option was ignored or not supported.
1.237 moko 5151: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 5152: # icc: Command line warning: ignoring option '-M'; no argument required
5153: # The diagnosis changed in icc 8.0:
5154: # icc: Command line remark: option '-MP' not supported
5155: if (grep 'ignoring option' conftest.err ||
5156: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157: am_cv_CXX_dependencies_compiler_type=$depmode
5158: break
5159: fi
1.66 paf 5160: fi
5161: done
5162:
5163: cd ..
5164: rm -rf conftest.dir
5165: else
5166: am_cv_CXX_dependencies_compiler_type=none
5167: fi
1.237 moko 5168: ;;
5169: esac
1.66 paf 5170: fi
1.237 moko 5171: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5172: printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 5173: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5174:
1.150 moko 5175: if
1.66 paf 5176: test "x$enable_dependency_tracking" != xno \
5177: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5178: am__fastdepCXX_TRUE=
5179: am__fastdepCXX_FALSE='#'
5180: else
5181: am__fastdepCXX_TRUE='#'
5182: am__fastdepCXX_FALSE=
5183: fi
5184:
5185:
1.237 moko 5186:
5187:
5188:
5189:
5190:
5191:
5192:
5193:
5194:
1.66 paf 5195: ac_ext=c
5196: ac_cpp='$CPP $CPPFLAGS'
5197: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200: if test -n "$ac_tool_prefix"; then
5201: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5202: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.237 moko 5203: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204: printf %s "checking for $ac_word... " >&6; }
5205: if test ${ac_cv_prog_CC+y}
5206: then :
5207: printf %s "(cached) " >&6
5208: else case e in #(
5209: e) if test -n "$CC"; then
1.66 paf 5210: ac_cv_prog_CC="$CC" # Let the user override the test.
5211: else
5212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213: for as_dir in $PATH
5214: do
5215: IFS=$as_save_IFS
1.237 moko 5216: case $as_dir in #(((
5217: '') as_dir=./ ;;
5218: */) ;;
5219: *) as_dir=$as_dir/ ;;
5220: esac
1.150 moko 5221: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5222: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5223: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.237 moko 5224: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5225: break 2
5226: fi
5227: done
1.150 moko 5228: done
5229: IFS=$as_save_IFS
1.66 paf 5230:
1.237 moko 5231: fi ;;
5232: esac
1.66 paf 5233: fi
5234: CC=$ac_cv_prog_CC
5235: if test -n "$CC"; then
1.237 moko 5236: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5237: printf "%s\n" "$CC" >&6; }
1.66 paf 5238: else
1.237 moko 5239: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240: printf "%s\n" "no" >&6; }
1.66 paf 5241: fi
5242:
1.150 moko 5243:
1.66 paf 5244: fi
5245: if test -z "$ac_cv_prog_CC"; then
5246: ac_ct_CC=$CC
5247: # Extract the first word of "gcc", so it can be a program name with args.
5248: set dummy gcc; ac_word=$2
1.237 moko 5249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250: printf %s "checking for $ac_word... " >&6; }
5251: if test ${ac_cv_prog_ac_ct_CC+y}
5252: then :
5253: printf %s "(cached) " >&6
5254: else case e in #(
5255: e) if test -n "$ac_ct_CC"; then
1.66 paf 5256: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5257: else
5258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259: for as_dir in $PATH
5260: do
5261: IFS=$as_save_IFS
1.237 moko 5262: case $as_dir in #(((
5263: '') as_dir=./ ;;
5264: */) ;;
5265: *) as_dir=$as_dir/ ;;
5266: esac
1.150 moko 5267: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5268: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5269: ac_cv_prog_ac_ct_CC="gcc"
1.237 moko 5270: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5271: break 2
5272: fi
5273: done
1.150 moko 5274: done
5275: IFS=$as_save_IFS
1.66 paf 5276:
1.237 moko 5277: fi ;;
5278: esac
1.66 paf 5279: fi
5280: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5281: if test -n "$ac_ct_CC"; then
1.237 moko 5282: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5283: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5284: else
1.237 moko 5285: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286: printf "%s\n" "no" >&6; }
1.62 paf 5287: fi
5288:
1.150 moko 5289: if test "x$ac_ct_CC" = x; then
5290: CC=""
5291: else
5292: case $cross_compiling:$ac_tool_warned in
5293: yes:)
1.237 moko 5294: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5296: ac_tool_warned=yes ;;
5297: esac
5298: CC=$ac_ct_CC
5299: fi
1.66 paf 5300: else
5301: CC="$ac_cv_prog_CC"
1.1 paf 5302: fi
1.62 paf 5303:
1.66 paf 5304: if test -z "$CC"; then
1.150 moko 5305: if test -n "$ac_tool_prefix"; then
5306: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 5307: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.237 moko 5308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309: printf %s "checking for $ac_word... " >&6; }
5310: if test ${ac_cv_prog_CC+y}
5311: then :
5312: printf %s "(cached) " >&6
5313: else case e in #(
5314: e) if test -n "$CC"; then
1.66 paf 5315: ac_cv_prog_CC="$CC" # Let the user override the test.
5316: else
5317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318: for as_dir in $PATH
5319: do
5320: IFS=$as_save_IFS
1.237 moko 5321: case $as_dir in #(((
5322: '') as_dir=./ ;;
5323: */) ;;
5324: *) as_dir=$as_dir/ ;;
5325: esac
1.150 moko 5326: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5327: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5328: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.237 moko 5329: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5330: break 2
5331: fi
5332: done
1.150 moko 5333: done
5334: IFS=$as_save_IFS
1.62 paf 5335:
1.237 moko 5336: fi ;;
5337: esac
1.66 paf 5338: fi
5339: CC=$ac_cv_prog_CC
5340: if test -n "$CC"; then
1.237 moko 5341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5342: printf "%s\n" "$CC" >&6; }
1.62 paf 5343: else
1.237 moko 5344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345: printf "%s\n" "no" >&6; }
1.1 paf 5346: fi
5347:
1.150 moko 5348:
1.66 paf 5349: fi
1.1 paf 5350: fi
1.66 paf 5351: if test -z "$CC"; then
5352: # Extract the first word of "cc", so it can be a program name with args.
5353: set dummy cc; ac_word=$2
1.237 moko 5354: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355: printf %s "checking for $ac_word... " >&6; }
5356: if test ${ac_cv_prog_CC+y}
5357: then :
5358: printf %s "(cached) " >&6
5359: else case e in #(
5360: e) if test -n "$CC"; then
1.66 paf 5361: ac_cv_prog_CC="$CC" # Let the user override the test.
5362: else
5363: ac_prog_rejected=no
5364: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365: for as_dir in $PATH
5366: do
5367: IFS=$as_save_IFS
1.237 moko 5368: case $as_dir in #(((
5369: '') as_dir=./ ;;
5370: */) ;;
5371: *) as_dir=$as_dir/ ;;
5372: esac
1.150 moko 5373: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5374: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5375: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.66 paf 5376: ac_prog_rejected=yes
5377: continue
5378: fi
5379: ac_cv_prog_CC="cc"
1.237 moko 5380: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5381: break 2
5382: fi
5383: done
1.150 moko 5384: done
5385: IFS=$as_save_IFS
1.62 paf 5386:
1.66 paf 5387: if test $ac_prog_rejected = yes; then
5388: # We found a bogon in the path, so make sure we never use it.
5389: set dummy $ac_cv_prog_CC
5390: shift
5391: if test $# != 0; then
5392: # We chose a different compiler from the bogus one.
5393: # However, it has the same basename, so the bogon will be chosen
5394: # first if we set CC to just the basename; use the full file name.
5395: shift
1.237 moko 5396: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.66 paf 5397: fi
5398: fi
1.237 moko 5399: fi ;;
5400: esac
1.66 paf 5401: fi
5402: CC=$ac_cv_prog_CC
5403: if test -n "$CC"; then
1.237 moko 5404: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5405: printf "%s\n" "$CC" >&6; }
1.66 paf 5406: else
1.237 moko 5407: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408: printf "%s\n" "no" >&6; }
1.1 paf 5409: fi
5410:
1.150 moko 5411:
1.66 paf 5412: fi
5413: if test -z "$CC"; then
5414: if test -n "$ac_tool_prefix"; then
1.150 moko 5415: for ac_prog in cl.exe
1.62 paf 5416: do
5417: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5418: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 5419: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420: printf %s "checking for $ac_word... " >&6; }
5421: if test ${ac_cv_prog_CC+y}
5422: then :
5423: printf %s "(cached) " >&6
5424: else case e in #(
5425: e) if test -n "$CC"; then
1.66 paf 5426: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 5427: else
5428: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429: for as_dir in $PATH
5430: do
5431: IFS=$as_save_IFS
1.237 moko 5432: case $as_dir in #(((
5433: '') as_dir=./ ;;
5434: */) ;;
5435: *) as_dir=$as_dir/ ;;
5436: esac
1.150 moko 5437: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5438: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5439: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.237 moko 5440: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5441: break 2
5442: fi
5443: done
1.150 moko 5444: done
5445: IFS=$as_save_IFS
1.1 paf 5446:
1.237 moko 5447: fi ;;
5448: esac
1.62 paf 5449: fi
1.66 paf 5450: CC=$ac_cv_prog_CC
5451: if test -n "$CC"; then
1.237 moko 5452: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5453: printf "%s\n" "$CC" >&6; }
1.1 paf 5454: else
1.237 moko 5455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456: printf "%s\n" "no" >&6; }
1.1 paf 5457: fi
5458:
1.150 moko 5459:
1.66 paf 5460: test -n "$CC" && break
1.62 paf 5461: done
5462: fi
1.66 paf 5463: if test -z "$CC"; then
5464: ac_ct_CC=$CC
1.150 moko 5465: for ac_prog in cl.exe
1.62 paf 5466: do
5467: # Extract the first word of "$ac_prog", so it can be a program name with args.
5468: set dummy $ac_prog; ac_word=$2
1.237 moko 5469: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470: printf %s "checking for $ac_word... " >&6; }
5471: if test ${ac_cv_prog_ac_ct_CC+y}
5472: then :
5473: printf %s "(cached) " >&6
5474: else case e in #(
5475: e) if test -n "$ac_ct_CC"; then
1.66 paf 5476: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 5477: else
1.62 paf 5478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479: for as_dir in $PATH
5480: do
5481: IFS=$as_save_IFS
1.237 moko 5482: case $as_dir in #(((
5483: '') as_dir=./ ;;
5484: */) ;;
5485: *) as_dir=$as_dir/ ;;
5486: esac
1.150 moko 5487: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5488: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5489: ac_cv_prog_ac_ct_CC="$ac_prog"
1.237 moko 5490: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5491: break 2
5492: fi
5493: done
1.150 moko 5494: done
5495: IFS=$as_save_IFS
1.62 paf 5496:
1.237 moko 5497: fi ;;
5498: esac
1.62 paf 5499: fi
1.66 paf 5500: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5501: if test -n "$ac_ct_CC"; then
1.237 moko 5502: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5503: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5504: else
1.237 moko 5505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506: printf "%s\n" "no" >&6; }
1.1 paf 5507: fi
5508:
1.150 moko 5509:
1.66 paf 5510: test -n "$ac_ct_CC" && break
5511: done
5512:
1.150 moko 5513: if test "x$ac_ct_CC" = x; then
5514: CC=""
5515: else
5516: case $cross_compiling:$ac_tool_warned in
5517: yes:)
1.237 moko 5518: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5520: ac_tool_warned=yes ;;
5521: esac
5522: CC=$ac_ct_CC
5523: fi
1.66 paf 5524: fi
5525:
5526: fi
1.237 moko 5527: if test -z "$CC"; then
5528: if test -n "$ac_tool_prefix"; then
5529: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5530: set dummy ${ac_tool_prefix}clang; ac_word=$2
5531: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532: printf %s "checking for $ac_word... " >&6; }
5533: if test ${ac_cv_prog_CC+y}
5534: then :
5535: printf %s "(cached) " >&6
5536: else case e in #(
5537: e) if test -n "$CC"; then
5538: ac_cv_prog_CC="$CC" # Let the user override the test.
5539: else
5540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541: for as_dir in $PATH
5542: do
5543: IFS=$as_save_IFS
5544: case $as_dir in #(((
5545: '') as_dir=./ ;;
5546: */) ;;
5547: *) as_dir=$as_dir/ ;;
5548: esac
5549: for ac_exec_ext in '' $ac_executable_extensions; do
5550: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5551: ac_cv_prog_CC="${ac_tool_prefix}clang"
5552: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5553: break 2
5554: fi
5555: done
5556: done
5557: IFS=$as_save_IFS
5558:
5559: fi ;;
5560: esac
5561: fi
5562: CC=$ac_cv_prog_CC
5563: if test -n "$CC"; then
5564: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5565: printf "%s\n" "$CC" >&6; }
5566: else
5567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568: printf "%s\n" "no" >&6; }
5569: fi
5570:
5571:
5572: fi
5573: if test -z "$ac_cv_prog_CC"; then
5574: ac_ct_CC=$CC
5575: # Extract the first word of "clang", so it can be a program name with args.
5576: set dummy clang; ac_word=$2
5577: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578: printf %s "checking for $ac_word... " >&6; }
5579: if test ${ac_cv_prog_ac_ct_CC+y}
5580: then :
5581: printf %s "(cached) " >&6
5582: else case e in #(
5583: e) if test -n "$ac_ct_CC"; then
5584: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5585: else
5586: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587: for as_dir in $PATH
5588: do
5589: IFS=$as_save_IFS
5590: case $as_dir in #(((
5591: '') as_dir=./ ;;
5592: */) ;;
5593: *) as_dir=$as_dir/ ;;
5594: esac
5595: for ac_exec_ext in '' $ac_executable_extensions; do
5596: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5597: ac_cv_prog_ac_ct_CC="clang"
5598: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5599: break 2
5600: fi
5601: done
5602: done
5603: IFS=$as_save_IFS
5604:
5605: fi ;;
5606: esac
5607: fi
5608: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5609: if test -n "$ac_ct_CC"; then
5610: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5611: printf "%s\n" "$ac_ct_CC" >&6; }
5612: else
5613: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614: printf "%s\n" "no" >&6; }
5615: fi
5616:
5617: if test "x$ac_ct_CC" = x; then
5618: CC=""
5619: else
5620: case $cross_compiling:$ac_tool_warned in
5621: yes:)
5622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624: ac_tool_warned=yes ;;
5625: esac
5626: CC=$ac_ct_CC
5627: fi
5628: else
5629: CC="$ac_cv_prog_CC"
5630: fi
5631:
5632: fi
1.62 paf 5633:
1.1 paf 5634:
1.237 moko 5635: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5636: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 5637: as_fn_error $? "no acceptable C compiler found in \$PATH
1.237 moko 5638: See 'config.log' for more details" "$LINENO" 5; }
1.62 paf 5639:
5640: # Provide some information about the compiler.
1.237 moko 5641: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.150 moko 5642: set X $ac_compile
5643: ac_compiler=$2
1.237 moko 5644: for ac_option in --version -v -V -qversion -version; do
1.150 moko 5645: { { ac_try="$ac_compiler $ac_option >&5"
5646: case "(($ac_try" in
5647: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648: *) ac_try_echo=$ac_try;;
5649: esac
5650: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 5651: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 5652: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 5653: ac_status=$?
1.150 moko 5654: if test -s conftest.err; then
5655: sed '10a\
5656: ... rest of stderr output deleted ...
5657: 10q' conftest.err >conftest.er1
5658: cat conftest.er1 >&5
5659: fi
5660: rm -f conftest.er1 conftest.err
1.237 moko 5661: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 5662: test $ac_status = 0; }
5663: done
5664:
1.237 moko 5665: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5666: printf %s "checking whether the compiler supports GNU C... " >&6; }
5667: if test ${ac_cv_c_compiler_gnu+y}
5668: then :
5669: printf %s "(cached) " >&6
5670: else case e in #(
5671: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5672: /* end confdefs.h. */
5673:
5674: int
1.237 moko 5675: main (void)
1.62 paf 5676: {
5677: #ifndef __GNUC__
5678: choke me
5679: #endif
5680:
5681: ;
5682: return 0;
5683: }
5684: _ACEOF
1.237 moko 5685: if ac_fn_c_try_compile "$LINENO"
5686: then :
1.62 paf 5687: ac_compiler_gnu=yes
1.237 moko 5688: else case e in #(
5689: e) ac_compiler_gnu=no ;;
5690: esac
1.62 paf 5691: fi
1.237 moko 5692: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 5693: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.237 moko 5694: ;;
5695: esac
5696: fi
5697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5698: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5699: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.62 paf 5700:
1.150 moko 5701: if test $ac_compiler_gnu = yes; then
5702: GCC=yes
5703: else
5704: GCC=
5705: fi
1.237 moko 5706: ac_test_CFLAGS=${CFLAGS+y}
1.66 paf 5707: ac_save_CFLAGS=$CFLAGS
1.237 moko 5708: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5709: printf %s "checking whether $CC accepts -g... " >&6; }
5710: if test ${ac_cv_prog_cc_g+y}
5711: then :
5712: printf %s "(cached) " >&6
5713: else case e in #(
5714: e) ac_save_c_werror_flag=$ac_c_werror_flag
1.150 moko 5715: ac_c_werror_flag=yes
5716: ac_cv_prog_cc_g=no
5717: CFLAGS="-g"
5718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5719: /* end confdefs.h. */
5720:
5721: int
1.237 moko 5722: main (void)
1.62 paf 5723: {
5724:
5725: ;
5726: return 0;
5727: }
5728: _ACEOF
1.237 moko 5729: if ac_fn_c_try_compile "$LINENO"
5730: then :
1.66 paf 5731: ac_cv_prog_cc_g=yes
1.237 moko 5732: else case e in #(
5733: e) CFLAGS=""
1.150 moko 5734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735: /* end confdefs.h. */
5736:
5737: int
1.237 moko 5738: main (void)
1.150 moko 5739: {
1.62 paf 5740:
1.150 moko 5741: ;
5742: return 0;
5743: }
5744: _ACEOF
1.237 moko 5745: if ac_fn_c_try_compile "$LINENO"
5746: then :
1.150 moko 5747:
1.237 moko 5748: else case e in #(
5749: e) ac_c_werror_flag=$ac_save_c_werror_flag
1.150 moko 5750: CFLAGS="-g"
5751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752: /* end confdefs.h. */
5753:
5754: int
1.237 moko 5755: main (void)
1.150 moko 5756: {
5757:
5758: ;
5759: return 0;
5760: }
5761: _ACEOF
1.237 moko 5762: if ac_fn_c_try_compile "$LINENO"
5763: then :
1.150 moko 5764: ac_cv_prog_cc_g=yes
5765: fi
1.237 moko 5766: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5767: esac
1.62 paf 5768: fi
1.237 moko 5769: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5770: esac
1.62 paf 5771: fi
1.237 moko 5772: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5773: ac_c_werror_flag=$ac_save_c_werror_flag ;;
5774: esac
1.150 moko 5775: fi
1.237 moko 5776: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5777: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5778: if test $ac_test_CFLAGS; then
1.66 paf 5779: CFLAGS=$ac_save_CFLAGS
5780: elif test $ac_cv_prog_cc_g = yes; then
5781: if test "$GCC" = yes; then
5782: CFLAGS="-g -O2"
1.1 paf 5783: else
1.66 paf 5784: CFLAGS="-g"
1.1 paf 5785: fi
5786: else
1.66 paf 5787: if test "$GCC" = yes; then
5788: CFLAGS="-O2"
1.1 paf 5789: else
1.66 paf 5790: CFLAGS=
1.1 paf 5791: fi
5792: fi
1.237 moko 5793: ac_prog_cc_stdc=no
5794: if test x$ac_prog_cc_stdc = xno
5795: then :
5796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5797: printf %s "checking for $CC option to enable C11 features... " >&6; }
5798: if test ${ac_cv_prog_cc_c11+y}
5799: then :
5800: printf %s "(cached) " >&6
5801: else case e in #(
5802: e) ac_cv_prog_cc_c11=no
1.66 paf 5803: ac_save_CC=$CC
1.150 moko 5804: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 5805: /* end confdefs.h. */
1.237 moko 5806: $ac_c_conftest_c11_program
5807: _ACEOF
5808: for ac_arg in '' -std=gnu11
5809: do
5810: CC="$ac_save_CC $ac_arg"
5811: if ac_fn_c_try_compile "$LINENO"
5812: then :
5813: ac_cv_prog_cc_c11=$ac_arg
5814: fi
5815: rm -f core conftest.err conftest.$ac_objext conftest.beam
5816: test "x$ac_cv_prog_cc_c11" != "xno" && break
5817: done
5818: rm -f conftest.$ac_ext
5819: CC=$ac_save_CC ;;
5820: esac
5821: fi
1.86 paf 5822:
1.237 moko 5823: if test "x$ac_cv_prog_cc_c11" = xno
5824: then :
5825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5826: printf "%s\n" "unsupported" >&6; }
5827: else case e in #(
5828: e) if test "x$ac_cv_prog_cc_c11" = x
5829: then :
5830: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5831: printf "%s\n" "none needed" >&6; }
5832: else case e in #(
5833: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5834: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5835: CC="$CC $ac_cv_prog_cc_c11" ;;
5836: esac
5837: fi
5838: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5839: ac_prog_cc_stdc=c11 ;;
5840: esac
5841: fi
5842: fi
5843: if test x$ac_prog_cc_stdc = xno
5844: then :
5845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5846: printf %s "checking for $CC option to enable C99 features... " >&6; }
5847: if test ${ac_cv_prog_cc_c99+y}
5848: then :
5849: printf %s "(cached) " >&6
5850: else case e in #(
5851: e) ac_cv_prog_cc_c99=no
5852: ac_save_CC=$CC
5853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854: /* end confdefs.h. */
5855: $ac_c_conftest_c99_program
5856: _ACEOF
5857: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5858: do
5859: CC="$ac_save_CC $ac_arg"
5860: if ac_fn_c_try_compile "$LINENO"
5861: then :
5862: ac_cv_prog_cc_c99=$ac_arg
5863: fi
5864: rm -f core conftest.err conftest.$ac_objext conftest.beam
5865: test "x$ac_cv_prog_cc_c99" != "xno" && break
5866: done
5867: rm -f conftest.$ac_ext
5868: CC=$ac_save_CC ;;
5869: esac
5870: fi
1.86 paf 5871:
1.237 moko 5872: if test "x$ac_cv_prog_cc_c99" = xno
5873: then :
5874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5875: printf "%s\n" "unsupported" >&6; }
5876: else case e in #(
5877: e) if test "x$ac_cv_prog_cc_c99" = x
5878: then :
5879: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5880: printf "%s\n" "none needed" >&6; }
5881: else case e in #(
5882: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5883: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5884: CC="$CC $ac_cv_prog_cc_c99" ;;
5885: esac
5886: fi
5887: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5888: ac_prog_cc_stdc=c99 ;;
5889: esac
5890: fi
5891: fi
5892: if test x$ac_prog_cc_stdc = xno
5893: then :
5894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5895: printf %s "checking for $CC option to enable C89 features... " >&6; }
5896: if test ${ac_cv_prog_cc_c89+y}
5897: then :
5898: printf %s "(cached) " >&6
5899: else case e in #(
5900: e) ac_cv_prog_cc_c89=no
5901: ac_save_CC=$CC
5902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903: /* end confdefs.h. */
5904: $ac_c_conftest_c89_program
1.66 paf 5905: _ACEOF
1.237 moko 5906: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 5907: do
5908: CC="$ac_save_CC $ac_arg"
1.237 moko 5909: if ac_fn_c_try_compile "$LINENO"
5910: then :
1.150 moko 5911: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 5912: fi
1.237 moko 5913: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.150 moko 5914: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 5915: done
1.150 moko 5916: rm -f conftest.$ac_ext
1.237 moko 5917: CC=$ac_save_CC ;;
5918: esac
5919: fi
1.66 paf 5920:
1.237 moko 5921: if test "x$ac_cv_prog_cc_c89" = xno
5922: then :
5923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5924: printf "%s\n" "unsupported" >&6; }
5925: else case e in #(
5926: e) if test "x$ac_cv_prog_cc_c89" = x
5927: then :
5928: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5929: printf "%s\n" "none needed" >&6; }
5930: else case e in #(
5931: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5932: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5933: CC="$CC $ac_cv_prog_cc_c89" ;;
5934: esac
1.66 paf 5935: fi
1.237 moko 5936: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5937: ac_prog_cc_stdc=c89 ;;
1.66 paf 5938: esac
1.237 moko 5939: fi
1.62 paf 5940: fi
1.66 paf 5941:
1.62 paf 5942: ac_ext=c
5943: ac_cpp='$CPP $CPPFLAGS'
5944: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5945: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5946: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947:
1.237 moko 5948:
5949: ac_ext=c
1.187 moko 5950: ac_cpp='$CPP $CPPFLAGS'
5951: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 moko 5954: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5955: printf %s "checking whether $CC understands -c and -o together... " >&6; }
5956: if test ${am_cv_prog_cc_c_o+y}
5957: then :
5958: printf %s "(cached) " >&6
5959: else case e in #(
5960: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.187 moko 5961: /* end confdefs.h. */
5962:
5963: int
1.237 moko 5964: main (void)
1.187 moko 5965: {
5966:
5967: ;
5968: return 0;
5969: }
5970: _ACEOF
5971: # Make sure it works both with $CC and with simple cc.
5972: # Following AC_PROG_CC_C_O, we do the test twice because some
5973: # compilers refuse to overwrite an existing .o file with -o,
5974: # though they will create one.
5975: am_cv_prog_cc_c_o=yes
5976: for am_i in 1 2; do
5977: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5978: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5979: ac_status=$?
5980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981: (exit $ac_status); } \
5982: && test -f conftest2.$ac_objext; then
5983: : OK
5984: else
5985: am_cv_prog_cc_c_o=no
5986: break
5987: fi
5988: done
5989: rm -f core conftest*
1.237 moko 5990: unset am_i ;;
5991: esac
1.187 moko 5992: fi
1.237 moko 5993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5994: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.187 moko 5995: if test "$am_cv_prog_cc_c_o" != yes; then
5996: # Losing compiler, so override with the script.
5997: # FIXME: It is wrong to rewrite CC.
5998: # But if we don't then we get into trouble of one sort or another.
5999: # A longer-term fix would be to have automake use am__CC in this case,
6000: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6001: CC="$am_aux_dir/compile $CC"
6002: fi
6003: ac_ext=c
6004: ac_cpp='$CPP $CPPFLAGS'
6005: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008:
6009:
1.66 paf 6010: depcc="$CC" am_compiler_list=
1.62 paf 6011:
1.237 moko 6012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6013: printf %s "checking dependency style of $depcc... " >&6; }
6014: if test ${am_cv_CC_dependencies_compiler_type+y}
6015: then :
6016: printf %s "(cached) " >&6
6017: else case e in #(
6018: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 6019: # We make a subdir and do the tests there. Otherwise we can end up
6020: # making bogus files that we don't know about and never remove. For
6021: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 6022: # making a dummy file named 'D' -- because '-MD' means "put the output
6023: # in D".
6024: rm -rf conftest.dir
1.62 paf 6025: mkdir conftest.dir
6026: # Copy depcomp to subdir because otherwise we won't find it if we're
6027: # using a relative directory.
6028: cp "$am_depcomp" conftest.dir
6029: cd conftest.dir
1.86 paf 6030: # We will build objects and dependencies in a subdirectory because
6031: # it helps to detect inapplicable dependency modes. For instance
6032: # both Tru64's cc and ICC support -MD to output dependencies as a
6033: # side effect of compilation, but ICC will put the dependencies in
6034: # the current directory while Tru64 will put them in the object
6035: # directory.
6036: mkdir sub
1.62 paf 6037:
1.66 paf 6038: am_cv_CC_dependencies_compiler_type=none
1.62 paf 6039: if test "$am_compiler_list" = ""; then
6040: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6041: fi
1.150 moko 6042: am__universal=false
6043: case " $depcc " in #(
6044: *\ -arch\ *\ -arch\ *) am__universal=true ;;
6045: esac
6046:
1.62 paf 6047: for depmode in $am_compiler_list; do
1.86 paf 6048: # Setup a source with many dependencies, because some compilers
6049: # like to wrap large dependency lists on column 80 (with \), and
6050: # we should not choose a depcomp mode which is confused by this.
6051: #
1.62 paf 6052: # We need to recreate these files for each test, as the compiler may
6053: # overwrite some of them when testing with obscure command lines.
6054: # This happens at least with the AIX C compiler.
1.86 paf 6055: : > sub/conftest.c
6056: for i in 1 2 3 4 5 6; do
6057: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 6058: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6059: # Solaris 10 /bin/sh.
6060: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 6061: done
6062: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 6063:
1.187 moko 6064: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 6065: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 6066: # handle '-M -o', and we need to detect this. Also, some Intel
6067: # versions had trouble with output in subdirs.
1.150 moko 6068: am__obj=sub/conftest.${OBJEXT-o}
6069: am__minus_obj="-o $am__obj"
1.62 paf 6070: case $depmode in
1.150 moko 6071: gcc)
6072: # This depmode causes a compiler race in universal mode.
6073: test "$am__universal" = false || continue
6074: ;;
1.62 paf 6075: nosideeffect)
1.187 moko 6076: # After this tag, mechanisms are not by side-effect, so they'll
6077: # only be used when explicitly requested.
1.62 paf 6078: if test "x$enable_dependency_tracking" = xyes; then
6079: continue
6080: else
6081: break
6082: fi
6083: ;;
1.187 moko 6084: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6085: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 6086: # not run yet. These depmodes are late enough in the game, and
6087: # so weak that their functioning should not be impacted.
6088: am__obj=conftest.${OBJEXT-o}
6089: am__minus_obj=
6090: ;;
1.62 paf 6091: none) break ;;
6092: esac
1.66 paf 6093: if depmode=$depmode \
1.150 moko 6094: source=sub/conftest.c object=$am__obj \
1.86 paf 6095: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 6096: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 6097: >/dev/null 2>conftest.err &&
1.150 moko 6098: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 6099: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 6100: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 6101: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 6102: # icc doesn't choke on unknown options, it will just issue warnings
6103: # or remarks (even with -Werror). So we grep stderr for any message
6104: # that says an option was ignored or not supported.
1.237 moko 6105: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 6106: # icc: Command line warning: ignoring option '-M'; no argument required
6107: # The diagnosis changed in icc 8.0:
6108: # icc: Command line remark: option '-MP' not supported
6109: if (grep 'ignoring option' conftest.err ||
6110: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6111: am_cv_CC_dependencies_compiler_type=$depmode
6112: break
6113: fi
1.66 paf 6114: fi
6115: done
6116:
6117: cd ..
6118: rm -rf conftest.dir
6119: else
6120: am_cv_CC_dependencies_compiler_type=none
6121: fi
1.237 moko 6122: ;;
6123: esac
1.66 paf 6124: fi
1.237 moko 6125: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6126: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 6127: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6128:
1.150 moko 6129: if
1.66 paf 6130: test "x$enable_dependency_tracking" != xno \
6131: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6132: am__fastdepCC_TRUE=
6133: am__fastdepCC_FALSE='#'
6134: else
6135: am__fastdepCC_TRUE='#'
6136: am__fastdepCC_FALSE=
6137: fi
6138:
6139:
1.128 moko 6140:
1.66 paf 6141: ac_ext=c
6142: ac_cpp='$CPP $CPPFLAGS'
6143: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146:
1.67 paf 6147:
1.62 paf 6148:
1.237 moko 6149: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
6150: printf %s "checking for dynamic-link library extension... " >&6; }
1.128 moko 6151: case "$host_os" in
1.158 moko 6152: *cygwin* ) dll_extension=dll;;
6153: * ) dll_extension=so
1.66 paf 6154: esac
1.237 moko 6155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
6156: printf "%s\n" "$dll_extension" >&6; }
1.1 paf 6157:
1.71 paf 6158:
6159:
1.243 moko 6160: case "$host" in
6161: *-freebsd4*)
1.71 paf 6162:
1.243 moko 6163: printf "%s\n" "#define FREEBSD4 /**/" >>confdefs.h
1.71 paf 6164:
1.243 moko 6165: ;;
6166: *-freebsd1*)
1.150 moko 6167:
1.243 moko 6168: printf "%s\n" "#define FREEBSD1X /**/" >>confdefs.h
1.1 paf 6169:
1.243 moko 6170: ;;
6171: *-sunos5.6* | *-solaris2.6*)
1.1 paf 6172:
1.243 moko 6173: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
6174: printf %s "checking for main in -lxnet... " >&6; }
6175: if test ${ac_cv_lib_xnet_main+y}
1.237 moko 6176: then :
1.243 moko 6177: printf %s "(cached) " >&6
6178: else case e in #(
6179: e) ac_check_lib_save_LIBS=$LIBS
6180: LIBS="-lxnet $LIBS"
6181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182: /* end confdefs.h. */
1.182 moko 6183:
6184:
1.243 moko 6185: int
6186: main (void)
6187: {
6188: return main ();
6189: ;
6190: return 0;
6191: }
6192: _ACEOF
6193: if ac_fn_c_try_link "$LINENO"
1.237 moko 6194: then :
1.243 moko 6195: ac_cv_lib_xnet_main=yes
1.237 moko 6196: else case e in #(
1.243 moko 6197: e) ac_cv_lib_xnet_main=no ;;
1.237 moko 6198: esac
1.150 moko 6199: fi
1.243 moko 6200: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6201: conftest$ac_exeext conftest.$ac_ext
6202: LIBS=$ac_check_lib_save_LIBS ;;
6203: esac
1.150 moko 6204: fi
1.243 moko 6205: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
6206: printf "%s\n" "$ac_cv_lib_xnet_main" >&6; }
6207: if test "x$ac_cv_lib_xnet_main" = xyes
1.237 moko 6208: then :
1.243 moko 6209: printf "%s\n" "#define HAVE_LIBXNET 1" >>confdefs.h
1.201 moko 6210:
1.243 moko 6211: LIBS="-lxnet $LIBS"
1.201 moko 6212:
6213: fi
6214:
1.243 moko 6215: ;;
6216: *-sunos5* | *-solaris2*)
6217: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
6218: printf %s "checking for main in -lsocket... " >&6; }
6219: if test ${ac_cv_lib_socket_main+y}
1.237 moko 6220: then :
1.243 moko 6221: printf %s "(cached) " >&6
6222: else case e in #(
6223: e) ac_check_lib_save_LIBS=$LIBS
6224: LIBS="-lsocket $LIBS"
6225: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226: /* end confdefs.h. */
1.60 paf 6227:
1.1 paf 6228:
1.243 moko 6229: int
6230: main (void)
6231: {
6232: return main ();
6233: ;
6234: return 0;
6235: }
6236: _ACEOF
6237: if ac_fn_c_try_link "$LINENO"
1.237 moko 6238: then :
1.243 moko 6239: ac_cv_lib_socket_main=yes
6240: else case e in #(
6241: e) ac_cv_lib_socket_main=no ;;
6242: esac
1.13 paf 6243: fi
1.243 moko 6244: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6245: conftest$ac_exeext conftest.$ac_ext
6246: LIBS=$ac_check_lib_save_LIBS ;;
6247: esac
1.150 moko 6248: fi
1.243 moko 6249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
6250: printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
6251: if test "x$ac_cv_lib_socket_main" = xyes
1.237 moko 6252: then :
1.243 moko 6253: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.94 misha 6254:
1.243 moko 6255: LIBS="-lsocket $LIBS"
1.94 misha 6256:
6257: fi
6258:
1.243 moko 6259: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
6260: printf %s "checking for main in -lnsl... " >&6; }
6261: if test ${ac_cv_lib_nsl_main+y}
1.237 moko 6262: then :
1.243 moko 6263: printf %s "(cached) " >&6
1.237 moko 6264: else case e in #(
1.243 moko 6265: e) ac_check_lib_save_LIBS=$LIBS
6266: LIBS="-lnsl $LIBS"
6267: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268: /* end confdefs.h. */
1.17 paf 6269:
6270:
1.67 paf 6271: int
1.237 moko 6272: main (void)
1.67 paf 6273: {
1.243 moko 6274: return main ();
1.67 paf 6275: ;
6276: return 0;
6277: }
6278: _ACEOF
1.237 moko 6279: if ac_fn_c_try_link "$LINENO"
6280: then :
1.243 moko 6281: ac_cv_lib_nsl_main=yes
1.237 moko 6282: else case e in #(
1.243 moko 6283: e) ac_cv_lib_nsl_main=no ;;
1.237 moko 6284: esac
1.67 paf 6285: fi
1.237 moko 6286: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6287: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6288: LIBS=$ac_check_lib_save_LIBS ;;
6289: esac
1.138 moko 6290: fi
1.243 moko 6291: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
6292: printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
6293: if test "x$ac_cv_lib_nsl_main" = xyes
6294: then :
6295: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
1.67 paf 6296:
1.243 moko 6297: LIBS="-lnsl $LIBS"
1.67 paf 6298:
1.243 moko 6299: fi
1.1 paf 6300:
1.243 moko 6301: ;;
6302: *-nec-sysv4*)
6303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6304: printf %s "checking for gethostbyname in -lnsl... " >&6; }
6305: if test ${ac_cv_lib_nsl_gethostbyname+y}
1.237 moko 6306: then :
1.243 moko 6307: printf %s "(cached) " >&6
6308: else case e in #(
6309: e) ac_check_lib_save_LIBS=$LIBS
6310: LIBS="-lnsl $LIBS"
6311: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312: /* end confdefs.h. */
1.100 misha 6313:
1.243 moko 6314: /* Override any GCC internal prototype to avoid an error.
6315: Use char because int might match the return type of a GCC
6316: builtin and then its argument prototype would still apply.
6317: The 'extern "C"' is for builds by C++ compilers;
6318: although this is not generally supported in C code supporting it here
6319: has little cost and some practical benefit (sr 110532). */
6320: #ifdef __cplusplus
6321: extern "C"
6322: #endif
6323: char gethostbyname (void);
1.218 moko 6324: int
1.237 moko 6325: main (void)
1.218 moko 6326: {
1.243 moko 6327: return gethostbyname ();
1.218 moko 6328: ;
6329: return 0;
6330: }
6331: _ACEOF
1.237 moko 6332: if ac_fn_c_try_link "$LINENO"
6333: then :
1.243 moko 6334: ac_cv_lib_nsl_gethostbyname=yes
1.237 moko 6335: else case e in #(
1.243 moko 6336: e) ac_cv_lib_nsl_gethostbyname=no ;;
1.237 moko 6337: esac
1.218 moko 6338: fi
1.237 moko 6339: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.218 moko 6340: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6341: LIBS=$ac_check_lib_save_LIBS ;;
6342: esac
6343: fi
6344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6345: printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6346: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6347: then :
6348: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
6349:
6350: LIBS="-lnsl $LIBS"
1.229 moko 6351:
1.218 moko 6352: fi
6353:
1.243 moko 6354: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6355: printf %s "checking for socket in -lsocket... " >&6; }
6356: if test ${ac_cv_lib_socket_socket+y}
6357: then :
6358: printf %s "(cached) " >&6
6359: else case e in #(
6360: e) ac_check_lib_save_LIBS=$LIBS
6361: LIBS="-lsocket $LIBS"
6362: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363: /* end confdefs.h. */
1.229 moko 6364:
1.243 moko 6365: /* Override any GCC internal prototype to avoid an error.
6366: Use char because int might match the return type of a GCC
6367: builtin and then its argument prototype would still apply.
6368: The 'extern "C"' is for builds by C++ compilers;
6369: although this is not generally supported in C code supporting it here
6370: has little cost and some practical benefit (sr 110532). */
6371: #ifdef __cplusplus
6372: extern "C"
6373: #endif
6374: char socket (void);
1.142 moko 6375: int
1.237 moko 6376: main (void)
1.142 moko 6377: {
1.243 moko 6378: return socket ();
1.142 moko 6379: ;
6380: return 0;
6381: }
6382: _ACEOF
1.237 moko 6383: if ac_fn_c_try_link "$LINENO"
6384: then :
1.243 moko 6385: ac_cv_lib_socket_socket=yes
1.237 moko 6386: else case e in #(
1.243 moko 6387: e) ac_cv_lib_socket_socket=no ;;
1.237 moko 6388: esac
1.142 moko 6389: fi
1.237 moko 6390: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6391: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6392: LIBS=$ac_check_lib_save_LIBS ;;
6393: esac
1.142 moko 6394: fi
1.243 moko 6395: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6396: printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
6397: if test "x$ac_cv_lib_socket_socket" = xyes
6398: then :
6399: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.100 misha 6400:
1.243 moko 6401: LIBS="-lsocket $LIBS"
1.100 misha 6402:
1.243 moko 6403: fi
1.100 misha 6404:
1.243 moko 6405: ;;
6406: *-cygwin*)
1.100 misha 6407:
1.243 moko 6408: printf "%s\n" "#define WIN32 /**/" >>confdefs.h
1.66 paf 6409:
1.243 moko 6410: ;;
6411: esac
1.66 paf 6412:
1.243 moko 6413: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
6414: printf %s "checking for sin in -lm... " >&6; }
6415: if test ${ac_cv_lib_m_sin+y}
1.237 moko 6416: then :
1.243 moko 6417: printf %s "(cached) " >&6
6418: else case e in #(
6419: e) ac_check_lib_save_LIBS=$LIBS
6420: LIBS="-lm $LIBS"
6421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422: /* end confdefs.h. */
1.66 paf 6423:
1.243 moko 6424: /* Override any GCC internal prototype to avoid an error.
6425: Use char because int might match the return type of a GCC
6426: builtin and then its argument prototype would still apply.
6427: The 'extern "C"' is for builds by C++ compilers;
6428: although this is not generally supported in C code supporting it here
6429: has little cost and some practical benefit (sr 110532). */
6430: #ifdef __cplusplus
6431: extern "C"
6432: #endif
6433: char sin (void);
1.142 moko 6434: int
1.237 moko 6435: main (void)
1.142 moko 6436: {
1.243 moko 6437: return sin ();
1.142 moko 6438: ;
6439: return 0;
6440: }
6441: _ACEOF
1.237 moko 6442: if ac_fn_c_try_link "$LINENO"
6443: then :
1.243 moko 6444: ac_cv_lib_m_sin=yes
1.237 moko 6445: else case e in #(
1.243 moko 6446: e) ac_cv_lib_m_sin=no ;;
1.237 moko 6447: esac
1.142 moko 6448: fi
1.237 moko 6449: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6450: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6451: LIBS=$ac_check_lib_save_LIBS ;;
6452: esac
6453: fi
6454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
6455: printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
6456: if test "x$ac_cv_lib_m_sin" = xyes
6457: then :
6458: printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
1.229 moko 6459:
1.243 moko 6460: LIBS="-lm $LIBS"
1.66 paf 6461:
1.150 moko 6462: fi
1.66 paf 6463:
1.243 moko 6464: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
6465: printf %s "checking for crypt in -lcrypt... " >&6; }
6466: if test ${ac_cv_lib_crypt_crypt+y}
1.237 moko 6467: then :
1.243 moko 6468: printf %s "(cached) " >&6
6469: else case e in #(
6470: e) ac_check_lib_save_LIBS=$LIBS
6471: LIBS="-lcrypt $LIBS"
6472: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473: /* end confdefs.h. */
1.154 moko 6474:
1.243 moko 6475: /* Override any GCC internal prototype to avoid an error.
6476: Use char because int might match the return type of a GCC
6477: builtin and then its argument prototype would still apply.
6478: The 'extern "C"' is for builds by C++ compilers;
6479: although this is not generally supported in C code supporting it here
6480: has little cost and some practical benefit (sr 110532). */
6481: #ifdef __cplusplus
6482: extern "C"
6483: #endif
6484: char crypt (void);
1.154 moko 6485: int
1.237 moko 6486: main (void)
1.154 moko 6487: {
1.243 moko 6488: return crypt ();
1.154 moko 6489: ;
6490: return 0;
6491: }
6492: _ACEOF
1.237 moko 6493: if ac_fn_c_try_link "$LINENO"
6494: then :
1.243 moko 6495: ac_cv_lib_crypt_crypt=yes
1.237 moko 6496: else case e in #(
1.243 moko 6497: e) ac_cv_lib_crypt_crypt=no ;;
1.237 moko 6498: esac
1.150 moko 6499: fi
1.237 moko 6500: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.154 moko 6501: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6502: LIBS=$ac_check_lib_save_LIBS ;;
6503: esac
6504: fi
6505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
6506: printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
6507: if test "x$ac_cv_lib_crypt_crypt" = xyes
6508: then :
6509: printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h
1.229 moko 6510:
1.243 moko 6511: LIBS="-lcrypt $LIBS"
1.66 paf 6512:
1.154 moko 6513: fi
1.66 paf 6514:
6515:
6516:
6517:
1.243 moko 6518: # Check whether --with-build-warnings was given.
6519: if test ${with_build_warnings+y}
6520: then :
6521: withval=$with_build_warnings; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
6522: printf "%s\n" "$as_me: WARNING: enabling compiler warnings" >&2;}
6523: CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -Wextra -Wall -Wno-parentheses"
1.66 paf 6524:
1.243 moko 6525: fi
1.241 moko 6526:
6527:
6528:
1.243 moko 6529: # Check whether --with-coverage was given.
6530: if test ${with_coverage+y}
1.241 moko 6531: then :
1.243 moko 6532: withval=$with_coverage; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
6533: printf "%s\n" "$as_me: WARNING: enabling gcov support" >&2;}
6534: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
6535: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
6536: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
6537: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
6538: LDFLAGS="$LDFLAGS -lgcov"
1.241 moko 6539:
6540: fi
1.66 paf 6541:
1.232 moko 6542:
6543:
1.243 moko 6544: # Check whether --with-profiler was given.
6545: if test ${with_profiler+y}
1.237 moko 6546: then :
1.243 moko 6547: withval=$with_profiler; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
6548: printf "%s\n" "$as_me: WARNING: enabling gprof support" >&2;}
6549: CFLAGS="$CFLAGS -O0 -pg -g"
6550: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.237 moko 6551:
1.243 moko 6552: fi
1.232 moko 6553:
6554:
6555:
1.243 moko 6556: # Check whether --with-assertions was given.
6557: if test ${with_assertions+y}
1.241 moko 6558: then :
1.243 moko 6559: withval=$with_assertions; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
6560: printf "%s\n" "$as_me: WARNING: enabling assertions" >&2;}
1.241 moko 6561:
6562: else case e in #(
6563: e)
1.243 moko 6564: printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
6565:
1.241 moko 6566: ;;
6567: esac
6568: fi
6569:
6570:
6571:
1.243 moko 6572: # Check whether --with-sjlj-exceptions was given.
6573: if test ${with_sjlj_exceptions+y}
6574: then :
6575: withval=$with_sjlj_exceptions;
6576: printf "%s\n" "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.232 moko 6577:
6578:
6579: fi
6580:
6581:
6582:
6583:
1.243 moko 6584: # Check whether --with-system-cfg was given.
6585: if test ${with_system_cfg+y}
6586: then :
6587: withval=$with_system_cfg;
6588: printf "%s\n" "#define SYSTEM_CONFIG_FILE \"$withval\"" >>confdefs.h
1.232 moko 6589:
6590:
1.243 moko 6591: fi
1.239 moko 6592:
6593:
6594:
1.243 moko 6595: # Check whether --enable-safe-mode was given.
6596: if test ${enable_safe_mode+y}
1.239 moko 6597: then :
1.243 moko 6598: enableval=$enable_safe_mode;
6599: SAFE_MODE=$enableval
1.239 moko 6600:
6601:
6602: fi
6603:
6604:
1.243 moko 6605: if test "$SAFE_MODE" = "no"; then
6606: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
6607: printf "%s\n" "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
6608: else
1.239 moko 6609:
1.243 moko 6610: printf "%s\n" "#define PA_SAFE_MODE /**/" >>confdefs.h
1.239 moko 6611:
6612: fi
6613:
6614:
1.243 moko 6615: # Check whether --enable-execs was given.
6616: if test ${enable_execs+y}
6617: then :
6618: enableval=$enable_execs;
6619: if test "$enableval" = "no"; then
6620: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
6621: printf "%s\n" "$as_me: WARNING: disabling file execs" >&2;}
1.239 moko 6622:
1.243 moko 6623: printf "%s\n" "#define NO_PA_EXECS /**/" >>confdefs.h
1.239 moko 6624:
1.243 moko 6625: fi
1.239 moko 6626:
6627:
1.243 moko 6628: fi
1.66 paf 6629:
6630:
6631:
1.243 moko 6632: # Check whether --enable-stringstream was given.
6633: if test ${enable_stringstream+y}
1.237 moko 6634: then :
1.243 moko 6635: enableval=$enable_stringstream;
6636: if test "$enableval" = "no"; then
6637: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
6638: printf "%s\n" "$as_me: WARNING: disabling stringstream usage" >&2;}
1.122 moko 6639:
1.243 moko 6640: printf "%s\n" "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.122 moko 6641:
1.150 moko 6642: fi
1.7 paf 6643:
6644:
1.66 paf 6645: fi
1.1 paf 6646:
6647:
6648:
1.62 paf 6649:
1.243 moko 6650: # Check whether --with-gc was given.
6651: if test ${with_gc+y}
6652: then :
6653: withval=$with_gc;
1.62 paf 6654:
1.243 moko 6655: GC=$withval
6656: GC_LIBS="$GC/libgc.la"
1.7 paf 6657:
1.243 moko 6658: if test -f $GC_LIBS; then
6659: GC_OK="yes"
6660: else
6661: GC_LIBS="-L$GC -lgc"
6662: fi
1.1 paf 6663:
1.243 moko 6664: if test "$GC" = "yes"; then
6665: GC=""
6666: GC_LIBS="-lgc"
6667: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
6668: printf "%s\n" "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
6669: fi
1.1 paf 6670:
1.243 moko 6671: else case e in #(
6672: e)
6673: GC_LIBS="-lgc"
6674: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
6675: printf "%s\n" "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
6676: ;;
1.128 moko 6677: esac
1.243 moko 6678: fi
1.128 moko 6679:
6680:
1.243 moko 6681: if test -z "$GC_OK"; then
6682: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
6683: printf %s "checking for libgc... " >&6; }
6684: SAVE_LIBS=$LIBS
6685: LIBS="$LIBS $GC_LIBS"
1.128 moko 6686:
1.243 moko 6687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688: /* end confdefs.h. */
6689: extern int GC_dont_gc;
6690: int
6691: main (void)
6692: {
6693: GC_dont_gc=0;
6694: ;
6695: return 0;
6696: }
6697: _ACEOF
6698: if ac_fn_c_try_link "$LINENO"
6699: then :
6700: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6701: printf "%s\n" "yes" >&6; }
1.237 moko 6702:
1.243 moko 6703: else case e in #(
6704: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705: printf "%s\n" "no" >&6; }
6706: if test -z "$GC"; then
6707: as_fn_error $? "please specify path to libgc: --with-gc=DIR" "$LINENO" 5
6708: else
6709: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
6710: fi
1.128 moko 6711:
1.243 moko 6712: ;;
6713: esac
6714: fi
6715: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6716: conftest$ac_exeext conftest.$ac_ext
1.128 moko 6717:
1.243 moko 6718: LIBS=$SAVE_LIBS
6719: fi
1.128 moko 6720:
6721:
6722:
6723:
6724:
1.243 moko 6725: # Check whether --with-pcre was given.
6726: if test ${with_pcre+y}
6727: then :
6728: withval=$with_pcre;
6729: PCRE=$withval
1.128 moko 6730:
1.243 moko 6731: if test "$PCRE" = "yes"; then
6732: PCRE=""
6733: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
6734: printf "%s\n" "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
6735: else
6736: PCRE_INCLUDES="-I$PCRE/include"
1.128 moko 6737:
1.243 moko 6738: if test -f $PCRE/include/pcre.h -a -f $PCRE/lib/libpcre.la; then
6739: PCRE_OK="yes"
6740: PCRE_LIBS="$PCRE/lib/libpcre.la"
6741: else
6742: if test -f $PCRE/include/pcre2.h -a -f $PCRE/lib/libpcre2-8.la; then
6743: PCRE_OK="yes"
6744: PCRE_LIBS="$PCRE/lib/libpcre2-8.la"
1.128 moko 6745:
1.243 moko 6746: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.128 moko 6747:
1.243 moko 6748: else
6749: PCRE_LIBS="-L$PCRE/lib"
6750: fi
6751: fi
6752: fi
1.128 moko 6753:
1.243 moko 6754: else case e in #(
6755: e)
6756: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
6757: printf "%s\n" "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
6758: ;;
6759: esac
6760: fi
1.128 moko 6761:
6762:
1.243 moko 6763: if test -z "$PCRE_OK"; then
6764: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2" >&5
6765: printf %s "checking for pcre2... " >&6; }
6766: SAVE_LIBS=$LIBS
6767: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES -lpcre2-8"
1.10 paf 6768:
1.243 moko 6769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770: /* end confdefs.h. */
6771: #define PCRE2_CODE_UNIT_WIDTH 8
6772: #include <pcre2.h>
6773: int
6774: main (void)
6775: {
6776: void *v=pcre2_general_context_create(0,0,0);
6777: ;
6778: return 0;
6779: }
6780: _ACEOF
6781: if ac_fn_c_try_link "$LINENO"
6782: then :
6783: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6784: printf "%s\n" "yes" >&6; }
6785: PCRE_LIBS="$PCRE_LIBS -lpcre2-8"
1.10 paf 6786:
1.243 moko 6787: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.62 paf 6788:
1.243 moko 6789: PCRE_OK="yes"
1.86 paf 6790:
1.243 moko 6791: else case e in #(
6792: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793: printf "%s\n" "no" >&6; }
1.86 paf 6794:
1.243 moko 6795: ;;
6796: esac
6797: fi
6798: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6799: conftest$ac_exeext conftest.$ac_ext
1.86 paf 6800:
1.243 moko 6801: LIBS=$SAVE_LIBS
1.128 moko 6802: fi
1.86 paf 6803:
1.243 moko 6804: if test -z "$PCRE_OK"; then
6805: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
6806: printf %s "checking for pcre... " >&6; }
6807: PCRE_LIBS="$PCRE_LIBS -lpcre"
6808: SAVE_LIBS=$LIBS
6809: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
6810:
6811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812: /* end confdefs.h. */
6813: #include <pcre.h>
6814: int
6815: main (void)
1.66 paf 6816: {
1.243 moko 6817: const char *v=pcre_version();
6818: ;
6819: return 0;
1.66 paf 6820: }
1.243 moko 6821: _ACEOF
6822: if ac_fn_c_try_link "$LINENO"
6823: then :
6824: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6825: printf "%s\n" "yes" >&6; }
6826:
6827: else case e in #(
6828: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829: printf "%s\n" "no" >&6; }
6830: if test -z "$PCRE"; then
6831: as_fn_error $? "please specify path to PCRE: --with-pcre=DIR" "$LINENO" 5
6832: else
6833: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
6834: fi
1.10 paf 6835:
1.243 moko 6836: ;;
1.128 moko 6837: esac
1.243 moko 6838: fi
6839: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6840: conftest$ac_exeext conftest.$ac_ext
1.128 moko 6841:
1.243 moko 6842: LIBS=$SAVE_LIBS
6843: fi
1.128 moko 6844:
6845:
6846:
6847:
6848:
6849:
1.243 moko 6850: # Check whether --with-xml was given.
6851: if test ${with_xml+y}
6852: then :
6853: withval=$with_xml;
1.128 moko 6854:
1.243 moko 6855: XML=$withval
6856: XML_LIBS="-lxml2 -lxslt -lexslt"
1.128 moko 6857:
1.243 moko 6858: if test -z "$XML" -o "$XML" = "yes"; then
6859: XML=""
6860: XML_INCLUDES="-I/usr/include/libxml2"
6861: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
6862: printf "%s\n" "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
6863: else
6864: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
6865: XML_LIBS="-L$XML/lib $XML_LIBS"
1.128 moko 6866:
1.243 moko 6867: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
6868: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
6869: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
6870: XML_OK="yes"
6871: fi
6872: fi
1.128 moko 6873:
1.243 moko 6874: if test -z "$XML_OK"; then
6875: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
6876: printf %s "checking for xml... " >&6; }
6877: SAVE_LIBS=$LIBS
6878: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.128 moko 6879:
1.243 moko 6880: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881: /* end confdefs.h. */
6882: #include <libxslt/xslt.h>
6883: int
6884: main (void)
6885: {
6886: const char *v=xsltEngineVersion;
6887: ;
6888: return 0;
6889: }
6890: _ACEOF
6891: if ac_fn_c_try_link "$LINENO"
6892: then :
6893: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6894: printf "%s\n" "yes" >&6; }
1.128 moko 6895:
1.237 moko 6896: else case e in #(
1.243 moko 6897: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898: printf "%s\n" "no" >&6; }
6899: if test -z "$XML"; then
6900: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=DIR" "$LINENO" 5
6901: else
6902: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
6903: fi
1.150 moko 6904:
1.243 moko 6905: ;;
1.237 moko 6906: esac
1.66 paf 6907: fi
1.243 moko 6908: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6909: conftest$ac_exeext conftest.$ac_ext
6910:
6911: LIBS=$SAVE_LIBS
6912: fi
6913:
6914: printf "%s\n" "#define XML /**/" >>confdefs.h
1.128 moko 6915:
1.10 paf 6916:
1.243 moko 6917: fi
1.128 moko 6918:
6919:
6920:
6921:
6922:
6923:
6924:
1.243 moko 6925: # Check whether --with-mailreceive was given.
6926: if test ${with_mailreceive+y}
6927: then :
6928: withval=$with_mailreceive;
6929: MIME=$withval
6930: GLIB="glib-2.0"
6931: GMIME="gmime-2.4"
1.128 moko 6932:
1.243 moko 6933: if test -z "$MIME" -o "$MIME" = "yes"; then
6934: MIME=""
6935: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6936: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
6937: if test -z "$MIME_LIBS"; then
6938: GMIME="gmime-3.0"
6939: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6940: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
6941: fi
6942: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
6943: printf "%s\n" "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
6944: else
6945: MIME_INCLUDES="-I$MIME/include/$GMIME"
6946: MIME_LIBS="-l$GMIME"
6947: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
6948: MIME_LIBS="$MIME/lib/lib$GMIME.la"
6949: if test -f $MIME/lib/lib$GLIB.la; then
6950: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
6951: else
6952: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
6953: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
6954: fi
6955: MIME_OK="yes"
6956: fi
6957: fi
1.128 moko 6958:
1.243 moko 6959: if test -z "$MIME_OK"; then
6960: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
6961: printf %s "checking for mime... " >&6; }
6962: SAVE_LIBS=$LIBS
6963: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
1.128 moko 6964:
1.243 moko 6965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966: /* end confdefs.h. */
6967: #include <gmime/gmime.h>
6968: int
6969: main (void)
6970: {
6971: guint v=gmime_major_version;
6972: ;
6973: return 0;
6974: }
6975: _ACEOF
6976: if ac_fn_c_try_link "$LINENO"
1.237 moko 6977: then :
1.243 moko 6978: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6979: printf "%s\n" "yes" >&6; }
6980:
1.237 moko 6981: else case e in #(
1.243 moko 6982: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983: printf "%s\n" "no" >&6; }
6984: if test -z "$MIME"; then
6985: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=DIR" "$LINENO" 5
6986: else
6987: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
6988: fi
1.150 moko 6989:
1.243 moko 6990: ;;
1.237 moko 6991: esac
1.128 moko 6992: fi
1.243 moko 6993: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6994: conftest$ac_exeext conftest.$ac_ext
6995:
6996: LIBS=$SAVE_LIBS
6997: fi
6998:
6999: printf "%s\n" "#define WITH_MAILRECEIVE /**/" >>confdefs.h
7000:
7001:
7002: fi
1.150 moko 7003:
7004:
1.243 moko 7005:
7006:
7007:
7008:
7009: ac_header= ac_cache=
7010: for ac_item in $ac_header_c_list
1.150 moko 7011: do
1.243 moko 7012: if test $ac_cache; then
7013: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7014: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7015: printf "%s\n" "#define $ac_item 1" >> confdefs.h
1.150 moko 7016: fi
1.243 moko 7017: ac_header= ac_cache=
7018: elif test $ac_header; then
7019: ac_cache=$ac_item
7020: else
7021: ac_header=$ac_item
7022: fi
7023: done
7024:
7025:
7026:
7027:
1.128 moko 7028:
7029:
1.150 moko 7030:
7031:
1.243 moko 7032: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
1.237 moko 7033: then :
1.150 moko 7034:
1.243 moko 7035: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.150 moko 7036:
1.128 moko 7037: fi
7038:
1.243 moko 7039: # Check whether --with-amqp was given.
7040: if test ${with_amqp+y}
7041: then :
7042: withval=$with_amqp;
7043: AMQP=$withval
1.128 moko 7044:
1.243 moko 7045: if test -z "$AMQP" -o "$AMQP" = "yes"; then
7046: AMQP_INCLUDES=""
7047: AMQP_LIBS="-lrabbitmq"
7048: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-amqp value was not specified, hoping linker would find it" >&5
7049: printf "%s\n" "$as_me: WARNING: --with-amqp value was not specified, hoping linker would find it" >&2;}
1.245 moko 7050:
7051: ac_fn_c_check_header_compile "$LINENO" "amqp_ssl_socket.h" "ac_cv_header_amqp_ssl_socket_h" "$ac_includes_default"
7052: if test "x$ac_cv_header_amqp_ssl_socket_h" = xyes
7053: then :
7054:
7055: printf "%s\n" "#define WITH_AMQP_SSL /**/" >>confdefs.h
7056:
7057: fi
7058:
1.243 moko 7059: else
7060: AMQP_INCLUDES="-I$AMQP/include"
1.246 ! moko 7061: if test -f $AMQP/lib/librabbitmq.a; then
! 7062: AMQP_LIBS="$AMQP/lib/librabbitmq.a"
1.243 moko 7063: else
7064: AMQP_LIBS="-L$AMQP/lib -lrabbitmq"
7065: fi
7066: fi
1.128 moko 7067:
1.243 moko 7068: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librabbitmq" >&5
7069: printf %s "checking for librabbitmq... " >&6; }
7070: SAVE_LIBS=$LIBS
7071: LIBS="$AMQP_LIBS $AMQP_INCLUDES $LIBS"
1.128 moko 7072:
1.243 moko 7073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074: /* end confdefs.h. */
7075: #include <amqp.h>
7076: int
7077: main (void)
7078: {
7079: amqp_connection_state_t c = 0;
7080: ;
7081: return 0;
7082: }
7083: _ACEOF
7084: if ac_fn_c_try_link "$LINENO"
7085: then :
7086: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7087: printf "%s\n" "yes" >&6; }
1.128 moko 7088:
1.243 moko 7089: else case e in #(
7090: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091: printf "%s\n" "no" >&6; }
7092: if test -z "$AMQP"; then
7093: as_fn_error $? "please specify path to librabbitmq: --with-amqp=DIR" "$LINENO" 5
7094: else
7095: as_fn_error $? "$AMQP does not seem to be valid librabbitmq installation directory" "$LINENO" 5
7096: fi
1.128 moko 7097:
1.243 moko 7098: ;;
7099: esac
7100: fi
7101: rm -f core conftest.err conftest.$ac_objext conftest.beam \
7102: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7103:
1.243 moko 7104: LIBS=$SAVE_LIBS
1.128 moko 7105:
1.243 moko 7106: printf "%s\n" "#define WITH_AMQP /**/" >>confdefs.h
1.128 moko 7107:
7108:
1.243 moko 7109: fi
1.128 moko 7110:
7111:
7112:
7113:
7114:
7115:
7116:
1.243 moko 7117: # Check whether --with-redis was given.
7118: if test ${with_redis+y}
1.237 moko 7119: then :
1.243 moko 7120: withval=$with_redis;
7121: REDIS=$withval
1.150 moko 7122:
1.243 moko 7123: if test -z "$REDIS" -o "$REDIS" = "yes"; then
7124: REDIS_INCLUDES=""
7125: REDIS_LIBS="-lhiredis"
7126: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-redis value was not specified, hoping linker would find it" >&5
7127: printf "%s\n" "$as_me: WARNING: --with-redis value was not specified, hoping linker would find it" >&2;}
1.244 moko 7128:
7129: ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis_ssl.h" "ac_cv_header_hiredis_hiredis_ssl_h" "#include <hiredis/hiredis.h>
7130: "
7131: if test "x$ac_cv_header_hiredis_hiredis_ssl_h" = xyes
7132: then :
7133:
7134:
7135: printf "%s\n" "#define WITH_REDIS_SSL /**/" >>confdefs.h
7136:
7137: REDIS_LIBS="-lhiredis_ssl $REDIS_LIBS"
7138:
7139: fi
7140:
1.243 moko 7141: else
7142: REDIS_INCLUDES="-I$REDIS/include"
7143: if test -f $REDIS/lib/libhiredis.a; then
7144: REDIS_LIBS="$REDIS/lib/libhiredis.a"
7145: else
7146: REDIS_LIBS="-L$REDIS/lib -lhiredis"
7147: fi
1.128 moko 7148: fi
7149:
1.243 moko 7150: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hiredis" >&5
7151: printf %s "checking for hiredis... " >&6; }
7152: SAVE_LIBS=$LIBS
7153: LIBS="$REDIS_LIBS $REDIS_INCLUDES $LIBS"
7154:
7155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156: /* end confdefs.h. */
7157: #include <hiredis/hiredis.h>
7158: int
7159: main (void)
7160: {
7161: redisContext *c = redisConnect("", 0);
7162: ;
7163: return 0;
7164: }
7165: _ACEOF
7166: if ac_fn_c_try_link "$LINENO"
1.237 moko 7167: then :
1.243 moko 7168: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7169: printf "%s\n" "yes" >&6; }
7170:
1.237 moko 7171: else case e in #(
1.243 moko 7172: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173: printf "%s\n" "no" >&6; }
7174: if test -z "$REDIS"; then
7175: as_fn_error $? "please specify path to hiredis: --with-redis=DIR" "$LINENO" 5
7176: else
7177: as_fn_error $? "$REDIS does not seem to be valid hiredis installation directory" "$LINENO" 5
7178: fi
7179:
7180: ;;
1.128 moko 7181: esac
7182: fi
1.243 moko 7183: rm -f core conftest.err conftest.$ac_objext conftest.beam \
7184: conftest$ac_exeext conftest.$ac_ext
7185:
7186: LIBS=$SAVE_LIBS
1.128 moko 7187:
1.243 moko 7188: printf "%s\n" "#define WITH_REDIS /**/" >>confdefs.h
1.128 moko 7189:
7190:
1.243 moko 7191: fi
1.128 moko 7192:
7193:
7194:
7195:
7196:
7197:
1.243 moko 7198: # Check whether --with-sendmail was given.
7199: if test ${with_sendmail+y}
1.237 moko 7200: then :
1.243 moko 7201: withval=$with_sendmail;
7202: printf "%s\n" "#define PA_FORCED_SENDMAIL \"$withval\"" >>confdefs.h
7203:
7204:
1.128 moko 7205: fi
1.243 moko 7206:
7207:
7208:
7209:
7210: # Check whether --with-apache was given.
7211: if test ${with_apache+y}
1.237 moko 7212: then :
1.243 moko 7213: withval=$with_apache;
7214: APXS=$withval
1.128 moko 7215:
1.243 moko 7216: if test -z "$APXS" -o "$APXS" = "yes"; then
7217: APXS=`which apxs 2>/dev/null`
7218: if test -z "$APXS"; then
7219: APXS=`which apxs2 2>/dev/null`
7220: fi
7221: fi
1.128 moko 7222:
1.243 moko 7223: APACHE=`$APXS -q TARGET 2>/dev/null`
1.150 moko 7224:
1.243 moko 7225: if test -z "$APACHE"; then
7226: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
7227: fi
7228:
7229: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
7230: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
7231: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
7232: APACHE_CFLAGS=`$APXS -q CFLAGS`
7233:
7234: fi
7235:
7236:
7237:
7238:
7239: if test -n "$APACHE"; then
7240: COMPILE_APACHE_MODULE_TRUE=
7241: COMPILE_APACHE_MODULE_FALSE='#'
7242: else
7243: COMPILE_APACHE_MODULE_TRUE='#'
7244: COMPILE_APACHE_MODULE_FALSE=
7245: fi
7246:
7247:
7248:
7249:
7250:
7251:
7252:
7253:
7254:
7255:
7256: case `pwd` in
7257: *\ * | *\ *)
7258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7259: printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7260: esac
7261:
7262:
7263:
7264: macro_version='2.5.4'
7265: macro_revision='2.5.4'
7266:
7267:
7268:
7269:
7270:
7271:
7272:
7273:
7274:
7275:
7276:
7277:
7278:
7279:
7280: ltmain=$ac_aux_dir/ltmain.sh
7281:
7282: # Backslashify metacharacters that are still active within
7283: # double-quoted strings.
7284: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7285:
7286: # Same as above, but do not quote variable references.
7287: double_quote_subst='s/\(["`\\]\)/\\\1/g'
7288:
7289: # Sed substitution to delay expansion of an escaped shell variable in a
7290: # double_quote_subst'ed string.
7291: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7292:
7293: # Sed substitution to delay expansion of an escaped single quote.
7294: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7295:
7296: # Sed substitution to avoid accidental globbing in evaled expressions
7297: no_glob_subst='s/\*/\\\*/g'
7298:
7299: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7300: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7301: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7302:
7303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7304: printf %s "checking how to print strings... " >&6; }
7305: # Test print first, because it will be a builtin if present.
7306: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7307: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7308: ECHO='print -r --'
7309: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7310: ECHO='printf %s\n'
7311: else
7312: # Use this function as a fallback that always works.
7313: func_fallback_echo ()
7314: {
7315: eval 'cat <<_LTECHO_EOF
7316: $1
7317: _LTECHO_EOF'
7318: }
7319: ECHO='func_fallback_echo'
1.128 moko 7320: fi
1.243 moko 7321:
7322: # func_echo_all arg...
7323: # Invoke $ECHO with all args, space-separated.
7324: func_echo_all ()
7325: {
7326: $ECHO ""
7327: }
7328:
7329: case $ECHO in
7330: printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7331: printf "%s\n" "printf" >&6; } ;;
7332: print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7333: printf "%s\n" "print -r" >&6; } ;;
7334: *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7335: printf "%s\n" "cat" >&6; } ;;
7336: esac
7337:
7338:
7339:
7340:
7341:
7342:
7343:
7344:
7345:
7346:
7347:
7348:
7349:
7350:
7351: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7352: printf %s "checking for a sed that does not truncate output... " >&6; }
7353: if test ${ac_cv_path_SED+y}
1.237 moko 7354: then :
7355: printf %s "(cached) " >&6
7356: else case e in #(
1.243 moko 7357: e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7358: for ac_i in 1 2 3 4 5 6 7; do
7359: ac_script="$ac_script$as_nl$ac_script"
7360: done
7361: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7362: { ac_script=; unset ac_script;}
7363: if test -z "$SED"; then
7364: ac_path_SED_found=false
7365: # Loop through the user's path and test for each of PROGNAME-LIST
7366: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 7367: for as_dir in $PATH
7368: do
7369: IFS=$as_save_IFS
1.237 moko 7370: case $as_dir in #(((
7371: '') as_dir=./ ;;
7372: */) ;;
7373: *) as_dir=$as_dir/ ;;
7374: esac
1.243 moko 7375: for ac_prog in sed gsed
7376: do
1.150 moko 7377: for ac_exec_ext in '' $ac_executable_extensions; do
1.243 moko 7378: ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7379: as_fn_executable_p "$ac_path_SED" || continue
7380: # Check for GNU ac_path_SED and select it if it is found.
7381: # Check for GNU $ac_path_SED
7382: case `"$ac_path_SED" --version 2>&1` in #(
7383: *GNU*)
7384: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7385: #(
7386: *)
7387: ac_count=0
7388: printf %s 0123456789 >"conftest.in"
7389: while :
7390: do
7391: cat "conftest.in" "conftest.in" >"conftest.tmp"
7392: mv "conftest.tmp" "conftest.in"
7393: cp "conftest.in" "conftest.nl"
7394: printf "%s\n" '' >> "conftest.nl"
7395: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7396: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7397: as_fn_arith $ac_count + 1 && ac_count=$as_val
7398: if test $ac_count -gt ${ac_path_SED_max-0}; then
7399: # Best one so far, save it but keep looking for a better one
7400: ac_cv_path_SED="$ac_path_SED"
7401: ac_path_SED_max=$ac_count
7402: fi
7403: # 10*(2^10) chars as input seems more than enough
7404: test $ac_count -gt 10 && break
7405: done
7406: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7407: esac
7408:
7409: $ac_path_SED_found && break 3
7410: done
7411: done
1.150 moko 7412: done
7413: IFS=$as_save_IFS
1.243 moko 7414: if test -z "$ac_cv_path_SED"; then
7415: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7416: fi
7417: else
7418: ac_cv_path_SED=$SED
7419: fi
7420: ;;
1.237 moko 7421: esac
1.128 moko 7422: fi
1.243 moko 7423: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7424: printf "%s\n" "$ac_cv_path_SED" >&6; }
7425: SED="$ac_cv_path_SED"
7426: rm -f conftest.sed
7427:
7428: test -z "$SED" && SED=sed
7429: Xsed="$SED -e 1s/^X//"
1.128 moko 7430:
1.150 moko 7431:
1.128 moko 7432:
7433:
7434:
7435:
7436:
7437:
7438:
7439:
7440:
1.243 moko 7441: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7442: printf %s "checking for grep that handles long lines and -e... " >&6; }
7443: if test ${ac_cv_path_GREP+y}
1.237 moko 7444: then :
7445: printf %s "(cached) " >&6
7446: else case e in #(
1.243 moko 7447: e) if test -z "$GREP"; then
7448: ac_path_GREP_found=false
7449: # Loop through the user's path and test for each of PROGNAME-LIST
7450: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7452: do
7453: IFS=$as_save_IFS
7454: case $as_dir in #(((
7455: '') as_dir=./ ;;
7456: */) ;;
7457: *) as_dir=$as_dir/ ;;
7458: esac
7459: for ac_prog in grep ggrep
7460: do
7461: for ac_exec_ext in '' $ac_executable_extensions; do
7462: ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7463: as_fn_executable_p "$ac_path_GREP" || continue
7464: # Check for GNU ac_path_GREP and select it if it is found.
7465: # Check for GNU $ac_path_GREP
7466: case `"$ac_path_GREP" --version 2>&1` in #(
7467: *GNU*)
7468: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7469: #(
7470: *)
7471: ac_count=0
7472: printf %s 0123456789 >"conftest.in"
7473: while :
7474: do
7475: cat "conftest.in" "conftest.in" >"conftest.tmp"
7476: mv "conftest.tmp" "conftest.in"
7477: cp "conftest.in" "conftest.nl"
7478: printf "%s\n" 'GREP' >> "conftest.nl"
7479: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7480: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7481: as_fn_arith $ac_count + 1 && ac_count=$as_val
7482: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7483: # Best one so far, save it but keep looking for a better one
7484: ac_cv_path_GREP="$ac_path_GREP"
7485: ac_path_GREP_max=$ac_count
7486: fi
7487: # 10*(2^10) chars as input seems more than enough
7488: test $ac_count -gt 10 && break
7489: done
7490: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7491: esac
7492:
7493: $ac_path_GREP_found && break 3
7494: done
7495: done
7496: done
7497: IFS=$as_save_IFS
7498: if test -z "$ac_cv_path_GREP"; then
7499: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.128 moko 7500: fi
1.243 moko 7501: else
7502: ac_cv_path_GREP=$GREP
7503: fi
7504: ;;
1.237 moko 7505: esac
1.128 moko 7506: fi
1.243 moko 7507: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7508: printf "%s\n" "$ac_cv_path_GREP" >&6; }
7509: GREP="$ac_cv_path_GREP"
7510:
7511:
7512: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7513: printf %s "checking for egrep... " >&6; }
7514: if test ${ac_cv_path_EGREP+y}
7515: then :
7516: printf %s "(cached) " >&6
7517: else case e in #(
7518: e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7519: then ac_cv_path_EGREP="$GREP -E"
7520: else
7521: if test -z "$EGREP"; then
7522: ac_path_EGREP_found=false
7523: # Loop through the user's path and test for each of PROGNAME-LIST
7524: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7526: do
7527: IFS=$as_save_IFS
7528: case $as_dir in #(((
7529: '') as_dir=./ ;;
7530: */) ;;
7531: *) as_dir=$as_dir/ ;;
7532: esac
7533: for ac_prog in egrep
7534: do
7535: for ac_exec_ext in '' $ac_executable_extensions; do
7536: ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7537: as_fn_executable_p "$ac_path_EGREP" || continue
7538: # Check for GNU ac_path_EGREP and select it if it is found.
7539: # Check for GNU $ac_path_EGREP
7540: case `"$ac_path_EGREP" --version 2>&1` in #(
7541: *GNU*)
7542: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7543: #(
7544: *)
7545: ac_count=0
7546: printf %s 0123456789 >"conftest.in"
7547: while :
7548: do
7549: cat "conftest.in" "conftest.in" >"conftest.tmp"
7550: mv "conftest.tmp" "conftest.in"
7551: cp "conftest.in" "conftest.nl"
7552: printf "%s\n" 'EGREP' >> "conftest.nl"
7553: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7554: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7555: as_fn_arith $ac_count + 1 && ac_count=$as_val
7556: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7557: # Best one so far, save it but keep looking for a better one
7558: ac_cv_path_EGREP="$ac_path_EGREP"
7559: ac_path_EGREP_max=$ac_count
7560: fi
7561: # 10*(2^10) chars as input seems more than enough
7562: test $ac_count -gt 10 && break
7563: done
7564: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7565: esac
1.128 moko 7566:
1.243 moko 7567: $ac_path_EGREP_found && break 3
7568: done
7569: done
7570: done
7571: IFS=$as_save_IFS
7572: if test -z "$ac_cv_path_EGREP"; then
7573: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7574: fi
1.128 moko 7575: else
1.243 moko 7576: ac_cv_path_EGREP=$EGREP
7577: fi
7578:
7579: fi ;;
7580: esac
1.128 moko 7581: fi
1.243 moko 7582: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7583: printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7584: EGREP="$ac_cv_path_EGREP"
1.128 moko 7585:
1.243 moko 7586: EGREP_TRADITIONAL=$EGREP
7587: ac_cv_path_EGREP_TRADITIONAL=$EGREP
7588:
7589: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7590: printf %s "checking for fgrep... " >&6; }
7591: if test ${ac_cv_path_FGREP+y}
1.237 moko 7592: then :
7593: printf %s "(cached) " >&6
7594: else case e in #(
1.243 moko 7595: e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7596: then ac_cv_path_FGREP="$GREP -F"
7597: else
7598: if test -z "$FGREP"; then
7599: ac_path_FGREP_found=false
7600: # Loop through the user's path and test for each of PROGNAME-LIST
7601: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7603: do
7604: IFS=$as_save_IFS
7605: case $as_dir in #(((
7606: '') as_dir=./ ;;
7607: */) ;;
7608: *) as_dir=$as_dir/ ;;
7609: esac
7610: for ac_prog in fgrep
7611: do
7612: for ac_exec_ext in '' $ac_executable_extensions; do
7613: ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7614: as_fn_executable_p "$ac_path_FGREP" || continue
7615: # Check for GNU ac_path_FGREP and select it if it is found.
7616: # Check for GNU $ac_path_FGREP
7617: case `"$ac_path_FGREP" --version 2>&1` in #(
7618: *GNU*)
7619: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7620: #(
7621: *)
7622: ac_count=0
7623: printf %s 0123456789 >"conftest.in"
7624: while :
7625: do
7626: cat "conftest.in" "conftest.in" >"conftest.tmp"
7627: mv "conftest.tmp" "conftest.in"
7628: cp "conftest.in" "conftest.nl"
7629: printf "%s\n" 'FGREP' >> "conftest.nl"
7630: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7631: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7632: as_fn_arith $ac_count + 1 && ac_count=$as_val
7633: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7634: # Best one so far, save it but keep looking for a better one
7635: ac_cv_path_FGREP="$ac_path_FGREP"
7636: ac_path_FGREP_max=$ac_count
7637: fi
7638: # 10*(2^10) chars as input seems more than enough
7639: test $ac_count -gt 10 && break
7640: done
7641: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7642: esac
7643:
7644: $ac_path_FGREP_found && break 3
7645: done
7646: done
7647: done
7648: IFS=$as_save_IFS
7649: if test -z "$ac_cv_path_FGREP"; then
7650: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7651: fi
7652: else
7653: ac_cv_path_FGREP=$FGREP
7654: fi
7655:
7656: fi ;;
7657: esac
7658: fi
7659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7660: printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7661: FGREP="$ac_cv_path_FGREP"
1.128 moko 7662:
7663:
1.243 moko 7664: test -z "$GREP" && GREP=grep
7665:
1.128 moko 7666:
7667:
7668:
7669:
7670:
7671:
7672:
7673:
7674:
7675:
7676:
7677:
7678:
7679:
7680:
7681:
7682:
7683:
1.243 moko 7684: # Check whether --with-gnu-ld was given.
7685: if test ${with_gnu_ld+y}
7686: then :
7687: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7688: else case e in #(
7689: e) with_gnu_ld=no ;;
7690: esac
7691: fi
1.128 moko 7692:
1.243 moko 7693: ac_prog=ld
7694: if test yes = "$GCC"; then
7695: # Check if gcc -print-prog-name=ld gives a path.
7696: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7697: printf %s "checking for ld used by $CC... " >&6; }
7698: case $host in
7699: *-*-mingw* | *-*-windows*)
7700: # gcc leaves a trailing carriage return, which upsets mingw
7701: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7702: *)
7703: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7704: esac
7705: case $ac_prog in
7706: # Accept absolute paths.
7707: [\\/]* | ?:[\\/]*)
7708: re_direlt='/[^/][^/]*/\.\./'
7709: # Canonicalize the pathname of ld
7710: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7711: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7712: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7713: done
7714: test -z "$LD" && LD=$ac_prog
7715: ;;
7716: "")
7717: # If it fails, then pretend we aren't using GCC.
7718: ac_prog=ld
7719: ;;
7720: *)
7721: # If it is relative, then search for the first ld in PATH.
7722: with_gnu_ld=unknown
7723: ;;
7724: esac
7725: elif test yes = "$with_gnu_ld"; then
7726: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7727: printf %s "checking for GNU ld... " >&6; }
7728: else
7729: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7730: printf %s "checking for non-GNU ld... " >&6; }
7731: fi
7732: if test ${lt_cv_path_LD+y}
7733: then :
7734: printf %s "(cached) " >&6
7735: else case e in #(
7736: e) if test -z "$LD"; then
7737: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7738: for ac_dir in $PATH; do
7739: IFS=$lt_save_ifs
7740: test -z "$ac_dir" && ac_dir=.
7741: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7742: lt_cv_path_LD=$ac_dir/$ac_prog
7743: # Check to see if the program is GNU ld. I'd rather use --version,
7744: # but apparently some variants of GNU ld only accept -v.
7745: # Break only if it was the GNU/non-GNU ld that we prefer.
7746: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7747: *GNU* | *'with BFD'*)
7748: test no != "$with_gnu_ld" && break
7749: ;;
7750: *)
7751: test yes != "$with_gnu_ld" && break
7752: ;;
7753: esac
7754: fi
7755: done
7756: IFS=$lt_save_ifs
7757: else
7758: lt_cv_path_LD=$LD # Let the user override the test with a path.
7759: fi ;;
7760: esac
7761: fi
1.128 moko 7762:
1.243 moko 7763: LD=$lt_cv_path_LD
7764: if test -n "$LD"; then
7765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7766: printf "%s\n" "$LD" >&6; }
7767: else
7768: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769: printf "%s\n" "no" >&6; }
7770: fi
7771: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7772: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7773: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7774: if test ${lt_cv_prog_gnu_ld+y}
7775: then :
7776: printf %s "(cached) " >&6
7777: else case e in #(
7778: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7779: case `$LD -v 2>&1 </dev/null` in
7780: *GNU* | *'with BFD'*)
7781: lt_cv_prog_gnu_ld=yes
1.128 moko 7782: ;;
1.243 moko 7783: *)
7784: lt_cv_prog_gnu_ld=no
1.128 moko 7785: ;;
1.243 moko 7786: esac ;;
1.128 moko 7787: esac
1.243 moko 7788: fi
7789: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7790: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7791: with_gnu_ld=$lt_cv_prog_gnu_ld
1.128 moko 7792:
7793:
7794:
7795:
7796:
7797:
7798:
7799:
7800:
1.243 moko 7801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7802: printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7803: if test ${lt_cv_path_NM+y}
1.237 moko 7804: then :
7805: printf %s "(cached) " >&6
7806: else case e in #(
1.243 moko 7807: e) if test -n "$NM"; then
7808: # Let the user override the test.
7809: lt_cv_path_NM=$NM
7810: else
7811: lt_nm_to_check=${ac_tool_prefix}nm
7812: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7813: lt_nm_to_check="$lt_nm_to_check nm"
7814: fi
7815: for lt_tmp_nm in $lt_nm_to_check; do
7816: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7817: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7818: IFS=$lt_save_ifs
7819: test -z "$ac_dir" && ac_dir=.
7820: tmp_nm=$ac_dir/$lt_tmp_nm
7821: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7822: # Check to see if the nm accepts a BSD-compat flag.
7823: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7824: # nm: unknown option "B" ignored
7825: # Tru64's nm complains that /dev/null is an invalid object file
7826: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7827: case $build_os in
7828: mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7829: *) lt_bad_file=/dev/null ;;
7830: esac
7831: case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7832: *$lt_bad_file* | *'Invalid file or object type'*)
7833: lt_cv_path_NM="$tmp_nm -B"
7834: break 2
7835: ;;
7836: *)
7837: case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7838: */dev/null*)
7839: lt_cv_path_NM="$tmp_nm -p"
7840: break 2
7841: ;;
7842: *)
7843: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7844: continue # so that we can try to find one that supports BSD flags
7845: ;;
7846: esac
7847: ;;
7848: esac
7849: fi
7850: done
7851: IFS=$lt_save_ifs
1.150 moko 7852: done
1.243 moko 7853: : ${lt_cv_path_NM=no}
1.237 moko 7854: fi ;;
7855: esac
7856: fi
1.243 moko 7857: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7858: printf "%s\n" "$lt_cv_path_NM" >&6; }
7859: if test no != "$lt_cv_path_NM"; then
7860: NM=$lt_cv_path_NM
1.237 moko 7861: else
1.243 moko 7862: # Didn't find any BSD compatible name lister, look for dumpbin.
7863: if test -n "$DUMPBIN"; then :
7864: # Let the user override the test.
7865: else
7866: if test -n "$ac_tool_prefix"; then
7867: for ac_prog in dumpbin "link -dump"
7868: do
7869: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7870: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 7871: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872: printf %s "checking for $ac_word... " >&6; }
1.243 moko 7873: if test ${ac_cv_prog_DUMPBIN+y}
1.237 moko 7874: then :
7875: printf %s "(cached) " >&6
7876: else case e in #(
1.243 moko 7877: e) if test -n "$DUMPBIN"; then
7878: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
1.237 moko 7879: else
7880: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881: for as_dir in $PATH
7882: do
7883: IFS=$as_save_IFS
7884: case $as_dir in #(((
7885: '') as_dir=./ ;;
7886: */) ;;
7887: *) as_dir=$as_dir/ ;;
7888: esac
7889: for ac_exec_ext in '' $ac_executable_extensions; do
7890: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 7891: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.237 moko 7892: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7893: break 2
7894: fi
7895: done
7896: done
7897: IFS=$as_save_IFS
7898:
7899: fi ;;
7900: esac
1.128 moko 7901: fi
1.243 moko 7902: DUMPBIN=$ac_cv_prog_DUMPBIN
7903: if test -n "$DUMPBIN"; then
7904: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7905: printf "%s\n" "$DUMPBIN" >&6; }
1.128 moko 7906: else
1.237 moko 7907: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908: printf "%s\n" "no" >&6; }
1.128 moko 7909: fi
7910:
1.150 moko 7911:
1.243 moko 7912: test -n "$DUMPBIN" && break
7913: done
1.128 moko 7914: fi
1.243 moko 7915: if test -z "$DUMPBIN"; then
7916: ac_ct_DUMPBIN=$DUMPBIN
7917: for ac_prog in dumpbin "link -dump"
7918: do
7919: # Extract the first word of "$ac_prog", so it can be a program name with args.
7920: set dummy $ac_prog; ac_word=$2
1.237 moko 7921: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922: printf %s "checking for $ac_word... " >&6; }
1.243 moko 7923: if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
1.237 moko 7924: then :
7925: printf %s "(cached) " >&6
7926: else case e in #(
1.243 moko 7927: e) if test -n "$ac_ct_DUMPBIN"; then
7928: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
1.128 moko 7929: else
7930: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931: for as_dir in $PATH
7932: do
7933: IFS=$as_save_IFS
1.237 moko 7934: case $as_dir in #(((
7935: '') as_dir=./ ;;
7936: */) ;;
7937: *) as_dir=$as_dir/ ;;
7938: esac
1.150 moko 7939: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7940: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 7941: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.237 moko 7942: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7943: break 2
7944: fi
7945: done
1.150 moko 7946: done
7947: IFS=$as_save_IFS
1.128 moko 7948:
1.237 moko 7949: fi ;;
7950: esac
1.128 moko 7951: fi
1.243 moko 7952: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7953: if test -n "$ac_ct_DUMPBIN"; then
7954: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7955: printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
1.128 moko 7956: else
1.237 moko 7957: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958: printf "%s\n" "no" >&6; }
1.128 moko 7959: fi
7960:
1.243 moko 7961:
7962: test -n "$ac_ct_DUMPBIN" && break
7963: done
7964:
7965: if test "x$ac_ct_DUMPBIN" = x; then
7966: DUMPBIN=":"
1.150 moko 7967: else
7968: case $cross_compiling:$ac_tool_warned in
7969: yes:)
1.237 moko 7970: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 7972: ac_tool_warned=yes ;;
7973: esac
1.243 moko 7974: DUMPBIN=$ac_ct_DUMPBIN
1.150 moko 7975: fi
1.128 moko 7976: fi
7977:
1.243 moko 7978: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7979: *COFF*)
7980: DUMPBIN="$DUMPBIN -symbols -headers"
7981: ;;
7982: *)
7983: DUMPBIN=:
7984: ;;
7985: esac
7986: fi
7987:
7988: if test : != "$DUMPBIN"; then
7989: NM=$DUMPBIN
7990: fi
7991: fi
7992: test -z "$NM" && NM=nm
1.128 moko 7993:
7994:
7995:
7996:
7997:
7998:
1.243 moko 7999: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8000: printf %s "checking the name lister ($NM) interface... " >&6; }
8001: if test ${lt_cv_nm_interface+y}
1.237 moko 8002: then :
8003: printf %s "(cached) " >&6
8004: else case e in #(
1.243 moko 8005: e) lt_cv_nm_interface="BSD nm"
8006: echo "int some_variable = 0;" > conftest.$ac_ext
8007: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8008: (eval "$ac_compile" 2>conftest.err)
8009: cat conftest.err >&5
8010: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8011: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8012: cat conftest.err >&5
8013: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8014: cat conftest.out >&5
8015: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8016: lt_cv_nm_interface="MS dumpbin"
8017: fi
8018: rm -f conftest* ;;
8019: esac
8020: fi
8021: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8022: printf "%s\n" "$lt_cv_nm_interface" >&6; }
8023:
8024: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8025: printf %s "checking whether ln -s works... " >&6; }
8026: LN_S=$as_ln_s
8027: if test "$LN_S" = "ln -s"; then
8028: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8029: printf "%s\n" "yes" >&6; }
8030: else
8031: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8032: printf "%s\n" "no, using $LN_S" >&6; }
8033: fi
1.128 moko 8034:
1.243 moko 8035: # find the maximum length of command line arguments
8036: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8037: printf %s "checking the maximum length of command line arguments... " >&6; }
8038: if test ${lt_cv_sys_max_cmd_len+y}
8039: then :
8040: printf %s "(cached) " >&6
8041: else case e in #(
8042: e) i=0
8043: teststring=ABCD
1.128 moko 8044:
1.243 moko 8045: case $build_os in
8046: msdosdjgpp*)
8047: # On DJGPP, this test can blow up pretty badly due to problems in libc
8048: # (any single argument exceeding 2000 bytes causes a buffer overrun
8049: # during glob expansion). Even if it were fixed, the result of this
8050: # check would be larger than it should be.
8051: lt_cv_sys_max_cmd_len=12288; # 12K is about right
8052: ;;
1.128 moko 8053:
1.243 moko 8054: gnu* | ironclad*)
8055: # Under GNU Hurd and Ironclad, this test is not required because there
8056: # is no limit to the length of command line arguments.
8057: # Libtool will interpret -1 as no limit whatsoever
8058: lt_cv_sys_max_cmd_len=-1;
8059: ;;
1.128 moko 8060:
1.243 moko 8061: cygwin* | mingw* | windows* | cegcc*)
8062: # On Win9x/ME, this test blows up -- it succeeds, but takes
8063: # about 5 minutes as the teststring grows exponentially.
8064: # Worse, since 9x/ME are not pre-emptively multitasking,
8065: # you end up with a "frozen" computer, even though with patience
8066: # the test eventually succeeds (with a max line length of 256k).
8067: # Instead, let's just punt: use the minimum linelength reported by
8068: # all of the supported platforms: 8192 (on NT/2K/XP).
8069: lt_cv_sys_max_cmd_len=8192;
8070: ;;
1.128 moko 8071:
1.243 moko 8072: mint*)
8073: # On MiNT this can take a long time and run out of memory.
8074: lt_cv_sys_max_cmd_len=8192;
8075: ;;
1.128 moko 8076:
1.243 moko 8077: amigaos*)
8078: # On AmigaOS with pdksh, this test takes hours, literally.
8079: # So we just punt and use a minimum line length of 8192.
8080: lt_cv_sys_max_cmd_len=8192;
8081: ;;
1.128 moko 8082:
1.243 moko 8083: darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8084: # This has been around since 386BSD, at least. Likely further.
8085: if test -x /sbin/sysctl; then
8086: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8087: elif test -x /usr/sbin/sysctl; then
8088: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8089: else
8090: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8091: fi
8092: # And add a safety zone
8093: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8094: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8095: ;;
1.128 moko 8096:
1.243 moko 8097: interix*)
8098: # We know the value 262144 and hardcode it with a safety zone (like BSD)
8099: lt_cv_sys_max_cmd_len=196608
8100: ;;
1.128 moko 8101:
1.243 moko 8102: os2*)
8103: # The test takes a long time on OS/2.
8104: lt_cv_sys_max_cmd_len=8192
8105: ;;
1.128 moko 8106:
1.243 moko 8107: osf*)
8108: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8109: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8110: # nice to cause kernel panics so lets avoid the loop below.
8111: # First set a reasonable default.
8112: lt_cv_sys_max_cmd_len=16384
8113: #
8114: if test -x /sbin/sysconfig; then
8115: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8116: *1*) lt_cv_sys_max_cmd_len=-1 ;;
8117: esac
8118: fi
8119: ;;
8120: sco3.2v5*)
8121: lt_cv_sys_max_cmd_len=102400
1.128 moko 8122: ;;
1.243 moko 8123: sysv5* | sco5v6* | sysv4.2uw2*)
8124: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8125: if test -n "$kargmax"; then
8126: lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8127: else
8128: lt_cv_sys_max_cmd_len=32768
8129: fi
1.128 moko 8130: ;;
8131: *)
1.243 moko 8132: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8133: if test -n "$lt_cv_sys_max_cmd_len" && \
8134: test undefined != "$lt_cv_sys_max_cmd_len"; then
8135: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8136: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8137: else
8138: # Make teststring a little bigger before we do anything with it.
8139: # a 1K string should be a reasonable start.
8140: for i in 1 2 3 4 5 6 7 8; do
8141: teststring=$teststring$teststring
8142: done
8143: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8144: # If test is not a shell built-in, we'll probably end up computing a
8145: # maximum length that is only half of the actual maximum length, but
8146: # we can't tell.
8147: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8148: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8149: test 17 != "$i" # 1/2 MB should be enough
8150: do
8151: i=`expr $i + 1`
8152: teststring=$teststring$teststring
8153: done
8154: # Only check the string length outside the loop.
8155: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8156: teststring=
8157: # Add a significant safety factor because C++ compilers can tack on
8158: # massive amounts of additional arguments before passing them to the
8159: # linker. It appears as though 1/2 is a usable value.
8160: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8161: fi
1.128 moko 8162: ;;
8163: esac
1.243 moko 8164: ;;
8165: esac
8166: fi
8167:
8168: if test -n "$lt_cv_sys_max_cmd_len"; then
8169: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8170: printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8171: else
8172: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8173: printf "%s\n" "none" >&6; }
8174: fi
8175: max_cmd_len=$lt_cv_sys_max_cmd_len
8176:
8177:
8178:
8179:
8180:
8181:
8182: : ${CP="cp -f"}
8183: : ${MV="mv -f"}
8184: : ${RM="rm -f"}
8185:
8186: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8187: lt_unset=unset
8188: else
8189: lt_unset=false
8190: fi
8191:
1.128 moko 8192:
8193:
8194:
1.237 moko 8195:
1.243 moko 8196: # test EBCDIC or ASCII
8197: case `echo X|tr X '\101'` in
8198: A) # ASCII based system
8199: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8200: lt_SP2NL='tr \040 \012'
8201: lt_NL2SP='tr \015\012 \040\040'
1.128 moko 8202: ;;
1.243 moko 8203: *) # EBCDIC based system
8204: lt_SP2NL='tr \100 \n'
8205: lt_NL2SP='tr \r\n \100\100'
1.128 moko 8206: ;;
1.243 moko 8207: esac
1.128 moko 8208:
8209:
8210:
8211:
8212:
8213:
1.237 moko 8214:
1.128 moko 8215:
8216:
1.243 moko 8217: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8218: printf %s "checking how to convert $build file names to $host format... " >&6; }
8219: if test ${lt_cv_to_host_file_cmd+y}
8220: then :
8221: printf %s "(cached) " >&6
8222: else case e in #(
8223: e) case $host in
8224: *-*-mingw* )
8225: case $build in
8226: *-*-mingw* | *-*-windows* ) # actually msys
8227: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8228: ;;
8229: *-*-cygwin* )
8230: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8231: ;;
8232: * ) # otherwise, assume *nix
8233: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8234: ;;
8235: esac
1.128 moko 8236: ;;
1.243 moko 8237: *-*-cygwin* )
8238: case $build in
8239: *-*-mingw* | *-*-windows* ) # actually msys
8240: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8241: ;;
8242: *-*-cygwin* )
8243: lt_cv_to_host_file_cmd=func_convert_file_noop
8244: ;;
8245: * ) # otherwise, assume *nix
8246: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8247: ;;
8248: esac
1.128 moko 8249: ;;
1.243 moko 8250: * ) # unhandled hosts (and "normal" native builds)
8251: lt_cv_to_host_file_cmd=func_convert_file_noop
1.128 moko 8252: ;;
1.237 moko 8253: esac
8254: ;;
1.128 moko 8255: esac
8256: fi
8257:
1.243 moko 8258: to_host_file_cmd=$lt_cv_to_host_file_cmd
8259: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8260: printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 8261:
8262:
8263:
8264:
8265:
1.243 moko 8266: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8267: printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8268: if test ${lt_cv_to_tool_file_cmd+y}
8269: then :
8270: printf %s "(cached) " >&6
8271: else case e in #(
8272: e) #assume ordinary cross tools, or native build.
8273: lt_cv_to_tool_file_cmd=func_convert_file_noop
8274: case $host in
8275: *-*-mingw* | *-*-windows* )
8276: case $build in
8277: *-*-mingw* | *-*-windows* ) # actually msys
8278: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8279: ;;
8280: esac
8281: ;;
8282: esac
8283: ;;
8284: esac
8285: fi
1.128 moko 8286:
1.243 moko 8287: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8288: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8289: printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 8290:
8291:
8292:
8293:
8294:
1.243 moko 8295: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8296: printf %s "checking for $LD option to reload object files... " >&6; }
8297: if test ${lt_cv_ld_reload_flag+y}
8298: then :
8299: printf %s "(cached) " >&6
8300: else case e in #(
8301: e) lt_cv_ld_reload_flag='-r' ;;
8302: esac
8303: fi
8304: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8305: printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8306: reload_flag=$lt_cv_ld_reload_flag
8307: case $reload_flag in
8308: "" | " "*) ;;
8309: *) reload_flag=" $reload_flag" ;;
8310: esac
8311: reload_cmds='$LD$reload_flag -o $output$reload_objs'
8312: case $host_os in
8313: cygwin* | mingw* | windows* | pw32* | cegcc*)
8314: if test yes != "$GCC"; then
8315: reload_cmds=false
8316: fi
8317: ;;
8318: darwin*)
8319: if test yes = "$GCC"; then
8320: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8321: else
8322: reload_cmds='$LD$reload_flag -o $output$reload_objs'
8323: fi
8324: ;;
8325: esac
1.128 moko 8326:
8327:
8328:
8329:
8330:
8331:
8332:
8333:
8334:
1.243 moko 8335: # Extract the first word of "file", so it can be a program name with args.
8336: set dummy file; ac_word=$2
1.237 moko 8337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8339: if test ${ac_cv_prog_FILECMD+y}
1.237 moko 8340: then :
8341: printf %s "(cached) " >&6
8342: else case e in #(
1.243 moko 8343: e) if test -n "$FILECMD"; then
8344: ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
1.128 moko 8345: else
8346: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347: for as_dir in $PATH
8348: do
8349: IFS=$as_save_IFS
1.237 moko 8350: case $as_dir in #(((
8351: '') as_dir=./ ;;
8352: */) ;;
8353: *) as_dir=$as_dir/ ;;
8354: esac
1.150 moko 8355: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8356: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8357: ac_cv_prog_FILECMD="file"
1.237 moko 8358: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8359: break 2
8360: fi
8361: done
1.150 moko 8362: done
8363: IFS=$as_save_IFS
1.128 moko 8364:
1.243 moko 8365: test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
1.237 moko 8366: fi ;;
8367: esac
1.128 moko 8368: fi
1.243 moko 8369: FILECMD=$ac_cv_prog_FILECMD
8370: if test -n "$FILECMD"; then
8371: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8372: printf "%s\n" "$FILECMD" >&6; }
1.128 moko 8373: else
1.237 moko 8374: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375: printf "%s\n" "no" >&6; }
1.128 moko 8376: fi
8377:
1.150 moko 8378:
1.243 moko 8379:
8380:
8381:
8382:
8383:
8384:
8385: if test -n "$ac_tool_prefix"; then
8386: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8387: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.237 moko 8388: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8390: if test ${ac_cv_prog_OBJDUMP+y}
1.237 moko 8391: then :
8392: printf %s "(cached) " >&6
8393: else case e in #(
1.243 moko 8394: e) if test -n "$OBJDUMP"; then
8395: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1.128 moko 8396: else
8397: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398: for as_dir in $PATH
8399: do
8400: IFS=$as_save_IFS
1.237 moko 8401: case $as_dir in #(((
8402: '') as_dir=./ ;;
8403: */) ;;
8404: *) as_dir=$as_dir/ ;;
8405: esac
1.150 moko 8406: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8407: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8408: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.237 moko 8409: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8410: break 2
8411: fi
8412: done
1.150 moko 8413: done
8414: IFS=$as_save_IFS
1.128 moko 8415:
1.237 moko 8416: fi ;;
8417: esac
1.128 moko 8418: fi
1.243 moko 8419: OBJDUMP=$ac_cv_prog_OBJDUMP
8420: if test -n "$OBJDUMP"; then
8421: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8422: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 8423: else
1.237 moko 8424: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425: printf "%s\n" "no" >&6; }
1.128 moko 8426: fi
8427:
8428:
8429: fi
1.243 moko 8430: if test -z "$ac_cv_prog_OBJDUMP"; then
8431: ac_ct_OBJDUMP=$OBJDUMP
8432: # Extract the first word of "objdump", so it can be a program name with args.
8433: set dummy objdump; ac_word=$2
1.237 moko 8434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8436: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
1.237 moko 8437: then :
8438: printf %s "(cached) " >&6
8439: else case e in #(
1.243 moko 8440: e) if test -n "$ac_ct_OBJDUMP"; then
8441: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.237 moko 8442: else
8443: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444: for as_dir in $PATH
8445: do
8446: IFS=$as_save_IFS
8447: case $as_dir in #(((
8448: '') as_dir=./ ;;
8449: */) ;;
8450: *) as_dir=$as_dir/ ;;
8451: esac
8452: for ac_exec_ext in '' $ac_executable_extensions; do
8453: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8454: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 moko 8455: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8456: break 2
8457: fi
8458: done
8459: done
8460: IFS=$as_save_IFS
8461:
8462: fi ;;
8463: esac
8464: fi
1.243 moko 8465: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8466: if test -n "$ac_ct_OBJDUMP"; then
8467: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8468: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.237 moko 8469: else
8470: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471: printf "%s\n" "no" >&6; }
8472: fi
8473:
1.243 moko 8474: if test "x$ac_ct_OBJDUMP" = x; then
8475: OBJDUMP="false"
1.237 moko 8476: else
8477: case $cross_compiling:$ac_tool_warned in
8478: yes:)
8479: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8480: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8481: ac_tool_warned=yes ;;
8482: esac
1.243 moko 8483: OBJDUMP=$ac_ct_OBJDUMP
1.237 moko 8484: fi
8485: else
1.243 moko 8486: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.237 moko 8487: fi
8488:
1.243 moko 8489: test -z "$OBJDUMP" && OBJDUMP=objdump
8490:
8491:
8492:
8493:
8494:
8495:
8496: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8497: printf %s "checking how to recognize dependent libraries... " >&6; }
8498: if test ${lt_cv_deplibs_check_method+y}
1.237 moko 8499: then :
8500: printf %s "(cached) " >&6
8501: else case e in #(
1.243 moko 8502: e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8503: lt_cv_file_magic_test_file=
8504: lt_cv_deplibs_check_method='unknown'
8505: # Need to set the preceding variable on all platforms that support
8506: # interlibrary dependencies.
8507: # 'none' -- dependencies not supported.
8508: # 'unknown' -- same as none, but documents that we really don't know.
8509: # 'pass_all' -- all dependencies passed with no checks.
8510: # 'file_magic [[regex]]' -- check by looking for files in library path
8511: # that responds to the $file_magic_cmd with a given extended regex.
8512: # If you have 'file' or equivalent on your system and you're not sure
8513: # whether 'pass_all' will *always* work, you probably want this one.
8514:
8515: case $host_os in
8516: aix[4-9]*)
8517: lt_cv_deplibs_check_method=pass_all
8518: ;;
8519:
8520: beos*)
8521: lt_cv_deplibs_check_method=pass_all
8522: ;;
8523:
8524: bsdi[45]*)
8525: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8526: lt_cv_file_magic_cmd='$FILECMD -L'
8527: lt_cv_file_magic_test_file=/shlib/libc.so
8528: ;;
8529:
8530: cygwin*)
8531: # func_win32_libid is a shell function defined in ltmain.sh
8532: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8533: lt_cv_file_magic_cmd='func_win32_libid'
8534: ;;
8535:
8536: mingw* | windows* | pw32*)
8537: # Base MSYS/MinGW do not provide the 'file' command needed by
8538: # func_win32_libid shell function, so use a weaker test based on 'objdump',
8539: # unless we find 'file', for example because we are cross-compiling.
8540: if ( file / ) >/dev/null 2>&1; then
8541: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8542: lt_cv_file_magic_cmd='func_win32_libid'
8543: else
8544: # Keep this pattern in sync with the one in func_win32_libid.
8545: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8546: lt_cv_file_magic_cmd='$OBJDUMP -f'
1.128 moko 8547: fi
1.243 moko 8548: ;;
1.128 moko 8549:
1.243 moko 8550: cegcc*)
8551: # use the weaker test based on 'objdump'. See mingw*.
8552: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8553: lt_cv_file_magic_cmd='$OBJDUMP -f'
8554: ;;
1.128 moko 8555:
1.243 moko 8556: darwin* | rhapsody*)
8557: lt_cv_deplibs_check_method=pass_all
8558: ;;
1.150 moko 8559:
1.243 moko 8560: freebsd* | dragonfly* | midnightbsd*)
8561: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8562: case $host_cpu in
8563: i*86 )
8564: # Not sure whether the presence of OpenBSD here was a mistake.
8565: # Let's accept both of them until this is cleared up.
8566: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8567: lt_cv_file_magic_cmd=$FILECMD
8568: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8569: ;;
8570: esac
8571: else
8572: lt_cv_deplibs_check_method=pass_all
8573: fi
8574: ;;
8575:
8576: haiku*)
8577: lt_cv_deplibs_check_method=pass_all
8578: ;;
8579:
8580: hpux10.20* | hpux11*)
8581: lt_cv_file_magic_cmd=$FILECMD
8582: case $host_cpu in
8583: ia64*)
8584: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8585: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8586: ;;
8587: hppa*64*)
8588: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8589: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8590: ;;
8591: *)
8592: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8593: lt_cv_file_magic_test_file=/usr/lib/libc.sl
8594: ;;
8595: esac
8596: ;;
8597:
8598: interix[3-9]*)
8599: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8600: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8601: ;;
8602:
8603: irix5* | irix6* | nonstopux*)
8604: case $LD in
8605: *-32|*"-32 ") libmagic=32-bit;;
8606: *-n32|*"-n32 ") libmagic=N32;;
8607: *-64|*"-64 ") libmagic=64-bit;;
8608: *) libmagic=never-match;;
8609: esac
8610: lt_cv_deplibs_check_method=pass_all
8611: ;;
8612:
8613: # This must be glibc/ELF.
8614: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8615: lt_cv_deplibs_check_method=pass_all
8616: ;;
8617:
8618: *-mlibc)
8619: lt_cv_deplibs_check_method=pass_all
8620: ;;
8621:
8622: netbsd* | netbsdelf*-gnu)
8623: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8624: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8625: else
8626: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8627: fi
8628: ;;
8629:
8630: newos6*)
8631: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8632: lt_cv_file_magic_cmd=$FILECMD
8633: lt_cv_file_magic_test_file=/usr/lib/libnls.so
8634: ;;
8635:
8636: *nto* | *qnx*)
8637: lt_cv_deplibs_check_method=pass_all
8638: ;;
8639:
8640: openbsd*)
8641: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8642: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8643: else
8644: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8645: fi
8646: ;;
8647:
8648: osf3* | osf4* | osf5*)
8649: lt_cv_deplibs_check_method=pass_all
8650: ;;
8651:
8652: rdos*)
8653: lt_cv_deplibs_check_method=pass_all
8654: ;;
8655:
8656: serenity*)
8657: lt_cv_deplibs_check_method=pass_all
8658: ;;
8659:
8660: solaris*)
8661: lt_cv_deplibs_check_method=pass_all
8662: ;;
8663:
8664: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8665: lt_cv_deplibs_check_method=pass_all
8666: ;;
8667:
8668: sysv4 | sysv4.3*)
8669: case $host_vendor in
8670: motorola)
8671: 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]'
8672: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8673: ;;
8674: ncr)
8675: lt_cv_deplibs_check_method=pass_all
8676: ;;
8677: sequent)
8678: lt_cv_file_magic_cmd='/bin/file'
8679: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8680: ;;
8681: sni)
8682: lt_cv_file_magic_cmd='/bin/file'
8683: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8684: lt_cv_file_magic_test_file=/lib/libc.so
8685: ;;
8686: siemens)
8687: lt_cv_deplibs_check_method=pass_all
8688: ;;
8689: pc)
8690: lt_cv_deplibs_check_method=pass_all
8691: ;;
8692: esac
8693: ;;
8694:
8695: tpf*)
8696: lt_cv_deplibs_check_method=pass_all
8697: ;;
8698: os2*)
8699: lt_cv_deplibs_check_method=pass_all
8700: ;;
8701: esac
8702: ;;
8703: esac
8704: fi
8705: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8706: printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8707:
8708: file_magic_glob=
8709: want_nocaseglob=no
8710: if test "$build" = "$host"; then
8711: case $host_os in
8712: mingw* | windows* | pw32*)
8713: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8714: want_nocaseglob=yes
8715: else
8716: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8717: fi
8718: ;;
8719: esac
1.128 moko 8720: fi
1.243 moko 8721:
8722: file_magic_cmd=$lt_cv_file_magic_cmd
8723: deplibs_check_method=$lt_cv_deplibs_check_method
8724: test -z "$deplibs_check_method" && deplibs_check_method=unknown
8725:
8726:
8727:
8728:
8729:
8730:
8731:
8732:
8733:
8734:
8735:
8736:
8737:
8738:
8739:
8740:
8741:
8742:
8743:
8744:
8745:
8746:
8747: if test -n "$ac_tool_prefix"; then
8748: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8749: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 moko 8750: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8752: if test ${ac_cv_prog_DLLTOOL+y}
1.237 moko 8753: then :
8754: printf %s "(cached) " >&6
8755: else case e in #(
1.243 moko 8756: e) if test -n "$DLLTOOL"; then
8757: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.128 moko 8758: else
8759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760: for as_dir in $PATH
8761: do
8762: IFS=$as_save_IFS
1.237 moko 8763: case $as_dir in #(((
8764: '') as_dir=./ ;;
8765: */) ;;
8766: *) as_dir=$as_dir/ ;;
8767: esac
1.150 moko 8768: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8769: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8770: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 moko 8771: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8772: break 2
8773: fi
8774: done
1.150 moko 8775: done
8776: IFS=$as_save_IFS
1.128 moko 8777:
1.237 moko 8778: fi ;;
8779: esac
1.128 moko 8780: fi
1.243 moko 8781: DLLTOOL=$ac_cv_prog_DLLTOOL
8782: if test -n "$DLLTOOL"; then
8783: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8784: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 8785: else
1.237 moko 8786: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787: printf "%s\n" "no" >&6; }
1.128 moko 8788: fi
8789:
1.150 moko 8790:
1.243 moko 8791: fi
8792: if test -z "$ac_cv_prog_DLLTOOL"; then
8793: ac_ct_DLLTOOL=$DLLTOOL
8794: # Extract the first word of "dlltool", so it can be a program name with args.
8795: set dummy dlltool; ac_word=$2
8796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797: printf %s "checking for $ac_word... " >&6; }
8798: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8799: then :
8800: printf %s "(cached) " >&6
8801: else case e in #(
8802: e) if test -n "$ac_ct_DLLTOOL"; then
8803: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8804: else
8805: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806: for as_dir in $PATH
8807: do
8808: IFS=$as_save_IFS
8809: case $as_dir in #(((
8810: '') as_dir=./ ;;
8811: */) ;;
8812: *) as_dir=$as_dir/ ;;
8813: esac
8814: for ac_exec_ext in '' $ac_executable_extensions; do
8815: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8816: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8817: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8818: break 2
8819: fi
1.128 moko 8820: done
1.243 moko 8821: done
8822: IFS=$as_save_IFS
8823:
8824: fi ;;
8825: esac
8826: fi
8827: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8828: if test -n "$ac_ct_DLLTOOL"; then
8829: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8830: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8831: else
8832: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833: printf "%s\n" "no" >&6; }
8834: fi
1.128 moko 8835:
1.243 moko 8836: if test "x$ac_ct_DLLTOOL" = x; then
8837: DLLTOOL="false"
1.150 moko 8838: else
8839: case $cross_compiling:$ac_tool_warned in
8840: yes:)
1.237 moko 8841: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8842: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8843: ac_tool_warned=yes ;;
8844: esac
1.243 moko 8845: DLLTOOL=$ac_ct_DLLTOOL
1.150 moko 8846: fi
1.243 moko 8847: else
8848: DLLTOOL="$ac_cv_prog_DLLTOOL"
1.128 moko 8849: fi
8850:
1.243 moko 8851: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.128 moko 8852:
8853:
8854:
8855:
8856:
8857:
1.237 moko 8858:
1.243 moko 8859: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8860: printf %s "checking how to associate runtime and link libraries... " >&6; }
8861: if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8862: then :
8863: printf %s "(cached) " >&6
8864: else case e in #(
8865: e) lt_cv_sharedlib_from_linklib_cmd='unknown'
1.237 moko 8866:
1.243 moko 8867: case $host_os in
8868: cygwin* | mingw* | windows* | pw32* | cegcc*)
8869: # two different shell functions defined in ltmain.sh;
8870: # decide which one to use based on capabilities of $DLLTOOL
8871: case `$DLLTOOL --help 2>&1` in
8872: *--identify-strict*)
8873: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8874: ;;
8875: *)
8876: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8877: ;;
8878: esac
8879: ;;
8880: *)
8881: # fallback: assume linklib IS sharedlib
8882: lt_cv_sharedlib_from_linklib_cmd=$ECHO
8883: ;;
8884: esac
8885: ;;
8886: esac
8887: fi
8888: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8889: printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8890: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8891: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.237 moko 8892:
8893:
8894:
8895:
8896:
1.128 moko 8897:
8898:
1.243 moko 8899: if test -n "$ac_tool_prefix"; then
8900: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8901: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8902: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903: printf %s "checking for $ac_word... " >&6; }
8904: if test ${ac_cv_prog_RANLIB+y}
8905: then :
8906: printf %s "(cached) " >&6
8907: else case e in #(
8908: e) if test -n "$RANLIB"; then
8909: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8910: else
8911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912: for as_dir in $PATH
8913: do
8914: IFS=$as_save_IFS
8915: case $as_dir in #(((
8916: '') as_dir=./ ;;
8917: */) ;;
8918: *) as_dir=$as_dir/ ;;
8919: esac
8920: for ac_exec_ext in '' $ac_executable_extensions; do
8921: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8922: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8923: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8924: break 2
8925: fi
8926: done
8927: done
8928: IFS=$as_save_IFS
1.128 moko 8929:
1.243 moko 8930: fi ;;
8931: esac
8932: fi
8933: RANLIB=$ac_cv_prog_RANLIB
8934: if test -n "$RANLIB"; then
8935: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8936: printf "%s\n" "$RANLIB" >&6; }
8937: else
8938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939: printf "%s\n" "no" >&6; }
8940: fi
1.128 moko 8941:
8942:
1.243 moko 8943: fi
8944: if test -z "$ac_cv_prog_RANLIB"; then
8945: ac_ct_RANLIB=$RANLIB
8946: # Extract the first word of "ranlib", so it can be a program name with args.
8947: set dummy ranlib; ac_word=$2
8948: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949: printf %s "checking for $ac_word... " >&6; }
8950: if test ${ac_cv_prog_ac_ct_RANLIB+y}
1.237 moko 8951: then :
8952: printf %s "(cached) " >&6
8953: else case e in #(
1.243 moko 8954: e) if test -n "$ac_ct_RANLIB"; then
8955: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8956: else
8957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958: for as_dir in $PATH
8959: do
8960: IFS=$as_save_IFS
8961: case $as_dir in #(((
8962: '') as_dir=./ ;;
8963: */) ;;
8964: *) as_dir=$as_dir/ ;;
8965: esac
8966: for ac_exec_ext in '' $ac_executable_extensions; do
8967: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8968: ac_cv_prog_ac_ct_RANLIB="ranlib"
8969: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8970: break 2
8971: fi
8972: done
8973: done
8974: IFS=$as_save_IFS
1.128 moko 8975:
1.243 moko 8976: fi ;;
8977: esac
1.128 moko 8978: fi
1.243 moko 8979: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8980: if test -n "$ac_ct_RANLIB"; then
8981: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8982: printf "%s\n" "$ac_ct_RANLIB" >&6; }
8983: else
8984: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985: printf "%s\n" "no" >&6; }
1.128 moko 8986: fi
8987:
1.243 moko 8988: if test "x$ac_ct_RANLIB" = x; then
8989: RANLIB=":"
8990: else
8991: case $cross_compiling:$ac_tool_warned in
8992: yes:)
8993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8994: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8995: ac_tool_warned=yes ;;
8996: esac
8997: RANLIB=$ac_ct_RANLIB
8998: fi
1.128 moko 8999: else
1.243 moko 9000: RANLIB="$ac_cv_prog_RANLIB"
1.128 moko 9001: fi
9002:
9003: if test -n "$ac_tool_prefix"; then
1.243 moko 9004: for ac_prog in ar
9005: do
9006: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9007: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 9008: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009: printf %s "checking for $ac_word... " >&6; }
1.243 moko 9010: if test ${ac_cv_prog_AR+y}
1.237 moko 9011: then :
9012: printf %s "(cached) " >&6
9013: else case e in #(
1.243 moko 9014: e) if test -n "$AR"; then
9015: ac_cv_prog_AR="$AR" # Let the user override the test.
1.128 moko 9016: else
9017: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018: for as_dir in $PATH
9019: do
9020: IFS=$as_save_IFS
1.237 moko 9021: case $as_dir in #(((
9022: '') as_dir=./ ;;
9023: */) ;;
9024: *) as_dir=$as_dir/ ;;
9025: esac
1.150 moko 9026: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9027: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 9028: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.237 moko 9029: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9030: break 2
9031: fi
9032: done
1.150 moko 9033: done
9034: IFS=$as_save_IFS
1.128 moko 9035:
1.237 moko 9036: fi ;;
9037: esac
1.128 moko 9038: fi
1.243 moko 9039: AR=$ac_cv_prog_AR
9040: if test -n "$AR"; then
9041: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9042: printf "%s\n" "$AR" >&6; }
1.128 moko 9043: else
1.237 moko 9044: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045: printf "%s\n" "no" >&6; }
1.128 moko 9046: fi
9047:
1.150 moko 9048:
1.243 moko 9049: test -n "$AR" && break
9050: done
1.128 moko 9051: fi
1.243 moko 9052: if test -z "$AR"; then
9053: ac_ct_AR=$AR
9054: for ac_prog in ar
9055: do
9056: # Extract the first word of "$ac_prog", so it can be a program name with args.
9057: set dummy $ac_prog; ac_word=$2
1.237 moko 9058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059: printf %s "checking for $ac_word... " >&6; }
1.243 moko 9060: if test ${ac_cv_prog_ac_ct_AR+y}
1.237 moko 9061: then :
9062: printf %s "(cached) " >&6
9063: else case e in #(
1.243 moko 9064: e) if test -n "$ac_ct_AR"; then
9065: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1.128 moko 9066: else
9067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068: for as_dir in $PATH
9069: do
9070: IFS=$as_save_IFS
1.237 moko 9071: case $as_dir in #(((
9072: '') as_dir=./ ;;
9073: */) ;;
9074: *) as_dir=$as_dir/ ;;
9075: esac
1.150 moko 9076: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9077: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 9078: ac_cv_prog_ac_ct_AR="$ac_prog"
1.237 moko 9079: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9080: break 2
9081: fi
9082: done
1.150 moko 9083: done
9084: IFS=$as_save_IFS
1.128 moko 9085:
1.237 moko 9086: fi ;;
9087: esac
1.128 moko 9088: fi
1.243 moko 9089: ac_ct_AR=$ac_cv_prog_ac_ct_AR
9090: if test -n "$ac_ct_AR"; then
9091: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9092: printf "%s\n" "$ac_ct_AR" >&6; }
1.128 moko 9093: else
1.237 moko 9094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095: printf "%s\n" "no" >&6; }
1.128 moko 9096: fi
9097:
1.243 moko 9098:
9099: test -n "$ac_ct_AR" && break
9100: done
9101:
9102: if test "x$ac_ct_AR" = x; then
9103: AR="false"
1.150 moko 9104: else
9105: case $cross_compiling:$ac_tool_warned in
9106: yes:)
1.237 moko 9107: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9108: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 9109: ac_tool_warned=yes ;;
9110: esac
1.243 moko 9111: AR=$ac_ct_AR
1.150 moko 9112: fi
1.128 moko 9113: fi
9114:
1.243 moko 9115: : ${AR=ar}
9116:
9117:
9118:
9119:
9120:
9121:
9122: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9123: # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9124: # higher priority because that's what people were doing historically (setting
9125: # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9126: # variable obsoleted/removed.
9127:
9128: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9129: lt_ar_flags=$AR_FLAGS
9130:
9131:
9132:
9133:
9134:
9135:
9136: # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9137: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9138:
9139:
9140:
9141:
9142:
9143:
9144: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9145: printf %s "checking for archiver @FILE support... " >&6; }
9146: if test ${lt_cv_ar_at_file+y}
9147: then :
9148: printf %s "(cached) " >&6
9149: else case e in #(
9150: e) lt_cv_ar_at_file=no
9151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152: /* end confdefs.h. */
9153:
9154: int
9155: main (void)
9156: {
9157:
9158: ;
9159: return 0;
9160: }
9161: _ACEOF
9162: if ac_fn_c_try_compile "$LINENO"
9163: then :
9164: echo conftest.$ac_objext > conftest.lst
9165: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9166: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9167: (eval $lt_ar_try) 2>&5
9168: ac_status=$?
9169: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9170: test $ac_status = 0; }
9171: if test 0 -eq "$ac_status"; then
9172: # Ensure the archiver fails upon bogus file names.
9173: rm -f conftest.$ac_objext libconftest.a
9174: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9175: (eval $lt_ar_try) 2>&5
9176: ac_status=$?
9177: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9178: test $ac_status = 0; }
9179: if test 0 -ne "$ac_status"; then
9180: lt_cv_ar_at_file=@
9181: fi
9182: fi
9183: rm -f conftest.* libconftest.a
9184:
9185: fi
9186: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9187: ;;
9188: esac
9189: fi
9190: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9191: printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9192:
9193: if test no = "$lt_cv_ar_at_file"; then
9194: archiver_list_spec=
9195: else
9196: archiver_list_spec=$lt_cv_ar_at_file
9197: fi
9198:
9199:
9200:
9201:
9202:
9203:
9204:
9205: if test -n "$ac_tool_prefix"; then
9206: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9207: set dummy ${ac_tool_prefix}strip; ac_word=$2
9208: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209: printf %s "checking for $ac_word... " >&6; }
9210: if test ${ac_cv_prog_STRIP+y}
9211: then :
9212: printf %s "(cached) " >&6
9213: else case e in #(
9214: e) if test -n "$STRIP"; then
9215: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216: else
9217: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218: for as_dir in $PATH
9219: do
9220: IFS=$as_save_IFS
9221: case $as_dir in #(((
9222: '') as_dir=./ ;;
9223: */) ;;
9224: *) as_dir=$as_dir/ ;;
9225: esac
9226: for ac_exec_ext in '' $ac_executable_extensions; do
9227: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9228: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9229: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9230: break 2
9231: fi
9232: done
9233: done
9234: IFS=$as_save_IFS
9235:
9236: fi ;;
9237: esac
9238: fi
9239: STRIP=$ac_cv_prog_STRIP
9240: if test -n "$STRIP"; then
9241: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9242: printf "%s\n" "$STRIP" >&6; }
9243: else
9244: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245: printf "%s\n" "no" >&6; }
9246: fi
9247:
9248:
9249: fi
9250: if test -z "$ac_cv_prog_STRIP"; then
9251: ac_ct_STRIP=$STRIP
9252: # Extract the first word of "strip", so it can be a program name with args.
9253: set dummy strip; ac_word=$2
9254: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255: printf %s "checking for $ac_word... " >&6; }
9256: if test ${ac_cv_prog_ac_ct_STRIP+y}
9257: then :
9258: printf %s "(cached) " >&6
9259: else case e in #(
9260: e) if test -n "$ac_ct_STRIP"; then
9261: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9262: else
9263: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264: for as_dir in $PATH
9265: do
9266: IFS=$as_save_IFS
9267: case $as_dir in #(((
9268: '') as_dir=./ ;;
9269: */) ;;
9270: *) as_dir=$as_dir/ ;;
9271: esac
9272: for ac_exec_ext in '' $ac_executable_extensions; do
9273: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9274: ac_cv_prog_ac_ct_STRIP="strip"
9275: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9276: break 2
9277: fi
9278: done
9279: done
9280: IFS=$as_save_IFS
9281:
9282: fi ;;
9283: esac
9284: fi
9285: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9286: if test -n "$ac_ct_STRIP"; then
9287: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9288: printf "%s\n" "$ac_ct_STRIP" >&6; }
9289: else
9290: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291: printf "%s\n" "no" >&6; }
9292: fi
9293:
9294: if test "x$ac_ct_STRIP" = x; then
9295: STRIP=":"
9296: else
9297: case $cross_compiling:$ac_tool_warned in
9298: yes:)
9299: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301: ac_tool_warned=yes ;;
9302: esac
9303: STRIP=$ac_ct_STRIP
9304: fi
9305: else
9306: STRIP="$ac_cv_prog_STRIP"
9307: fi
9308:
9309: test -z "$STRIP" && STRIP=:
1.128 moko 9310:
9311:
9312:
9313:
9314:
9315:
9316:
9317: test -z "$RANLIB" && RANLIB=:
9318:
9319:
9320:
9321:
9322:
9323:
9324: # Determine commands to create old-style static archives.
9325: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9326: old_postinstall_cmds='chmod 644 $oldlib'
9327: old_postuninstall_cmds=
9328:
9329: if test -n "$RANLIB"; then
9330: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.237 moko 9331: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.128 moko 9332: fi
9333:
9334: case $host_os in
9335: darwin*)
9336: lock_old_archive_extraction=yes ;;
9337: *)
9338: lock_old_archive_extraction=no ;;
9339: esac
9340:
9341:
9342:
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352:
9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367:
9368:
9369:
9370:
9371:
9372:
9373:
9374:
9375:
9376:
9377:
9378:
9379: # If no C compiler was specified, use CC.
9380: LTCC=${LTCC-"$CC"}
9381:
9382: # If no C compiler flags were specified, use CFLAGS.
9383: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9384:
9385: # Allow CC to be a program name with arguments.
9386: compiler=$CC
9387:
9388:
9389: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.237 moko 9390: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9391: printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9392: if test ${lt_cv_sys_global_symbol_pipe+y}
9393: then :
9394: printf %s "(cached) " >&6
9395: else case e in #(
9396: e)
1.128 moko 9397: # These are sane defaults that work on at least a few old systems.
9398: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9399:
9400: # Character class describing NM global symbol codes.
9401: symcode='[BCDEGRST]'
9402:
9403: # Regexp to match symbols that can be accessed directly from C.
9404: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9405:
9406: # Define system-specific variables.
9407: case $host_os in
9408: aix*)
9409: symcode='[BCDT]'
9410: ;;
1.237 moko 9411: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 9412: symcode='[ABCDGISTW]'
9413: ;;
9414: hpux*)
1.237 moko 9415: if test ia64 = "$host_cpu"; then
1.128 moko 9416: symcode='[ABCDEGRST]'
9417: fi
9418: ;;
9419: irix* | nonstopux*)
9420: symcode='[BCDEGRST]'
9421: ;;
9422: osf*)
9423: symcode='[BCDEGQRST]'
9424: ;;
9425: solaris*)
1.237 moko 9426: symcode='[BCDRT]'
1.128 moko 9427: ;;
9428: sco3.2v5*)
9429: symcode='[DT]'
9430: ;;
9431: sysv4.2uw2*)
9432: symcode='[DT]'
9433: ;;
9434: sysv5* | sco5v6* | unixware* | OpenUNIX*)
9435: symcode='[ABDT]'
9436: ;;
9437: sysv4)
9438: symcode='[DFNSTU]'
9439: ;;
9440: esac
9441:
9442: # If we're using GNU nm, then use its standard symbol codes.
9443: case `$NM -V 2>&1` in
9444: *GNU* | *'with BFD'*)
9445: symcode='[ABCDGIRSTW]' ;;
9446: esac
9447:
1.237 moko 9448: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9449: # Gets list of data symbols to import.
9450: lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9451: # Adjust the below global symbol transforms to fixup imported variables.
9452: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9453: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9454: lt_c_name_lib_hook="\
9455: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9456: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9457: else
9458: # Disable hooks by default.
9459: lt_cv_sys_global_symbol_to_import=
9460: lt_cdecl_hook=
9461: lt_c_name_hook=
9462: lt_c_name_lib_hook=
9463: fi
9464:
1.128 moko 9465: # Transform an extracted symbol line into a proper C declaration.
9466: # Some systems (esp. on ia64) link data and code symbols differently,
9467: # so use this general approach.
1.237 moko 9468: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9469: $lt_cdecl_hook\
9470: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9471: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
1.128 moko 9472:
9473: # Transform an extracted symbol line into symbol name and symbol address
1.237 moko 9474: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9475: $lt_c_name_hook\
9476: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9477: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9478:
9479: # Transform an extracted symbol line into symbol name with lib prefix and
9480: # symbol address.
9481: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9482: $lt_c_name_lib_hook\
9483: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9484: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9485: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
1.128 moko 9486:
9487: # Handle CRLF in mingw tool chain
9488: opt_cr=
9489: case $build_os in
1.237 moko 9490: mingw* | windows*)
1.128 moko 9491: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9492: ;;
9493: esac
9494:
9495: # Try without a prefix underscore, then with it.
9496: for ac_symprfx in "" "_"; do
9497:
9498: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9499: symxfrm="\\1 $ac_symprfx\\2 \\2"
9500:
9501: # Write the raw and C identifiers.
9502: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
1.237 moko 9503: # Fake it for dumpbin and say T for any non-static function,
9504: # D for any global variable and I for any imported variable.
9505: # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.128 moko 9506: # which start with @ or ?.
9507: lt_cv_sys_global_symbol_pipe="$AWK '"\
9508: " {last_section=section; section=\$ 3};"\
9509: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9510: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
1.237 moko 9511: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9512: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9513: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
1.128 moko 9514: " \$ 0!~/External *\|/{next};"\
9515: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9516: " {if(hide[section]) next};"\
1.237 moko 9517: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9518: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9519: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9520: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
1.128 moko 9521: " ' prfx=^$ac_symprfx"
9522: else
1.237 moko 9523: lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.128 moko 9524: fi
1.237 moko 9525: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.128 moko 9526:
9527: # Check to see that the pipe works correctly.
9528: pipe_works=no
9529:
9530: rm -f conftest*
9531: cat > conftest.$ac_ext <<_LT_EOF
9532: #ifdef __cplusplus
9533: extern "C" {
9534: #endif
9535: char nm_test_var;
9536: void nm_test_func(void);
9537: void nm_test_func(void){}
9538: #ifdef __cplusplus
9539: }
9540: #endif
1.237 moko 9541: int main(void){nm_test_var='a';nm_test_func();return(0);}
1.128 moko 9542: _LT_EOF
9543:
1.150 moko 9544: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9545: (eval $ac_compile) 2>&5
9546: ac_status=$?
1.237 moko 9547: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9548: test $ac_status = 0; }; then
1.128 moko 9549: # Now try to grab the symbols.
9550: nlist=conftest.nm
1.237 moko 9551: $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9552: if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
1.128 moko 9553: # Try sorting and uniquifying the output.
9554: if sort "$nlist" | uniq > "$nlist"T; then
9555: mv -f "$nlist"T "$nlist"
9556: else
9557: rm -f "$nlist"T
9558: fi
9559:
9560: # Make sure that we snagged all the symbols we need.
9561: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9562: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9563: cat <<_LT_EOF > conftest.$ac_ext
9564: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
1.237 moko 9565: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9566: /* DATA imports from DLLs on WIN32 can't be const, because runtime
1.128 moko 9567: relocations are performed -- see ld's documentation on pseudo-relocs. */
9568: # define LT_DLSYM_CONST
1.237 moko 9569: #elif defined __osf__
1.128 moko 9570: /* This system does not cope well with relocations in const data. */
9571: # define LT_DLSYM_CONST
9572: #else
9573: # define LT_DLSYM_CONST const
9574: #endif
9575:
9576: #ifdef __cplusplus
9577: extern "C" {
9578: #endif
9579:
9580: _LT_EOF
9581: # Now generate the symbol file.
9582: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9583:
9584: cat <<_LT_EOF >> conftest.$ac_ext
9585:
9586: /* The mapping between symbol names and symbols. */
9587: LT_DLSYM_CONST struct {
9588: const char *name;
9589: void *address;
9590: }
9591: lt__PROGRAM__LTX_preloaded_symbols[] =
9592: {
9593: { "@PROGRAM@", (void *) 0 },
9594: _LT_EOF
1.237 moko 9595: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
1.128 moko 9596: cat <<\_LT_EOF >> conftest.$ac_ext
9597: {0, (void *) 0}
9598: };
9599:
9600: /* This works around a problem in FreeBSD linker */
9601: #ifdef FREEBSD_WORKAROUND
9602: static const void *lt_preloaded_setup() {
9603: return lt__PROGRAM__LTX_preloaded_symbols;
9604: }
9605: #endif
9606:
9607: #ifdef __cplusplus
9608: }
9609: #endif
9610: _LT_EOF
9611: # Now try linking the two files.
9612: mv conftest.$ac_objext conftstm.$ac_objext
9613: lt_globsym_save_LIBS=$LIBS
9614: lt_globsym_save_CFLAGS=$CFLAGS
1.237 moko 9615: LIBS=conftstm.$ac_objext
1.128 moko 9616: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 9617: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 9618: (eval $ac_link) 2>&5
9619: ac_status=$?
1.237 moko 9620: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9621: test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.128 moko 9622: pipe_works=yes
9623: fi
9624: LIBS=$lt_globsym_save_LIBS
9625: CFLAGS=$lt_globsym_save_CFLAGS
9626: else
9627: echo "cannot find nm_test_func in $nlist" >&5
9628: fi
9629: else
9630: echo "cannot find nm_test_var in $nlist" >&5
9631: fi
9632: else
9633: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9634: fi
9635: else
9636: echo "$progname: failed program was:" >&5
9637: cat conftest.$ac_ext >&5
9638: fi
9639: rm -rf conftest* conftst*
9640:
9641: # Do not use the global_symbol_pipe unless it works.
1.237 moko 9642: if test yes = "$pipe_works"; then
1.128 moko 9643: break
9644: else
9645: lt_cv_sys_global_symbol_pipe=
9646: fi
9647: done
1.237 moko 9648: ;;
9649: esac
1.128 moko 9650: fi
9651:
9652: if test -z "$lt_cv_sys_global_symbol_pipe"; then
9653: lt_cv_sys_global_symbol_to_cdecl=
9654: fi
9655: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.237 moko 9656: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9657: printf "%s\n" "failed" >&6; }
1.128 moko 9658: else
1.237 moko 9659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9660: printf "%s\n" "ok" >&6; }
1.128 moko 9661: fi
9662:
9663: # Response file support.
9664: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9665: nm_file_list_spec='@'
9666: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9667: nm_file_list_spec='@'
9668: fi
9669:
9670:
9671:
9672:
9673:
9674:
9675:
9676:
9677:
9678:
9679:
9680:
9681:
9682:
9683:
9684:
9685:
9686:
9687:
9688:
9689:
9690:
9691:
9692:
9693:
9694:
9695:
1.237 moko 9696:
9697:
9698:
9699:
9700:
9701:
9702:
9703:
9704:
9705:
9706: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9707: printf %s "checking for sysroot... " >&6; }
1.128 moko 9708:
1.150 moko 9709: # Check whether --with-sysroot was given.
1.237 moko 9710: if test ${with_sysroot+y}
9711: then :
1.150 moko 9712: withval=$with_sysroot;
1.237 moko 9713: else case e in #(
9714: e) with_sysroot=no ;;
9715: esac
1.150 moko 9716: fi
9717:
1.128 moko 9718:
9719: lt_sysroot=
1.237 moko 9720: case $with_sysroot in #(
1.128 moko 9721: yes)
1.237 moko 9722: if test yes = "$GCC"; then
9723: # Trim trailing / since we'll always append absolute paths and we want
9724: # to avoid //, if only for less confusing output for the user.
9725: lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
1.128 moko 9726: fi
9727: ;; #(
9728: /*)
1.237 moko 9729: lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.128 moko 9730: ;; #(
9731: no|'')
9732: ;; #(
9733: *)
1.237 moko 9734: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9735: printf "%s\n" "$with_sysroot" >&6; }
1.150 moko 9736: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 9737: ;;
9738: esac
9739:
1.237 moko 9740: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9741: printf "%s\n" "${lt_sysroot:-no}" >&6; }
1.128 moko 9742:
9743:
9744:
9745:
9746:
1.237 moko 9747: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9748: printf %s "checking for a working dd... " >&6; }
9749: if test ${ac_cv_path_lt_DD+y}
9750: then :
9751: printf %s "(cached) " >&6
9752: else case e in #(
9753: e) printf 0123456789abcdef0123456789abcdef >conftest.i
9754: cat conftest.i conftest.i >conftest2.i
9755: : ${lt_DD:=$DD}
9756: if test -z "$lt_DD"; then
9757: ac_path_lt_DD_found=false
9758: # Loop through the user's path and test for each of PROGNAME-LIST
9759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760: for as_dir in $PATH
9761: do
9762: IFS=$as_save_IFS
9763: case $as_dir in #(((
9764: '') as_dir=./ ;;
9765: */) ;;
9766: *) as_dir=$as_dir/ ;;
9767: esac
9768: for ac_prog in dd
9769: do
9770: for ac_exec_ext in '' $ac_executable_extensions; do
9771: ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9772: as_fn_executable_p "$ac_path_lt_DD" || continue
9773: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9774: cmp -s conftest.i conftest.out \
9775: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9776: fi
9777: $ac_path_lt_DD_found && break 3
9778: done
9779: done
9780: done
9781: IFS=$as_save_IFS
9782: if test -z "$ac_cv_path_lt_DD"; then
9783: :
9784: fi
9785: else
9786: ac_cv_path_lt_DD=$lt_DD
9787: fi
9788:
9789: rm -f conftest.i conftest2.i conftest.out ;;
9790: esac
9791: fi
9792: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9793: printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9794:
9795:
9796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9797: printf %s "checking how to truncate binary pipes... " >&6; }
9798: if test ${lt_cv_truncate_bin+y}
9799: then :
9800: printf %s "(cached) " >&6
9801: else case e in #(
9802: e) printf 0123456789abcdef0123456789abcdef >conftest.i
9803: cat conftest.i conftest.i >conftest2.i
9804: lt_cv_truncate_bin=
9805: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9806: cmp -s conftest.i conftest.out \
9807: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9808: fi
9809: rm -f conftest.i conftest2.i conftest.out
9810: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9811: esac
9812: fi
9813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9814: printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9823: func_cc_basename ()
9824: {
9825: for cc_temp in $*""; do
9826: case $cc_temp in
9827: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9828: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9829: \-*) ;;
9830: *) break;;
9831: esac
9832: done
9833: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9834: }
9835:
1.150 moko 9836: # Check whether --enable-libtool-lock was given.
1.237 moko 9837: if test ${enable_libtool_lock+y}
9838: then :
1.150 moko 9839: enableval=$enable_libtool_lock;
9840: fi
1.128 moko 9841:
1.237 moko 9842: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1.128 moko 9843:
9844: # Some flags need to be propagated to the compiler or linker for good
9845: # libtool support.
9846: case $host in
9847: ia64-*-hpux*)
1.237 moko 9848: # Find out what ABI is being produced by ac_compile, and set mode
9849: # options accordingly.
1.128 moko 9850: echo 'int i;' > conftest.$ac_ext
1.150 moko 9851: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9852: (eval $ac_compile) 2>&5
9853: ac_status=$?
1.237 moko 9854: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9855: test $ac_status = 0; }; then
1.237 moko 9856: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9857: *ELF-32*)
1.237 moko 9858: HPUX_IA64_MODE=32
1.128 moko 9859: ;;
9860: *ELF-64*)
1.237 moko 9861: HPUX_IA64_MODE=64
1.128 moko 9862: ;;
9863: esac
9864: fi
9865: rm -rf conftest*
9866: ;;
9867: *-*-irix6*)
1.237 moko 9868: # Find out what ABI is being produced by ac_compile, and set linker
9869: # options accordingly.
1.128 moko 9870: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 9871: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9872: (eval $ac_compile) 2>&5
9873: ac_status=$?
1.237 moko 9874: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9875: test $ac_status = 0; }; then
1.237 moko 9876: if test yes = "$lt_cv_prog_gnu_ld"; then
9877: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9878: *32-bit*)
9879: LD="${LD-ld} -melf32bsmip"
9880: ;;
9881: *N32*)
9882: LD="${LD-ld} -melf32bmipn32"
9883: ;;
9884: *64-bit*)
9885: LD="${LD-ld} -melf64bmip"
9886: ;;
9887: esac
9888: else
1.237 moko 9889: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9890: *32-bit*)
9891: LD="${LD-ld} -32"
9892: ;;
9893: *N32*)
9894: LD="${LD-ld} -n32"
9895: ;;
9896: *64-bit*)
9897: LD="${LD-ld} -64"
9898: ;;
9899: esac
9900: fi
9901: fi
9902: rm -rf conftest*
9903: ;;
9904:
1.237 moko 9905: mips64*-*linux*)
9906: # Find out what ABI is being produced by ac_compile, and set linker
9907: # options accordingly.
9908: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9909: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9910: (eval $ac_compile) 2>&5
9911: ac_status=$?
9912: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9913: test $ac_status = 0; }; then
9914: emul=elf
9915: case `$FILECMD conftest.$ac_objext` in
9916: *32-bit*)
9917: emul="${emul}32"
9918: ;;
9919: *64-bit*)
9920: emul="${emul}64"
9921: ;;
9922: esac
9923: case `$FILECMD conftest.$ac_objext` in
9924: *MSB*)
9925: emul="${emul}btsmip"
9926: ;;
9927: *LSB*)
9928: emul="${emul}ltsmip"
9929: ;;
9930: esac
9931: case `$FILECMD conftest.$ac_objext` in
9932: *N32*)
9933: emul="${emul}n32"
9934: ;;
9935: esac
9936: LD="${LD-ld} -m $emul"
9937: fi
9938: rm -rf conftest*
9939: ;;
9940:
9941: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9942: s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9943: # Find out what ABI is being produced by ac_compile, and set linker
9944: # options accordingly. Note that the listed cases only cover the
9945: # situations where additional linker options are needed (such as when
9946: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9947: # vice versa); the common cases where no linker options are needed do
9948: # not appear in the list.
1.128 moko 9949: echo 'int i;' > conftest.$ac_ext
1.150 moko 9950: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9951: (eval $ac_compile) 2>&5
9952: ac_status=$?
1.237 moko 9953: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9954: test $ac_status = 0; }; then
1.237 moko 9955: case `$FILECMD conftest.o` in
1.128 moko 9956: *32-bit*)
9957: case $host in
9958: x86_64-*kfreebsd*-gnu)
9959: LD="${LD-ld} -m elf_i386_fbsd"
9960: ;;
1.237 moko 9961: x86_64-*linux*|x86_64-gnu*)
9962: case `$FILECMD conftest.o` in
9963: *x86-64*)
9964: LD="${LD-ld} -m elf32_x86_64"
9965: ;;
9966: *)
9967: LD="${LD-ld} -m elf_i386"
9968: ;;
9969: esac
1.128 moko 9970: ;;
1.237 moko 9971: powerpc64le-*linux*)
9972: LD="${LD-ld} -m elf32lppclinux"
9973: ;;
9974: powerpc64-*linux*)
1.128 moko 9975: LD="${LD-ld} -m elf32ppclinux"
9976: ;;
9977: s390x-*linux*)
9978: LD="${LD-ld} -m elf_s390"
9979: ;;
9980: sparc64-*linux*)
9981: LD="${LD-ld} -m elf32_sparc"
9982: ;;
9983: esac
9984: ;;
9985: *64-bit*)
9986: case $host in
9987: x86_64-*kfreebsd*-gnu)
9988: LD="${LD-ld} -m elf_x86_64_fbsd"
9989: ;;
1.237 moko 9990: x86_64-*linux*|x86_64-gnu*)
1.128 moko 9991: LD="${LD-ld} -m elf_x86_64"
9992: ;;
1.237 moko 9993: powerpcle-*linux*)
9994: LD="${LD-ld} -m elf64lppc"
9995: ;;
9996: powerpc-*linux*)
1.128 moko 9997: LD="${LD-ld} -m elf64ppc"
9998: ;;
9999: s390*-*linux*|s390*-*tpf*)
10000: LD="${LD-ld} -m elf64_s390"
10001: ;;
10002: sparc*-*linux*)
10003: LD="${LD-ld} -m elf64_sparc"
10004: ;;
10005: esac
10006: ;;
10007: esac
10008: fi
10009: rm -rf conftest*
10010: ;;
10011:
10012: *-*-sco3.2v5*)
10013: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.237 moko 10014: SAVE_CFLAGS=$CFLAGS
1.128 moko 10015: CFLAGS="$CFLAGS -belf"
1.237 moko 10016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10017: printf %s "checking whether the C compiler needs -belf... " >&6; }
10018: if test ${lt_cv_cc_needs_belf+y}
10019: then :
10020: printf %s "(cached) " >&6
10021: else case e in #(
10022: e) ac_ext=c
1.128 moko 10023: ac_cpp='$CPP $CPPFLAGS'
10024: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10025: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10026: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10027:
1.150 moko 10028: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10029: /* end confdefs.h. */
10030:
10031: int
1.237 moko 10032: main (void)
1.128 moko 10033: {
10034:
10035: ;
10036: return 0;
10037: }
10038: _ACEOF
1.237 moko 10039: if ac_fn_c_try_link "$LINENO"
10040: then :
1.128 moko 10041: lt_cv_cc_needs_belf=yes
1.237 moko 10042: else case e in #(
10043: e) lt_cv_cc_needs_belf=no ;;
10044: esac
1.128 moko 10045: fi
1.237 moko 10046: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 10047: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10048: ac_ext=c
10049: ac_cpp='$CPP $CPPFLAGS'
10050: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10051: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10052: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 moko 10053: ;;
10054: esac
1.128 moko 10055: fi
1.237 moko 10056: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10057: printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10058: if test yes != "$lt_cv_cc_needs_belf"; then
1.128 moko 10059: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.237 moko 10060: CFLAGS=$SAVE_CFLAGS
1.128 moko 10061: fi
10062: ;;
10063: *-*solaris*)
1.237 moko 10064: # Find out what ABI is being produced by ac_compile, and set linker
10065: # options accordingly.
1.128 moko 10066: echo 'int i;' > conftest.$ac_ext
1.150 moko 10067: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 10068: (eval $ac_compile) 2>&5
10069: ac_status=$?
1.237 moko 10070: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 10071: test $ac_status = 0; }; then
1.237 moko 10072: case `$FILECMD conftest.o` in
1.128 moko 10073: *64-bit*)
10074: case $lt_cv_prog_gnu_ld in
10075: yes*)
10076: case $host in
1.237 moko 10077: i?86-*-solaris*|x86_64-*-solaris*)
1.128 moko 10078: LD="${LD-ld} -m elf_x86_64"
10079: ;;
10080: sparc*-*-solaris*)
10081: LD="${LD-ld} -m elf64_sparc"
10082: ;;
10083: esac
10084: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10085: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1.237 moko 10086: LD=${LD-ld}_sol2
1.128 moko 10087: fi
10088: ;;
10089: *)
10090: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10091: LD="${LD-ld} -64"
10092: fi
10093: ;;
10094: esac
10095: ;;
10096: esac
10097: fi
10098: rm -rf conftest*
10099: ;;
10100: esac
10101:
1.237 moko 10102: need_locks=$enable_libtool_lock
1.128 moko 10103:
10104: if test -n "$ac_tool_prefix"; then
10105: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10106: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.237 moko 10107: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108: printf %s "checking for $ac_word... " >&6; }
10109: if test ${ac_cv_prog_MANIFEST_TOOL+y}
10110: then :
10111: printf %s "(cached) " >&6
10112: else case e in #(
10113: e) if test -n "$MANIFEST_TOOL"; then
1.128 moko 10114: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10115: else
10116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117: for as_dir in $PATH
10118: do
10119: IFS=$as_save_IFS
1.237 moko 10120: case $as_dir in #(((
10121: '') as_dir=./ ;;
10122: */) ;;
10123: *) as_dir=$as_dir/ ;;
10124: esac
1.150 moko 10125: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10126: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10127: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.237 moko 10128: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10129: break 2
10130: fi
10131: done
1.150 moko 10132: done
10133: IFS=$as_save_IFS
1.128 moko 10134:
1.237 moko 10135: fi ;;
10136: esac
1.128 moko 10137: fi
10138: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10139: if test -n "$MANIFEST_TOOL"; then
1.237 moko 10140: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10141: printf "%s\n" "$MANIFEST_TOOL" >&6; }
1.128 moko 10142: else
1.237 moko 10143: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144: printf "%s\n" "no" >&6; }
1.128 moko 10145: fi
10146:
1.150 moko 10147:
1.128 moko 10148: fi
10149: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10150: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10151: # Extract the first word of "mt", so it can be a program name with args.
10152: set dummy mt; ac_word=$2
1.237 moko 10153: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154: printf %s "checking for $ac_word... " >&6; }
10155: if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10156: then :
10157: printf %s "(cached) " >&6
10158: else case e in #(
10159: e) if test -n "$ac_ct_MANIFEST_TOOL"; then
1.128 moko 10160: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10161: else
10162: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163: for as_dir in $PATH
10164: do
10165: IFS=$as_save_IFS
1.237 moko 10166: case $as_dir in #(((
10167: '') as_dir=./ ;;
10168: */) ;;
10169: *) as_dir=$as_dir/ ;;
10170: esac
1.150 moko 10171: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10172: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10173: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.237 moko 10174: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10175: break 2
10176: fi
10177: done
1.150 moko 10178: done
10179: IFS=$as_save_IFS
1.128 moko 10180:
1.237 moko 10181: fi ;;
10182: esac
1.128 moko 10183: fi
10184: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10185: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.237 moko 10186: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10187: printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 10188: else
1.237 moko 10189: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190: printf "%s\n" "no" >&6; }
1.128 moko 10191: fi
10192:
1.150 moko 10193: if test "x$ac_ct_MANIFEST_TOOL" = x; then
10194: MANIFEST_TOOL=":"
10195: else
10196: case $cross_compiling:$ac_tool_warned in
10197: yes:)
1.237 moko 10198: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10199: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10200: ac_tool_warned=yes ;;
10201: esac
10202: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10203: fi
1.128 moko 10204: else
10205: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10206: fi
10207:
10208: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.237 moko 10209: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10210: printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10211: if test ${lt_cv_path_manifest_tool+y}
10212: then :
10213: printf %s "(cached) " >&6
10214: else case e in #(
10215: e) lt_cv_path_manifest_tool=no
1.128 moko 10216: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10217: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10218: cat conftest.err >&5
10219: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
1.237 moko 10220: lt_cv_path_manifest_tool=yes
1.128 moko 10221: fi
1.237 moko 10222: rm -f conftest* ;;
10223: esac
1.128 moko 10224: fi
1.237 moko 10225: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10226: printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10227: if test yes != "$lt_cv_path_manifest_tool"; then
1.128 moko 10228: MANIFEST_TOOL=:
10229: fi
10230:
10231:
10232:
10233:
10234:
10235:
10236: case $host_os in
10237: rhapsody* | darwin*)
10238: if test -n "$ac_tool_prefix"; then
10239: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10240: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.237 moko 10241: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242: printf %s "checking for $ac_word... " >&6; }
10243: if test ${ac_cv_prog_DSYMUTIL+y}
10244: then :
10245: printf %s "(cached) " >&6
10246: else case e in #(
10247: e) if test -n "$DSYMUTIL"; then
1.128 moko 10248: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10249: else
10250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251: for as_dir in $PATH
10252: do
10253: IFS=$as_save_IFS
1.237 moko 10254: case $as_dir in #(((
10255: '') as_dir=./ ;;
10256: */) ;;
10257: *) as_dir=$as_dir/ ;;
10258: esac
1.150 moko 10259: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10260: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10261: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.237 moko 10262: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10263: break 2
10264: fi
10265: done
1.150 moko 10266: done
10267: IFS=$as_save_IFS
1.128 moko 10268:
1.237 moko 10269: fi ;;
10270: esac
1.128 moko 10271: fi
10272: DSYMUTIL=$ac_cv_prog_DSYMUTIL
10273: if test -n "$DSYMUTIL"; then
1.237 moko 10274: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10275: printf "%s\n" "$DSYMUTIL" >&6; }
1.128 moko 10276: else
1.237 moko 10277: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278: printf "%s\n" "no" >&6; }
1.128 moko 10279: fi
10280:
1.150 moko 10281:
1.128 moko 10282: fi
10283: if test -z "$ac_cv_prog_DSYMUTIL"; then
10284: ac_ct_DSYMUTIL=$DSYMUTIL
10285: # Extract the first word of "dsymutil", so it can be a program name with args.
10286: set dummy dsymutil; ac_word=$2
1.237 moko 10287: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288: printf %s "checking for $ac_word... " >&6; }
10289: if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10290: then :
10291: printf %s "(cached) " >&6
10292: else case e in #(
10293: e) if test -n "$ac_ct_DSYMUTIL"; then
1.128 moko 10294: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10295: else
10296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297: for as_dir in $PATH
10298: do
10299: IFS=$as_save_IFS
1.237 moko 10300: case $as_dir in #(((
10301: '') as_dir=./ ;;
10302: */) ;;
10303: *) as_dir=$as_dir/ ;;
10304: esac
1.150 moko 10305: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10306: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10307: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.237 moko 10308: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10309: break 2
10310: fi
10311: done
1.150 moko 10312: done
10313: IFS=$as_save_IFS
1.128 moko 10314:
1.237 moko 10315: fi ;;
10316: esac
1.128 moko 10317: fi
10318: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10319: if test -n "$ac_ct_DSYMUTIL"; then
1.237 moko 10320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10321: printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 10322: else
1.237 moko 10323: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324: printf "%s\n" "no" >&6; }
1.128 moko 10325: fi
10326:
1.150 moko 10327: if test "x$ac_ct_DSYMUTIL" = x; then
10328: DSYMUTIL=":"
10329: else
10330: case $cross_compiling:$ac_tool_warned in
10331: yes:)
1.237 moko 10332: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10333: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10334: ac_tool_warned=yes ;;
10335: esac
10336: DSYMUTIL=$ac_ct_DSYMUTIL
10337: fi
1.128 moko 10338: else
10339: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10340: fi
10341:
10342: if test -n "$ac_tool_prefix"; then
10343: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10344: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.237 moko 10345: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346: printf %s "checking for $ac_word... " >&6; }
10347: if test ${ac_cv_prog_NMEDIT+y}
10348: then :
10349: printf %s "(cached) " >&6
10350: else case e in #(
10351: e) if test -n "$NMEDIT"; then
1.128 moko 10352: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10353: else
10354: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355: for as_dir in $PATH
10356: do
10357: IFS=$as_save_IFS
1.237 moko 10358: case $as_dir in #(((
10359: '') as_dir=./ ;;
10360: */) ;;
10361: *) as_dir=$as_dir/ ;;
10362: esac
1.150 moko 10363: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10364: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10365: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.237 moko 10366: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10367: break 2
10368: fi
10369: done
1.150 moko 10370: done
10371: IFS=$as_save_IFS
1.128 moko 10372:
1.237 moko 10373: fi ;;
10374: esac
1.128 moko 10375: fi
10376: NMEDIT=$ac_cv_prog_NMEDIT
10377: if test -n "$NMEDIT"; then
1.237 moko 10378: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10379: printf "%s\n" "$NMEDIT" >&6; }
1.128 moko 10380: else
1.237 moko 10381: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382: printf "%s\n" "no" >&6; }
1.128 moko 10383: fi
10384:
1.150 moko 10385:
1.128 moko 10386: fi
10387: if test -z "$ac_cv_prog_NMEDIT"; then
10388: ac_ct_NMEDIT=$NMEDIT
10389: # Extract the first word of "nmedit", so it can be a program name with args.
10390: set dummy nmedit; ac_word=$2
1.237 moko 10391: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392: printf %s "checking for $ac_word... " >&6; }
10393: if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10394: then :
10395: printf %s "(cached) " >&6
10396: else case e in #(
10397: e) if test -n "$ac_ct_NMEDIT"; then
1.128 moko 10398: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10399: else
10400: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401: for as_dir in $PATH
10402: do
10403: IFS=$as_save_IFS
1.237 moko 10404: case $as_dir in #(((
10405: '') as_dir=./ ;;
10406: */) ;;
10407: *) as_dir=$as_dir/ ;;
10408: esac
1.150 moko 10409: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10410: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10411: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.237 moko 10412: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10413: break 2
10414: fi
10415: done
1.150 moko 10416: done
10417: IFS=$as_save_IFS
1.128 moko 10418:
1.237 moko 10419: fi ;;
10420: esac
1.128 moko 10421: fi
10422: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10423: if test -n "$ac_ct_NMEDIT"; then
1.237 moko 10424: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10425: printf "%s\n" "$ac_ct_NMEDIT" >&6; }
1.128 moko 10426: else
1.237 moko 10427: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428: printf "%s\n" "no" >&6; }
1.128 moko 10429: fi
10430:
1.150 moko 10431: if test "x$ac_ct_NMEDIT" = x; then
10432: NMEDIT=":"
10433: else
10434: case $cross_compiling:$ac_tool_warned in
10435: yes:)
1.237 moko 10436: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10437: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10438: ac_tool_warned=yes ;;
10439: esac
10440: NMEDIT=$ac_ct_NMEDIT
10441: fi
1.128 moko 10442: else
10443: NMEDIT="$ac_cv_prog_NMEDIT"
10444: fi
10445:
10446: if test -n "$ac_tool_prefix"; then
10447: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10448: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.237 moko 10449: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450: printf %s "checking for $ac_word... " >&6; }
10451: if test ${ac_cv_prog_LIPO+y}
10452: then :
10453: printf %s "(cached) " >&6
10454: else case e in #(
10455: e) if test -n "$LIPO"; then
1.128 moko 10456: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10457: else
10458: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459: for as_dir in $PATH
10460: do
10461: IFS=$as_save_IFS
1.237 moko 10462: case $as_dir in #(((
10463: '') as_dir=./ ;;
10464: */) ;;
10465: *) as_dir=$as_dir/ ;;
10466: esac
1.150 moko 10467: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10468: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10469: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.237 moko 10470: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10471: break 2
10472: fi
10473: done
1.150 moko 10474: done
10475: IFS=$as_save_IFS
1.128 moko 10476:
1.237 moko 10477: fi ;;
10478: esac
1.128 moko 10479: fi
10480: LIPO=$ac_cv_prog_LIPO
10481: if test -n "$LIPO"; then
1.237 moko 10482: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10483: printf "%s\n" "$LIPO" >&6; }
1.128 moko 10484: else
1.237 moko 10485: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486: printf "%s\n" "no" >&6; }
1.128 moko 10487: fi
10488:
1.150 moko 10489:
1.128 moko 10490: fi
10491: if test -z "$ac_cv_prog_LIPO"; then
10492: ac_ct_LIPO=$LIPO
10493: # Extract the first word of "lipo", so it can be a program name with args.
10494: set dummy lipo; ac_word=$2
1.237 moko 10495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496: printf %s "checking for $ac_word... " >&6; }
10497: if test ${ac_cv_prog_ac_ct_LIPO+y}
10498: then :
10499: printf %s "(cached) " >&6
10500: else case e in #(
10501: e) if test -n "$ac_ct_LIPO"; then
1.128 moko 10502: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10503: else
10504: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505: for as_dir in $PATH
10506: do
10507: IFS=$as_save_IFS
1.237 moko 10508: case $as_dir in #(((
10509: '') as_dir=./ ;;
10510: */) ;;
10511: *) as_dir=$as_dir/ ;;
10512: esac
1.150 moko 10513: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10514: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10515: ac_cv_prog_ac_ct_LIPO="lipo"
1.237 moko 10516: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10517: break 2
10518: fi
10519: done
1.150 moko 10520: done
10521: IFS=$as_save_IFS
1.128 moko 10522:
1.237 moko 10523: fi ;;
10524: esac
1.128 moko 10525: fi
10526: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10527: if test -n "$ac_ct_LIPO"; then
1.237 moko 10528: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10529: printf "%s\n" "$ac_ct_LIPO" >&6; }
1.128 moko 10530: else
1.237 moko 10531: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532: printf "%s\n" "no" >&6; }
1.128 moko 10533: fi
10534:
1.150 moko 10535: if test "x$ac_ct_LIPO" = x; then
10536: LIPO=":"
10537: else
10538: case $cross_compiling:$ac_tool_warned in
10539: yes:)
1.237 moko 10540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10541: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10542: ac_tool_warned=yes ;;
10543: esac
10544: LIPO=$ac_ct_LIPO
10545: fi
1.128 moko 10546: else
10547: LIPO="$ac_cv_prog_LIPO"
10548: fi
10549:
10550: if test -n "$ac_tool_prefix"; then
10551: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10552: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.237 moko 10553: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554: printf %s "checking for $ac_word... " >&6; }
10555: if test ${ac_cv_prog_OTOOL+y}
10556: then :
10557: printf %s "(cached) " >&6
10558: else case e in #(
10559: e) if test -n "$OTOOL"; then
1.128 moko 10560: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10561: else
10562: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563: for as_dir in $PATH
10564: do
10565: IFS=$as_save_IFS
1.237 moko 10566: case $as_dir in #(((
10567: '') as_dir=./ ;;
10568: */) ;;
10569: *) as_dir=$as_dir/ ;;
10570: esac
1.150 moko 10571: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10572: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10573: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.237 moko 10574: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10575: break 2
10576: fi
10577: done
1.150 moko 10578: done
10579: IFS=$as_save_IFS
1.128 moko 10580:
1.237 moko 10581: fi ;;
10582: esac
1.128 moko 10583: fi
10584: OTOOL=$ac_cv_prog_OTOOL
10585: if test -n "$OTOOL"; then
1.237 moko 10586: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10587: printf "%s\n" "$OTOOL" >&6; }
1.128 moko 10588: else
1.237 moko 10589: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590: printf "%s\n" "no" >&6; }
1.128 moko 10591: fi
10592:
1.150 moko 10593:
1.128 moko 10594: fi
10595: if test -z "$ac_cv_prog_OTOOL"; then
10596: ac_ct_OTOOL=$OTOOL
10597: # Extract the first word of "otool", so it can be a program name with args.
10598: set dummy otool; ac_word=$2
1.237 moko 10599: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600: printf %s "checking for $ac_word... " >&6; }
10601: if test ${ac_cv_prog_ac_ct_OTOOL+y}
10602: then :
10603: printf %s "(cached) " >&6
10604: else case e in #(
10605: e) if test -n "$ac_ct_OTOOL"; then
1.128 moko 10606: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10607: else
10608: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609: for as_dir in $PATH
10610: do
10611: IFS=$as_save_IFS
1.237 moko 10612: case $as_dir in #(((
10613: '') as_dir=./ ;;
10614: */) ;;
10615: *) as_dir=$as_dir/ ;;
10616: esac
1.150 moko 10617: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10618: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10619: ac_cv_prog_ac_ct_OTOOL="otool"
1.237 moko 10620: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10621: break 2
10622: fi
10623: done
1.150 moko 10624: done
10625: IFS=$as_save_IFS
1.128 moko 10626:
1.237 moko 10627: fi ;;
10628: esac
1.128 moko 10629: fi
10630: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10631: if test -n "$ac_ct_OTOOL"; then
1.237 moko 10632: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10633: printf "%s\n" "$ac_ct_OTOOL" >&6; }
1.128 moko 10634: else
1.237 moko 10635: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636: printf "%s\n" "no" >&6; }
1.128 moko 10637: fi
10638:
1.150 moko 10639: if test "x$ac_ct_OTOOL" = x; then
10640: OTOOL=":"
10641: else
10642: case $cross_compiling:$ac_tool_warned in
10643: yes:)
1.237 moko 10644: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10645: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10646: ac_tool_warned=yes ;;
10647: esac
10648: OTOOL=$ac_ct_OTOOL
10649: fi
1.128 moko 10650: else
10651: OTOOL="$ac_cv_prog_OTOOL"
10652: fi
10653:
10654: if test -n "$ac_tool_prefix"; then
10655: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10656: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.237 moko 10657: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658: printf %s "checking for $ac_word... " >&6; }
10659: if test ${ac_cv_prog_OTOOL64+y}
10660: then :
10661: printf %s "(cached) " >&6
10662: else case e in #(
10663: e) if test -n "$OTOOL64"; then
1.128 moko 10664: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10665: else
10666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667: for as_dir in $PATH
10668: do
10669: IFS=$as_save_IFS
1.237 moko 10670: case $as_dir in #(((
10671: '') as_dir=./ ;;
10672: */) ;;
10673: *) as_dir=$as_dir/ ;;
10674: esac
1.150 moko 10675: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10676: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10677: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.237 moko 10678: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10679: break 2
10680: fi
10681: done
1.150 moko 10682: done
10683: IFS=$as_save_IFS
1.128 moko 10684:
1.237 moko 10685: fi ;;
10686: esac
1.128 moko 10687: fi
10688: OTOOL64=$ac_cv_prog_OTOOL64
10689: if test -n "$OTOOL64"; then
1.237 moko 10690: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10691: printf "%s\n" "$OTOOL64" >&6; }
1.128 moko 10692: else
1.237 moko 10693: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694: printf "%s\n" "no" >&6; }
1.128 moko 10695: fi
10696:
1.150 moko 10697:
1.128 moko 10698: fi
10699: if test -z "$ac_cv_prog_OTOOL64"; then
10700: ac_ct_OTOOL64=$OTOOL64
10701: # Extract the first word of "otool64", so it can be a program name with args.
10702: set dummy otool64; ac_word=$2
1.237 moko 10703: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704: printf %s "checking for $ac_word... " >&6; }
10705: if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10706: then :
10707: printf %s "(cached) " >&6
10708: else case e in #(
10709: e) if test -n "$ac_ct_OTOOL64"; then
1.128 moko 10710: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10711: else
10712: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713: for as_dir in $PATH
10714: do
10715: IFS=$as_save_IFS
1.237 moko 10716: case $as_dir in #(((
10717: '') as_dir=./ ;;
10718: */) ;;
10719: *) as_dir=$as_dir/ ;;
10720: esac
1.150 moko 10721: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10722: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10723: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.237 moko 10724: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10725: break 2
10726: fi
10727: done
1.150 moko 10728: done
10729: IFS=$as_save_IFS
1.128 moko 10730:
1.237 moko 10731: fi ;;
10732: esac
1.128 moko 10733: fi
10734: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10735: if test -n "$ac_ct_OTOOL64"; then
1.237 moko 10736: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10737: printf "%s\n" "$ac_ct_OTOOL64" >&6; }
1.128 moko 10738: else
1.237 moko 10739: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740: printf "%s\n" "no" >&6; }
1.128 moko 10741: fi
10742:
1.150 moko 10743: if test "x$ac_ct_OTOOL64" = x; then
10744: OTOOL64=":"
10745: else
10746: case $cross_compiling:$ac_tool_warned in
10747: yes:)
1.237 moko 10748: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10749: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10750: ac_tool_warned=yes ;;
10751: esac
10752: OTOOL64=$ac_ct_OTOOL64
10753: fi
1.128 moko 10754: else
10755: OTOOL64="$ac_cv_prog_OTOOL64"
10756: fi
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
1.237 moko 10784: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10785: printf %s "checking for -single_module linker flag... " >&6; }
10786: if test ${lt_cv_apple_cc_single_mod+y}
10787: then :
10788: printf %s "(cached) " >&6
10789: else case e in #(
10790: e) lt_cv_apple_cc_single_mod=no
10791: if test -z "$LT_MULTI_MODULE"; then
1.128 moko 10792: # By default we will add the -single_module flag. You can override
10793: # by either setting the environment variable LT_MULTI_MODULE
10794: # non-empty at configure time, or by adding -multi_module to the
10795: # link flags.
10796: rm -rf libconftest.dylib*
10797: echo "int foo(void){return 1;}" > conftest.c
10798: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10799: -dynamiclib -Wl,-single_module conftest.c" >&5
10800: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10801: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10802: _lt_result=$?
10803: # If there is a non-empty error log, and "single_module"
10804: # appears in it, assume the flag caused a linker warning
10805: if test -s conftest.err && $GREP single_module conftest.err; then
10806: cat conftest.err >&5
10807: # Otherwise, if the output was created with a 0 exit code from
10808: # the compiler, it worked.
1.237 moko 10809: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1.128 moko 10810: lt_cv_apple_cc_single_mod=yes
10811: else
10812: cat conftest.err >&5
10813: fi
10814: rm -rf libconftest.dylib*
10815: rm -f conftest.*
1.237 moko 10816: fi ;;
10817: esac
10818: fi
10819: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10820: printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10821:
10822: # Feature test to disable chained fixups since it is not
10823: # compatible with '-undefined dynamic_lookup'
10824: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10825: printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10826: if test ${lt_cv_support_no_fixup_chains+y}
10827: then :
10828: printf %s "(cached) " >&6
10829: else case e in #(
10830: e) save_LDFLAGS=$LDFLAGS
10831: LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10832: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833: /* end confdefs.h. */
10834:
10835: int
10836: main (void)
10837: {
10838:
10839: ;
10840: return 0;
10841: }
10842: _ACEOF
10843: if ac_fn_c_try_link "$LINENO"
10844: then :
10845: lt_cv_support_no_fixup_chains=yes
10846: else case e in #(
10847: e) lt_cv_support_no_fixup_chains=no
10848: ;;
10849: esac
10850: fi
10851: rm -f core conftest.err conftest.$ac_objext conftest.beam \
10852: conftest$ac_exeext conftest.$ac_ext
10853: LDFLAGS=$save_LDFLAGS
10854:
10855: ;;
10856: esac
1.128 moko 10857: fi
1.237 moko 10858: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10859: printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
1.128 moko 10860:
1.237 moko 10861: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10862: printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10863: if test ${lt_cv_ld_exported_symbols_list+y}
10864: then :
10865: printf %s "(cached) " >&6
10866: else case e in #(
10867: e) lt_cv_ld_exported_symbols_list=no
1.128 moko 10868: save_LDFLAGS=$LDFLAGS
10869: echo "_main" > conftest.sym
10870: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 10871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10872: /* end confdefs.h. */
10873:
10874: int
1.237 moko 10875: main (void)
1.128 moko 10876: {
10877:
10878: ;
10879: return 0;
10880: }
10881: _ACEOF
1.237 moko 10882: if ac_fn_c_try_link "$LINENO"
10883: then :
1.128 moko 10884: lt_cv_ld_exported_symbols_list=yes
1.237 moko 10885: else case e in #(
10886: e) lt_cv_ld_exported_symbols_list=no ;;
10887: esac
1.128 moko 10888: fi
1.237 moko 10889: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 10890: conftest$ac_exeext conftest.$ac_ext
1.237 moko 10891: LDFLAGS=$save_LDFLAGS
10892: ;;
10893: esac
1.128 moko 10894: fi
1.237 moko 10895: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10896: printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 10897:
1.237 moko 10898: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10899: printf %s "checking for -force_load linker flag... " >&6; }
10900: if test ${lt_cv_ld_force_load+y}
10901: then :
10902: printf %s "(cached) " >&6
10903: else case e in #(
10904: e) lt_cv_ld_force_load=no
1.128 moko 10905: cat > conftest.c << _LT_EOF
10906: int forced_loaded() { return 2;}
10907: _LT_EOF
10908: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10909: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
1.237 moko 10910: echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10911: $AR $AR_FLAGS libconftest.a conftest.o 2>&5
1.128 moko 10912: echo "$RANLIB libconftest.a" >&5
10913: $RANLIB libconftest.a 2>&5
10914: cat > conftest.c << _LT_EOF
1.237 moko 10915: int main(void) { return 0;}
1.128 moko 10916: _LT_EOF
10917: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10918: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10919: _lt_result=$?
10920: if test -s conftest.err && $GREP force_load conftest.err; then
10921: cat conftest.err >&5
1.237 moko 10922: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1.128 moko 10923: lt_cv_ld_force_load=yes
10924: else
10925: cat conftest.err >&5
10926: fi
10927: rm -f conftest.err libconftest.a conftest conftest.c
10928: rm -rf conftest.dSYM
1.237 moko 10929: ;;
10930: esac
1.128 moko 10931: fi
1.237 moko 10932: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10933: printf "%s\n" "$lt_cv_ld_force_load" >&6; }
1.128 moko 10934: case $host_os in
10935: rhapsody* | darwin1.[012])
1.237 moko 10936: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1.128 moko 10937: darwin1.*)
1.237 moko 10938: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10939: darwin*)
10940: case $MACOSX_DEPLOYMENT_TARGET,$host in
10941: 10.[012],*|,*powerpc*-darwin[5-8]*)
10942: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10943: *)
10944: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10945: if test yes = "$lt_cv_support_no_fixup_chains"; then
10946: as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10947: fi
10948: ;;
1.128 moko 10949: esac
10950: ;;
10951: esac
1.237 moko 10952: if test yes = "$lt_cv_apple_cc_single_mod"; then
1.128 moko 10953: _lt_dar_single_mod='$single_module'
10954: fi
1.237 moko 10955: _lt_dar_needs_single_mod=no
10956: case $host_os in
10957: rhapsody* | darwin1.*)
10958: _lt_dar_needs_single_mod=yes ;;
10959: darwin*)
10960: # When targeting Mac OS X 10.4 (darwin 8) or later,
10961: # -single_module is the default and -multi_module is unsupported.
10962: # The toolchain on macOS 10.14 (darwin 18) and later cannot
10963: # target any OS version that needs -single_module.
10964: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10965: 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10966: _lt_dar_needs_single_mod=yes ;;
10967: esac
10968: ;;
10969: esac
10970: if test yes = "$lt_cv_ld_exported_symbols_list"; then
10971: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1.128 moko 10972: else
1.237 moko 10973: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1.128 moko 10974: fi
1.237 moko 10975: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1.128 moko 10976: _lt_dsymutil='~$DSYMUTIL $lib || :'
10977: else
10978: _lt_dsymutil=
10979: fi
10980: ;;
10981: esac
10982:
1.237 moko 10983: # func_munge_path_list VARIABLE PATH
10984: # -----------------------------------
10985: # VARIABLE is name of variable containing _space_ separated list of
10986: # directories to be munged by the contents of PATH, which is string
10987: # having a format:
10988: # "DIR[:DIR]:"
10989: # string "DIR[ DIR]" will be prepended to VARIABLE
10990: # ":DIR[:DIR]"
10991: # string "DIR[ DIR]" will be appended to VARIABLE
10992: # "DIRP[:DIRP]::[DIRA:]DIRA"
10993: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10994: # "DIRA[ DIRA]" will be appended to VARIABLE
10995: # "DIR[:DIR]"
10996: # VARIABLE will be replaced by "DIR[ DIR]"
10997: func_munge_path_list ()
10998: {
10999: case x$2 in
11000: x)
11001: ;;
11002: *:)
11003: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11004: ;;
11005: x:*)
11006: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11007: ;;
11008: *::*)
11009: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11010: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11011: ;;
11012: *)
11013: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11014: ;;
11015: esac
11016: }
11017:
11018: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11019: "
11020: if test "x$ac_cv_header_dlfcn_h" = xyes
11021: then :
11022: printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
1.150 moko 11023:
1.128 moko 11024: fi
11025:
11026:
11027:
11028:
1.237 moko 11029: func_stripname_cnf ()
1.128 moko 11030: {
1.237 moko 11031: case $2 in
11032: .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11033: *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
1.150 moko 11034: esac
11035: } # func_stripname_cnf
1.128 moko 11036:
11037:
11038:
11039:
11040:
11041: # Set options
11042: enable_dlopen=yes
11043: enable_win32_dll=yes
11044:
11045: case $host in
1.237 moko 11046: *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
1.128 moko 11047: if test -n "$ac_tool_prefix"; then
11048: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11049: set dummy ${ac_tool_prefix}as; ac_word=$2
1.237 moko 11050: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051: printf %s "checking for $ac_word... " >&6; }
11052: if test ${ac_cv_prog_AS+y}
11053: then :
11054: printf %s "(cached) " >&6
11055: else case e in #(
11056: e) if test -n "$AS"; then
1.128 moko 11057: ac_cv_prog_AS="$AS" # Let the user override the test.
11058: else
11059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060: for as_dir in $PATH
11061: do
11062: IFS=$as_save_IFS
1.237 moko 11063: case $as_dir in #(((
11064: '') as_dir=./ ;;
11065: */) ;;
11066: *) as_dir=$as_dir/ ;;
11067: esac
1.150 moko 11068: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11069: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11070: ac_cv_prog_AS="${ac_tool_prefix}as"
1.237 moko 11071: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11072: break 2
11073: fi
11074: done
1.150 moko 11075: done
11076: IFS=$as_save_IFS
1.128 moko 11077:
1.237 moko 11078: fi ;;
11079: esac
1.128 moko 11080: fi
11081: AS=$ac_cv_prog_AS
11082: if test -n "$AS"; then
1.237 moko 11083: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11084: printf "%s\n" "$AS" >&6; }
1.128 moko 11085: else
1.237 moko 11086: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087: printf "%s\n" "no" >&6; }
1.128 moko 11088: fi
11089:
1.150 moko 11090:
1.128 moko 11091: fi
11092: if test -z "$ac_cv_prog_AS"; then
11093: ac_ct_AS=$AS
11094: # Extract the first word of "as", so it can be a program name with args.
11095: set dummy as; ac_word=$2
1.237 moko 11096: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097: printf %s "checking for $ac_word... " >&6; }
11098: if test ${ac_cv_prog_ac_ct_AS+y}
11099: then :
11100: printf %s "(cached) " >&6
11101: else case e in #(
11102: e) if test -n "$ac_ct_AS"; then
1.128 moko 11103: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11104: else
11105: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106: for as_dir in $PATH
11107: do
11108: IFS=$as_save_IFS
1.237 moko 11109: case $as_dir in #(((
11110: '') as_dir=./ ;;
11111: */) ;;
11112: *) as_dir=$as_dir/ ;;
11113: esac
1.150 moko 11114: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11115: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11116: ac_cv_prog_ac_ct_AS="as"
1.237 moko 11117: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11118: break 2
11119: fi
11120: done
1.150 moko 11121: done
11122: IFS=$as_save_IFS
1.128 moko 11123:
1.237 moko 11124: fi ;;
11125: esac
1.128 moko 11126: fi
11127: ac_ct_AS=$ac_cv_prog_ac_ct_AS
11128: if test -n "$ac_ct_AS"; then
1.237 moko 11129: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11130: printf "%s\n" "$ac_ct_AS" >&6; }
1.128 moko 11131: else
1.237 moko 11132: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133: printf "%s\n" "no" >&6; }
1.128 moko 11134: fi
11135:
1.150 moko 11136: if test "x$ac_ct_AS" = x; then
11137: AS="false"
11138: else
11139: case $cross_compiling:$ac_tool_warned in
11140: yes:)
1.237 moko 11141: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11142: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 11143: ac_tool_warned=yes ;;
11144: esac
11145: AS=$ac_ct_AS
11146: fi
1.128 moko 11147: else
11148: AS="$ac_cv_prog_AS"
11149: fi
11150:
11151: if test -n "$ac_tool_prefix"; then
11152: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11153: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 moko 11154: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155: printf %s "checking for $ac_word... " >&6; }
11156: if test ${ac_cv_prog_DLLTOOL+y}
11157: then :
11158: printf %s "(cached) " >&6
11159: else case e in #(
11160: e) if test -n "$DLLTOOL"; then
1.128 moko 11161: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11162: else
11163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164: for as_dir in $PATH
11165: do
11166: IFS=$as_save_IFS
1.237 moko 11167: case $as_dir in #(((
11168: '') as_dir=./ ;;
11169: */) ;;
11170: *) as_dir=$as_dir/ ;;
11171: esac
1.150 moko 11172: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11173: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11174: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 moko 11175: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11176: break 2
11177: fi
11178: done
1.150 moko 11179: done
11180: IFS=$as_save_IFS
1.128 moko 11181:
1.237 moko 11182: fi ;;
11183: esac
1.128 moko 11184: fi
11185: DLLTOOL=$ac_cv_prog_DLLTOOL
11186: if test -n "$DLLTOOL"; then
1.237 moko 11187: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11188: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 11189: else
1.237 moko 11190: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191: printf "%s\n" "no" >&6; }
1.128 moko 11192: fi
11193:
1.150 moko 11194:
1.128 moko 11195: fi
11196: if test -z "$ac_cv_prog_DLLTOOL"; then
11197: ac_ct_DLLTOOL=$DLLTOOL
11198: # Extract the first word of "dlltool", so it can be a program name with args.
11199: set dummy dlltool; ac_word=$2
1.237 moko 11200: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201: printf %s "checking for $ac_word... " >&6; }
11202: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11203: then :
11204: printf %s "(cached) " >&6
11205: else case e in #(
11206: e) if test -n "$ac_ct_DLLTOOL"; then
1.128 moko 11207: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11208: else
11209: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210: for as_dir in $PATH
11211: do
11212: IFS=$as_save_IFS
1.237 moko 11213: case $as_dir in #(((
11214: '') as_dir=./ ;;
11215: */) ;;
11216: *) as_dir=$as_dir/ ;;
11217: esac
1.150 moko 11218: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11219: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11220: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.237 moko 11221: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11222: break 2
11223: fi
11224: done
1.150 moko 11225: done
11226: IFS=$as_save_IFS
1.128 moko 11227:
1.237 moko 11228: fi ;;
11229: esac
1.128 moko 11230: fi
11231: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11232: if test -n "$ac_ct_DLLTOOL"; then
1.237 moko 11233: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11234: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.128 moko 11235: else
1.237 moko 11236: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237: printf "%s\n" "no" >&6; }
1.128 moko 11238: fi
11239:
1.150 moko 11240: if test "x$ac_ct_DLLTOOL" = x; then
11241: DLLTOOL="false"
11242: else
11243: case $cross_compiling:$ac_tool_warned in
11244: yes:)
1.237 moko 11245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11246: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 11247: ac_tool_warned=yes ;;
11248: esac
11249: DLLTOOL=$ac_ct_DLLTOOL
11250: fi
1.128 moko 11251: else
11252: DLLTOOL="$ac_cv_prog_DLLTOOL"
11253: fi
11254:
11255: if test -n "$ac_tool_prefix"; then
11256: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11257: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.237 moko 11258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259: printf %s "checking for $ac_word... " >&6; }
11260: if test ${ac_cv_prog_OBJDUMP+y}
11261: then :
11262: printf %s "(cached) " >&6
11263: else case e in #(
11264: e) if test -n "$OBJDUMP"; then
1.128 moko 11265: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11266: else
11267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268: for as_dir in $PATH
11269: do
11270: IFS=$as_save_IFS
1.237 moko 11271: case $as_dir in #(((
11272: '') as_dir=./ ;;
11273: */) ;;
11274: *) as_dir=$as_dir/ ;;
11275: esac
1.150 moko 11276: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11277: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11278: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.237 moko 11279: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11280: break 2
11281: fi
11282: done
1.150 moko 11283: done
11284: IFS=$as_save_IFS
1.128 moko 11285:
1.237 moko 11286: fi ;;
11287: esac
1.128 moko 11288: fi
11289: OBJDUMP=$ac_cv_prog_OBJDUMP
11290: if test -n "$OBJDUMP"; then
1.237 moko 11291: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11292: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 11293: else
1.237 moko 11294: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295: printf "%s\n" "no" >&6; }
1.128 moko 11296: fi
11297:
1.150 moko 11298:
1.128 moko 11299: fi
11300: if test -z "$ac_cv_prog_OBJDUMP"; then
11301: ac_ct_OBJDUMP=$OBJDUMP
11302: # Extract the first word of "objdump", so it can be a program name with args.
11303: set dummy objdump; ac_word=$2
1.237 moko 11304: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305: printf %s "checking for $ac_word... " >&6; }
11306: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11307: then :
11308: printf %s "(cached) " >&6
11309: else case e in #(
11310: e) if test -n "$ac_ct_OBJDUMP"; then
1.128 moko 11311: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11312: else
11313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314: for as_dir in $PATH
11315: do
11316: IFS=$as_save_IFS
1.237 moko 11317: case $as_dir in #(((
11318: '') as_dir=./ ;;
11319: */) ;;
11320: *) as_dir=$as_dir/ ;;
11321: esac
1.150 moko 11322: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11323: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11324: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 moko 11325: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11326: break 2
11327: fi
11328: done
1.150 moko 11329: done
11330: IFS=$as_save_IFS
1.128 moko 11331:
1.237 moko 11332: fi ;;
11333: esac
1.128 moko 11334: fi
11335: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11336: if test -n "$ac_ct_OBJDUMP"; then
1.237 moko 11337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11338: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.128 moko 11339: else
1.237 moko 11340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341: printf "%s\n" "no" >&6; }
1.128 moko 11342: fi
11343:
1.150 moko 11344: if test "x$ac_ct_OBJDUMP" = x; then
11345: OBJDUMP="false"
11346: else
11347: case $cross_compiling:$ac_tool_warned in
11348: yes:)
1.237 moko 11349: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11350: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 11351: ac_tool_warned=yes ;;
11352: esac
11353: OBJDUMP=$ac_ct_OBJDUMP
11354: fi
1.128 moko 11355: else
11356: OBJDUMP="$ac_cv_prog_OBJDUMP"
11357: fi
11358:
11359: ;;
11360: esac
11361:
11362: test -z "$AS" && AS=as
11363:
11364:
11365:
11366:
11367:
11368: test -z "$DLLTOOL" && DLLTOOL=dlltool
11369:
11370:
11371:
11372:
11373:
11374: test -z "$OBJDUMP" && OBJDUMP=objdump
11375:
11376:
11377:
11378:
1.237 moko 11379: # Check whether --enable-pic was given.
11380: if test ${enable_pic+y}
11381: then :
11382: enableval=$enable_pic; lt_p=${PACKAGE-default}
11383: case $enableval in
11384: yes|no) pic_mode=$enableval ;;
11385: *)
11386: pic_mode=default
11387: # Look at the argument we got. We use all the common list separators.
11388: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11389: for lt_pkg in $enableval; do
11390: IFS=$lt_save_ifs
11391: if test "X$lt_pkg" = "X$lt_p"; then
11392: pic_mode=yes
11393: fi
11394: done
11395: IFS=$lt_save_ifs
11396: ;;
11397: esac
11398: else case e in #(
11399: e) # Check whether --with-pic was given.
11400: if test ${with_pic+y}
11401: then :
1.150 moko 11402: withval=$with_pic; lt_p=${PACKAGE-default}
1.237 moko 11403: case $withval in
11404: yes|no) pic_mode=$withval ;;
11405: *)
11406: pic_mode=default
11407: # Look at the argument we got. We use all the common list separators.
11408: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11409: for lt_pkg in $withval; do
11410: IFS=$lt_save_ifs
11411: if test "X$lt_pkg" = "X$lt_p"; then
11412: pic_mode=yes
11413: fi
11414: done
11415: IFS=$lt_save_ifs
11416: ;;
11417: esac
11418: else case e in #(
11419: e) pic_mode=no ;;
11420: esac
1.150 moko 11421: fi
11422:
1.237 moko 11423: ;;
11424: esac
11425: fi
1.145 moko 11426:
11427:
11428:
11429:
11430:
11431:
11432:
1.128 moko 11433:
11434:
11435:
11436:
1.150 moko 11437: # Check whether --enable-shared was given.
1.237 moko 11438: if test ${enable_shared+y}
11439: then :
1.150 moko 11440: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 11441: case $enableval in
11442: yes) enable_shared=yes ;;
11443: no) enable_shared=no ;;
11444: *)
11445: enable_shared=no
11446: # Look at the argument we got. We use all the common list separators.
1.237 moko 11447: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 11448: for pkg in $enableval; do
1.237 moko 11449: IFS=$lt_save_ifs
1.128 moko 11450: if test "X$pkg" = "X$p"; then
11451: enable_shared=yes
11452: fi
11453: done
1.237 moko 11454: IFS=$lt_save_ifs
1.128 moko 11455: ;;
11456: esac
1.237 moko 11457: else case e in #(
11458: e) enable_shared=yes ;;
11459: esac
1.150 moko 11460: fi
11461:
1.128 moko 11462:
11463:
11464:
11465:
11466:
11467:
11468:
11469:
1.150 moko 11470: # Check whether --enable-static was given.
1.237 moko 11471: if test ${enable_static+y}
11472: then :
1.150 moko 11473: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 11474: case $enableval in
11475: yes) enable_static=yes ;;
11476: no) enable_static=no ;;
11477: *)
11478: enable_static=no
11479: # Look at the argument we got. We use all the common list separators.
1.237 moko 11480: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.138 moko 11481: for pkg in $enableval; do
1.237 moko 11482: IFS=$lt_save_ifs
1.138 moko 11483: if test "X$pkg" = "X$p"; then
11484: enable_static=yes
11485: fi
11486: done
1.237 moko 11487: IFS=$lt_save_ifs
1.138 moko 11488: ;;
11489: esac
1.237 moko 11490: else case e in #(
11491: e) enable_static=yes ;;
11492: esac
1.150 moko 11493: fi
11494:
1.138 moko 11495:
11496:
11497:
11498:
11499:
11500:
11501:
1.128 moko 11502:
11503:
1.150 moko 11504: # Check whether --enable-fast-install was given.
1.237 moko 11505: if test ${enable_fast_install+y}
11506: then :
1.150 moko 11507: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 11508: case $enableval in
11509: yes) enable_fast_install=yes ;;
11510: no) enable_fast_install=no ;;
11511: *)
11512: enable_fast_install=no
11513: # Look at the argument we got. We use all the common list separators.
1.237 moko 11514: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 11515: for pkg in $enableval; do
1.237 moko 11516: IFS=$lt_save_ifs
1.128 moko 11517: if test "X$pkg" = "X$p"; then
11518: enable_fast_install=yes
11519: fi
11520: done
1.237 moko 11521: IFS=$lt_save_ifs
1.128 moko 11522: ;;
11523: esac
1.237 moko 11524: else case e in #(
11525: e) enable_fast_install=yes ;;
11526: esac
11527: fi
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536: shared_archive_member_spec=
11537: case $host,$enable_shared in
11538: power*-*-aix[5-9]*,yes)
11539: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11540: printf %s "checking which variant of shared library versioning to provide... " >&6; }
11541: # Check whether --enable-aix-soname was given.
11542: if test ${enable_aix_soname+y}
11543: then :
11544: enableval=$enable_aix_soname; case $enableval in
11545: aix|svr4|both)
11546: ;;
11547: *)
11548: as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11549: ;;
11550: esac
11551: lt_cv_with_aix_soname=$enable_aix_soname
11552: else case e in #(
11553: e) # Check whether --with-aix-soname was given.
11554: if test ${with_aix_soname+y}
11555: then :
11556: withval=$with_aix_soname; case $withval in
11557: aix|svr4|both)
11558: ;;
11559: *)
11560: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11561: ;;
11562: esac
11563: lt_cv_with_aix_soname=$with_aix_soname
11564: else case e in #(
11565: e) if test ${lt_cv_with_aix_soname+y}
11566: then :
11567: printf %s "(cached) " >&6
11568: else case e in #(
11569: e) lt_cv_with_aix_soname=aix ;;
11570: esac
11571: fi
11572: ;;
11573: esac
11574: fi
11575:
11576: enable_aix_soname=$lt_cv_with_aix_soname ;;
11577: esac
1.150 moko 11578: fi
11579:
1.237 moko 11580: with_aix_soname=$enable_aix_soname
11581: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11582: printf "%s\n" "$with_aix_soname" >&6; }
11583: if test aix != "$with_aix_soname"; then
11584: # For the AIX way of multilib, we name the shared archive member
11585: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11586: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11587: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11588: # the AIX toolchain works better with OBJECT_MODE set (default 32).
11589: if test 64 = "${OBJECT_MODE-32}"; then
11590: shared_archive_member_spec=shr_64
11591: else
11592: shared_archive_member_spec=shr
11593: fi
11594: fi
11595: ;;
11596: *)
11597: with_aix_soname=aix
11598: ;;
11599: esac
1.128 moko 11600:
11601:
11602:
11603:
11604:
11605:
11606:
11607:
11608:
11609:
11610: # This can be used to rebuild libtool when needed
1.237 moko 11611: LIBTOOL_DEPS=$ltmain
1.128 moko 11612:
11613: # Always use our own libtool.
11614: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11615:
11616:
11617:
11618:
11619:
11620:
11621:
11622:
11623:
11624:
11625:
11626:
11627:
11628:
11629:
11630:
11631:
11632:
11633:
11634:
11635:
11636:
11637:
11638:
11639:
11640:
11641:
11642:
11643:
11644:
11645: test -z "$LN_S" && LN_S="ln -s"
11646:
11647:
11648:
11649:
11650:
11651:
11652:
11653:
11654:
11655:
11656:
11657:
11658:
11659:
1.237 moko 11660: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 11661: setopt NO_GLOB_SUBST
11662: fi
11663:
1.237 moko 11664: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11665: printf %s "checking for objdir... " >&6; }
11666: if test ${lt_cv_objdir+y}
11667: then :
11668: printf %s "(cached) " >&6
11669: else case e in #(
11670: e) rm -f .libs 2>/dev/null
1.128 moko 11671: mkdir .libs 2>/dev/null
11672: if test -d .libs; then
11673: lt_cv_objdir=.libs
11674: else
11675: # MS-DOS does not allow filenames that begin with a dot.
11676: lt_cv_objdir=_libs
11677: fi
1.237 moko 11678: rmdir .libs 2>/dev/null ;;
11679: esac
1.128 moko 11680: fi
1.237 moko 11681: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11682: printf "%s\n" "$lt_cv_objdir" >&6; }
1.128 moko 11683: objdir=$lt_cv_objdir
11684:
11685:
11686:
11687:
11688:
1.237 moko 11689: printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1.128 moko 11690:
11691:
11692:
11693:
11694: case $host_os in
11695: aix3*)
11696: # AIX sometimes has problems with the GCC collect2 program. For some
11697: # reason, if we set the COLLECT_NAMES environment variable, the problems
11698: # vanish in a puff of smoke.
1.237 moko 11699: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 11700: COLLECT_NAMES=
11701: export COLLECT_NAMES
11702: fi
11703: ;;
11704: esac
11705:
11706: # Global variables:
11707: ofile=libtool
11708: can_build_shared=yes
11709:
1.237 moko 11710: # All known linkers require a '.a' archive for static linking (except MSVC and
11711: # ICC, which need '.lib').
1.128 moko 11712: libext=a
11713:
1.237 moko 11714: with_gnu_ld=$lt_cv_prog_gnu_ld
1.128 moko 11715:
1.237 moko 11716: old_CC=$CC
11717: old_CFLAGS=$CFLAGS
1.128 moko 11718:
11719: # Set sane defaults for various variables
11720: test -z "$CC" && CC=cc
11721: test -z "$LTCC" && LTCC=$CC
11722: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11723: test -z "$LD" && LD=ld
11724: test -z "$ac_objext" && ac_objext=o
11725:
1.237 moko 11726: func_cc_basename $compiler
11727: cc_basename=$func_cc_basename_result
1.128 moko 11728:
11729:
11730: # Only perform the check for file, if the check method requires it
11731: test -z "$MAGIC_CMD" && MAGIC_CMD=file
11732: case $deplibs_check_method in
11733: file_magic*)
11734: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.237 moko 11735: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11736: printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11737: if test ${lt_cv_path_MAGIC_CMD+y}
11738: then :
11739: printf %s "(cached) " >&6
11740: else case e in #(
11741: e) case $MAGIC_CMD in
1.128 moko 11742: [\\/*] | ?:[\\/]*)
1.237 moko 11743: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11744: ;;
11745: *)
1.237 moko 11746: lt_save_MAGIC_CMD=$MAGIC_CMD
11747: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11748: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11749: for ac_dir in $ac_dummy; do
1.237 moko 11750: IFS=$lt_save_ifs
1.128 moko 11751: test -z "$ac_dir" && ac_dir=.
1.237 moko 11752: if test -f "$ac_dir/${ac_tool_prefix}file"; then
11753: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
1.128 moko 11754: if test -n "$file_magic_test_file"; then
11755: case $deplibs_check_method in
11756: "file_magic "*)
11757: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 moko 11758: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11759: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11760: $EGREP "$file_magic_regex" > /dev/null; then
11761: :
11762: else
11763: cat <<_LT_EOF 1>&2
11764:
11765: *** Warning: the command libtool uses to detect shared libraries,
11766: *** $file_magic_cmd, produces output that libtool cannot recognize.
11767: *** The result is that libtool may fail to recognize shared libraries
11768: *** as such. This will affect the creation of libtool libraries that
11769: *** depend on shared libraries, but programs linked with such libtool
11770: *** libraries will work regardless of this problem. Nevertheless, you
11771: *** may want to report the problem to your system manager and/or to
11772: *** bug-libtool@gnu.org
11773:
11774: _LT_EOF
11775: fi ;;
11776: esac
11777: fi
11778: break
11779: fi
11780: done
1.237 moko 11781: IFS=$lt_save_ifs
11782: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11783: ;;
1.237 moko 11784: esac ;;
1.128 moko 11785: esac
11786: fi
11787:
1.237 moko 11788: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11789: if test -n "$MAGIC_CMD"; then
1.237 moko 11790: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11791: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11792: else
1.237 moko 11793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794: printf "%s\n" "no" >&6; }
1.128 moko 11795: fi
11796:
11797:
11798:
11799:
11800:
11801: if test -z "$lt_cv_path_MAGIC_CMD"; then
11802: if test -n "$ac_tool_prefix"; then
1.237 moko 11803: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11804: printf %s "checking for file... " >&6; }
11805: if test ${lt_cv_path_MAGIC_CMD+y}
11806: then :
11807: printf %s "(cached) " >&6
11808: else case e in #(
11809: e) case $MAGIC_CMD in
1.128 moko 11810: [\\/*] | ?:[\\/]*)
1.237 moko 11811: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11812: ;;
11813: *)
1.237 moko 11814: lt_save_MAGIC_CMD=$MAGIC_CMD
11815: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11816: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11817: for ac_dir in $ac_dummy; do
1.237 moko 11818: IFS=$lt_save_ifs
1.128 moko 11819: test -z "$ac_dir" && ac_dir=.
1.237 moko 11820: if test -f "$ac_dir/file"; then
11821: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
1.128 moko 11822: if test -n "$file_magic_test_file"; then
11823: case $deplibs_check_method in
11824: "file_magic "*)
11825: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 moko 11826: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11827: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11828: $EGREP "$file_magic_regex" > /dev/null; then
11829: :
11830: else
11831: cat <<_LT_EOF 1>&2
11832:
11833: *** Warning: the command libtool uses to detect shared libraries,
11834: *** $file_magic_cmd, produces output that libtool cannot recognize.
11835: *** The result is that libtool may fail to recognize shared libraries
11836: *** as such. This will affect the creation of libtool libraries that
11837: *** depend on shared libraries, but programs linked with such libtool
11838: *** libraries will work regardless of this problem. Nevertheless, you
11839: *** may want to report the problem to your system manager and/or to
11840: *** bug-libtool@gnu.org
11841:
11842: _LT_EOF
11843: fi ;;
11844: esac
11845: fi
11846: break
11847: fi
11848: done
1.237 moko 11849: IFS=$lt_save_ifs
11850: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11851: ;;
1.237 moko 11852: esac ;;
1.128 moko 11853: esac
11854: fi
11855:
1.237 moko 11856: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11857: if test -n "$MAGIC_CMD"; then
1.237 moko 11858: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11859: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11860: else
1.237 moko 11861: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862: printf "%s\n" "no" >&6; }
1.128 moko 11863: fi
11864:
11865:
11866: else
11867: MAGIC_CMD=:
11868: fi
11869: fi
11870:
11871: fi
11872: ;;
11873: esac
11874:
11875: # Use C for the default configuration in the libtool script
11876:
1.237 moko 11877: lt_save_CC=$CC
1.128 moko 11878: ac_ext=c
11879: ac_cpp='$CPP $CPPFLAGS'
11880: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11881: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11882: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11883:
11884:
11885: # Source file extension for C test sources.
11886: ac_ext=c
11887:
11888: # Object file extension for compiled C test sources.
11889: objext=o
11890: objext=$objext
11891:
11892: # Code to be used in simple compile tests
11893: lt_simple_compile_test_code="int some_variable = 0;"
11894:
11895: # Code to be used in simple link tests
1.237 moko 11896: lt_simple_link_test_code='int main(void){return(0);}'
1.128 moko 11897:
11898:
11899:
11900:
11901:
11902:
11903:
11904: # If no C compiler was specified, use CC.
11905: LTCC=${LTCC-"$CC"}
11906:
11907: # If no C compiler flags were specified, use CFLAGS.
11908: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11909:
11910: # Allow CC to be a program name with arguments.
11911: compiler=$CC
11912:
11913: # Save the default compiler, since it gets overwritten when the other
11914: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11915: compiler_DEFAULT=$CC
11916:
11917: # save warnings/boilerplate of simple test code
11918: ac_outfile=conftest.$ac_objext
11919: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11920: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11921: _lt_compiler_boilerplate=`cat conftest.err`
11922: $RM conftest*
11923:
11924: ac_outfile=conftest.$ac_objext
11925: echo "$lt_simple_link_test_code" >conftest.$ac_ext
11926: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11927: _lt_linker_boilerplate=`cat conftest.err`
11928: $RM -r conftest*
11929:
11930:
11931: ## CAVEAT EMPTOR:
11932: ## There is no encapsulation within the following macros, do not change
11933: ## the running order or otherwise move them around unless you know exactly
11934: ## what you are doing...
11935: if test -n "$compiler"; then
11936:
11937: lt_prog_compiler_no_builtin_flag=
11938:
1.237 moko 11939: if test yes = "$GCC"; then
1.128 moko 11940: case $cc_basename in
11941: nvcc*)
11942: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11943: *)
11944: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11945: esac
11946:
1.237 moko 11947: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11948: printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11949: if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11950: then :
11951: printf %s "(cached) " >&6
11952: else case e in #(
11953: e) lt_cv_prog_compiler_rtti_exceptions=no
1.128 moko 11954: ac_outfile=conftest.$ac_objext
11955: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 11956: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 11957: # Insert the option either (1) after the last *FLAGS variable, or
11958: # (2) before a word containing "conftest.", or (3) at the end.
11959: # Note that $ac_compile itself does not contain backslashes and begins
11960: # with a dollar sign (not a hyphen), so the echo should work correctly.
11961: # The option is referenced via a variable to avoid confusing sed.
11962: lt_compile=`echo "$ac_compile" | $SED \
11963: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11964: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11965: -e 's:$: $lt_compiler_flag:'`
11966: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11967: (eval "$lt_compile" 2>conftest.err)
11968: ac_status=$?
11969: cat conftest.err >&5
11970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971: if (exit $ac_status) && test -s "$ac_outfile"; then
11972: # The compiler can only warn and ignore the option if not recognized
11973: # So say no if there are warnings other than the usual output.
11974: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11975: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11976: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11977: lt_cv_prog_compiler_rtti_exceptions=yes
11978: fi
11979: fi
11980: $RM conftest*
1.237 moko 11981: ;;
11982: esac
1.128 moko 11983: fi
1.237 moko 11984: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11985: printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 11986:
1.237 moko 11987: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
1.128 moko 11988: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11989: else
11990: :
11991: fi
11992:
11993: fi
11994:
11995:
11996:
11997:
11998:
11999:
12000: lt_prog_compiler_wl=
12001: lt_prog_compiler_pic=
12002: lt_prog_compiler_static=
12003:
12004:
1.237 moko 12005: if test yes = "$GCC"; then
1.128 moko 12006: lt_prog_compiler_wl='-Wl,'
12007: lt_prog_compiler_static='-static'
12008:
12009: case $host_os in
12010: aix*)
12011: # All AIX code is PIC.
1.237 moko 12012: if test ia64 = "$host_cpu"; then
1.128 moko 12013: # AIX 5 now supports IA64 processor
12014: lt_prog_compiler_static='-Bstatic'
12015: fi
1.237 moko 12016: lt_prog_compiler_pic='-fPIC'
1.128 moko 12017: ;;
12018:
12019: amigaos*)
12020: case $host_cpu in
12021: powerpc)
12022: # see comment about AmigaOS4 .so support
12023: lt_prog_compiler_pic='-fPIC'
12024: ;;
12025: m68k)
12026: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 moko 12027: # adding the '-m68020' flag to GCC prevents building anything better,
12028: # like '-m68040'.
1.128 moko 12029: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12030: ;;
12031: esac
12032: ;;
12033:
12034: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12035: # PIC is the default for these OSes.
12036: ;;
12037:
1.237 moko 12038: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 12039: # This hack is so that the source file can tell whether it is being
12040: # built for inclusion in a dll (and should export symbols for example).
12041: # Although the cygwin gcc ignores -fPIC, still need this for old-style
12042: # (--disable-auto-import) libraries
12043: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 moko 12044: case $host_os in
12045: os2*)
12046: lt_prog_compiler_static='$wl-static'
12047: ;;
12048: esac
1.128 moko 12049: ;;
12050:
12051: darwin* | rhapsody*)
12052: # PIC is the default on this platform
12053: # Common symbols not allowed in MH_DYLIB files
12054: lt_prog_compiler_pic='-fno-common'
12055: ;;
12056:
12057: haiku*)
12058: # PIC is the default for Haiku.
12059: # The "-static" flag exists, but is broken.
12060: lt_prog_compiler_static=
12061: ;;
12062:
12063: hpux*)
12064: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12065: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12066: # sets the default TLS model and affects inlining.
12067: case $host_cpu in
12068: hppa*64*)
12069: # +Z the default
12070: ;;
12071: *)
12072: lt_prog_compiler_pic='-fPIC'
12073: ;;
12074: esac
12075: ;;
12076:
12077: interix[3-9]*)
12078: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079: # Instead, we relocate shared libraries at runtime.
12080: ;;
12081:
12082: msdosdjgpp*)
12083: # Just because we use GCC doesn't mean we suddenly get shared libraries
12084: # on systems that don't support them.
12085: lt_prog_compiler_can_build_shared=no
12086: enable_shared=no
12087: ;;
12088:
12089: *nto* | *qnx*)
12090: # QNX uses GNU C++, but need to define -shared option too, otherwise
12091: # it will coredump.
12092: lt_prog_compiler_pic='-fPIC -shared'
12093: ;;
12094:
12095: sysv4*MP*)
12096: if test -d /usr/nec; then
12097: lt_prog_compiler_pic=-Kconform_pic
12098: fi
12099: ;;
12100:
12101: *)
12102: lt_prog_compiler_pic='-fPIC'
12103: ;;
12104: esac
12105:
12106: case $cc_basename in
12107: nvcc*) # Cuda Compiler Driver 2.2
12108: lt_prog_compiler_wl='-Xlinker '
12109: if test -n "$lt_prog_compiler_pic"; then
12110: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12111: fi
12112: ;;
12113: esac
12114: else
12115: # PORTME Check for flag to pass linker flags through the system compiler.
12116: case $host_os in
12117: aix*)
12118: lt_prog_compiler_wl='-Wl,'
1.237 moko 12119: if test ia64 = "$host_cpu"; then
1.128 moko 12120: # AIX 5 now supports IA64 processor
12121: lt_prog_compiler_static='-Bstatic'
12122: else
12123: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12124: fi
12125: ;;
12126:
1.237 moko 12127: darwin* | rhapsody*)
12128: # PIC is the default on this platform
12129: # Common symbols not allowed in MH_DYLIB files
12130: lt_prog_compiler_pic='-fno-common'
12131: case $cc_basename in
12132: nagfor*)
12133: # NAG Fortran compiler
12134: lt_prog_compiler_wl='-Wl,-Wl,,'
12135: lt_prog_compiler_pic='-PIC'
12136: lt_prog_compiler_static='-Bstatic'
12137: ;;
12138: esac
12139: ;;
12140:
12141: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 12142: # This hack is so that the source file can tell whether it is being
12143: # built for inclusion in a dll (and should export symbols for example).
12144: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 moko 12145: case $host_os in
12146: os2*)
12147: lt_prog_compiler_static='$wl-static'
12148: ;;
12149: esac
1.128 moko 12150: ;;
12151:
12152: hpux9* | hpux10* | hpux11*)
12153: lt_prog_compiler_wl='-Wl,'
12154: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12155: # not for PA HP-UX.
12156: case $host_cpu in
12157: hppa*64*|ia64*)
12158: # +Z the default
12159: ;;
12160: *)
12161: lt_prog_compiler_pic='+Z'
12162: ;;
12163: esac
12164: # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.237 moko 12165: lt_prog_compiler_static='$wl-a ${wl}archive'
1.128 moko 12166: ;;
12167:
12168: irix5* | irix6* | nonstopux*)
12169: lt_prog_compiler_wl='-Wl,'
12170: # PIC (with -KPIC) is the default.
12171: lt_prog_compiler_static='-non_shared'
12172: ;;
12173:
1.237 moko 12174: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 12175: case $cc_basename in
1.237 moko 12176: # old Intel for x86_64, which still supported -KPIC.
1.128 moko 12177: ecc*)
12178: lt_prog_compiler_wl='-Wl,'
12179: lt_prog_compiler_pic='-KPIC'
12180: lt_prog_compiler_static='-static'
12181: ;;
1.237 moko 12182: *flang* | ftn | f18* | f95*)
12183: # Flang compiler.
12184: lt_prog_compiler_wl='-Wl,'
12185: lt_prog_compiler_pic='-fPIC'
12186: lt_prog_compiler_static='-static'
12187: ;;
12188: # flang / f18. f95 an alias for gfortran or flang on Debian
12189: flang* | f18* | f95*)
12190: lt_prog_compiler_wl='-Wl,'
12191: lt_prog_compiler_pic='-fPIC'
12192: lt_prog_compiler_static='-static'
12193: ;;
1.128 moko 12194: # icc used to be incompatible with GCC.
12195: # ICC 10 doesn't accept -KPIC any more.
12196: icc* | ifort*)
12197: lt_prog_compiler_wl='-Wl,'
12198: lt_prog_compiler_pic='-fPIC'
12199: lt_prog_compiler_static='-static'
12200: ;;
12201: # Lahey Fortran 8.1.
12202: lf95*)
12203: lt_prog_compiler_wl='-Wl,'
12204: lt_prog_compiler_pic='--shared'
12205: lt_prog_compiler_static='--static'
12206: ;;
12207: nagfor*)
12208: # NAG Fortran compiler
12209: lt_prog_compiler_wl='-Wl,-Wl,,'
12210: lt_prog_compiler_pic='-PIC'
12211: lt_prog_compiler_static='-Bstatic'
12212: ;;
1.237 moko 12213: tcc*)
12214: # Fabrice Bellard et al's Tiny C Compiler
12215: lt_prog_compiler_wl='-Wl,'
12216: lt_prog_compiler_pic='-fPIC'
12217: lt_prog_compiler_static='-static'
12218: ;;
1.128 moko 12219: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12220: # Portland Group compilers (*not* the Pentium gcc compiler,
12221: # which looks to be a dead project)
12222: lt_prog_compiler_wl='-Wl,'
12223: lt_prog_compiler_pic='-fpic'
12224: lt_prog_compiler_static='-Bstatic'
12225: ;;
12226: ccc*)
12227: lt_prog_compiler_wl='-Wl,'
12228: # All Alpha code is PIC.
12229: lt_prog_compiler_static='-non_shared'
12230: ;;
12231: xl* | bgxl* | bgf* | mpixl*)
12232: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12233: lt_prog_compiler_wl='-Wl,'
12234: lt_prog_compiler_pic='-qpic'
12235: lt_prog_compiler_static='-qstaticlink'
12236: ;;
12237: *)
1.237 moko 12238: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 12239: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12240: # Sun Fortran 8.3 passes all unrecognized flags to the linker
12241: lt_prog_compiler_pic='-KPIC'
12242: lt_prog_compiler_static='-Bstatic'
12243: lt_prog_compiler_wl=''
12244: ;;
12245: *Sun\ F* | *Sun*Fortran*)
12246: lt_prog_compiler_pic='-KPIC'
12247: lt_prog_compiler_static='-Bstatic'
12248: lt_prog_compiler_wl='-Qoption ld '
12249: ;;
12250: *Sun\ C*)
12251: # Sun C 5.9
12252: lt_prog_compiler_pic='-KPIC'
12253: lt_prog_compiler_static='-Bstatic'
12254: lt_prog_compiler_wl='-Wl,'
12255: ;;
12256: *Intel*\ [CF]*Compiler*)
12257: lt_prog_compiler_wl='-Wl,'
12258: lt_prog_compiler_pic='-fPIC'
12259: lt_prog_compiler_static='-static'
12260: ;;
12261: *Portland\ Group*)
12262: lt_prog_compiler_wl='-Wl,'
12263: lt_prog_compiler_pic='-fpic'
12264: lt_prog_compiler_static='-Bstatic'
12265: ;;
12266: esac
12267: ;;
12268: esac
12269: ;;
12270:
12271: newsos6)
12272: lt_prog_compiler_pic='-KPIC'
12273: lt_prog_compiler_static='-Bstatic'
12274: ;;
12275:
1.237 moko 12276: *-mlibc)
12277: lt_prog_compiler_wl='-Wl,'
12278: lt_prog_compiler_pic='-fPIC'
12279: lt_prog_compiler_static='-static'
12280: ;;
12281:
1.128 moko 12282: *nto* | *qnx*)
12283: # QNX uses GNU C++, but need to define -shared option too, otherwise
12284: # it will coredump.
12285: lt_prog_compiler_pic='-fPIC -shared'
12286: ;;
12287:
12288: osf3* | osf4* | osf5*)
12289: lt_prog_compiler_wl='-Wl,'
12290: # All OSF/1 code is PIC.
12291: lt_prog_compiler_static='-non_shared'
12292: ;;
12293:
12294: rdos*)
12295: lt_prog_compiler_static='-non_shared'
12296: ;;
12297:
1.237 moko 12298: serenity*)
12299: ;;
12300:
1.128 moko 12301: solaris*)
12302: lt_prog_compiler_pic='-KPIC'
12303: lt_prog_compiler_static='-Bstatic'
12304: case $cc_basename in
12305: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12306: lt_prog_compiler_wl='-Qoption ld ';;
12307: *)
12308: lt_prog_compiler_wl='-Wl,';;
12309: esac
12310: ;;
12311:
12312: sunos4*)
12313: lt_prog_compiler_wl='-Qoption ld '
12314: lt_prog_compiler_pic='-PIC'
12315: lt_prog_compiler_static='-Bstatic'
12316: ;;
12317:
12318: sysv4 | sysv4.2uw2* | sysv4.3*)
12319: lt_prog_compiler_wl='-Wl,'
12320: lt_prog_compiler_pic='-KPIC'
12321: lt_prog_compiler_static='-Bstatic'
12322: ;;
12323:
12324: sysv4*MP*)
1.237 moko 12325: if test -d /usr/nec; then
1.128 moko 12326: lt_prog_compiler_pic='-Kconform_pic'
12327: lt_prog_compiler_static='-Bstatic'
12328: fi
12329: ;;
12330:
12331: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12332: lt_prog_compiler_wl='-Wl,'
12333: lt_prog_compiler_pic='-KPIC'
12334: lt_prog_compiler_static='-Bstatic'
12335: ;;
12336:
12337: unicos*)
12338: lt_prog_compiler_wl='-Wl,'
12339: lt_prog_compiler_can_build_shared=no
12340: ;;
12341:
12342: uts4*)
12343: lt_prog_compiler_pic='-pic'
12344: lt_prog_compiler_static='-Bstatic'
12345: ;;
12346:
12347: *)
12348: lt_prog_compiler_can_build_shared=no
12349: ;;
12350: esac
12351: fi
12352:
12353: case $host_os in
1.237 moko 12354: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 12355: *djgpp*)
12356: lt_prog_compiler_pic=
12357: ;;
12358: *)
12359: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12360: ;;
12361: esac
12362:
1.237 moko 12363: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12364: printf %s "checking for $compiler option to produce PIC... " >&6; }
12365: if test ${lt_cv_prog_compiler_pic+y}
12366: then :
12367: printf %s "(cached) " >&6
12368: else case e in #(
12369: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12370: esac
1.128 moko 12371: fi
1.237 moko 12372: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12373: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 12374: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12375:
12376: #
12377: # Check to make sure the PIC flag actually works.
12378: #
12379: if test -n "$lt_prog_compiler_pic"; then
1.237 moko 12380: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12381: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12382: if test ${lt_cv_prog_compiler_pic_works+y}
12383: then :
12384: printf %s "(cached) " >&6
12385: else case e in #(
12386: e) lt_cv_prog_compiler_pic_works=no
1.128 moko 12387: ac_outfile=conftest.$ac_objext
12388: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 12389: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 12390: # Insert the option either (1) after the last *FLAGS variable, or
12391: # (2) before a word containing "conftest.", or (3) at the end.
12392: # Note that $ac_compile itself does not contain backslashes and begins
12393: # with a dollar sign (not a hyphen), so the echo should work correctly.
12394: # The option is referenced via a variable to avoid confusing sed.
12395: lt_compile=`echo "$ac_compile" | $SED \
12396: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12397: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12398: -e 's:$: $lt_compiler_flag:'`
12399: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12400: (eval "$lt_compile" 2>conftest.err)
12401: ac_status=$?
12402: cat conftest.err >&5
12403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404: if (exit $ac_status) && test -s "$ac_outfile"; then
12405: # The compiler can only warn and ignore the option if not recognized
12406: # So say no if there are warnings other than the usual output.
12407: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12408: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12409: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12410: lt_cv_prog_compiler_pic_works=yes
12411: fi
12412: fi
12413: $RM conftest*
1.237 moko 12414: ;;
12415: esac
1.128 moko 12416: fi
1.237 moko 12417: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12418: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 12419:
1.237 moko 12420: if test yes = "$lt_cv_prog_compiler_pic_works"; then
1.128 moko 12421: case $lt_prog_compiler_pic in
12422: "" | " "*) ;;
12423: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12424: esac
12425: else
12426: lt_prog_compiler_pic=
12427: lt_prog_compiler_can_build_shared=no
12428: fi
12429:
12430: fi
12431:
12432:
12433:
12434:
12435:
12436:
12437:
12438:
12439:
12440:
12441:
12442: #
12443: # Check to make sure the static flag actually works.
12444: #
12445: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.237 moko 12446: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12447: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12448: if test ${lt_cv_prog_compiler_static_works+y}
12449: then :
12450: printf %s "(cached) " >&6
12451: else case e in #(
12452: e) lt_cv_prog_compiler_static_works=no
12453: save_LDFLAGS=$LDFLAGS
1.128 moko 12454: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12455: echo "$lt_simple_link_test_code" > conftest.$ac_ext
12456: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12457: # The linker can only warn and ignore the option if not recognized
12458: # So say no if there are warnings
12459: if test -s conftest.err; then
12460: # Append any errors to the config.log.
12461: cat conftest.err 1>&5
12462: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12463: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12464: if diff conftest.exp conftest.er2 >/dev/null; then
12465: lt_cv_prog_compiler_static_works=yes
12466: fi
12467: else
12468: lt_cv_prog_compiler_static_works=yes
12469: fi
12470: fi
12471: $RM -r conftest*
1.237 moko 12472: LDFLAGS=$save_LDFLAGS
12473: ;;
12474: esac
1.128 moko 12475: fi
1.237 moko 12476: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12477: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 12478:
1.237 moko 12479: if test yes = "$lt_cv_prog_compiler_static_works"; then
1.128 moko 12480: :
12481: else
12482: lt_prog_compiler_static=
12483: fi
12484:
12485:
12486:
12487:
12488:
12489:
12490:
1.237 moko 12491: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12492: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12493: if test ${lt_cv_prog_compiler_c_o+y}
12494: then :
12495: printf %s "(cached) " >&6
12496: else case e in #(
12497: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12498: $RM -r conftest 2>/dev/null
12499: mkdir conftest
12500: cd conftest
12501: mkdir out
12502: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12503:
12504: lt_compiler_flag="-o out/conftest2.$ac_objext"
12505: # Insert the option either (1) after the last *FLAGS variable, or
12506: # (2) before a word containing "conftest.", or (3) at the end.
12507: # Note that $ac_compile itself does not contain backslashes and begins
12508: # with a dollar sign (not a hyphen), so the echo should work correctly.
12509: lt_compile=`echo "$ac_compile" | $SED \
12510: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12511: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12512: -e 's:$: $lt_compiler_flag:'`
12513: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12514: (eval "$lt_compile" 2>out/conftest.err)
12515: ac_status=$?
12516: cat out/conftest.err >&5
12517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12519: then
12520: # The compiler can only warn and ignore the option if not recognized
12521: # So say no if there are warnings
12522: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12523: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12524: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12525: lt_cv_prog_compiler_c_o=yes
12526: fi
12527: fi
12528: chmod u+w . 2>&5
12529: $RM conftest*
12530: # SGI C++ compiler will create directory out/ii_files/ for
12531: # template instantiation
12532: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12533: $RM out/* && rmdir out
12534: cd ..
12535: $RM -r conftest
12536: $RM conftest*
1.237 moko 12537: ;;
12538: esac
1.128 moko 12539: fi
1.237 moko 12540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12541: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12542:
12543:
12544:
12545:
12546:
12547:
1.237 moko 12548: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12549: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12550: if test ${lt_cv_prog_compiler_c_o+y}
12551: then :
12552: printf %s "(cached) " >&6
12553: else case e in #(
12554: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12555: $RM -r conftest 2>/dev/null
12556: mkdir conftest
12557: cd conftest
12558: mkdir out
12559: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12560:
12561: lt_compiler_flag="-o out/conftest2.$ac_objext"
12562: # Insert the option either (1) after the last *FLAGS variable, or
12563: # (2) before a word containing "conftest.", or (3) at the end.
12564: # Note that $ac_compile itself does not contain backslashes and begins
12565: # with a dollar sign (not a hyphen), so the echo should work correctly.
12566: lt_compile=`echo "$ac_compile" | $SED \
12567: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12568: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12569: -e 's:$: $lt_compiler_flag:'`
12570: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12571: (eval "$lt_compile" 2>out/conftest.err)
12572: ac_status=$?
12573: cat out/conftest.err >&5
12574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12576: then
12577: # The compiler can only warn and ignore the option if not recognized
12578: # So say no if there are warnings
12579: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12580: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12581: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12582: lt_cv_prog_compiler_c_o=yes
12583: fi
12584: fi
12585: chmod u+w . 2>&5
12586: $RM conftest*
12587: # SGI C++ compiler will create directory out/ii_files/ for
12588: # template instantiation
12589: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12590: $RM out/* && rmdir out
12591: cd ..
12592: $RM -r conftest
12593: $RM conftest*
1.237 moko 12594: ;;
12595: esac
1.128 moko 12596: fi
1.237 moko 12597: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12598: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12599:
12600:
12601:
12602:
1.237 moko 12603: hard_links=nottested
12604: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1.128 moko 12605: # do not overwrite the value of need_locks provided by the user
1.237 moko 12606: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12607: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 12608: hard_links=yes
12609: $RM conftest*
12610: ln conftest.a conftest.b 2>/dev/null && hard_links=no
12611: touch conftest.a
12612: ln conftest.a conftest.b 2>&5 || hard_links=no
12613: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 moko 12614: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12615: printf "%s\n" "$hard_links" >&6; }
12616: if test no = "$hard_links"; then
12617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12618: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 12619: need_locks=warn
12620: fi
12621: else
12622: need_locks=no
12623: fi
12624:
12625:
12626:
12627:
12628:
12629:
1.237 moko 12630: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12631: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 12632:
12633: runpath_var=
12634: allow_undefined_flag=
12635: always_export_symbols=no
12636: archive_cmds=
12637: archive_expsym_cmds=
12638: compiler_needs_object=no
12639: enable_shared_with_static_runtimes=no
12640: export_dynamic_flag_spec=
12641: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12642: hardcode_automatic=no
12643: hardcode_direct=no
12644: hardcode_direct_absolute=no
12645: hardcode_libdir_flag_spec=
12646: hardcode_libdir_separator=
12647: hardcode_minus_L=no
12648: hardcode_shlibpath_var=unsupported
12649: inherit_rpath=no
12650: link_all_deplibs=unknown
12651: module_cmds=
12652: module_expsym_cmds=
12653: old_archive_from_new_cmds=
12654: old_archive_from_expsyms_cmds=
12655: thread_safe_flag_spec=
12656: whole_archive_flag_spec=
12657: # include_expsyms should be a list of space-separated symbols to be *always*
12658: # included in the symbol list
12659: include_expsyms=
12660: # exclude_expsyms can be an extended regexp of symbols to exclude
1.237 moko 12661: # it will be wrapped by ' (' and ')$', so one must not match beginning or
12662: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12663: # as well as any symbol that contains 'd'.
1.128 moko 12664: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12665: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12666: # platforms (ab)use it in PIC code, but their linkers get confused if
12667: # the symbol is explicitly referenced. Since portable code cannot
12668: # rely on this symbol name, it's probably fine to never include it in
12669: # preloaded symbol tables.
12670: # Exclude shared library initialization/finalization symbols.
12671: extract_expsyms_cmds=
12672:
12673: case $host_os in
1.237 moko 12674: cygwin* | mingw* | windows* | pw32* | cegcc*)
12675: # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.128 moko 12676: # When not using gcc, we currently assume that we are using
1.237 moko 12677: # Microsoft Visual C++ or Intel C++ Compiler.
12678: if test yes != "$GCC"; then
1.128 moko 12679: with_gnu_ld=no
12680: fi
12681: ;;
12682: interix*)
1.237 moko 12683: # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.128 moko 12684: with_gnu_ld=yes
12685: ;;
1.237 moko 12686: linux* | k*bsd*-gnu | gnu*)
12687: link_all_deplibs=no
1.128 moko 12688: ;;
12689: esac
12690:
12691: ld_shlibs=yes
12692:
12693: # On some targets, GNU ld is compatible enough with the native linker
12694: # that we're better off using the native interface for both.
12695: lt_use_gnu_ld_interface=no
1.237 moko 12696: if test yes = "$with_gnu_ld"; then
1.128 moko 12697: case $host_os in
12698: aix*)
12699: # The AIX port of GNU ld has always aspired to compatibility
12700: # with the native linker. However, as the warning in the GNU ld
12701: # block says, versions before 2.19.5* couldn't really create working
12702: # shared libraries, regardless of the interface used.
12703: case `$LD -v 2>&1` in
12704: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12705: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12706: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12707: *)
12708: lt_use_gnu_ld_interface=yes
12709: ;;
12710: esac
12711: ;;
12712: *)
12713: lt_use_gnu_ld_interface=yes
12714: ;;
12715: esac
12716: fi
12717:
1.237 moko 12718: if test yes = "$lt_use_gnu_ld_interface"; then
1.128 moko 12719: # If archive_cmds runs LD, not CC, wlarc should be empty
1.237 moko 12720: wlarc='$wl'
1.128 moko 12721:
12722: # Set some defaults for GNU ld with shared library support. These
12723: # are reset later if shared libraries are not supported. Putting them
12724: # here allows them to be overridden if necessary.
12725: runpath_var=LD_RUN_PATH
1.237 moko 12726: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12727: export_dynamic_flag_spec='$wl--export-dynamic'
1.128 moko 12728: # ancient GNU ld didn't support --whole-archive et. al.
12729: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
1.237 moko 12730: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 12731: else
12732: whole_archive_flag_spec=
12733: fi
12734: supports_anon_versioning=no
1.237 moko 12735: case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1.128 moko 12736: *GNU\ gold*) supports_anon_versioning=yes ;;
12737: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12738: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12739: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12740: *\ 2.11.*) ;; # other 2.11 versions
12741: *) supports_anon_versioning=yes ;;
12742: esac
12743:
12744: # See if GNU ld supports shared libraries.
12745: case $host_os in
12746: aix[3-9]*)
12747: # On AIX/PPC, the GNU linker is very broken
1.237 moko 12748: if test ia64 != "$host_cpu"; then
1.128 moko 12749: ld_shlibs=no
12750: cat <<_LT_EOF 1>&2
12751:
12752: *** Warning: the GNU linker, at least up to release 2.19, is reported
12753: *** to be unable to reliably create shared libraries on AIX.
12754: *** Therefore, libtool is disabling shared libraries support. If you
12755: *** really care for shared libraries, you may want to install binutils
12756: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12757: *** You will then need to restart the configuration process.
12758:
12759: _LT_EOF
12760: fi
12761: ;;
12762:
12763: amigaos*)
12764: case $host_cpu in
12765: powerpc)
12766: # see comment about AmigaOS4 .so support
1.237 moko 12767: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12768: archive_expsym_cmds=''
12769: ;;
12770: m68k)
12771: 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)'
12772: hardcode_libdir_flag_spec='-L$libdir'
12773: hardcode_minus_L=yes
12774: ;;
12775: esac
12776: ;;
12777:
12778: beos*)
12779: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12780: allow_undefined_flag=unsupported
12781: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12782: # support --undefined. This deserves some investigation. FIXME
1.237 moko 12783: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12784: else
12785: ld_shlibs=no
12786: fi
12787: ;;
12788:
1.237 moko 12789: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 12790: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12791: # as there is no search path for DLLs.
12792: hardcode_libdir_flag_spec='-L$libdir'
1.237 moko 12793: export_dynamic_flag_spec='$wl--export-all-symbols'
1.128 moko 12794: allow_undefined_flag=unsupported
12795: always_export_symbols=no
12796: enable_shared_with_static_runtimes=yes
12797: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12798: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.237 moko 12799: file_list_spec='@'
1.128 moko 12800:
12801: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 moko 12802: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12803: # If the export-symbols file already is a .def file, use it as
12804: # is; otherwise, prepend EXPORTS...
12805: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12806: cp $export_symbols $output_objdir/$soname.def;
12807: else
12808: echo EXPORTS > $output_objdir/$soname.def;
12809: cat $export_symbols >> $output_objdir/$soname.def;
12810: fi~
12811: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.128 moko 12812: else
12813: ld_shlibs=no
12814: fi
12815: ;;
12816:
12817: haiku*)
1.237 moko 12818: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12819: link_all_deplibs=no
12820: ;;
12821:
12822: os2*)
12823: hardcode_libdir_flag_spec='-L$libdir'
12824: hardcode_minus_L=yes
12825: allow_undefined_flag=unsupported
12826: shrext_cmds=.dll
12827: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12828: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12829: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12830: $ECHO EXPORTS >> $output_objdir/$libname.def~
12831: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12832: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12833: emximp -o $lib $output_objdir/$libname.def'
12834: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12835: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12836: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12837: $ECHO EXPORTS >> $output_objdir/$libname.def~
12838: prefix_cmds="$SED"~
12839: if test EXPORTS = "`$SED 1q $export_symbols`"; then
12840: prefix_cmds="$prefix_cmds -e 1d";
12841: fi~
12842: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12843: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12844: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12845: emximp -o $lib $output_objdir/$libname.def'
12846: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12847: enable_shared_with_static_runtimes=yes
12848: file_list_spec='@'
1.128 moko 12849: ;;
12850:
12851: interix[3-9]*)
12852: hardcode_direct=no
12853: hardcode_shlibpath_var=no
1.237 moko 12854: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12855: export_dynamic_flag_spec='$wl-E'
1.128 moko 12856: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12857: # Instead, shared libraries are loaded at an image base (0x10000000 by
12858: # default) and relocated if they conflict, which is a slow very memory
12859: # consuming and fragmenting process. To avoid this, we pick a random,
12860: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12861: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 moko 12862: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12863: 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'
1.128 moko 12864: ;;
12865:
12866: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12867: tmp_diet=no
1.237 moko 12868: if test linux-dietlibc = "$host_os"; then
1.128 moko 12869: case $cc_basename in
12870: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12871: esac
12872: fi
12873: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
1.237 moko 12874: && test no = "$tmp_diet"
1.128 moko 12875: then
12876: tmp_addflag=' $pic_flag'
12877: tmp_sharedflag='-shared'
12878: case $cc_basename,$host_cpu in
12879: pgcc*) # Portland Group C compiler
1.237 moko 12880: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 12881: tmp_addflag=' $pic_flag'
12882: ;;
12883: pgf77* | pgf90* | pgf95* | pgfortran*)
12884: # Portland Group f77 and f90 compilers
1.237 moko 12885: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 12886: tmp_addflag=' $pic_flag -Mnomain' ;;
12887: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12888: tmp_addflag=' -i_dynamic' ;;
12889: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12890: tmp_addflag=' -i_dynamic -nofor_main' ;;
12891: ifc* | ifort*) # Intel Fortran compiler
12892: tmp_addflag=' -nofor_main' ;;
12893: lf95*) # Lahey Fortran 8.1
12894: whole_archive_flag_spec=
12895: tmp_sharedflag='--shared' ;;
1.237 moko 12896: nagfor*) # NAGFOR 5.3
12897: tmp_sharedflag='-Wl,-shared' ;;
1.128 moko 12898: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12899: tmp_sharedflag='-qmkshrobj'
12900: tmp_addflag= ;;
12901: nvcc*) # Cuda Compiler Driver 2.2
1.237 moko 12902: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 12903: compiler_needs_object=yes
12904: ;;
12905: esac
1.237 moko 12906: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 12907: *Sun\ C*) # Sun C 5.9
1.237 moko 12908: whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 12909: compiler_needs_object=yes
12910: tmp_sharedflag='-G' ;;
12911: *Sun\ F*) # Sun Fortran 8.3
12912: tmp_sharedflag='-G' ;;
12913: esac
1.237 moko 12914: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12915:
1.237 moko 12916: if test yes = "$supports_anon_versioning"; then
1.128 moko 12917: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 12918: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12919: echo "local: *; };" >> $output_objdir/$libname.ver~
12920: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.128 moko 12921: fi
12922:
12923: case $cc_basename in
1.237 moko 12924: tcc*)
12925: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12926: export_dynamic_flag_spec='-rdynamic'
12927: ;;
1.128 moko 12928: xlf* | bgf* | bgxlf* | mpixlf*)
12929: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12930: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.237 moko 12931: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 12932: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.237 moko 12933: if test yes = "$supports_anon_versioning"; then
1.128 moko 12934: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 12935: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12936: echo "local: *; };" >> $output_objdir/$libname.ver~
12937: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.128 moko 12938: fi
12939: ;;
12940: esac
12941: else
12942: ld_shlibs=no
12943: fi
12944: ;;
12945:
1.237 moko 12946: *-mlibc)
12947: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12948: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12949: ;;
12950:
12951: netbsd* | netbsdelf*-gnu)
1.128 moko 12952: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12953: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12954: wlarc=
12955: else
1.237 moko 12956: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12957: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12958: fi
12959: ;;
12960:
12961: solaris*)
12962: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12963: ld_shlibs=no
12964: cat <<_LT_EOF 1>&2
12965:
12966: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12967: *** create shared libraries on Solaris systems. Therefore, libtool
12968: *** is disabling shared libraries support. We urge you to upgrade GNU
12969: *** binutils to release 2.9.1 or newer. Another option is to modify
12970: *** your PATH or compiler configuration so that the native linker is
12971: *** used, and then restart.
12972:
12973: _LT_EOF
12974: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 12975: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12976: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12977: else
12978: ld_shlibs=no
12979: fi
12980: ;;
12981:
12982: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12983: case `$LD -v 2>&1` in
12984: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12985: ld_shlibs=no
12986: cat <<_LT_EOF 1>&2
12987:
1.237 moko 12988: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1.128 moko 12989: *** reliably create shared libraries on SCO systems. Therefore, libtool
12990: *** is disabling shared libraries support. We urge you to upgrade GNU
12991: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12992: *** your PATH or compiler configuration so that the native linker is
12993: *** used, and then restart.
12994:
12995: _LT_EOF
12996: ;;
12997: *)
12998: # For security reasons, it is highly recommended that you always
12999: # use absolute paths for naming shared libraries, and exclude the
13000: # DT_RUNPATH tag from executables and libraries. But doing so
13001: # requires that you compile everything twice, which is a pain.
13002: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 13003: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13004: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13005: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 13006: else
13007: ld_shlibs=no
13008: fi
13009: ;;
13010: esac
13011: ;;
13012:
13013: sunos4*)
13014: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13015: wlarc=
13016: hardcode_direct=yes
13017: hardcode_shlibpath_var=no
13018: ;;
13019:
13020: *)
13021: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 13022: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13023: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 13024: else
13025: ld_shlibs=no
13026: fi
13027: ;;
13028: esac
13029:
1.237 moko 13030: if test no = "$ld_shlibs"; then
1.128 moko 13031: runpath_var=
13032: hardcode_libdir_flag_spec=
13033: export_dynamic_flag_spec=
13034: whole_archive_flag_spec=
13035: fi
13036: else
13037: # PORTME fill in a description of your system's linker (not GNU ld)
13038: case $host_os in
13039: aix3*)
13040: allow_undefined_flag=unsupported
13041: always_export_symbols=yes
13042: 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'
13043: # Note: this linker hardcodes the directories in LIBPATH if there
13044: # are no directories specified by -L.
13045: hardcode_minus_L=yes
1.237 moko 13046: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1.128 moko 13047: # Neither direct hardcoding nor static linking is supported with a
13048: # broken collect2.
13049: hardcode_direct=unsupported
13050: fi
13051: ;;
13052:
13053: aix[4-9]*)
1.237 moko 13054: if test ia64 = "$host_cpu"; then
1.128 moko 13055: # On IA64, the linker does run time linking by default, so we don't
13056: # have to do anything special.
13057: aix_use_runtimelinking=no
13058: exp_sym_flag='-Bexport'
1.237 moko 13059: no_entry_flag=
1.128 moko 13060: else
13061: # If we're using GNU nm, then we don't want the "-C" option.
1.237 moko 13062: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13063: # Without the "-l" option, or with the "-B" option, AIX nm treats
13064: # weak defined symbols like other global defined symbols, whereas
13065: # GNU nm marks them as "W".
13066: # While the 'weak' keyword is ignored in the Export File, we need
13067: # it in the Import File for the 'aix-soname' feature, so we have
13068: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 13069: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 moko 13070: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.128 moko 13071: else
1.237 moko 13072: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.128 moko 13073: fi
13074: aix_use_runtimelinking=no
13075:
13076: # Test if we are trying to use run time linking or normal
13077: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 moko 13078: # have runtime linking enabled, and use it for executables.
13079: # For shared libraries, we enable/disable runtime linking
13080: # depending on the kind of the shared library created -
13081: # when "with_aix_soname,aix_use_runtimelinking" is:
13082: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13083: # "aix,yes" lib.so shared, rtl:yes, for executables
13084: # lib.a static archive
13085: # "both,no" lib.so.V(shr.o) shared, rtl:yes
13086: # lib.a(lib.so.V) shared, rtl:no, for executables
13087: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13088: # lib.a(lib.so.V) shared, rtl:no
13089: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13090: # lib.a static archive
1.128 moko 13091: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13092: for ld_flag in $LDFLAGS; do
1.237 moko 13093: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1.128 moko 13094: aix_use_runtimelinking=yes
13095: break
13096: fi
13097: done
1.237 moko 13098: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13099: # With aix-soname=svr4, we create the lib.so.V shared archives only,
13100: # so we don't have lib.a shared libs to link our executables.
13101: # We have to force runtime linking in this case.
13102: aix_use_runtimelinking=yes
13103: LDFLAGS="$LDFLAGS -Wl,-brtl"
13104: fi
1.128 moko 13105: ;;
13106: esac
13107:
13108: exp_sym_flag='-bexport'
13109: no_entry_flag='-bnoentry'
13110: fi
13111:
13112: # When large executables or shared objects are built, AIX ld can
13113: # have problems creating the table of contents. If linking a library
13114: # or program results in "error TOC overflow" add -mminimal-toc to
13115: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13116: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13117:
13118: archive_cmds=''
13119: hardcode_direct=yes
13120: hardcode_direct_absolute=yes
13121: hardcode_libdir_separator=':'
13122: link_all_deplibs=yes
1.237 moko 13123: file_list_spec='$wl-f,'
13124: case $with_aix_soname,$aix_use_runtimelinking in
13125: aix,*) ;; # traditional, no import file
13126: svr4,* | *,yes) # use import file
13127: # The Import File defines what to hardcode.
13128: hardcode_direct=no
13129: hardcode_direct_absolute=no
13130: ;;
13131: esac
1.128 moko 13132:
1.237 moko 13133: if test yes = "$GCC"; then
1.128 moko 13134: case $host_os in aix4.[012]|aix4.[012].*)
13135: # We only want to do this on AIX 4.2 and lower, the check
13136: # below for broken collect2 doesn't work under 4.3+
1.237 moko 13137: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 13138: if test -f "$collect2name" &&
13139: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13140: then
13141: # We have reworked collect2
13142: :
13143: else
13144: # We have old collect2
13145: hardcode_direct=unsupported
13146: # It fails to find uninstalled libraries when the uninstalled
13147: # path is not listed in the libpath. Setting hardcode_minus_L
13148: # to unsupported forces relinking
13149: hardcode_minus_L=yes
13150: hardcode_libdir_flag_spec='-L$libdir'
13151: hardcode_libdir_separator=
13152: fi
13153: ;;
13154: esac
13155: shared_flag='-shared'
1.237 moko 13156: if test yes = "$aix_use_runtimelinking"; then
13157: shared_flag="$shared_flag "'$wl-G'
1.128 moko 13158: fi
1.237 moko 13159: # Need to ensure runtime linking is disabled for the traditional
13160: # shared library, or the linker may eventually find shared libraries
13161: # /with/ Import File - we do not want to mix them.
13162: shared_flag_aix='-shared'
13163: shared_flag_svr4='-shared $wl-G'
1.128 moko 13164: else
13165: # not using gcc
1.237 moko 13166: if test ia64 = "$host_cpu"; then
1.128 moko 13167: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13168: # chokes on -Wl,-G. The following line is correct:
13169: shared_flag='-G'
13170: else
1.237 moko 13171: if test yes = "$aix_use_runtimelinking"; then
13172: shared_flag='$wl-G'
1.128 moko 13173: else
1.237 moko 13174: shared_flag='$wl-bM:SRE'
1.128 moko 13175: fi
1.237 moko 13176: shared_flag_aix='$wl-bM:SRE'
13177: shared_flag_svr4='$wl-G'
1.128 moko 13178: fi
13179: fi
13180:
1.237 moko 13181: export_dynamic_flag_spec='$wl-bexpall'
1.128 moko 13182: # It seems that -bexpall does not export symbols beginning with
13183: # underscore (_), so it is better to generate a list of symbols to export.
13184: always_export_symbols=yes
1.237 moko 13185: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 13186: # Warning - without using the other runtime loading flags (-brtl),
13187: # -berok will link without error, but may produce a broken library.
13188: allow_undefined_flag='-berok'
13189: # Determine the default libpath from the value encoded in an
13190: # empty executable.
1.237 moko 13191: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 13192: aix_libpath=$lt_cv_aix_libpath
13193: else
1.237 moko 13194: if test ${lt_cv_aix_libpath_+y}
13195: then :
13196: printf %s "(cached) " >&6
13197: else case e in #(
13198: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13199: /* end confdefs.h. */
13200:
13201: int
1.237 moko 13202: main (void)
1.128 moko 13203: {
13204:
13205: ;
13206: return 0;
13207: }
13208: _ACEOF
1.237 moko 13209: if ac_fn_c_try_link "$LINENO"
13210: then :
1.128 moko 13211:
13212: lt_aix_libpath_sed='
13213: /Import File Strings/,/^$/ {
13214: /^0/ {
13215: s/^0 *\([^ ]*\) *$/\1/
13216: p
13217: }
13218: }'
13219: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13220: # Check for a 64-bit object if we didn't find anything.
13221: if test -z "$lt_cv_aix_libpath_"; then
13222: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13223: fi
13224: fi
1.237 moko 13225: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13226: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13227: if test -z "$lt_cv_aix_libpath_"; then
1.237 moko 13228: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 13229: fi
1.237 moko 13230: ;;
13231: esac
1.128 moko 13232: fi
13233:
13234: aix_libpath=$lt_cv_aix_libpath_
13235: fi
13236:
1.237 moko 13237: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13238: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.128 moko 13239: else
1.237 moko 13240: if test ia64 = "$host_cpu"; then
13241: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 13242: allow_undefined_flag="-z nodefs"
1.237 moko 13243: 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"
1.128 moko 13244: else
13245: # Determine the default libpath from the value encoded in an
13246: # empty executable.
1.237 moko 13247: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 13248: aix_libpath=$lt_cv_aix_libpath
13249: else
1.237 moko 13250: if test ${lt_cv_aix_libpath_+y}
13251: then :
13252: printf %s "(cached) " >&6
13253: else case e in #(
13254: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13255: /* end confdefs.h. */
13256:
13257: int
1.237 moko 13258: main (void)
1.128 moko 13259: {
13260:
13261: ;
13262: return 0;
13263: }
13264: _ACEOF
1.237 moko 13265: if ac_fn_c_try_link "$LINENO"
13266: then :
1.128 moko 13267:
13268: lt_aix_libpath_sed='
13269: /Import File Strings/,/^$/ {
13270: /^0/ {
13271: s/^0 *\([^ ]*\) *$/\1/
13272: p
13273: }
13274: }'
13275: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13276: # Check for a 64-bit object if we didn't find anything.
13277: if test -z "$lt_cv_aix_libpath_"; then
13278: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13279: fi
13280: fi
1.237 moko 13281: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13282: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13283: if test -z "$lt_cv_aix_libpath_"; then
1.237 moko 13284: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 13285: fi
1.237 moko 13286: ;;
13287: esac
1.128 moko 13288: fi
13289:
13290: aix_libpath=$lt_cv_aix_libpath_
13291: fi
13292:
1.237 moko 13293: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 13294: # Warning - without using the other run time loading flags,
13295: # -berok will link without error, but may produce a broken library.
1.237 moko 13296: no_undefined_flag=' $wl-bernotok'
13297: allow_undefined_flag=' $wl-berok'
13298: if test yes = "$with_gnu_ld"; then
1.128 moko 13299: # We only use this code for GNU lds that support --whole-archive.
1.237 moko 13300: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 13301: else
13302: # Exported symbols can be pulled into shared objects from archives
13303: whole_archive_flag_spec='$convenience'
13304: fi
13305: archive_cmds_need_lc=yes
1.237 moko 13306: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13307: # -brtl affects multiple linker settings, -berok does not and is overridden later
13308: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13309: if test svr4 != "$with_aix_soname"; then
13310: # This is similar to how AIX traditionally builds its shared libraries.
13311: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13312: fi
13313: if test aix != "$with_aix_soname"; then
13314: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13315: else
13316: # used by -dlpreopen to get the symbols
13317: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13318: fi
13319: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
1.128 moko 13320: fi
13321: fi
13322: ;;
13323:
13324: amigaos*)
13325: case $host_cpu in
13326: powerpc)
13327: # see comment about AmigaOS4 .so support
1.237 moko 13328: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 13329: archive_expsym_cmds=''
13330: ;;
13331: m68k)
13332: 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)'
13333: hardcode_libdir_flag_spec='-L$libdir'
13334: hardcode_minus_L=yes
13335: ;;
13336: esac
13337: ;;
13338:
13339: bsdi[45]*)
13340: export_dynamic_flag_spec=-rdynamic
13341: ;;
13342:
1.237 moko 13343: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 13344: # When not using gcc, we currently assume that we are using
1.237 moko 13345: # Microsoft Visual C++ or Intel C++ Compiler.
1.128 moko 13346: # hardcode_libdir_flag_spec is actually meaningless, as there is
13347: # no search path for DLLs.
13348: case $cc_basename in
1.237 moko 13349: cl* | icl*)
13350: # Native MSVC or ICC
1.128 moko 13351: hardcode_libdir_flag_spec=' '
13352: allow_undefined_flag=unsupported
13353: always_export_symbols=yes
13354: file_list_spec='@'
13355: # Tell ltmain to make .lib files, not .a files.
13356: libext=lib
13357: # Tell ltmain to make .dll files, not .so files.
1.237 moko 13358: shrext_cmds=.dll
1.128 moko 13359: # FIXME: Setting linknames here is a bad hack.
1.237 moko 13360: archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13361: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13362: cp "$export_symbols" "$output_objdir/$soname.def";
13363: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13364: else
13365: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13366: fi~
13367: $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13368: linknames='
1.128 moko 13369: # The linker will not automatically build a static lib if we build a DLL.
13370: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13371: enable_shared_with_static_runtimes=yes
13372: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13373: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13374: # Don't use ranlib
13375: old_postinstall_cmds='chmod 644 $oldlib'
13376: postlink_cmds='lt_outputfile="@OUTPUT@"~
1.237 moko 13377: lt_tool_outputfile="@TOOL_OUTPUT@"~
13378: case $lt_outputfile in
13379: *.exe|*.EXE) ;;
13380: *)
13381: lt_outputfile=$lt_outputfile.exe
13382: lt_tool_outputfile=$lt_tool_outputfile.exe
13383: ;;
13384: esac~
13385: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13386: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13387: $RM "$lt_outputfile.manifest";
13388: fi'
1.128 moko 13389: ;;
13390: *)
1.237 moko 13391: # Assume MSVC and ICC wrapper
1.128 moko 13392: hardcode_libdir_flag_spec=' '
13393: allow_undefined_flag=unsupported
13394: # Tell ltmain to make .lib files, not .a files.
13395: libext=lib
13396: # Tell ltmain to make .dll files, not .so files.
1.237 moko 13397: shrext_cmds=.dll
1.128 moko 13398: # FIXME: Setting linknames here is a bad hack.
13399: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13400: # The linker will automatically build a .lib file if we build a DLL.
13401: old_archive_from_new_cmds='true'
13402: # FIXME: Should let the user specify the lib program.
13403: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13404: enable_shared_with_static_runtimes=yes
13405: ;;
13406: esac
13407: ;;
13408:
13409: darwin* | rhapsody*)
13410:
13411:
13412: archive_cmds_need_lc=no
13413: hardcode_direct=no
13414: hardcode_automatic=yes
13415: hardcode_shlibpath_var=unsupported
1.237 moko 13416: if test yes = "$lt_cv_ld_force_load"; then
13417: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.128 moko 13418:
13419: else
13420: whole_archive_flag_spec=''
13421: fi
13422: link_all_deplibs=yes
1.237 moko 13423: allow_undefined_flag=$_lt_dar_allow_undefined
1.128 moko 13424: case $cc_basename in
1.237 moko 13425: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 13426: *) _lt_dar_can_shared=$GCC ;;
13427: esac
1.237 moko 13428: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 13429: output_verbose_link_cmd=func_echo_all
1.237 moko 13430: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13431: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13432: 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"
13433: 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"
1.128 moko 13434:
13435: else
13436: ld_shlibs=no
13437: fi
13438:
13439: ;;
13440:
13441: dgux*)
13442: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13443: hardcode_libdir_flag_spec='-L$libdir'
13444: hardcode_shlibpath_var=no
13445: ;;
13446:
13447: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13448: # support. Future versions do this automatically, but an explicit c++rt0.o
13449: # does not break anything, and helps significantly (at the cost of a little
13450: # extra space).
13451: freebsd2.2*)
13452: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13453: hardcode_libdir_flag_spec='-R$libdir'
13454: hardcode_direct=yes
13455: hardcode_shlibpath_var=no
13456: ;;
13457:
13458: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13459: freebsd2.*)
13460: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13461: hardcode_direct=yes
13462: hardcode_minus_L=yes
13463: hardcode_shlibpath_var=no
13464: ;;
13465:
13466: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.237 moko 13467: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 13468: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13469: hardcode_libdir_flag_spec='-R$libdir'
13470: hardcode_direct=yes
13471: hardcode_shlibpath_var=no
13472: ;;
13473:
13474: hpux9*)
1.237 moko 13475: if test yes = "$GCC"; then
13476: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 13477: else
1.237 moko 13478: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 13479: fi
1.237 moko 13480: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13481: hardcode_libdir_separator=:
13482: hardcode_direct=yes
13483:
13484: # hardcode_minus_L: Not really in the search PATH,
13485: # but as the default location of the library.
13486: hardcode_minus_L=yes
1.237 moko 13487: export_dynamic_flag_spec='$wl-E'
1.128 moko 13488: ;;
13489:
13490: hpux10*)
1.237 moko 13491: if test yes,no = "$GCC,$with_gnu_ld"; then
13492: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13493: else
13494: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13495: fi
1.237 moko 13496: if test no = "$with_gnu_ld"; then
13497: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13498: hardcode_libdir_separator=:
13499: hardcode_direct=yes
13500: hardcode_direct_absolute=yes
1.237 moko 13501: export_dynamic_flag_spec='$wl-E'
1.128 moko 13502: # hardcode_minus_L: Not really in the search PATH,
13503: # but as the default location of the library.
13504: hardcode_minus_L=yes
13505: fi
13506: ;;
13507:
13508: hpux11*)
1.237 moko 13509: if test yes,no = "$GCC,$with_gnu_ld"; then
1.128 moko 13510: case $host_cpu in
13511: hppa*64*)
1.237 moko 13512: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13513: ;;
13514: ia64*)
1.237 moko 13515: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13516: ;;
13517: *)
1.237 moko 13518: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13519: ;;
13520: esac
13521: else
13522: case $host_cpu in
13523: hppa*64*)
1.237 moko 13524: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13525: ;;
13526: ia64*)
1.237 moko 13527: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13528: ;;
13529: *)
13530:
13531: # Older versions of the 11.00 compiler do not understand -b yet
13532: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.237 moko 13533: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13534: printf %s "checking if $CC understands -b... " >&6; }
13535: if test ${lt_cv_prog_compiler__b+y}
13536: then :
13537: printf %s "(cached) " >&6
13538: else case e in #(
13539: e) lt_cv_prog_compiler__b=no
13540: save_LDFLAGS=$LDFLAGS
1.128 moko 13541: LDFLAGS="$LDFLAGS -b"
13542: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13543: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13544: # The linker can only warn and ignore the option if not recognized
13545: # So say no if there are warnings
13546: if test -s conftest.err; then
13547: # Append any errors to the config.log.
13548: cat conftest.err 1>&5
13549: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13550: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551: if diff conftest.exp conftest.er2 >/dev/null; then
13552: lt_cv_prog_compiler__b=yes
13553: fi
13554: else
13555: lt_cv_prog_compiler__b=yes
13556: fi
13557: fi
13558: $RM -r conftest*
1.237 moko 13559: LDFLAGS=$save_LDFLAGS
13560: ;;
13561: esac
1.128 moko 13562: fi
1.237 moko 13563: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13564: printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 13565:
1.237 moko 13566: if test yes = "$lt_cv_prog_compiler__b"; then
13567: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13568: else
13569: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13570: fi
13571:
13572: ;;
13573: esac
13574: fi
1.237 moko 13575: if test no = "$with_gnu_ld"; then
13576: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13577: hardcode_libdir_separator=:
13578:
13579: case $host_cpu in
13580: hppa*64*|ia64*)
13581: hardcode_direct=no
13582: hardcode_shlibpath_var=no
13583: ;;
13584: *)
13585: hardcode_direct=yes
13586: hardcode_direct_absolute=yes
1.237 moko 13587: export_dynamic_flag_spec='$wl-E'
1.128 moko 13588:
13589: # hardcode_minus_L: Not really in the search PATH,
13590: # but as the default location of the library.
13591: hardcode_minus_L=yes
13592: ;;
13593: esac
13594: fi
13595: ;;
13596:
13597: irix5* | irix6* | nonstopux*)
1.237 moko 13598: if test yes = "$GCC"; then
13599: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 13600: # Try to use the -exported_symbol ld option, if it does not
13601: # work, assume that -exports_file does not work either and
13602: # implicitly export all symbols.
13603: # This should be the same for all languages, so no per-tag cache variable.
1.237 moko 13604: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13605: printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13606: if test ${lt_cv_irix_exported_symbol+y}
13607: then :
13608: printf %s "(cached) " >&6
13609: else case e in #(
13610: e) save_LDFLAGS=$LDFLAGS
13611: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1.150 moko 13612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13613: /* end confdefs.h. */
13614: int foo (void) { return 0; }
13615: _ACEOF
1.237 moko 13616: if ac_fn_c_try_link "$LINENO"
13617: then :
1.128 moko 13618: lt_cv_irix_exported_symbol=yes
1.237 moko 13619: else case e in #(
13620: e) lt_cv_irix_exported_symbol=no ;;
13621: esac
1.128 moko 13622: fi
1.237 moko 13623: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13624: conftest$ac_exeext conftest.$ac_ext
1.237 moko 13625: LDFLAGS=$save_LDFLAGS ;;
13626: esac
1.128 moko 13627: fi
1.237 moko 13628: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13629: printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13630: if test yes = "$lt_cv_irix_exported_symbol"; then
13631: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
1.128 moko 13632: fi
1.237 moko 13633: link_all_deplibs=no
1.128 moko 13634: else
1.237 moko 13635: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13636: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
1.128 moko 13637: fi
13638: archive_cmds_need_lc='no'
1.237 moko 13639: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13640: hardcode_libdir_separator=:
13641: inherit_rpath=yes
13642: link_all_deplibs=yes
13643: ;;
13644:
1.237 moko 13645: linux*)
13646: case $cc_basename in
13647: tcc*)
13648: # Fabrice Bellard et al's Tiny C Compiler
13649: ld_shlibs=yes
13650: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13652: ;;
13653: esac
13654: ;;
13655:
13656: *-mlibc)
13657: ;;
13658:
13659: netbsd* | netbsdelf*-gnu)
1.128 moko 13660: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13661: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13662: else
13663: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13664: fi
13665: hardcode_libdir_flag_spec='-R$libdir'
13666: hardcode_direct=yes
13667: hardcode_shlibpath_var=no
13668: ;;
13669:
13670: newsos6)
13671: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13672: hardcode_direct=yes
1.237 moko 13673: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13674: hardcode_libdir_separator=:
13675: hardcode_shlibpath_var=no
13676: ;;
13677:
13678: *nto* | *qnx*)
13679: ;;
13680:
13681: openbsd*)
13682: if test -f /usr/libexec/ld.so; then
13683: hardcode_direct=yes
13684: hardcode_shlibpath_var=no
13685: hardcode_direct_absolute=yes
1.237 moko 13686: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.128 moko 13687: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.237 moko 13688: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13689: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13690: export_dynamic_flag_spec='$wl-E'
1.128 moko 13691: else
1.237 moko 13692: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13693: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1.128 moko 13694: fi
13695: else
13696: ld_shlibs=no
13697: fi
13698: ;;
13699:
13700: os2*)
13701: hardcode_libdir_flag_spec='-L$libdir'
13702: hardcode_minus_L=yes
13703: allow_undefined_flag=unsupported
1.237 moko 13704: shrext_cmds=.dll
13705: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13706: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13707: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13708: $ECHO EXPORTS >> $output_objdir/$libname.def~
13709: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13710: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13711: emximp -o $lib $output_objdir/$libname.def'
13712: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13713: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13714: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13715: $ECHO EXPORTS >> $output_objdir/$libname.def~
13716: prefix_cmds="$SED"~
13717: if test EXPORTS = "`$SED 1q $export_symbols`"; then
13718: prefix_cmds="$prefix_cmds -e 1d";
13719: fi~
13720: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13721: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13722: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13723: emximp -o $lib $output_objdir/$libname.def'
13724: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13725: enable_shared_with_static_runtimes=yes
13726: file_list_spec='@'
1.128 moko 13727: ;;
13728:
13729: osf3*)
1.237 moko 13730: if test yes = "$GCC"; then
13731: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13732: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 13733: else
13734: allow_undefined_flag=' -expect_unresolved \*'
1.237 moko 13735: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.128 moko 13736: fi
13737: archive_cmds_need_lc='no'
1.237 moko 13738: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13739: hardcode_libdir_separator=:
13740: ;;
13741:
13742: osf4* | osf5*) # as osf3* with the addition of -msym flag
1.237 moko 13743: if test yes = "$GCC"; then
13744: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13745: archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13746: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13747: else
13748: allow_undefined_flag=' -expect_unresolved \*'
1.237 moko 13749: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.128 moko 13750: 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~
1.237 moko 13751: $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
1.128 moko 13752:
13753: # Both c and cxx compiler support -rpath directly
13754: hardcode_libdir_flag_spec='-rpath $libdir'
13755: fi
13756: archive_cmds_need_lc='no'
13757: hardcode_libdir_separator=:
13758: ;;
13759:
1.237 moko 13760: serenity*)
13761: ;;
13762:
1.128 moko 13763: solaris*)
13764: no_undefined_flag=' -z defs'
1.237 moko 13765: if test yes = "$GCC"; then
13766: wlarc='$wl'
13767: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13768: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13769: $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.128 moko 13770: else
13771: case `$CC -V 2>&1` in
13772: *"Compilers 5.0"*)
13773: wlarc=''
1.237 moko 13774: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.128 moko 13775: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13776: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1.128 moko 13777: ;;
13778: *)
1.237 moko 13779: wlarc='$wl'
13780: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13781: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13782: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.128 moko 13783: ;;
13784: esac
13785: fi
13786: hardcode_libdir_flag_spec='-R$libdir'
13787: hardcode_shlibpath_var=no
13788: case $host_os in
13789: solaris2.[0-5] | solaris2.[0-5].*) ;;
13790: *)
13791: # The compiler driver will combine and reorder linker options,
1.237 moko 13792: # but understands '-z linker_flag'. GCC discards it without '$wl',
1.128 moko 13793: # but is careful enough not to reorder.
13794: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.237 moko 13795: if test yes = "$GCC"; then
13796: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 13797: else
13798: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13799: fi
13800: ;;
13801: esac
13802: link_all_deplibs=yes
13803: ;;
13804:
13805: sunos4*)
1.237 moko 13806: if test sequent = "$host_vendor"; then
1.128 moko 13807: # Use $CC to link under sequent, because it throws in some extra .o
13808: # files that make .init and .fini sections work.
1.237 moko 13809: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13810: else
13811: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13812: fi
13813: hardcode_libdir_flag_spec='-L$libdir'
13814: hardcode_direct=yes
13815: hardcode_minus_L=yes
13816: hardcode_shlibpath_var=no
13817: ;;
13818:
13819: sysv4)
13820: case $host_vendor in
13821: sni)
13822: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13823: hardcode_direct=yes # is this really true???
13824: ;;
13825: siemens)
13826: ## LD is ld it makes a PLAMLIB
13827: ## CC just makes a GrossModule.
13828: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13829: reload_cmds='$CC -r -o $output$reload_objs'
13830: hardcode_direct=no
13831: ;;
13832: motorola)
13833: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13835: ;;
13836: esac
13837: runpath_var='LD_RUN_PATH'
13838: hardcode_shlibpath_var=no
13839: ;;
13840:
13841: sysv4.3*)
13842: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843: hardcode_shlibpath_var=no
13844: export_dynamic_flag_spec='-Bexport'
13845: ;;
13846:
13847: sysv4*MP*)
13848: if test -d /usr/nec; then
13849: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850: hardcode_shlibpath_var=no
13851: runpath_var=LD_RUN_PATH
13852: hardcode_runpath_var=yes
13853: ld_shlibs=yes
13854: fi
13855: ;;
13856:
13857: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 moko 13858: no_undefined_flag='$wl-z,text'
1.128 moko 13859: archive_cmds_need_lc=no
13860: hardcode_shlibpath_var=no
13861: runpath_var='LD_RUN_PATH'
13862:
1.237 moko 13863: if test yes = "$GCC"; then
13864: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13866: else
1.237 moko 13867: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13869: fi
13870: ;;
13871:
13872: sysv5* | sco3.2v5* | sco5v6*)
1.237 moko 13873: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 13874: # link with -lc, and that would cause any symbols used from libc to
13875: # always be unresolved, which means just about no library would
13876: # ever link correctly. If we're not using GNU ld we use -z text
13877: # though, which does catch some bad symbols but isn't as heavy-handed
13878: # as -z defs.
1.237 moko 13879: no_undefined_flag='$wl-z,text'
13880: allow_undefined_flag='$wl-z,nodefs'
1.128 moko 13881: archive_cmds_need_lc=no
13882: hardcode_shlibpath_var=no
1.237 moko 13883: hardcode_libdir_flag_spec='$wl-R,$libdir'
1.128 moko 13884: hardcode_libdir_separator=':'
13885: link_all_deplibs=yes
1.237 moko 13886: export_dynamic_flag_spec='$wl-Bexport'
1.128 moko 13887: runpath_var='LD_RUN_PATH'
13888:
1.237 moko 13889: if test yes = "$GCC"; then
13890: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13891: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13892: else
1.237 moko 13893: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13894: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13895: fi
13896: ;;
13897:
13898: uts4*)
13899: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13900: hardcode_libdir_flag_spec='-L$libdir'
13901: hardcode_shlibpath_var=no
13902: ;;
13903:
13904: *)
13905: ld_shlibs=no
13906: ;;
13907: esac
13908:
1.237 moko 13909: if test sni = "$host_vendor"; then
1.128 moko 13910: case $host in
13911: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.237 moko 13912: export_dynamic_flag_spec='$wl-Blargedynsym'
1.128 moko 13913: ;;
13914: esac
13915: fi
13916: fi
13917:
1.237 moko 13918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13919: printf "%s\n" "$ld_shlibs" >&6; }
13920: test no = "$ld_shlibs" && can_build_shared=no
1.128 moko 13921:
13922: with_gnu_ld=$with_gnu_ld
13923:
13924:
13925:
13926:
13927:
13928:
13929:
13930:
13931:
13932:
13933:
13934:
13935:
13936:
13937:
13938: #
13939: # Do we need to explicitly link libc?
13940: #
13941: case "x$archive_cmds_need_lc" in
13942: x|xyes)
13943: # Assume -lc should be added
13944: archive_cmds_need_lc=yes
13945:
1.237 moko 13946: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 13947: case $archive_cmds in
13948: *'~'*)
13949: # FIXME: we may have to deal with multi-command sequences.
13950: ;;
13951: '$CC '*)
13952: # Test whether the compiler implicitly links with -lc since on some
13953: # systems, -lgcc has to come before -lc. If gcc already passes -lc
13954: # to ld, don't add -lc before -lgcc.
1.237 moko 13955: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13956: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13957: if test ${lt_cv_archive_cmds_need_lc+y}
13958: then :
13959: printf %s "(cached) " >&6
13960: else case e in #(
13961: e) $RM conftest*
1.128 moko 13962: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13963:
1.150 moko 13964: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 13965: (eval $ac_compile) 2>&5
13966: ac_status=$?
1.237 moko 13967: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13968: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 13969: soname=conftest
13970: lib=conftest
13971: libobjs=conftest.$ac_objext
13972: deplibs=
13973: wl=$lt_prog_compiler_wl
13974: pic_flag=$lt_prog_compiler_pic
13975: compiler_flags=-v
13976: linker_flags=-v
13977: verstring=
13978: output_objdir=.
13979: libname=conftest
13980: lt_save_allow_undefined_flag=$allow_undefined_flag
13981: allow_undefined_flag=
1.150 moko 13982: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 13983: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13984: ac_status=$?
1.237 moko 13985: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13986: test $ac_status = 0; }
1.128 moko 13987: then
13988: lt_cv_archive_cmds_need_lc=no
13989: else
13990: lt_cv_archive_cmds_need_lc=yes
13991: fi
13992: allow_undefined_flag=$lt_save_allow_undefined_flag
13993: else
13994: cat conftest.err 1>&5
13995: fi
13996: $RM conftest*
1.237 moko 13997: ;;
13998: esac
1.128 moko 13999: fi
1.237 moko 14000: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14001: printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 14002: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14003: ;;
14004: esac
14005: fi
14006: ;;
14007: esac
14008:
14009:
14010:
14011:
14012:
14013:
14014:
14015:
14016:
14017:
14018:
14019:
14020:
14021:
14022:
14023:
14024:
14025:
14026:
14027:
14028:
14029:
14030:
14031:
14032:
14033:
14034:
14035:
14036:
14037:
14038:
14039:
14040:
14041:
14042:
14043:
14044:
14045:
14046:
14047:
14048:
14049:
14050:
14051:
14052:
14053:
14054:
14055:
14056:
14057:
14058:
14059:
14060:
14061:
14062:
14063:
14064:
14065:
14066:
14067:
14068:
14069:
14070:
14071:
14072:
14073:
14074:
14075:
14076:
14077:
14078:
14079:
14080:
14081:
14082:
14083:
14084:
14085:
14086:
14087:
14088:
14089:
14090:
14091:
14092:
14093:
14094:
14095:
14096:
14097:
14098:
14099:
14100:
14101:
14102:
14103:
14104:
14105:
14106:
14107:
14108:
14109:
14110:
14111:
14112:
14113:
14114:
14115:
14116:
14117:
14118:
14119:
14120:
14121:
14122:
14123:
14124:
14125:
14126:
14127:
14128:
14129:
14130:
14131:
14132:
14133:
14134:
14135:
14136:
14137:
14138:
14139:
14140:
14141:
14142:
14143:
14144:
14145:
14146:
14147:
14148:
14149:
14150:
14151:
14152:
14153:
14154:
14155:
14156:
14157:
14158:
14159:
1.237 moko 14160: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14161: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 14162:
1.237 moko 14163: if test yes = "$GCC"; then
1.128 moko 14164: case $host_os in
1.237 moko 14165: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14166: *) lt_awk_arg='/^libraries:/' ;;
1.128 moko 14167: esac
14168: case $host_os in
1.237 moko 14169: mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14170: *) lt_sed_strip_eq='s|=/|/|g' ;;
1.128 moko 14171: esac
14172: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14173: case $lt_search_path_spec in
14174: *\;*)
14175: # if the path contains ";" then we assume it to be the separator
14176: # otherwise default to the standard path separator (i.e. ":") - it is
14177: # assumed that no part of a normal pathname contains ";" but that should
14178: # okay in the real world where ";" in dirpaths is itself problematic.
14179: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14180: ;;
14181: *)
14182: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14183: ;;
14184: esac
14185: # Ok, now we have the path, separated by spaces, we can step through it
1.237 moko 14186: # and add multilib dir if necessary...
1.128 moko 14187: lt_tmp_lt_search_path_spec=
1.237 moko 14188: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14189: # ...but if some path component already ends with the multilib dir we assume
14190: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14191: case "$lt_multi_os_dir; $lt_search_path_spec " in
14192: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14193: lt_multi_os_dir=
14194: ;;
14195: esac
1.128 moko 14196: for lt_sys_path in $lt_search_path_spec; do
1.237 moko 14197: if test -d "$lt_sys_path$lt_multi_os_dir"; then
14198: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14199: elif test -n "$lt_multi_os_dir"; then
1.128 moko 14200: test -d "$lt_sys_path" && \
14201: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14202: fi
14203: done
14204: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.237 moko 14205: BEGIN {RS = " "; FS = "/|\n";} {
14206: lt_foo = "";
14207: lt_count = 0;
1.128 moko 14208: for (lt_i = NF; lt_i > 0; lt_i--) {
14209: if ($lt_i != "" && $lt_i != ".") {
14210: if ($lt_i == "..") {
14211: lt_count++;
14212: } else {
14213: if (lt_count == 0) {
1.237 moko 14214: lt_foo = "/" $lt_i lt_foo;
1.128 moko 14215: } else {
14216: lt_count--;
14217: }
14218: }
14219: }
14220: }
14221: if (lt_foo != "") { lt_freq[lt_foo]++; }
14222: if (lt_freq[lt_foo] == 1) { print lt_foo; }
14223: }'`
14224: # AWK program above erroneously prepends '/' to C:/dos/paths
14225: # for these hosts.
14226: case $host_os in
1.237 moko 14227: mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14228: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1.128 moko 14229: esac
14230: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14231: else
14232: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14233: fi
14234: library_names_spec=
14235: libname_spec='lib$name'
14236: soname_spec=
1.237 moko 14237: shrext_cmds=.so
1.128 moko 14238: postinstall_cmds=
14239: postuninstall_cmds=
14240: finish_cmds=
14241: finish_eval=
14242: shlibpath_var=
14243: shlibpath_overrides_runpath=unknown
14244: version_type=none
14245: dynamic_linker="$host_os ld.so"
14246: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14247: need_lib_prefix=unknown
14248: hardcode_into_libs=no
14249:
14250: # when you set need_version to no, make sure it does not cause -set_version
14251: # flags to be left without arguments
14252: need_version=unknown
14253:
1.237 moko 14254:
14255:
1.128 moko 14256: case $host_os in
14257: aix3*)
14258: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14259: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 14260: shlibpath_var=LIBPATH
14261:
14262: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 moko 14263: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14264: ;;
14265:
14266: aix[4-9]*)
14267: version_type=linux # correct to gnu/linux during the next big refactor
14268: need_lib_prefix=no
14269: need_version=no
14270: hardcode_into_libs=yes
1.237 moko 14271: if test ia64 = "$host_cpu"; then
1.128 moko 14272: # AIX 5 supports IA64
1.237 moko 14273: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 14274: shlibpath_var=LD_LIBRARY_PATH
14275: else
14276: # With GCC up to 2.95.x, collect2 would create an import file
14277: # for dependence libraries. The import file would start with
1.237 moko 14278: # the line '#! .'. This would cause the generated library to
14279: # depend on '.', always an invalid library. This was fixed in
1.128 moko 14280: # development snapshots of GCC prior to 3.0.
14281: case $host_os in
14282: aix4 | aix4.[01] | aix4.[01].*)
14283: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14284: echo ' yes '
1.237 moko 14285: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 14286: :
14287: else
14288: can_build_shared=no
14289: fi
14290: ;;
14291: esac
1.237 moko 14292: # Using Import Files as archive members, it is possible to support
14293: # filename-based versioning of shared library archives on AIX. While
14294: # this would work for both with and without runtime linking, it will
14295: # prevent static linking of such archives. So we do filename-based
14296: # shared library versioning with .so extension only, which is used
14297: # when both runtime linking and shared linking is enabled.
14298: # Unfortunately, runtime linking may impact performance, so we do
14299: # not want this to be the default eventually. Also, we use the
14300: # versioned .so libs for executables only if there is the -brtl
14301: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
14302: # To allow for filename-based versioning support, we need to create
14303: # libNAME.so.V as an archive file, containing:
14304: # *) an Import File, referring to the versioned filename of the
14305: # archive as well as the shared archive member, telling the
14306: # bitwidth (32 or 64) of that shared object, and providing the
14307: # list of exported symbols of that shared object, eventually
14308: # decorated with the 'weak' keyword
14309: # *) the shared object with the F_LOADONLY flag set, to really avoid
14310: # it being seen by the linker.
14311: # At run time we better use the real file rather than another symlink,
14312: # but for link time we create the symlink libNAME.so -> libNAME.so.V
14313:
14314: case $with_aix_soname,$aix_use_runtimelinking in
14315: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 14316: # soname into executable. Probably we can add versioning support to
14317: # collect2, so additional links can be useful in future.
1.237 moko 14318: aix,yes) # traditional libtool
14319: dynamic_linker='AIX unversionable lib.so'
1.128 moko 14320: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14321: # instead of lib<name>.a to let people know that these are not
14322: # typical AIX shared libraries.
1.237 moko 14323: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14324: ;;
14325: aix,no) # traditional AIX only
14326: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 14327: # We preserve .a as extension for shared libraries through AIX4.2
14328: # and later when we are not doing run time linking.
1.237 moko 14329: library_names_spec='$libname$release.a $libname.a'
14330: soname_spec='$libname$release$shared_ext$major'
14331: ;;
14332: svr4,*) # full svr4 only
14333: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14334: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14335: # We do not specify a path in Import Files, so LIBPATH fires.
14336: shlibpath_overrides_runpath=yes
14337: ;;
14338: *,yes) # both, prefer svr4
14339: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14340: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14341: # unpreferred sharedlib libNAME.a needs extra handling
14342: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14343: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14344: # We do not specify a path in Import Files, so LIBPATH fires.
14345: shlibpath_overrides_runpath=yes
14346: ;;
14347: *,no) # both, prefer aix
14348: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14349: library_names_spec='$libname$release.a $libname.a'
14350: soname_spec='$libname$release$shared_ext$major'
14351: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14352: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14353: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14354: ;;
14355: esac
1.128 moko 14356: shlibpath_var=LIBPATH
14357: fi
14358: ;;
14359:
14360: amigaos*)
14361: case $host_cpu in
14362: powerpc)
14363: # Since July 2007 AmigaOS4 officially supports .so libraries.
14364: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 moko 14365: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14366: ;;
14367: m68k)
14368: library_names_spec='$libname.ixlibrary $libname.a'
14369: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 moko 14370: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
1.128 moko 14371: ;;
14372: esac
14373: ;;
14374:
14375: beos*)
1.237 moko 14376: library_names_spec='$libname$shared_ext'
1.128 moko 14377: dynamic_linker="$host_os ld.so"
14378: shlibpath_var=LIBRARY_PATH
14379: ;;
14380:
14381: bsdi[45]*)
14382: version_type=linux # correct to gnu/linux during the next big refactor
14383: need_version=no
1.237 moko 14384: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14385: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14386: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14387: shlibpath_var=LD_LIBRARY_PATH
14388: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14389: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14390: # the default ld.so.conf also contains /usr/contrib/lib and
14391: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14392: # libtool to hard-code these into programs
14393: ;;
14394:
1.237 moko 14395: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 14396: version_type=windows
1.237 moko 14397: shrext_cmds=.dll
1.128 moko 14398: need_version=no
14399: need_lib_prefix=no
14400:
14401: case $GCC,$cc_basename in
14402: yes,*)
14403: # gcc
14404: library_names_spec='$libname.dll.a'
14405: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 14406: # If user builds GCC with multilib enabled,
14407: # it should just install on $(libdir)
14408: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14409: if test xyes = x"$multilib"; then
14410: postinstall_cmds='base_file=`basename \$file`~
14411: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14412: dldir=$destdir/`dirname \$dlpath`~
14413: $install_prog $dir/$dlname $destdir/$dlname~
14414: chmod a+x $destdir/$dlname~
14415: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14416: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14417: fi'
14418: else
14419: postinstall_cmds='base_file=`basename \$file`~
14420: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14421: dldir=$destdir/`dirname \$dlpath`~
14422: test -d \$dldir || mkdir -p \$dldir~
14423: $install_prog $dir/$dlname \$dldir/$dlname~
14424: chmod a+x \$dldir/$dlname~
14425: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14426: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14427: fi'
14428: fi
1.128 moko 14429: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14430: dlpath=$dir/\$dldll~
14431: $RM \$dlpath'
14432: shlibpath_overrides_runpath=yes
14433:
14434: case $host_os in
14435: cygwin*)
14436: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 moko 14437: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14438:
14439: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14440: ;;
1.237 moko 14441: mingw* | windows* | cegcc*)
1.128 moko 14442: # MinGW DLLs use traditional 'lib' prefix
1.237 moko 14443: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14444: ;;
14445: pw32*)
14446: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 moko 14447: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14448: ;;
14449: esac
14450: dynamic_linker='Win32 ld.exe'
14451: ;;
14452:
1.237 moko 14453: *,cl* | *,icl*)
14454: # Native MSVC or ICC
1.128 moko 14455: libname_spec='$name'
1.237 moko 14456: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14457: library_names_spec='$libname.dll.lib'
1.128 moko 14458:
14459: case $build_os in
1.237 moko 14460: mingw* | windows*)
1.128 moko 14461: sys_lib_search_path_spec=
14462: lt_save_ifs=$IFS
14463: IFS=';'
14464: for lt_path in $LIB
14465: do
14466: IFS=$lt_save_ifs
14467: # Let DOS variable expansion print the short 8.3 style file name.
14468: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14469: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14470: done
14471: IFS=$lt_save_ifs
14472: # Convert to MSYS style.
1.237 moko 14473: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.128 moko 14474: ;;
14475: cygwin*)
14476: # Convert to unix form, then to dos form, then back to unix form
14477: # but this time dos style (no spaces!) so that the unix form looks
14478: # like /cygdrive/c/PROGRA~1:/cygdr...
14479: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14480: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14481: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14482: ;;
14483: *)
1.237 moko 14484: sys_lib_search_path_spec=$LIB
1.128 moko 14485: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14486: # It is most probably a Windows format PATH.
14487: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14488: else
14489: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14490: fi
14491: # FIXME: find the short name or the path components, as spaces are
14492: # common. (e.g. "Program Files" -> "PROGRA~1")
14493: ;;
14494: esac
14495:
14496: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 14497: postinstall_cmds='base_file=`basename \$file`~
14498: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 14499: dldir=$destdir/`dirname \$dlpath`~
14500: test -d \$dldir || mkdir -p \$dldir~
14501: $install_prog $dir/$dlname \$dldir/$dlname'
14502: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14503: dlpath=$dir/\$dldll~
14504: $RM \$dlpath'
14505: shlibpath_overrides_runpath=yes
14506: dynamic_linker='Win32 link.exe'
14507: ;;
14508:
14509: *)
1.237 moko 14510: # Assume MSVC and ICC wrapper
14511: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 14512: dynamic_linker='Win32 ld.exe'
14513: ;;
14514: esac
14515: # FIXME: first we should search . and the directory the executable is in
14516: shlibpath_var=PATH
14517: ;;
14518:
14519: darwin* | rhapsody*)
14520: dynamic_linker="$host_os dyld"
14521: version_type=darwin
14522: need_lib_prefix=no
14523: need_version=no
1.237 moko 14524: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14525: soname_spec='$libname$release$major$shared_ext'
1.128 moko 14526: shlibpath_overrides_runpath=yes
14527: shlibpath_var=DYLD_LIBRARY_PATH
14528: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14529:
14530: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14531: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14532: ;;
14533:
14534: dgux*)
14535: version_type=linux # correct to gnu/linux during the next big refactor
14536: need_lib_prefix=no
14537: need_version=no
1.237 moko 14538: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14539: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14540: shlibpath_var=LD_LIBRARY_PATH
14541: ;;
14542:
1.237 moko 14543: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 14544: # DragonFly does not have aout. When/if they implement a new
14545: # versioning mechanism, adjust this.
14546: if test -x /usr/bin/objformat; then
14547: objformat=`/usr/bin/objformat`
14548: else
14549: case $host_os in
14550: freebsd[23].*) objformat=aout ;;
14551: *) objformat=elf ;;
14552: esac
14553: fi
14554: version_type=freebsd-$objformat
14555: case $version_type in
14556: freebsd-elf*)
1.237 moko 14557: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14558: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14559: need_version=no
14560: need_lib_prefix=no
14561: ;;
14562: freebsd-*)
1.237 moko 14563: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14564: need_version=yes
14565: ;;
14566: esac
1.237 moko 14567: case $host_cpu in
14568: powerpc64)
14569: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14570: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572: /* end confdefs.h. */
14573: int test_pointer_size[sizeof (void *) - 5];
14574:
14575: _ACEOF
14576: if ac_fn_c_try_compile "$LINENO"
14577: then :
1.128 moko 14578: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 14579: else case e in #(
14580: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14581: esac
14582: fi
14583: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14584: ;;
14585: *)
14586: shlibpath_var=LD_LIBRARY_PATH
14587: ;;
14588: esac
1.128 moko 14589: case $host_os in
14590: freebsd2.*)
14591: shlibpath_overrides_runpath=yes
14592: ;;
14593: freebsd3.[01]* | freebsdelf3.[01]*)
14594: shlibpath_overrides_runpath=yes
14595: hardcode_into_libs=yes
14596: ;;
14597: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14598: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14599: shlibpath_overrides_runpath=no
14600: hardcode_into_libs=yes
14601: ;;
14602: *) # from 4.6 on, and DragonFly
14603: shlibpath_overrides_runpath=yes
14604: hardcode_into_libs=yes
14605: ;;
14606: esac
14607: ;;
14608:
14609: haiku*)
14610: version_type=linux # correct to gnu/linux during the next big refactor
14611: need_lib_prefix=no
14612: need_version=no
14613: dynamic_linker="$host_os runtime_loader"
1.237 moko 14614: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14615: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14616: shlibpath_var=LIBRARY_PATH
1.237 moko 14617: shlibpath_overrides_runpath=no
14618: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14619: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14620: hardcode_into_libs=no
1.128 moko 14621: ;;
14622:
14623: hpux9* | hpux10* | hpux11*)
14624: # Give a soname corresponding to the major version so that dld.sl refuses to
14625: # link against other versions.
14626: version_type=sunos
14627: need_lib_prefix=no
14628: need_version=no
14629: case $host_cpu in
14630: ia64*)
14631: shrext_cmds='.so'
14632: hardcode_into_libs=yes
14633: dynamic_linker="$host_os dld.so"
14634: shlibpath_var=LD_LIBRARY_PATH
14635: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 14636: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14637: soname_spec='$libname$release$shared_ext$major'
14638: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 14639: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 moko 14640: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 14641: else
14642: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 moko 14643: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 14644: fi
14645: ;;
14646: hppa*64*)
14647: shrext_cmds='.sl'
14648: hardcode_into_libs=yes
14649: dynamic_linker="$host_os dld.sl"
14650: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14651: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 14652: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14653: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14654: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14655: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14656: ;;
14657: *)
14658: shrext_cmds='.sl'
14659: dynamic_linker="$host_os dld.sl"
14660: shlibpath_var=SHLIB_PATH
14661: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 moko 14662: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14663: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14664: ;;
14665: esac
14666: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14667: postinstall_cmds='chmod 555 $lib'
14668: # or fails outright, so override atomically:
14669: install_override_mode=555
14670: ;;
14671:
14672: interix[3-9]*)
14673: version_type=linux # correct to gnu/linux during the next big refactor
14674: need_lib_prefix=no
14675: need_version=no
1.237 moko 14676: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14677: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14678: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14679: shlibpath_var=LD_LIBRARY_PATH
14680: shlibpath_overrides_runpath=no
14681: hardcode_into_libs=yes
14682: ;;
14683:
14684: irix5* | irix6* | nonstopux*)
14685: case $host_os in
14686: nonstopux*) version_type=nonstopux ;;
14687: *)
1.237 moko 14688: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 14689: version_type=linux # correct to gnu/linux during the next big refactor
14690: else
14691: version_type=irix
14692: fi ;;
14693: esac
14694: need_lib_prefix=no
14695: need_version=no
1.237 moko 14696: soname_spec='$libname$release$shared_ext$major'
14697: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 14698: case $host_os in
14699: irix5* | nonstopux*)
14700: libsuff= shlibsuff=
14701: ;;
14702: *)
14703: case $LD in # libtool.m4 will add one of these switches to LD
14704: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14705: libsuff= shlibsuff= libmagic=32-bit;;
14706: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14707: libsuff=32 shlibsuff=N32 libmagic=N32;;
14708: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14709: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14710: *) libsuff= shlibsuff= libmagic=never-match;;
14711: esac
14712: ;;
14713: esac
14714: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14715: shlibpath_overrides_runpath=no
1.237 moko 14716: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14717: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 14718: hardcode_into_libs=yes
14719: ;;
14720:
14721: # No shared lib support for Linux oldld, aout, or coff.
14722: linux*oldld* | linux*aout* | linux*coff*)
14723: dynamic_linker=no
14724: ;;
14725:
1.237 moko 14726: linux*android*)
14727: version_type=none # Android doesn't support versioned libraries.
14728: need_lib_prefix=no
14729: need_version=no
14730: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14731: soname_spec='$libname$release$shared_ext'
14732: finish_cmds=
14733: shlibpath_var=LD_LIBRARY_PATH
14734: shlibpath_overrides_runpath=yes
14735:
14736: # This implies no fast_install, which is unacceptable.
14737: # Some rework will be needed to allow for fast_install
14738: # before this can be enabled.
14739: hardcode_into_libs=yes
14740:
14741: dynamic_linker='Android linker'
14742: # -rpath works at least for libraries that are not overridden by
14743: # libraries installed in system locations.
14744: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14745: ;;
14746:
1.128 moko 14747: # This must be glibc/ELF.
1.237 moko 14748: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 14749: version_type=linux # correct to gnu/linux during the next big refactor
14750: need_lib_prefix=no
14751: need_version=no
1.237 moko 14752: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14753: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14754: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14755: shlibpath_var=LD_LIBRARY_PATH
14756: shlibpath_overrides_runpath=no
14757:
14758: # Some binutils ld are patched to set DT_RUNPATH
1.237 moko 14759: if test ${lt_cv_shlibpath_overrides_runpath+y}
14760: then :
14761: printf %s "(cached) " >&6
14762: else case e in #(
14763: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 14764: save_LDFLAGS=$LDFLAGS
14765: save_libdir=$libdir
14766: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14767: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 14768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 14769: /* end confdefs.h. */
14770:
14771: int
1.237 moko 14772: main (void)
1.128 moko 14773: {
14774:
14775: ;
14776: return 0;
14777: }
14778: _ACEOF
1.237 moko 14779: if ac_fn_c_try_link "$LINENO"
14780: then :
14781: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14782: then :
1.128 moko 14783: lt_cv_shlibpath_overrides_runpath=yes
14784: fi
14785: fi
1.237 moko 14786: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 14787: conftest$ac_exeext conftest.$ac_ext
1.128 moko 14788: LDFLAGS=$save_LDFLAGS
14789: libdir=$save_libdir
1.237 moko 14790: ;;
14791: esac
1.128 moko 14792: fi
14793:
14794: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14795:
14796: # This implies no fast_install, which is unacceptable.
14797: # Some rework will be needed to allow for fast_install
14798: # before this can be enabled.
14799: hardcode_into_libs=yes
14800:
1.237 moko 14801: # Ideally, we could use ldconfig to report *all* directories which are
14802: # searched for libraries, however this is still not possible. Aside from not
14803: # being certain /sbin/ldconfig is available, command
14804: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14805: # even though it is searched at run-time. Try to do the best guess by
14806: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 14807: if test -f /etc/ld.so.conf; then
14808: 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;s/"//g;/^$/d' | tr '\n' ' '`
14809: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14810: fi
14811:
14812: # We used to test for /lib/ld.so.1 and disable shared libraries on
14813: # powerpc, because MkLinux only supported shared libraries with the
14814: # GNU dynamic linker. Since this was broken with cross compilers,
14815: # most powerpc-linux boxes support dynamic linking these days and
14816: # people can always --disable-shared, the test was removed, and we
14817: # assume the GNU/Linux dynamic linker is in use.
14818: dynamic_linker='GNU/Linux ld.so'
14819: ;;
14820:
1.237 moko 14821: netbsdelf*-gnu)
14822: version_type=linux
14823: need_lib_prefix=no
14824: need_version=no
14825: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14826: soname_spec='$libname$release$shared_ext$major'
14827: shlibpath_var=LD_LIBRARY_PATH
14828: shlibpath_overrides_runpath=no
14829: hardcode_into_libs=yes
14830: dynamic_linker='NetBSD ld.elf_so'
14831: ;;
14832:
14833: netbsdelf*-gnu)
14834: version_type=linux
14835: need_lib_prefix=no
14836: need_version=no
14837: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14838: soname_spec='${libname}${release}${shared_ext}$major'
14839: shlibpath_var=LD_LIBRARY_PATH
14840: shlibpath_overrides_runpath=no
14841: hardcode_into_libs=yes
14842: dynamic_linker='NetBSD ld.elf_so'
14843: ;;
14844:
1.128 moko 14845: netbsd*)
14846: version_type=sunos
14847: need_lib_prefix=no
14848: need_version=no
14849: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 moko 14850: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14851: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14852: dynamic_linker='NetBSD (a.out) ld.so'
14853: else
1.237 moko 14854: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14855: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14856: dynamic_linker='NetBSD ld.elf_so'
14857: fi
14858: shlibpath_var=LD_LIBRARY_PATH
14859: shlibpath_overrides_runpath=yes
14860: hardcode_into_libs=yes
14861: ;;
14862:
1.237 moko 14863: *-mlibc)
14864: version_type=linux # correct to gnu/linux during the next big refactor
14865: need_lib_prefix=no
14866: need_version=no
14867: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14868: soname_spec='$libname$release$shared_ext$major'
14869: dynamic_linker='mlibc ld.so'
14870: shlibpath_var=LD_LIBRARY_PATH
14871: shlibpath_overrides_runpath=no
14872: hardcode_into_libs=yes
14873: ;;
14874:
1.128 moko 14875: newsos6)
14876: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14877: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14878: shlibpath_var=LD_LIBRARY_PATH
14879: shlibpath_overrides_runpath=yes
14880: ;;
14881:
14882: *nto* | *qnx*)
14883: version_type=qnx
14884: need_lib_prefix=no
14885: need_version=no
1.237 moko 14886: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14887: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14888: shlibpath_var=LD_LIBRARY_PATH
14889: shlibpath_overrides_runpath=no
14890: hardcode_into_libs=yes
14891: dynamic_linker='ldqnx.so'
14892: ;;
14893:
14894: openbsd*)
14895: version_type=sunos
1.237 moko 14896: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 14897: need_lib_prefix=no
1.237 moko 14898: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14899: need_version=no
14900: else
14901: need_version=yes
14902: fi
14903: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14904: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14905: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 14906: shlibpath_overrides_runpath=yes
1.128 moko 14907: ;;
14908:
14909: os2*)
14910: libname_spec='$name'
1.237 moko 14911: version_type=windows
14912: shrext_cmds=.dll
14913: need_version=no
1.128 moko 14914: need_lib_prefix=no
1.237 moko 14915: # OS/2 can only load a DLL with a base name of 8 characters or less.
14916: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14917: v=$($ECHO $release$versuffix | tr -d .-);
14918: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14919: $ECHO $n$v`$shared_ext'
14920: library_names_spec='${libname}_dll.$libext'
1.128 moko 14921: dynamic_linker='OS/2 ld.exe'
1.237 moko 14922: shlibpath_var=BEGINLIBPATH
14923: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14924: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14925: postinstall_cmds='base_file=`basename \$file`~
14926: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14927: dldir=$destdir/`dirname \$dlpath`~
14928: test -d \$dldir || mkdir -p \$dldir~
14929: $install_prog $dir/$dlname \$dldir/$dlname~
14930: chmod a+x \$dldir/$dlname~
14931: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14932: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14933: fi'
14934: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14935: dlpath=$dir/\$dldll~
14936: $RM \$dlpath'
1.128 moko 14937: ;;
14938:
14939: osf3* | osf4* | osf5*)
14940: version_type=osf
14941: need_lib_prefix=no
14942: need_version=no
1.237 moko 14943: soname_spec='$libname$release$shared_ext$major'
14944: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14945: shlibpath_var=LD_LIBRARY_PATH
14946: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 moko 14947: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 14948: ;;
14949:
14950: rdos*)
14951: dynamic_linker=no
14952: ;;
14953:
1.237 moko 14954: serenity*)
14955: version_type=linux # correct to gnu/linux during the next big refactor
14956: need_lib_prefix=no
14957: need_version=no
14958: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14959: soname_spec='$libname$release$shared_ext$major'
14960: shlibpath_var=LD_LIBRARY_PATH
14961: shlibpath_overrides_runpath=no
14962: dynamic_linker='SerenityOS LibELF'
14963: ;;
14964:
1.128 moko 14965: solaris*)
14966: version_type=linux # correct to gnu/linux during the next big refactor
14967: need_lib_prefix=no
14968: need_version=no
1.237 moko 14969: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14970: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14971: shlibpath_var=LD_LIBRARY_PATH
14972: shlibpath_overrides_runpath=yes
14973: hardcode_into_libs=yes
14974: # ldd complains unless libraries are executable
14975: postinstall_cmds='chmod +x $lib'
14976: ;;
14977:
14978: sunos4*)
14979: version_type=sunos
1.237 moko 14980: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14981: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14982: shlibpath_var=LD_LIBRARY_PATH
14983: shlibpath_overrides_runpath=yes
1.237 moko 14984: if test yes = "$with_gnu_ld"; then
1.128 moko 14985: need_lib_prefix=no
14986: fi
14987: need_version=yes
14988: ;;
14989:
14990: sysv4 | sysv4.3*)
14991: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14992: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14993: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14994: shlibpath_var=LD_LIBRARY_PATH
14995: case $host_vendor in
14996: sni)
14997: shlibpath_overrides_runpath=no
14998: need_lib_prefix=no
14999: runpath_var=LD_RUN_PATH
15000: ;;
15001: siemens)
15002: need_lib_prefix=no
15003: ;;
15004: motorola)
15005: need_lib_prefix=no
15006: need_version=no
15007: shlibpath_overrides_runpath=no
15008: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15009: ;;
15010: esac
15011: ;;
15012:
15013: sysv4*MP*)
1.237 moko 15014: if test -d /usr/nec; then
1.128 moko 15015: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 15016: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15017: soname_spec='$libname$shared_ext.$major'
1.128 moko 15018: shlibpath_var=LD_LIBRARY_PATH
15019: fi
15020: ;;
15021:
15022: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.237 moko 15023: version_type=sco
1.128 moko 15024: need_lib_prefix=no
15025: need_version=no
1.237 moko 15026: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15027: soname_spec='$libname$release$shared_ext$major'
1.128 moko 15028: shlibpath_var=LD_LIBRARY_PATH
15029: shlibpath_overrides_runpath=yes
15030: hardcode_into_libs=yes
1.237 moko 15031: if test yes = "$with_gnu_ld"; then
1.128 moko 15032: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15033: else
15034: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15035: case $host_os in
15036: sco3.2v5*)
15037: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15038: ;;
15039: esac
15040: fi
15041: sys_lib_dlsearch_path_spec='/usr/lib'
15042: ;;
15043:
15044: tpf*)
15045: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15046: version_type=linux # correct to gnu/linux during the next big refactor
15047: need_lib_prefix=no
15048: need_version=no
1.237 moko 15049: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 15050: shlibpath_var=LD_LIBRARY_PATH
15051: shlibpath_overrides_runpath=no
15052: hardcode_into_libs=yes
15053: ;;
15054:
15055: uts4*)
15056: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 15057: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15058: soname_spec='$libname$release$shared_ext$major'
1.128 moko 15059: shlibpath_var=LD_LIBRARY_PATH
15060: ;;
15061:
1.237 moko 15062: emscripten*)
15063: version_type=none
15064: need_lib_prefix=no
15065: need_version=no
15066: library_names_spec='$libname$release$shared_ext'
15067: soname_spec='$libname$release$shared_ext'
15068: finish_cmds=
15069: dynamic_linker="Emscripten linker"
15070: lt_prog_compiler_wl=
15071: lt_prog_compiler_pic=
15072: lt_prog_compiler_static=
1.128 moko 15073:
15074:
1.237 moko 15075: if test yes = "$GCC"; then
15076: lt_prog_compiler_wl='-Wl,'
15077: lt_prog_compiler_static='-static'
1.128 moko 15078:
1.237 moko 15079: case $host_os in
15080: aix*)
15081: # All AIX code is PIC.
15082: if test ia64 = "$host_cpu"; then
15083: # AIX 5 now supports IA64 processor
15084: lt_prog_compiler_static='-Bstatic'
15085: fi
15086: lt_prog_compiler_pic='-fPIC'
15087: ;;
1.128 moko 15088:
1.237 moko 15089: amigaos*)
15090: case $host_cpu in
15091: powerpc)
15092: # see comment about AmigaOS4 .so support
15093: lt_prog_compiler_pic='-fPIC'
15094: ;;
15095: m68k)
15096: # FIXME: we need at least 68020 code to build shared libraries, but
15097: # adding the '-m68020' flag to GCC prevents building anything better,
15098: # like '-m68040'.
15099: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15100: ;;
15101: esac
15102: ;;
1.128 moko 15103:
1.237 moko 15104: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15105: # PIC is the default for these OSes.
15106: ;;
1.128 moko 15107:
1.237 moko 15108: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15109: # This hack is so that the source file can tell whether it is being
15110: # built for inclusion in a dll (and should export symbols for example).
15111: # Although the cygwin gcc ignores -fPIC, still need this for old-style
15112: # (--disable-auto-import) libraries
15113: lt_prog_compiler_pic='-DDLL_EXPORT'
15114: case $host_os in
15115: os2*)
15116: lt_prog_compiler_static='$wl-static'
15117: ;;
15118: esac
15119: ;;
1.128 moko 15120:
1.237 moko 15121: darwin* | rhapsody*)
15122: # PIC is the default on this platform
15123: # Common symbols not allowed in MH_DYLIB files
15124: lt_prog_compiler_pic='-fno-common'
15125: ;;
1.128 moko 15126:
1.237 moko 15127: haiku*)
15128: # PIC is the default for Haiku.
15129: # The "-static" flag exists, but is broken.
15130: lt_prog_compiler_static=
15131: ;;
1.128 moko 15132:
1.237 moko 15133: hpux*)
15134: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15135: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15136: # sets the default TLS model and affects inlining.
15137: case $host_cpu in
15138: hppa*64*)
15139: # +Z the default
15140: ;;
15141: *)
15142: lt_prog_compiler_pic='-fPIC'
15143: ;;
15144: esac
15145: ;;
1.128 moko 15146:
1.237 moko 15147: interix[3-9]*)
15148: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15149: # Instead, we relocate shared libraries at runtime.
15150: ;;
1.128 moko 15151:
1.237 moko 15152: msdosdjgpp*)
15153: # Just because we use GCC doesn't mean we suddenly get shared libraries
15154: # on systems that don't support them.
15155: lt_prog_compiler_can_build_shared=no
15156: enable_shared=no
15157: ;;
1.128 moko 15158:
1.237 moko 15159: *nto* | *qnx*)
15160: # QNX uses GNU C++, but need to define -shared option too, otherwise
15161: # it will coredump.
15162: lt_prog_compiler_pic='-fPIC -shared'
15163: ;;
1.128 moko 15164:
1.237 moko 15165: sysv4*MP*)
15166: if test -d /usr/nec; then
15167: lt_prog_compiler_pic=-Kconform_pic
15168: fi
15169: ;;
1.128 moko 15170:
1.237 moko 15171: *)
15172: lt_prog_compiler_pic='-fPIC'
15173: ;;
15174: esac
1.128 moko 15175:
1.237 moko 15176: case $cc_basename in
15177: nvcc*) # Cuda Compiler Driver 2.2
15178: lt_prog_compiler_wl='-Xlinker '
15179: if test -n "$lt_prog_compiler_pic"; then
15180: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15181: fi
15182: ;;
15183: esac
15184: else
15185: # PORTME Check for flag to pass linker flags through the system compiler.
15186: case $host_os in
15187: aix*)
15188: lt_prog_compiler_wl='-Wl,'
15189: if test ia64 = "$host_cpu"; then
15190: # AIX 5 now supports IA64 processor
15191: lt_prog_compiler_static='-Bstatic'
15192: else
15193: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15194: fi
15195: ;;
1.128 moko 15196:
1.237 moko 15197: darwin* | rhapsody*)
15198: # PIC is the default on this platform
15199: # Common symbols not allowed in MH_DYLIB files
15200: lt_prog_compiler_pic='-fno-common'
15201: case $cc_basename in
15202: nagfor*)
15203: # NAG Fortran compiler
15204: lt_prog_compiler_wl='-Wl,-Wl,,'
15205: lt_prog_compiler_pic='-PIC'
15206: lt_prog_compiler_static='-Bstatic'
15207: ;;
15208: esac
15209: ;;
1.128 moko 15210:
1.237 moko 15211: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15212: # This hack is so that the source file can tell whether it is being
15213: # built for inclusion in a dll (and should export symbols for example).
15214: lt_prog_compiler_pic='-DDLL_EXPORT'
15215: case $host_os in
15216: os2*)
15217: lt_prog_compiler_static='$wl-static'
15218: ;;
15219: esac
15220: ;;
1.128 moko 15221:
1.237 moko 15222: hpux9* | hpux10* | hpux11*)
15223: lt_prog_compiler_wl='-Wl,'
15224: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15225: # not for PA HP-UX.
15226: case $host_cpu in
15227: hppa*64*|ia64*)
15228: # +Z the default
15229: ;;
15230: *)
15231: lt_prog_compiler_pic='+Z'
15232: ;;
15233: esac
15234: # Is there a better lt_prog_compiler_static that works with the bundled CC?
15235: lt_prog_compiler_static='$wl-a ${wl}archive'
15236: ;;
1.128 moko 15237:
1.237 moko 15238: irix5* | irix6* | nonstopux*)
15239: lt_prog_compiler_wl='-Wl,'
15240: # PIC (with -KPIC) is the default.
15241: lt_prog_compiler_static='-non_shared'
15242: ;;
1.128 moko 15243:
1.237 moko 15244: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15245: case $cc_basename in
15246: # old Intel for x86_64, which still supported -KPIC.
15247: ecc*)
15248: lt_prog_compiler_wl='-Wl,'
15249: lt_prog_compiler_pic='-KPIC'
15250: lt_prog_compiler_static='-static'
15251: ;;
15252: *flang* | ftn | f18* | f95*)
15253: # Flang compiler.
15254: lt_prog_compiler_wl='-Wl,'
15255: lt_prog_compiler_pic='-fPIC'
15256: lt_prog_compiler_static='-static'
15257: ;;
15258: # flang / f18. f95 an alias for gfortran or flang on Debian
15259: flang* | f18* | f95*)
15260: lt_prog_compiler_wl='-Wl,'
15261: lt_prog_compiler_pic='-fPIC'
15262: lt_prog_compiler_static='-static'
15263: ;;
15264: # icc used to be incompatible with GCC.
15265: # ICC 10 doesn't accept -KPIC any more.
15266: icc* | ifort*)
15267: lt_prog_compiler_wl='-Wl,'
15268: lt_prog_compiler_pic='-fPIC'
15269: lt_prog_compiler_static='-static'
15270: ;;
15271: # Lahey Fortran 8.1.
15272: lf95*)
15273: lt_prog_compiler_wl='-Wl,'
15274: lt_prog_compiler_pic='--shared'
15275: lt_prog_compiler_static='--static'
15276: ;;
15277: nagfor*)
15278: # NAG Fortran compiler
15279: lt_prog_compiler_wl='-Wl,-Wl,,'
15280: lt_prog_compiler_pic='-PIC'
15281: lt_prog_compiler_static='-Bstatic'
15282: ;;
15283: tcc*)
15284: # Fabrice Bellard et al's Tiny C Compiler
15285: lt_prog_compiler_wl='-Wl,'
15286: lt_prog_compiler_pic='-fPIC'
15287: lt_prog_compiler_static='-static'
15288: ;;
15289: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15290: # Portland Group compilers (*not* the Pentium gcc compiler,
15291: # which looks to be a dead project)
15292: lt_prog_compiler_wl='-Wl,'
15293: lt_prog_compiler_pic='-fpic'
15294: lt_prog_compiler_static='-Bstatic'
15295: ;;
15296: ccc*)
15297: lt_prog_compiler_wl='-Wl,'
15298: # All Alpha code is PIC.
15299: lt_prog_compiler_static='-non_shared'
15300: ;;
15301: xl* | bgxl* | bgf* | mpixl*)
15302: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15303: lt_prog_compiler_wl='-Wl,'
15304: lt_prog_compiler_pic='-qpic'
15305: lt_prog_compiler_static='-qstaticlink'
15306: ;;
15307: *)
15308: case `$CC -V 2>&1 | $SED 5q` in
15309: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15310: # Sun Fortran 8.3 passes all unrecognized flags to the linker
15311: lt_prog_compiler_pic='-KPIC'
15312: lt_prog_compiler_static='-Bstatic'
15313: lt_prog_compiler_wl=''
15314: ;;
15315: *Sun\ F* | *Sun*Fortran*)
15316: lt_prog_compiler_pic='-KPIC'
15317: lt_prog_compiler_static='-Bstatic'
15318: lt_prog_compiler_wl='-Qoption ld '
15319: ;;
15320: *Sun\ C*)
15321: # Sun C 5.9
15322: lt_prog_compiler_pic='-KPIC'
15323: lt_prog_compiler_static='-Bstatic'
15324: lt_prog_compiler_wl='-Wl,'
15325: ;;
15326: *Intel*\ [CF]*Compiler*)
15327: lt_prog_compiler_wl='-Wl,'
15328: lt_prog_compiler_pic='-fPIC'
15329: lt_prog_compiler_static='-static'
15330: ;;
15331: *Portland\ Group*)
15332: lt_prog_compiler_wl='-Wl,'
15333: lt_prog_compiler_pic='-fpic'
15334: lt_prog_compiler_static='-Bstatic'
15335: ;;
15336: esac
15337: ;;
15338: esac
15339: ;;
1.128 moko 15340:
1.237 moko 15341: newsos6)
15342: lt_prog_compiler_pic='-KPIC'
15343: lt_prog_compiler_static='-Bstatic'
15344: ;;
1.128 moko 15345:
1.237 moko 15346: *-mlibc)
15347: lt_prog_compiler_wl='-Wl,'
15348: lt_prog_compiler_pic='-fPIC'
15349: lt_prog_compiler_static='-static'
15350: ;;
1.128 moko 15351:
1.237 moko 15352: *nto* | *qnx*)
15353: # QNX uses GNU C++, but need to define -shared option too, otherwise
15354: # it will coredump.
15355: lt_prog_compiler_pic='-fPIC -shared'
15356: ;;
1.128 moko 15357:
1.237 moko 15358: osf3* | osf4* | osf5*)
15359: lt_prog_compiler_wl='-Wl,'
15360: # All OSF/1 code is PIC.
15361: lt_prog_compiler_static='-non_shared'
15362: ;;
1.128 moko 15363:
1.237 moko 15364: rdos*)
15365: lt_prog_compiler_static='-non_shared'
15366: ;;
1.128 moko 15367:
1.237 moko 15368: serenity*)
15369: ;;
15370:
15371: solaris*)
15372: lt_prog_compiler_pic='-KPIC'
15373: lt_prog_compiler_static='-Bstatic'
15374: case $cc_basename in
15375: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15376: lt_prog_compiler_wl='-Qoption ld ';;
15377: *)
15378: lt_prog_compiler_wl='-Wl,';;
15379: esac
15380: ;;
15381:
15382: sunos4*)
15383: lt_prog_compiler_wl='-Qoption ld '
15384: lt_prog_compiler_pic='-PIC'
15385: lt_prog_compiler_static='-Bstatic'
15386: ;;
15387:
15388: sysv4 | sysv4.2uw2* | sysv4.3*)
15389: lt_prog_compiler_wl='-Wl,'
15390: lt_prog_compiler_pic='-KPIC'
15391: lt_prog_compiler_static='-Bstatic'
15392: ;;
15393:
15394: sysv4*MP*)
15395: if test -d /usr/nec; then
15396: lt_prog_compiler_pic='-Kconform_pic'
15397: lt_prog_compiler_static='-Bstatic'
15398: fi
15399: ;;
15400:
15401: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15402: lt_prog_compiler_wl='-Wl,'
15403: lt_prog_compiler_pic='-KPIC'
15404: lt_prog_compiler_static='-Bstatic'
15405: ;;
15406:
15407: unicos*)
15408: lt_prog_compiler_wl='-Wl,'
15409: lt_prog_compiler_can_build_shared=no
15410: ;;
15411:
15412: uts4*)
15413: lt_prog_compiler_pic='-pic'
15414: lt_prog_compiler_static='-Bstatic'
15415: ;;
15416:
15417: *)
15418: lt_prog_compiler_can_build_shared=no
15419: ;;
15420: esac
15421: fi
15422:
15423: case $host_os in
15424: # For platforms that do not support PIC, -DPIC is meaningless:
15425: *djgpp*)
15426: lt_prog_compiler_pic=
15427: ;;
15428: *)
15429: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15430: ;;
15431: esac
15432:
15433: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15434: printf %s "checking for $compiler option to produce PIC... " >&6; }
15435: if test ${lt_cv_prog_compiler_pic+y}
15436: then :
15437: printf %s "(cached) " >&6
15438: else case e in #(
15439: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15440: esac
15441: fi
15442: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15443: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15444: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15445:
15446: #
15447: # Check to make sure the PIC flag actually works.
15448: #
15449: if test -n "$lt_prog_compiler_pic"; then
15450: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15451: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15452: if test ${lt_cv_prog_compiler_pic_works+y}
15453: then :
15454: printf %s "(cached) " >&6
15455: else case e in #(
15456: e) lt_cv_prog_compiler_pic_works=no
15457: ac_outfile=conftest.$ac_objext
15458: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15459: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15460: # Insert the option either (1) after the last *FLAGS variable, or
15461: # (2) before a word containing "conftest.", or (3) at the end.
15462: # Note that $ac_compile itself does not contain backslashes and begins
15463: # with a dollar sign (not a hyphen), so the echo should work correctly.
15464: # The option is referenced via a variable to avoid confusing sed.
15465: lt_compile=`echo "$ac_compile" | $SED \
15466: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15467: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15468: -e 's:$: $lt_compiler_flag:'`
15469: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15470: (eval "$lt_compile" 2>conftest.err)
15471: ac_status=$?
15472: cat conftest.err >&5
15473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474: if (exit $ac_status) && test -s "$ac_outfile"; then
15475: # The compiler can only warn and ignore the option if not recognized
15476: # So say no if there are warnings other than the usual output.
15477: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15478: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15479: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15480: lt_cv_prog_compiler_pic_works=yes
15481: fi
15482: fi
15483: $RM conftest*
15484: ;;
15485: esac
15486: fi
15487: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15488: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15489:
15490: if test yes = "$lt_cv_prog_compiler_pic_works"; then
15491: case $lt_prog_compiler_pic in
15492: "" | " "*) ;;
15493: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15494: esac
15495: else
15496: lt_prog_compiler_pic=
15497: lt_prog_compiler_can_build_shared=no
15498: fi
15499:
15500: fi
15501:
15502:
15503:
15504:
15505:
15506: #
15507: # Check to make sure the static flag actually works.
15508: #
15509: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15510: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15511: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15512: if test ${lt_cv_prog_compiler_static_works+y}
15513: then :
15514: printf %s "(cached) " >&6
15515: else case e in #(
15516: e) lt_cv_prog_compiler_static_works=no
15517: save_LDFLAGS=$LDFLAGS
15518: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15519: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15520: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15521: # The linker can only warn and ignore the option if not recognized
15522: # So say no if there are warnings
15523: if test -s conftest.err; then
15524: # Append any errors to the config.log.
15525: cat conftest.err 1>&5
15526: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15527: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15528: if diff conftest.exp conftest.er2 >/dev/null; then
15529: lt_cv_prog_compiler_static_works=yes
15530: fi
15531: else
15532: lt_cv_prog_compiler_static_works=yes
15533: fi
15534: fi
15535: $RM -r conftest*
15536: LDFLAGS=$save_LDFLAGS
15537: ;;
15538: esac
15539: fi
15540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15541: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15542:
15543: if test yes = "$lt_cv_prog_compiler_static_works"; then
15544: :
15545: else
15546: lt_prog_compiler_static=
15547: fi
15548:
15549:
15550:
15551: ='-fPIC'
15552: archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15553: archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15554: archive_cmds_need_lc=no
15555: no_undefined_flag=
15556: ;;
15557:
15558: *)
15559: dynamic_linker=no
15560: ;;
15561: esac
15562: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15563: printf "%s\n" "$dynamic_linker" >&6; }
15564: test no = "$dynamic_linker" && can_build_shared=no
15565:
15566: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15567: if test yes = "$GCC"; then
15568: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15569: fi
15570:
15571: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15572: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15573: fi
15574:
15575: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15576: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15577: fi
15578:
15579: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15580: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15581:
15582: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15583: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15584:
15585: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15586: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 15587:
15588:
15589:
15590:
15591:
15592:
15593:
15594:
15595:
15596:
15597:
15598:
15599:
15600:
15601:
15602:
15603:
15604:
15605:
15606:
15607:
15608:
15609:
15610:
15611:
15612:
15613:
15614:
15615:
15616:
15617:
15618:
15619:
15620:
15621:
15622:
15623:
15624:
15625:
15626:
15627:
15628:
15629:
15630:
15631:
15632:
15633:
15634:
15635:
15636:
15637:
15638:
15639:
15640:
15641:
15642:
15643:
15644:
15645:
15646:
15647:
15648:
15649:
15650:
15651:
15652:
15653:
15654:
1.237 moko 15655:
15656:
15657:
15658:
15659:
15660:
15661:
15662:
15663:
15664:
15665:
15666:
15667:
15668:
15669:
15670:
15671:
15672:
15673:
15674:
15675:
15676:
15677:
15678:
15679:
15680:
15681:
15682:
15683:
15684: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15685: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 15686: hardcode_action=
15687: if test -n "$hardcode_libdir_flag_spec" ||
15688: test -n "$runpath_var" ||
1.237 moko 15689: test yes = "$hardcode_automatic"; then
1.128 moko 15690:
15691: # We can hardcode non-existent directories.
1.237 moko 15692: if test no != "$hardcode_direct" &&
1.128 moko 15693: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15694: # have to relink, otherwise we might link with an installed library
15695: # when we should be linking with a yet-to-be-installed one
1.237 moko 15696: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15697: test no != "$hardcode_minus_L"; then
1.128 moko 15698: # Linking always hardcodes the temporary library directory.
15699: hardcode_action=relink
15700: else
15701: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15702: hardcode_action=immediate
15703: fi
15704: else
15705: # We cannot hardcode anything, or else we can only hardcode existing
15706: # directories.
15707: hardcode_action=unsupported
15708: fi
1.237 moko 15709: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15710: printf "%s\n" "$hardcode_action" >&6; }
1.128 moko 15711:
1.237 moko 15712: if test relink = "$hardcode_action" ||
15713: test yes = "$inherit_rpath"; then
1.128 moko 15714: # Fast installation is not supported
15715: enable_fast_install=no
1.237 moko 15716: elif test yes = "$shlibpath_overrides_runpath" ||
15717: test no = "$enable_shared"; then
1.128 moko 15718: # Fast installation is not necessary
15719: enable_fast_install=needless
15720: fi
15721:
15722:
15723:
15724:
15725:
15726:
1.237 moko 15727: if test yes != "$enable_dlopen"; then
1.128 moko 15728: enable_dlopen=unknown
15729: enable_dlopen_self=unknown
15730: enable_dlopen_self_static=unknown
15731: else
15732: lt_cv_dlopen=no
15733: lt_cv_dlopen_libs=
15734:
15735: case $host_os in
15736: beos*)
1.237 moko 15737: lt_cv_dlopen=load_add_on
1.128 moko 15738: lt_cv_dlopen_libs=
15739: lt_cv_dlopen_self=yes
15740: ;;
15741:
1.237 moko 15742: mingw* | windows* | pw32* | cegcc*)
15743: lt_cv_dlopen=LoadLibrary
1.128 moko 15744: lt_cv_dlopen_libs=
15745: ;;
15746:
15747: cygwin*)
1.237 moko 15748: lt_cv_dlopen=dlopen
1.128 moko 15749: lt_cv_dlopen_libs=
15750: ;;
15751:
15752: darwin*)
1.237 moko 15753: # if libdl is installed we need to link against it
15754: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15755: printf %s "checking for dlopen in -ldl... " >&6; }
15756: if test ${ac_cv_lib_dl_dlopen+y}
15757: then :
15758: printf %s "(cached) " >&6
15759: else case e in #(
15760: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15761: LIBS="-ldl $LIBS"
1.150 moko 15762: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15763: /* end confdefs.h. */
15764:
1.150 moko 15765: /* Override any GCC internal prototype to avoid an error.
15766: Use char because int might match the return type of a GCC
1.237 moko 15767: builtin and then its argument prototype would still apply.
15768: The 'extern "C"' is for builds by C++ compilers;
15769: although this is not generally supported in C code supporting it here
15770: has little cost and some practical benefit (sr 110532). */
1.128 moko 15771: #ifdef __cplusplus
15772: extern "C"
15773: #endif
1.237 moko 15774: char dlopen (void);
1.128 moko 15775: int
1.237 moko 15776: main (void)
1.128 moko 15777: {
1.150 moko 15778: return dlopen ();
1.128 moko 15779: ;
15780: return 0;
15781: }
15782: _ACEOF
1.237 moko 15783: if ac_fn_c_try_link "$LINENO"
15784: then :
1.128 moko 15785: ac_cv_lib_dl_dlopen=yes
1.237 moko 15786: else case e in #(
15787: e) ac_cv_lib_dl_dlopen=no ;;
15788: esac
1.128 moko 15789: fi
1.237 moko 15790: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15791: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15792: LIBS=$ac_check_lib_save_LIBS ;;
15793: esac
1.128 moko 15794: fi
1.237 moko 15795: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15796: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15797: if test "x$ac_cv_lib_dl_dlopen" = xyes
15798: then :
15799: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15800: else case e in #(
15801: e)
15802: lt_cv_dlopen=dyld
1.128 moko 15803: lt_cv_dlopen_libs=
15804: lt_cv_dlopen_self=yes
1.237 moko 15805: ;;
15806: esac
15807: fi
1.128 moko 15808:
1.237 moko 15809: ;;
1.128 moko 15810:
1.237 moko 15811: tpf*)
15812: # Don't try to run any link tests for TPF. We know it's impossible
15813: # because TPF is a cross-compiler, and we know how we open DSOs.
15814: lt_cv_dlopen=dlopen
15815: lt_cv_dlopen_libs=
15816: lt_cv_dlopen_self=no
1.128 moko 15817: ;;
15818:
15819: *)
1.150 moko 15820: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 moko 15821: if test "x$ac_cv_func_shl_load" = xyes
15822: then :
15823: lt_cv_dlopen=shl_load
15824: else case e in #(
15825: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15826: printf %s "checking for shl_load in -ldld... " >&6; }
15827: if test ${ac_cv_lib_dld_shl_load+y}
15828: then :
15829: printf %s "(cached) " >&6
15830: else case e in #(
15831: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15832: LIBS="-ldld $LIBS"
1.150 moko 15833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15834: /* end confdefs.h. */
15835:
1.150 moko 15836: /* Override any GCC internal prototype to avoid an error.
15837: Use char because int might match the return type of a GCC
1.237 moko 15838: builtin and then its argument prototype would still apply.
15839: The 'extern "C"' is for builds by C++ compilers;
15840: although this is not generally supported in C code supporting it here
15841: has little cost and some practical benefit (sr 110532). */
1.128 moko 15842: #ifdef __cplusplus
15843: extern "C"
15844: #endif
1.237 moko 15845: char shl_load (void);
1.128 moko 15846: int
1.237 moko 15847: main (void)
1.128 moko 15848: {
1.150 moko 15849: return shl_load ();
1.128 moko 15850: ;
15851: return 0;
15852: }
15853: _ACEOF
1.237 moko 15854: if ac_fn_c_try_link "$LINENO"
15855: then :
1.128 moko 15856: ac_cv_lib_dld_shl_load=yes
1.237 moko 15857: else case e in #(
15858: e) ac_cv_lib_dld_shl_load=no ;;
15859: esac
1.128 moko 15860: fi
1.237 moko 15861: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15862: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15863: LIBS=$ac_check_lib_save_LIBS ;;
15864: esac
1.128 moko 15865: fi
1.237 moko 15866: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15867: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15868: if test "x$ac_cv_lib_dld_shl_load" = xyes
15869: then :
15870: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15871: else case e in #(
15872: e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15873: if test "x$ac_cv_func_dlopen" = xyes
15874: then :
15875: lt_cv_dlopen=dlopen
15876: else case e in #(
15877: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15878: printf %s "checking for dlopen in -ldl... " >&6; }
15879: if test ${ac_cv_lib_dl_dlopen+y}
15880: then :
15881: printf %s "(cached) " >&6
15882: else case e in #(
15883: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15884: LIBS="-ldl $LIBS"
1.150 moko 15885: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15886: /* end confdefs.h. */
15887:
1.150 moko 15888: /* Override any GCC internal prototype to avoid an error.
15889: Use char because int might match the return type of a GCC
1.237 moko 15890: builtin and then its argument prototype would still apply.
15891: The 'extern "C"' is for builds by C++ compilers;
15892: although this is not generally supported in C code supporting it here
15893: has little cost and some practical benefit (sr 110532). */
1.128 moko 15894: #ifdef __cplusplus
15895: extern "C"
15896: #endif
1.237 moko 15897: char dlopen (void);
1.128 moko 15898: int
1.237 moko 15899: main (void)
1.128 moko 15900: {
1.150 moko 15901: return dlopen ();
1.128 moko 15902: ;
15903: return 0;
15904: }
15905: _ACEOF
1.237 moko 15906: if ac_fn_c_try_link "$LINENO"
15907: then :
1.128 moko 15908: ac_cv_lib_dl_dlopen=yes
1.237 moko 15909: else case e in #(
15910: e) ac_cv_lib_dl_dlopen=no ;;
15911: esac
1.128 moko 15912: fi
1.237 moko 15913: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15914: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15915: LIBS=$ac_check_lib_save_LIBS ;;
15916: esac
1.128 moko 15917: fi
1.237 moko 15918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15919: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15920: if test "x$ac_cv_lib_dl_dlopen" = xyes
15921: then :
15922: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15923: else case e in #(
15924: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15925: printf %s "checking for dlopen in -lsvld... " >&6; }
15926: if test ${ac_cv_lib_svld_dlopen+y}
15927: then :
15928: printf %s "(cached) " >&6
15929: else case e in #(
15930: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15931: LIBS="-lsvld $LIBS"
1.150 moko 15932: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15933: /* end confdefs.h. */
15934:
1.150 moko 15935: /* Override any GCC internal prototype to avoid an error.
15936: Use char because int might match the return type of a GCC
1.237 moko 15937: builtin and then its argument prototype would still apply.
15938: The 'extern "C"' is for builds by C++ compilers;
15939: although this is not generally supported in C code supporting it here
15940: has little cost and some practical benefit (sr 110532). */
1.128 moko 15941: #ifdef __cplusplus
15942: extern "C"
15943: #endif
1.237 moko 15944: char dlopen (void);
1.128 moko 15945: int
1.237 moko 15946: main (void)
1.128 moko 15947: {
1.150 moko 15948: return dlopen ();
1.128 moko 15949: ;
15950: return 0;
15951: }
15952: _ACEOF
1.237 moko 15953: if ac_fn_c_try_link "$LINENO"
15954: then :
1.128 moko 15955: ac_cv_lib_svld_dlopen=yes
1.237 moko 15956: else case e in #(
15957: e) ac_cv_lib_svld_dlopen=no ;;
15958: esac
1.128 moko 15959: fi
1.237 moko 15960: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15961: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15962: LIBS=$ac_check_lib_save_LIBS ;;
15963: esac
1.128 moko 15964: fi
1.237 moko 15965: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15966: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15967: if test "x$ac_cv_lib_svld_dlopen" = xyes
15968: then :
15969: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15970: else case e in #(
15971: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15972: printf %s "checking for dld_link in -ldld... " >&6; }
15973: if test ${ac_cv_lib_dld_dld_link+y}
15974: then :
15975: printf %s "(cached) " >&6
15976: else case e in #(
15977: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15978: LIBS="-ldld $LIBS"
1.150 moko 15979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15980: /* end confdefs.h. */
15981:
1.150 moko 15982: /* Override any GCC internal prototype to avoid an error.
15983: Use char because int might match the return type of a GCC
1.237 moko 15984: builtin and then its argument prototype would still apply.
15985: The 'extern "C"' is for builds by C++ compilers;
15986: although this is not generally supported in C code supporting it here
15987: has little cost and some practical benefit (sr 110532). */
1.128 moko 15988: #ifdef __cplusplus
15989: extern "C"
15990: #endif
1.237 moko 15991: char dld_link (void);
1.128 moko 15992: int
1.237 moko 15993: main (void)
1.128 moko 15994: {
1.150 moko 15995: return dld_link ();
1.128 moko 15996: ;
15997: return 0;
15998: }
15999: _ACEOF
1.237 moko 16000: if ac_fn_c_try_link "$LINENO"
16001: then :
1.128 moko 16002: ac_cv_lib_dld_dld_link=yes
1.237 moko 16003: else case e in #(
16004: e) ac_cv_lib_dld_dld_link=no ;;
16005: esac
1.150 moko 16006: fi
1.237 moko 16007: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 16008: conftest$ac_exeext conftest.$ac_ext
1.237 moko 16009: LIBS=$ac_check_lib_save_LIBS ;;
16010: esac
1.128 moko 16011: fi
1.237 moko 16012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16013: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16014: if test "x$ac_cv_lib_dld_dld_link" = xyes
16015: then :
16016: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1.128 moko 16017: fi
16018:
1.237 moko 16019: ;;
16020: esac
1.128 moko 16021: fi
16022:
1.237 moko 16023: ;;
16024: esac
1.128 moko 16025: fi
16026:
1.237 moko 16027: ;;
16028: esac
1.128 moko 16029: fi
16030:
1.237 moko 16031: ;;
16032: esac
1.128 moko 16033: fi
16034:
1.237 moko 16035: ;;
16036: esac
1.128 moko 16037: fi
16038:
16039: ;;
16040: esac
16041:
1.237 moko 16042: if test no = "$lt_cv_dlopen"; then
16043: enable_dlopen=no
16044: else
1.128 moko 16045: enable_dlopen=yes
16046: fi
16047:
16048: case $lt_cv_dlopen in
16049: dlopen)
1.237 moko 16050: save_CPPFLAGS=$CPPFLAGS
16051: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.128 moko 16052:
1.237 moko 16053: save_LDFLAGS=$LDFLAGS
1.128 moko 16054: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16055:
1.237 moko 16056: save_LIBS=$LIBS
1.128 moko 16057: LIBS="$lt_cv_dlopen_libs $LIBS"
16058:
1.237 moko 16059: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16060: printf %s "checking whether a program can dlopen itself... " >&6; }
16061: if test ${lt_cv_dlopen_self+y}
16062: then :
16063: printf %s "(cached) " >&6
16064: else case e in #(
16065: e) if test yes = "$cross_compiling"; then :
1.128 moko 16066: lt_cv_dlopen_self=cross
16067: else
16068: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16069: lt_status=$lt_dlunknown
16070: cat > conftest.$ac_ext <<_LT_EOF
16071: #line $LINENO "configure"
16072: #include "confdefs.h"
16073:
16074: #if HAVE_DLFCN_H
16075: #include <dlfcn.h>
16076: #endif
16077:
16078: #include <stdio.h>
16079:
16080: #ifdef RTLD_GLOBAL
16081: # define LT_DLGLOBAL RTLD_GLOBAL
16082: #else
16083: # ifdef DL_GLOBAL
16084: # define LT_DLGLOBAL DL_GLOBAL
16085: # else
16086: # define LT_DLGLOBAL 0
16087: # endif
16088: #endif
16089:
16090: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16091: find out it does not work in some platform. */
16092: #ifndef LT_DLLAZY_OR_NOW
16093: # ifdef RTLD_LAZY
16094: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16095: # else
16096: # ifdef DL_LAZY
16097: # define LT_DLLAZY_OR_NOW DL_LAZY
16098: # else
16099: # ifdef RTLD_NOW
16100: # define LT_DLLAZY_OR_NOW RTLD_NOW
16101: # else
16102: # ifdef DL_NOW
16103: # define LT_DLLAZY_OR_NOW DL_NOW
16104: # else
16105: # define LT_DLLAZY_OR_NOW 0
16106: # endif
16107: # endif
16108: # endif
16109: # endif
16110: #endif
16111:
1.237 moko 16112: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 16113: correspondingly for the symbols needed. */
1.237 moko 16114: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16115: int fnord (void) __attribute__((visibility("default")));
1.128 moko 16116: #endif
16117:
1.237 moko 16118: int fnord (void) { return 42; }
16119: int main (void)
1.128 moko 16120: {
16121: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16122: int status = $lt_dlunknown;
16123:
16124: if (self)
16125: {
16126: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16127: else
16128: {
16129: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16130: else puts (dlerror ());
16131: }
16132: /* dlclose (self); */
16133: }
16134: else
16135: puts (dlerror ());
16136:
16137: return status;
16138: }
16139: _LT_EOF
1.150 moko 16140: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16141: (eval $ac_link) 2>&5
16142: ac_status=$?
1.237 moko 16143: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16144: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 16145: (./conftest; exit; ) >&5 2>/dev/null
16146: lt_status=$?
16147: case x$lt_status in
16148: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16149: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16150: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16151: esac
16152: else :
16153: # compilation failed
16154: lt_cv_dlopen_self=no
16155: fi
16156: fi
16157: rm -fr conftest*
16158:
1.237 moko 16159: ;;
16160: esac
1.128 moko 16161: fi
1.237 moko 16162: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16163: printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1.128 moko 16164:
1.237 moko 16165: if test yes = "$lt_cv_dlopen_self"; then
1.128 moko 16166: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.237 moko 16167: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16168: printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16169: if test ${lt_cv_dlopen_self_static+y}
16170: then :
16171: printf %s "(cached) " >&6
16172: else case e in #(
16173: e) if test yes = "$cross_compiling"; then :
1.128 moko 16174: lt_cv_dlopen_self_static=cross
16175: else
16176: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16177: lt_status=$lt_dlunknown
16178: cat > conftest.$ac_ext <<_LT_EOF
16179: #line $LINENO "configure"
16180: #include "confdefs.h"
16181:
16182: #if HAVE_DLFCN_H
16183: #include <dlfcn.h>
16184: #endif
16185:
16186: #include <stdio.h>
16187:
16188: #ifdef RTLD_GLOBAL
16189: # define LT_DLGLOBAL RTLD_GLOBAL
16190: #else
16191: # ifdef DL_GLOBAL
16192: # define LT_DLGLOBAL DL_GLOBAL
16193: # else
16194: # define LT_DLGLOBAL 0
16195: # endif
16196: #endif
16197:
16198: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16199: find out it does not work in some platform. */
16200: #ifndef LT_DLLAZY_OR_NOW
16201: # ifdef RTLD_LAZY
16202: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16203: # else
16204: # ifdef DL_LAZY
16205: # define LT_DLLAZY_OR_NOW DL_LAZY
16206: # else
16207: # ifdef RTLD_NOW
16208: # define LT_DLLAZY_OR_NOW RTLD_NOW
16209: # else
16210: # ifdef DL_NOW
16211: # define LT_DLLAZY_OR_NOW DL_NOW
16212: # else
16213: # define LT_DLLAZY_OR_NOW 0
16214: # endif
16215: # endif
16216: # endif
16217: # endif
16218: #endif
16219:
1.237 moko 16220: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 16221: correspondingly for the symbols needed. */
1.237 moko 16222: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16223: int fnord (void) __attribute__((visibility("default")));
1.128 moko 16224: #endif
16225:
1.237 moko 16226: int fnord (void) { return 42; }
16227: int main (void)
1.128 moko 16228: {
16229: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16230: int status = $lt_dlunknown;
16231:
16232: if (self)
16233: {
16234: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16235: else
16236: {
16237: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16238: else puts (dlerror ());
16239: }
16240: /* dlclose (self); */
16241: }
16242: else
16243: puts (dlerror ());
16244:
16245: return status;
16246: }
16247: _LT_EOF
1.150 moko 16248: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16249: (eval $ac_link) 2>&5
16250: ac_status=$?
1.237 moko 16251: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16252: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 16253: (./conftest; exit; ) >&5 2>/dev/null
16254: lt_status=$?
16255: case x$lt_status in
16256: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16257: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16258: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16259: esac
16260: else :
16261: # compilation failed
16262: lt_cv_dlopen_self_static=no
16263: fi
16264: fi
16265: rm -fr conftest*
16266:
1.237 moko 16267: ;;
16268: esac
1.128 moko 16269: fi
1.237 moko 16270: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16271: printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 16272: fi
16273:
1.237 moko 16274: CPPFLAGS=$save_CPPFLAGS
16275: LDFLAGS=$save_LDFLAGS
16276: LIBS=$save_LIBS
1.128 moko 16277: ;;
16278: esac
16279:
16280: case $lt_cv_dlopen_self in
16281: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16282: *) enable_dlopen_self=unknown ;;
16283: esac
16284:
16285: case $lt_cv_dlopen_self_static in
16286: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16287: *) enable_dlopen_self_static=unknown ;;
16288: esac
16289: fi
16290:
16291:
16292:
16293:
16294:
16295:
16296:
16297:
16298:
16299:
16300:
16301:
16302:
16303:
16304:
16305:
16306:
16307: striplib=
16308: old_striplib=
1.237 moko 16309: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16310: printf %s "checking whether stripping libraries is possible... " >&6; }
16311: if test -z "$STRIP"; then
16312: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313: printf "%s\n" "no" >&6; }
16314: else
16315: if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16316: old_striplib="$STRIP --strip-debug"
16317: striplib="$STRIP --strip-unneeded"
16318: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16319: printf "%s\n" "yes" >&6; }
16320: else
16321: case $host_os in
16322: darwin*)
16323: # FIXME - insert some real tests, host_os isn't really good enough
1.128 moko 16324: striplib="$STRIP -x"
16325: old_striplib="$STRIP -S"
1.237 moko 16326: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16327: printf "%s\n" "yes" >&6; }
16328: ;;
16329: freebsd*)
16330: if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16331: old_striplib="$STRIP --strip-debug"
16332: striplib="$STRIP --strip-unneeded"
16333: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16334: printf "%s\n" "yes" >&6; }
16335: else
16336: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16337: printf "%s\n" "no" >&6; }
16338: fi
16339: ;;
16340: *)
16341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342: printf "%s\n" "no" >&6; }
16343: ;;
16344: esac
16345: fi
1.128 moko 16346: fi
16347:
16348:
16349:
16350:
16351:
16352:
16353:
16354:
16355:
16356:
16357:
16358:
1.237 moko 16359: # Report what library types will actually be built
16360: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16361: printf %s "checking if libtool supports shared libraries... " >&6; }
16362: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16363: printf "%s\n" "$can_build_shared" >&6; }
16364:
16365: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16366: printf %s "checking whether to build shared libraries... " >&6; }
16367: test no = "$can_build_shared" && enable_shared=no
1.128 moko 16368:
16369: # On AIX, shared libraries and static libraries use the same namespace, and
16370: # are all built from PIC.
16371: case $host_os in
16372: aix3*)
1.237 moko 16373: test yes = "$enable_shared" && enable_static=no
1.128 moko 16374: if test -n "$RANLIB"; then
16375: archive_cmds="$archive_cmds~\$RANLIB \$lib"
16376: postinstall_cmds='$RANLIB $lib'
16377: fi
16378: ;;
16379:
16380: aix[4-9]*)
1.237 moko 16381: if test ia64 != "$host_cpu"; then
16382: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16383: yes,aix,yes) ;; # shared object as lib.so file only
16384: yes,svr4,*) ;; # shared object as lib.so archive member only
16385: yes,*) enable_static=no ;; # shared object in lib.a archive as well
16386: esac
1.128 moko 16387: fi
16388: ;;
16389: esac
1.237 moko 16390: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16391: printf "%s\n" "$enable_shared" >&6; }
1.128 moko 16392:
1.237 moko 16393: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16394: printf %s "checking whether to build static libraries... " >&6; }
1.128 moko 16395: # Make sure either enable_shared or enable_static is yes.
1.237 moko 16396: test yes = "$enable_shared" || enable_static=yes
16397: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16398: printf "%s\n" "$enable_static" >&6; }
1.128 moko 16399:
16400:
16401:
16402:
16403: fi
16404: ac_ext=c
16405: ac_cpp='$CPP $CPPFLAGS'
16406: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16407: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16408: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16409:
1.237 moko 16410: CC=$lt_save_CC
1.128 moko 16411:
1.237 moko 16412: if test -n "$CXX" && ( test no != "$CXX" &&
16413: ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16414: (test g++ != "$CXX"))); then
1.150 moko 16415: ac_ext=cpp
1.128 moko 16416: ac_cpp='$CXXCPP $CPPFLAGS'
16417: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16418: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16419: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.237 moko 16420: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16421: printf %s "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 16422: if test -z "$CXXCPP"; then
1.237 moko 16423: if test ${ac_cv_prog_CXXCPP+y}
16424: then :
16425: printf %s "(cached) " >&6
16426: else case e in #(
16427: e) # Double quotes because $CXX needs to be expanded
16428: for CXXCPP in "$CXX -E" cpp /lib/cpp
1.128 moko 16429: do
16430: ac_preproc_ok=false
16431: for ac_cxx_preproc_warn_flag in '' yes
16432: do
16433: # Use a header file that comes with gcc, so configuring glibc
16434: # with a fresh cross-compiler works.
16435: # On the NeXT, cc -E runs the code through the compiler's parser,
16436: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 16437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16438: /* end confdefs.h. */
1.237 moko 16439: #include <limits.h>
1.128 moko 16440: Syntax error
16441: _ACEOF
1.237 moko 16442: if ac_fn_cxx_try_cpp "$LINENO"
16443: then :
1.150 moko 16444:
1.237 moko 16445: else case e in #(
16446: e) # Broken: fails on valid input.
16447: continue ;;
16448: esac
1.128 moko 16449: fi
1.150 moko 16450: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16451:
1.150 moko 16452: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16453: # can be detected and how.
1.150 moko 16454: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16455: /* end confdefs.h. */
16456: #include <ac_nonexistent.h>
16457: _ACEOF
1.237 moko 16458: if ac_fn_cxx_try_cpp "$LINENO"
16459: then :
1.128 moko 16460: # Broken: success on invalid input.
16461: continue
1.237 moko 16462: else case e in #(
16463: e) # Passes both tests.
1.128 moko 16464: ac_preproc_ok=:
1.237 moko 16465: break ;;
16466: esac
1.128 moko 16467: fi
1.150 moko 16468: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16469:
16470: done
1.237 moko 16471: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16472: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 moko 16473: if $ac_preproc_ok
16474: then :
1.128 moko 16475: break
16476: fi
16477:
16478: done
16479: ac_cv_prog_CXXCPP=$CXXCPP
1.237 moko 16480: ;;
16481: esac
1.128 moko 16482: fi
16483: CXXCPP=$ac_cv_prog_CXXCPP
16484: else
16485: ac_cv_prog_CXXCPP=$CXXCPP
16486: fi
1.237 moko 16487: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16488: printf "%s\n" "$CXXCPP" >&6; }
1.128 moko 16489: ac_preproc_ok=false
16490: for ac_cxx_preproc_warn_flag in '' yes
16491: do
16492: # Use a header file that comes with gcc, so configuring glibc
16493: # with a fresh cross-compiler works.
16494: # On the NeXT, cc -E runs the code through the compiler's parser,
16495: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 16496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16497: /* end confdefs.h. */
1.237 moko 16498: #include <limits.h>
1.128 moko 16499: Syntax error
16500: _ACEOF
1.237 moko 16501: if ac_fn_cxx_try_cpp "$LINENO"
16502: then :
1.150 moko 16503:
1.237 moko 16504: else case e in #(
16505: e) # Broken: fails on valid input.
16506: continue ;;
16507: esac
1.128 moko 16508: fi
1.150 moko 16509: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16510:
1.150 moko 16511: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16512: # can be detected and how.
1.150 moko 16513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16514: /* end confdefs.h. */
16515: #include <ac_nonexistent.h>
16516: _ACEOF
1.237 moko 16517: if ac_fn_cxx_try_cpp "$LINENO"
16518: then :
1.128 moko 16519: # Broken: success on invalid input.
16520: continue
1.237 moko 16521: else case e in #(
16522: e) # Passes both tests.
1.128 moko 16523: ac_preproc_ok=:
1.237 moko 16524: break ;;
16525: esac
1.128 moko 16526: fi
1.150 moko 16527: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16528:
16529: done
1.237 moko 16530: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16531: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 moko 16532: if $ac_preproc_ok
16533: then :
1.150 moko 16534:
1.237 moko 16535: else case e in #(
16536: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16537: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 16538: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
1.237 moko 16539: See 'config.log' for more details" "$LINENO" 5; } ;;
16540: esac
1.128 moko 16541: fi
16542:
16543: ac_ext=c
16544: ac_cpp='$CPP $CPPFLAGS'
16545: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16546: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16547: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16548:
16549: else
16550: _lt_caught_CXX_error=yes
16551: fi
16552:
1.150 moko 16553: ac_ext=cpp
1.128 moko 16554: ac_cpp='$CXXCPP $CPPFLAGS'
16555: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16558:
16559: archive_cmds_need_lc_CXX=no
16560: allow_undefined_flag_CXX=
16561: always_export_symbols_CXX=no
16562: archive_expsym_cmds_CXX=
16563: compiler_needs_object_CXX=no
16564: export_dynamic_flag_spec_CXX=
16565: hardcode_direct_CXX=no
16566: hardcode_direct_absolute_CXX=no
16567: hardcode_libdir_flag_spec_CXX=
16568: hardcode_libdir_separator_CXX=
16569: hardcode_minus_L_CXX=no
16570: hardcode_shlibpath_var_CXX=unsupported
16571: hardcode_automatic_CXX=no
16572: inherit_rpath_CXX=no
16573: module_cmds_CXX=
16574: module_expsym_cmds_CXX=
16575: link_all_deplibs_CXX=unknown
16576: old_archive_cmds_CXX=$old_archive_cmds
16577: reload_flag_CXX=$reload_flag
16578: reload_cmds_CXX=$reload_cmds
16579: no_undefined_flag_CXX=
16580: whole_archive_flag_spec_CXX=
16581: enable_shared_with_static_runtimes_CXX=no
16582:
16583: # Source file extension for C++ test sources.
16584: ac_ext=cpp
16585:
16586: # Object file extension for compiled C++ test sources.
16587: objext=o
16588: objext_CXX=$objext
16589:
16590: # No sense in running all these tests if we already determined that
16591: # the CXX compiler isn't working. Some variables (like enable_shared)
16592: # are currently assumed to apply to all compilers on this platform,
16593: # and will be corrupted by setting them based on a non-working compiler.
1.237 moko 16594: if test yes != "$_lt_caught_CXX_error"; then
1.128 moko 16595: # Code to be used in simple compile tests
16596: lt_simple_compile_test_code="int some_variable = 0;"
16597:
16598: # Code to be used in simple link tests
16599: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16600:
16601: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16602:
16603:
16604:
16605:
16606:
16607:
16608: # If no C compiler was specified, use CC.
16609: LTCC=${LTCC-"$CC"}
16610:
16611: # If no C compiler flags were specified, use CFLAGS.
16612: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16613:
16614: # Allow CC to be a program name with arguments.
16615: compiler=$CC
16616:
16617:
16618: # save warnings/boilerplate of simple test code
16619: ac_outfile=conftest.$ac_objext
16620: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16621: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16622: _lt_compiler_boilerplate=`cat conftest.err`
16623: $RM conftest*
16624:
16625: ac_outfile=conftest.$ac_objext
16626: echo "$lt_simple_link_test_code" >conftest.$ac_ext
16627: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16628: _lt_linker_boilerplate=`cat conftest.err`
16629: $RM -r conftest*
16630:
16631:
16632: # Allow CC to be a program name with arguments.
16633: lt_save_CC=$CC
16634: lt_save_CFLAGS=$CFLAGS
16635: lt_save_LD=$LD
16636: lt_save_GCC=$GCC
16637: GCC=$GXX
16638: lt_save_with_gnu_ld=$with_gnu_ld
16639: lt_save_path_LD=$lt_cv_path_LD
16640: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16641: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16642: else
16643: $as_unset lt_cv_prog_gnu_ld
16644: fi
16645: if test -n "${lt_cv_path_LDCXX+set}"; then
16646: lt_cv_path_LD=$lt_cv_path_LDCXX
16647: else
16648: $as_unset lt_cv_path_LD
16649: fi
16650: test -z "${LDCXX+set}" || LD=$LDCXX
16651: CC=${CXX-"c++"}
16652: CFLAGS=$CXXFLAGS
16653: compiler=$CC
16654: compiler_CXX=$CC
1.237 moko 16655: func_cc_basename $compiler
16656: cc_basename=$func_cc_basename_result
1.128 moko 16657:
16658:
16659: if test -n "$compiler"; then
16660: # We don't want -fno-exception when compiling C++ code, so set the
16661: # no_builtin_flag separately
1.237 moko 16662: if test yes = "$GXX"; then
1.128 moko 16663: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16664: else
16665: lt_prog_compiler_no_builtin_flag_CXX=
16666: fi
16667:
1.237 moko 16668: if test yes = "$GXX"; then
1.128 moko 16669: # Set up default GNU C++ configuration
16670:
16671:
16672:
1.150 moko 16673: # Check whether --with-gnu-ld was given.
1.237 moko 16674: if test ${with_gnu_ld+y}
16675: then :
16676: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16677: else case e in #(
16678: e) with_gnu_ld=no ;;
16679: esac
1.150 moko 16680: fi
16681:
1.128 moko 16682: ac_prog=ld
1.237 moko 16683: if test yes = "$GCC"; then
1.128 moko 16684: # Check if gcc -print-prog-name=ld gives a path.
1.237 moko 16685: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16686: printf %s "checking for ld used by $CC... " >&6; }
1.128 moko 16687: case $host in
1.237 moko 16688: *-*-mingw* | *-*-windows*)
16689: # gcc leaves a trailing carriage return, which upsets mingw
1.128 moko 16690: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16691: *)
16692: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16693: esac
16694: case $ac_prog in
16695: # Accept absolute paths.
16696: [\\/]* | ?:[\\/]*)
16697: re_direlt='/[^/][^/]*/\.\./'
16698: # Canonicalize the pathname of ld
16699: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16700: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16701: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16702: done
1.237 moko 16703: test -z "$LD" && LD=$ac_prog
1.128 moko 16704: ;;
16705: "")
16706: # If it fails, then pretend we aren't using GCC.
16707: ac_prog=ld
16708: ;;
16709: *)
16710: # If it is relative, then search for the first ld in PATH.
16711: with_gnu_ld=unknown
16712: ;;
16713: esac
1.237 moko 16714: elif test yes = "$with_gnu_ld"; then
16715: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16716: printf %s "checking for GNU ld... " >&6; }
16717: else
16718: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16719: printf %s "checking for non-GNU ld... " >&6; }
16720: fi
16721: if test ${lt_cv_path_LD+y}
16722: then :
16723: printf %s "(cached) " >&6
16724: else case e in #(
16725: e) if test -z "$LD"; then
16726: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 16727: for ac_dir in $PATH; do
1.237 moko 16728: IFS=$lt_save_ifs
1.128 moko 16729: test -z "$ac_dir" && ac_dir=.
16730: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.237 moko 16731: lt_cv_path_LD=$ac_dir/$ac_prog
1.128 moko 16732: # Check to see if the program is GNU ld. I'd rather use --version,
16733: # but apparently some variants of GNU ld only accept -v.
16734: # Break only if it was the GNU/non-GNU ld that we prefer.
16735: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16736: *GNU* | *'with BFD'*)
1.237 moko 16737: test no != "$with_gnu_ld" && break
1.128 moko 16738: ;;
16739: *)
1.237 moko 16740: test yes != "$with_gnu_ld" && break
1.128 moko 16741: ;;
16742: esac
16743: fi
16744: done
1.237 moko 16745: IFS=$lt_save_ifs
1.128 moko 16746: else
1.237 moko 16747: lt_cv_path_LD=$LD # Let the user override the test with a path.
16748: fi ;;
16749: esac
1.128 moko 16750: fi
16751:
1.237 moko 16752: LD=$lt_cv_path_LD
1.128 moko 16753: if test -n "$LD"; then
1.237 moko 16754: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16755: printf "%s\n" "$LD" >&6; }
1.128 moko 16756: else
1.237 moko 16757: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16758: printf "%s\n" "no" >&6; }
1.128 moko 16759: fi
1.150 moko 16760: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.237 moko 16761: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16762: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16763: if test ${lt_cv_prog_gnu_ld+y}
16764: then :
16765: printf %s "(cached) " >&6
16766: else case e in #(
16767: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.128 moko 16768: case `$LD -v 2>&1 </dev/null` in
16769: *GNU* | *'with BFD'*)
16770: lt_cv_prog_gnu_ld=yes
16771: ;;
16772: *)
16773: lt_cv_prog_gnu_ld=no
16774: ;;
1.237 moko 16775: esac ;;
1.128 moko 16776: esac
16777: fi
1.237 moko 16778: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16779: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 16780: with_gnu_ld=$lt_cv_prog_gnu_ld
16781:
16782:
16783:
16784:
16785:
16786:
16787:
16788: # Check if GNU C++ uses GNU ld as the underlying linker, since the
16789: # archiving commands below assume that GNU ld is being used.
1.237 moko 16790: if test yes = "$with_gnu_ld"; then
16791: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16792: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 16793:
1.237 moko 16794: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16795: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 16796:
16797: # If archive_cmds runs LD, not CC, wlarc should be empty
16798: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16799: # investigate it a little bit more. (MM)
1.237 moko 16800: wlarc='$wl'
1.128 moko 16801:
16802: # ancient GNU ld didn't support --whole-archive et. al.
1.237 moko 16803: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16804: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 16805: else
16806: whole_archive_flag_spec_CXX=
16807: fi
16808: else
16809: with_gnu_ld=no
16810: wlarc=
16811:
16812: # A generic and very simple default shared library creation
16813: # command for GNU C++ for the case where it uses the native
16814: # linker, instead of GNU ld. If possible, this setting should
16815: # overridden to take advantage of the native linker features on
16816: # the platform it is being used on.
16817: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16818: fi
16819:
16820: # Commands to make compiler produce verbose output that lists
16821: # what "hidden" libraries, object files and flags are used when
16822: # linking a shared library.
1.237 moko 16823: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 16824:
16825: else
16826: GXX=no
16827: with_gnu_ld=no
16828: wlarc=
16829: fi
16830:
16831: # PORTME: fill in a description of your system's C++ link characteristics
1.237 moko 16832: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16833: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 16834: ld_shlibs_CXX=yes
16835: case $host_os in
16836: aix3*)
16837: # FIXME: insert proper C++ library support
16838: ld_shlibs_CXX=no
16839: ;;
16840: aix[4-9]*)
1.237 moko 16841: if test ia64 = "$host_cpu"; then
1.128 moko 16842: # On IA64, the linker does run time linking by default, so we don't
16843: # have to do anything special.
16844: aix_use_runtimelinking=no
16845: exp_sym_flag='-Bexport'
1.237 moko 16846: no_entry_flag=
1.128 moko 16847: else
16848: aix_use_runtimelinking=no
16849:
16850: # Test if we are trying to use run time linking or normal
16851: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 moko 16852: # have runtime linking enabled, and use it for executables.
16853: # For shared libraries, we enable/disable runtime linking
16854: # depending on the kind of the shared library created -
16855: # when "with_aix_soname,aix_use_runtimelinking" is:
16856: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16857: # "aix,yes" lib.so shared, rtl:yes, for executables
16858: # lib.a static archive
16859: # "both,no" lib.so.V(shr.o) shared, rtl:yes
16860: # lib.a(lib.so.V) shared, rtl:no, for executables
16861: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16862: # lib.a(lib.so.V) shared, rtl:no
16863: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16864: # lib.a static archive
1.128 moko 16865: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16866: for ld_flag in $LDFLAGS; do
16867: case $ld_flag in
16868: *-brtl*)
16869: aix_use_runtimelinking=yes
16870: break
16871: ;;
16872: esac
16873: done
1.237 moko 16874: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16875: # With aix-soname=svr4, we create the lib.so.V shared archives only,
16876: # so we don't have lib.a shared libs to link our executables.
16877: # We have to force runtime linking in this case.
16878: aix_use_runtimelinking=yes
16879: LDFLAGS="$LDFLAGS -Wl,-brtl"
16880: fi
1.128 moko 16881: ;;
16882: esac
16883:
16884: exp_sym_flag='-bexport'
16885: no_entry_flag='-bnoentry'
16886: fi
16887:
16888: # When large executables or shared objects are built, AIX ld can
16889: # have problems creating the table of contents. If linking a library
16890: # or program results in "error TOC overflow" add -mminimal-toc to
16891: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16892: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16893:
16894: archive_cmds_CXX=''
16895: hardcode_direct_CXX=yes
16896: hardcode_direct_absolute_CXX=yes
16897: hardcode_libdir_separator_CXX=':'
16898: link_all_deplibs_CXX=yes
1.237 moko 16899: file_list_spec_CXX='$wl-f,'
16900: case $with_aix_soname,$aix_use_runtimelinking in
16901: aix,*) ;; # no import file
16902: svr4,* | *,yes) # use import file
16903: # The Import File defines what to hardcode.
16904: hardcode_direct_CXX=no
16905: hardcode_direct_absolute_CXX=no
16906: ;;
16907: esac
1.128 moko 16908:
1.237 moko 16909: if test yes = "$GXX"; then
1.128 moko 16910: case $host_os in aix4.[012]|aix4.[012].*)
16911: # We only want to do this on AIX 4.2 and lower, the check
16912: # below for broken collect2 doesn't work under 4.3+
1.237 moko 16913: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 16914: if test -f "$collect2name" &&
16915: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16916: then
16917: # We have reworked collect2
16918: :
16919: else
16920: # We have old collect2
16921: hardcode_direct_CXX=unsupported
16922: # It fails to find uninstalled libraries when the uninstalled
16923: # path is not listed in the libpath. Setting hardcode_minus_L
16924: # to unsupported forces relinking
16925: hardcode_minus_L_CXX=yes
16926: hardcode_libdir_flag_spec_CXX='-L$libdir'
16927: hardcode_libdir_separator_CXX=
16928: fi
16929: esac
16930: shared_flag='-shared'
1.237 moko 16931: if test yes = "$aix_use_runtimelinking"; then
16932: shared_flag=$shared_flag' $wl-G'
1.128 moko 16933: fi
1.237 moko 16934: # Need to ensure runtime linking is disabled for the traditional
16935: # shared library, or the linker may eventually find shared libraries
16936: # /with/ Import File - we do not want to mix them.
16937: shared_flag_aix='-shared'
16938: shared_flag_svr4='-shared $wl-G'
1.128 moko 16939: else
16940: # not using gcc
1.237 moko 16941: if test ia64 = "$host_cpu"; then
1.128 moko 16942: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16943: # chokes on -Wl,-G. The following line is correct:
16944: shared_flag='-G'
16945: else
1.237 moko 16946: if test yes = "$aix_use_runtimelinking"; then
16947: shared_flag='$wl-G'
1.128 moko 16948: else
1.237 moko 16949: shared_flag='$wl-bM:SRE'
1.128 moko 16950: fi
1.237 moko 16951: shared_flag_aix='$wl-bM:SRE'
16952: shared_flag_svr4='$wl-G'
1.128 moko 16953: fi
16954: fi
16955:
1.237 moko 16956: export_dynamic_flag_spec_CXX='$wl-bexpall'
1.128 moko 16957: # It seems that -bexpall does not export symbols beginning with
16958: # underscore (_), so it is better to generate a list of symbols to
16959: # export.
16960: always_export_symbols_CXX=yes
1.237 moko 16961: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 16962: # Warning - without using the other runtime loading flags (-brtl),
16963: # -berok will link without error, but may produce a broken library.
1.237 moko 16964: # The "-G" linker flag allows undefined symbols.
16965: no_undefined_flag_CXX='-bernotok'
1.128 moko 16966: # Determine the default libpath from the value encoded in an empty
16967: # executable.
1.237 moko 16968: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 16969: aix_libpath=$lt_cv_aix_libpath
16970: else
1.237 moko 16971: if test ${lt_cv_aix_libpath__CXX+y}
16972: then :
16973: printf %s "(cached) " >&6
16974: else case e in #(
16975: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16976: /* end confdefs.h. */
16977:
16978: int
1.237 moko 16979: main (void)
1.128 moko 16980: {
16981:
16982: ;
16983: return 0;
16984: }
16985: _ACEOF
1.237 moko 16986: if ac_fn_cxx_try_link "$LINENO"
16987: then :
1.128 moko 16988:
16989: lt_aix_libpath_sed='
16990: /Import File Strings/,/^$/ {
16991: /^0/ {
16992: s/^0 *\([^ ]*\) *$/\1/
16993: p
16994: }
16995: }'
16996: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16997: # Check for a 64-bit object if we didn't find anything.
16998: if test -z "$lt_cv_aix_libpath__CXX"; then
16999: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17000: fi
17001: fi
1.237 moko 17002: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 17003: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17004: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 moko 17005: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 17006: fi
1.237 moko 17007: ;;
17008: esac
1.128 moko 17009: fi
17010:
17011: aix_libpath=$lt_cv_aix_libpath__CXX
17012: fi
17013:
1.237 moko 17014: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 17015:
1.237 moko 17016: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.128 moko 17017: else
1.237 moko 17018: if test ia64 = "$host_cpu"; then
17019: hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 17020: allow_undefined_flag_CXX="-z nodefs"
1.237 moko 17021: archive_expsym_cmds_CXX="\$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"
1.128 moko 17022: else
17023: # Determine the default libpath from the value encoded in an
17024: # empty executable.
1.237 moko 17025: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 17026: aix_libpath=$lt_cv_aix_libpath
17027: else
1.237 moko 17028: if test ${lt_cv_aix_libpath__CXX+y}
17029: then :
17030: printf %s "(cached) " >&6
17031: else case e in #(
17032: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17033: /* end confdefs.h. */
17034:
17035: int
1.237 moko 17036: main (void)
1.128 moko 17037: {
17038:
17039: ;
17040: return 0;
17041: }
17042: _ACEOF
1.237 moko 17043: if ac_fn_cxx_try_link "$LINENO"
17044: then :
1.128 moko 17045:
17046: lt_aix_libpath_sed='
17047: /Import File Strings/,/^$/ {
17048: /^0/ {
17049: s/^0 *\([^ ]*\) *$/\1/
17050: p
17051: }
17052: }'
17053: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17054: # Check for a 64-bit object if we didn't find anything.
17055: if test -z "$lt_cv_aix_libpath__CXX"; then
17056: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17057: fi
17058: fi
1.237 moko 17059: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 17060: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17061: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 moko 17062: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 17063: fi
1.237 moko 17064: ;;
17065: esac
1.128 moko 17066: fi
17067:
17068: aix_libpath=$lt_cv_aix_libpath__CXX
17069: fi
17070:
1.237 moko 17071: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 17072: # Warning - without using the other run time loading flags,
17073: # -berok will link without error, but may produce a broken library.
1.237 moko 17074: no_undefined_flag_CXX=' $wl-bernotok'
17075: allow_undefined_flag_CXX=' $wl-berok'
17076: if test yes = "$with_gnu_ld"; then
1.128 moko 17077: # We only use this code for GNU lds that support --whole-archive.
1.237 moko 17078: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 17079: else
17080: # Exported symbols can be pulled into shared objects from archives
17081: whole_archive_flag_spec_CXX='$convenience'
17082: fi
17083: archive_cmds_need_lc_CXX=yes
1.237 moko 17084: archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17085: # -brtl affects multiple linker settings, -berok does not and is overridden later
17086: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17087: if test svr4 != "$with_aix_soname"; then
17088: # This is similar to how AIX traditionally builds its shared
17089: # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17090: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17091: fi
17092: if test aix != "$with_aix_soname"; then
17093: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17094: else
17095: # used by -dlpreopen to get the symbols
17096: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17097: fi
17098: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
1.128 moko 17099: fi
17100: fi
17101: ;;
17102:
17103: beos*)
17104: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17105: allow_undefined_flag_CXX=unsupported
17106: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17107: # support --undefined. This deserves some investigation. FIXME
1.237 moko 17108: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 17109: else
17110: ld_shlibs_CXX=no
17111: fi
17112: ;;
17113:
17114: chorus*)
17115: case $cc_basename in
17116: *)
17117: # FIXME: insert proper C++ library support
17118: ld_shlibs_CXX=no
17119: ;;
17120: esac
17121: ;;
17122:
1.237 moko 17123: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 17124: case $GXX,$cc_basename in
1.237 moko 17125: ,cl* | no,cl* | ,icl* | no,icl*)
17126: # Native MSVC or ICC
1.128 moko 17127: # hardcode_libdir_flag_spec is actually meaningless, as there is
17128: # no search path for DLLs.
17129: hardcode_libdir_flag_spec_CXX=' '
17130: allow_undefined_flag_CXX=unsupported
17131: always_export_symbols_CXX=yes
17132: file_list_spec_CXX='@'
17133: # Tell ltmain to make .lib files, not .a files.
17134: libext=lib
17135: # Tell ltmain to make .dll files, not .so files.
1.237 moko 17136: shrext_cmds=.dll
1.128 moko 17137: # FIXME: Setting linknames here is a bad hack.
1.237 moko 17138: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17139: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17140: cp "$export_symbols" "$output_objdir/$soname.def";
17141: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17142: else
17143: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17144: fi~
17145: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17146: linknames='
1.128 moko 17147: # The linker will not automatically build a static lib if we build a DLL.
17148: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17149: enable_shared_with_static_runtimes_CXX=yes
17150: # Don't use ranlib
17151: old_postinstall_cmds_CXX='chmod 644 $oldlib'
17152: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
1.237 moko 17153: lt_tool_outputfile="@TOOL_OUTPUT@"~
17154: case $lt_outputfile in
17155: *.exe|*.EXE) ;;
17156: *)
17157: lt_outputfile=$lt_outputfile.exe
17158: lt_tool_outputfile=$lt_tool_outputfile.exe
17159: ;;
17160: esac~
17161: func_to_tool_file "$lt_outputfile"~
17162: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17163: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17164: $RM "$lt_outputfile.manifest";
17165: fi'
1.128 moko 17166: ;;
17167: *)
17168: # g++
17169: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17170: # as there is no search path for DLLs.
17171: hardcode_libdir_flag_spec_CXX='-L$libdir'
1.237 moko 17172: export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
1.128 moko 17173: allow_undefined_flag_CXX=unsupported
17174: always_export_symbols_CXX=no
17175: enable_shared_with_static_runtimes_CXX=yes
1.237 moko 17176: file_list_spec_CXX='@'
1.128 moko 17177:
17178: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 moko 17179: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17180: # If the export-symbols file already is a .def file, use it as
17181: # is; otherwise, prepend EXPORTS...
17182: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17183: cp $export_symbols $output_objdir/$soname.def;
17184: else
17185: echo EXPORTS > $output_objdir/$soname.def;
17186: cat $export_symbols >> $output_objdir/$soname.def;
17187: fi~
17188: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.128 moko 17189: else
17190: ld_shlibs_CXX=no
17191: fi
17192: ;;
17193: esac
17194: ;;
17195: darwin* | rhapsody*)
17196:
17197:
17198: archive_cmds_need_lc_CXX=no
17199: hardcode_direct_CXX=no
17200: hardcode_automatic_CXX=yes
17201: hardcode_shlibpath_var_CXX=unsupported
1.237 moko 17202: if test yes = "$lt_cv_ld_force_load"; then
17203: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.128 moko 17204:
17205: else
17206: whole_archive_flag_spec_CXX=''
17207: fi
17208: link_all_deplibs_CXX=yes
1.237 moko 17209: allow_undefined_flag_CXX=$_lt_dar_allow_undefined
1.128 moko 17210: case $cc_basename in
1.237 moko 17211: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 17212: *) _lt_dar_can_shared=$GCC ;;
17213: esac
1.237 moko 17214: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 17215: output_verbose_link_cmd=func_echo_all
1.237 moko 17216: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17217: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17218: archive_expsym_cmds_CXX="$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"
17219: module_expsym_cmds_CXX="$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"
17220: if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17221: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17222: archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1.128 moko 17223: fi
17224:
17225: else
17226: ld_shlibs_CXX=no
17227: fi
17228:
17229: ;;
17230:
1.237 moko 17231: os2*)
17232: hardcode_libdir_flag_spec_CXX='-L$libdir'
17233: hardcode_minus_L_CXX=yes
17234: allow_undefined_flag_CXX=unsupported
17235: shrext_cmds=.dll
17236: archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17237: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17238: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17239: $ECHO EXPORTS >> $output_objdir/$libname.def~
17240: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17241: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17242: emximp -o $lib $output_objdir/$libname.def'
17243: archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17244: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17245: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17246: $ECHO EXPORTS >> $output_objdir/$libname.def~
17247: prefix_cmds="$SED"~
17248: if test EXPORTS = "`$SED 1q $export_symbols`"; then
17249: prefix_cmds="$prefix_cmds -e 1d";
17250: fi~
17251: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17252: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17253: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17254: emximp -o $lib $output_objdir/$libname.def'
17255: old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17256: enable_shared_with_static_runtimes_CXX=yes
17257: file_list_spec_CXX='@'
17258: ;;
17259:
1.128 moko 17260: dgux*)
17261: case $cc_basename in
17262: ec++*)
17263: # FIXME: insert proper C++ library support
17264: ld_shlibs_CXX=no
17265: ;;
17266: ghcx*)
17267: # Green Hills C++ Compiler
17268: # FIXME: insert proper C++ library support
17269: ld_shlibs_CXX=no
17270: ;;
17271: *)
17272: # FIXME: insert proper C++ library support
17273: ld_shlibs_CXX=no
17274: ;;
17275: esac
17276: ;;
17277:
17278: freebsd2.*)
17279: # C++ shared libraries reported to be fairly broken before
17280: # switch to ELF
17281: ld_shlibs_CXX=no
17282: ;;
17283:
17284: freebsd-elf*)
17285: archive_cmds_need_lc_CXX=no
17286: ;;
17287:
1.237 moko 17288: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 17289: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17290: # conventions
17291: ld_shlibs_CXX=yes
17292: ;;
17293:
17294: haiku*)
1.237 moko 17295: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17296: link_all_deplibs_CXX=no
1.128 moko 17297: ;;
17298:
17299: hpux9*)
1.237 moko 17300: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 17301: hardcode_libdir_separator_CXX=:
1.237 moko 17302: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 17303: hardcode_direct_CXX=yes
17304: hardcode_minus_L_CXX=yes # Not in the search PATH,
17305: # but as the default
17306: # location of the library.
17307:
17308: case $cc_basename in
17309: CC*)
17310: # FIXME: insert proper C++ library support
17311: ld_shlibs_CXX=no
17312: ;;
17313: aCC*)
1.237 moko 17314: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 17315: # Commands to make compiler produce verbose output that lists
17316: # what "hidden" libraries, object files and flags are used when
17317: # linking a shared library.
17318: #
17319: # There doesn't appear to be a way to prevent this compiler from
17320: # explicitly linking system object files so we need to strip them
17321: # from the output so that they don't get included in the library
17322: # dependencies.
1.237 moko 17323: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17324: ;;
17325: *)
1.237 moko 17326: if test yes = "$GXX"; then
17327: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 17328: else
17329: # FIXME: insert proper C++ library support
17330: ld_shlibs_CXX=no
17331: fi
17332: ;;
17333: esac
17334: ;;
17335:
17336: hpux10*|hpux11*)
1.237 moko 17337: if test no = "$with_gnu_ld"; then
17338: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 17339: hardcode_libdir_separator_CXX=:
17340:
17341: case $host_cpu in
17342: hppa*64*|ia64*)
17343: ;;
17344: *)
1.237 moko 17345: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 17346: ;;
17347: esac
17348: fi
17349: case $host_cpu in
17350: hppa*64*|ia64*)
17351: hardcode_direct_CXX=no
17352: hardcode_shlibpath_var_CXX=no
17353: ;;
17354: *)
17355: hardcode_direct_CXX=yes
17356: hardcode_direct_absolute_CXX=yes
17357: hardcode_minus_L_CXX=yes # Not in the search PATH,
17358: # but as the default
17359: # location of the library.
17360: ;;
17361: esac
17362:
17363: case $cc_basename in
17364: CC*)
17365: # FIXME: insert proper C++ library support
17366: ld_shlibs_CXX=no
17367: ;;
17368: aCC*)
17369: case $host_cpu in
17370: hppa*64*)
1.237 moko 17371: archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17372: ;;
17373: ia64*)
1.237 moko 17374: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17375: ;;
17376: *)
1.237 moko 17377: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17378: ;;
17379: esac
17380: # Commands to make compiler produce verbose output that lists
17381: # what "hidden" libraries, object files and flags are used when
17382: # linking a shared library.
17383: #
17384: # There doesn't appear to be a way to prevent this compiler from
17385: # explicitly linking system object files so we need to strip them
17386: # from the output so that they don't get included in the library
17387: # dependencies.
1.237 moko 17388: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17389: ;;
17390: *)
1.237 moko 17391: if test yes = "$GXX"; then
17392: if test no = "$with_gnu_ld"; then
1.128 moko 17393: case $host_cpu in
17394: hppa*64*)
1.237 moko 17395: archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17396: ;;
17397: ia64*)
1.237 moko 17398: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17399: ;;
17400: *)
1.237 moko 17401: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17402: ;;
17403: esac
17404: fi
17405: else
17406: # FIXME: insert proper C++ library support
17407: ld_shlibs_CXX=no
17408: fi
17409: ;;
17410: esac
17411: ;;
17412:
17413: interix[3-9]*)
17414: hardcode_direct_CXX=no
17415: hardcode_shlibpath_var_CXX=no
1.237 moko 17416: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17417: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 17418: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17419: # Instead, shared libraries are loaded at an image base (0x10000000 by
17420: # default) and relocated if they conflict, which is a slow very memory
17421: # consuming and fragmenting process. To avoid this, we pick a random,
17422: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17423: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 moko 17424: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17425: archive_expsym_cmds_CXX='$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'
1.128 moko 17426: ;;
17427: irix5* | irix6*)
17428: case $cc_basename in
17429: CC*)
17430: # SGI C++
1.237 moko 17431: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.128 moko 17432:
17433: # Archives containing C++ object files must be created using
17434: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17435: # necessary to make sure instantiated templates are included
17436: # in the archive.
17437: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17438: ;;
17439: *)
1.237 moko 17440: if test yes = "$GXX"; then
17441: if test no = "$with_gnu_ld"; then
17442: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 17443: else
1.237 moko 17444: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
1.128 moko 17445: fi
17446: fi
17447: link_all_deplibs_CXX=yes
17448: ;;
17449: esac
1.237 moko 17450: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17451: hardcode_libdir_separator_CXX=:
17452: inherit_rpath_CXX=yes
17453: ;;
17454:
1.237 moko 17455: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 17456: case $cc_basename in
17457: KCC*)
17458: # Kuck and Associates, Inc. (KAI) C++ Compiler
17459:
17460: # KCC will only create a shared library if the output file
17461: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17462: # to its proper name (with version) after linking.
1.237 moko 17463: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17464: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
1.128 moko 17465: # Commands to make compiler produce verbose output that lists
17466: # what "hidden" libraries, object files and flags are used when
17467: # linking a shared library.
17468: #
17469: # There doesn't appear to be a way to prevent this compiler from
17470: # explicitly linking system object files so we need to strip them
17471: # from the output so that they don't get included in the library
17472: # dependencies.
1.237 moko 17473: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17474:
1.237 moko 17475: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17476: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 17477:
17478: # Archives containing C++ object files must be created using
17479: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17480: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17481: ;;
17482: icpc* | ecpc* )
17483: # Intel C++
17484: with_gnu_ld=yes
17485: # version 8.0 and above of icpc choke on multiply defined symbols
17486: # if we add $predep_objects and $postdep_objects, however 7.1 and
17487: # earlier do not add the objects themselves.
17488: case `$CC -V 2>&1` in
17489: *"Version 7."*)
1.237 moko 17490: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17491: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17492: ;;
17493: *) # Version 8.0 or newer
17494: tmp_idyn=
17495: case $host_cpu in
17496: ia64*) tmp_idyn=' -i_dynamic';;
17497: esac
1.237 moko 17498: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17499: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17500: ;;
17501: esac
17502: archive_cmds_need_lc_CXX=no
1.237 moko 17503: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17504: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17505: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 17506: ;;
17507: pgCC* | pgcpp*)
17508: # Portland Group C++ compiler
17509: case `$CC -V` in
17510: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17511: prelink_cmds_CXX='tpldir=Template.dir~
1.237 moko 17512: rm -rf $tpldir~
17513: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17514: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1.128 moko 17515: old_archive_cmds_CXX='tpldir=Template.dir~
1.237 moko 17516: rm -rf $tpldir~
17517: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17518: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17519: $RANLIB $oldlib'
1.128 moko 17520: archive_cmds_CXX='tpldir=Template.dir~
1.237 moko 17521: rm -rf $tpldir~
17522: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17523: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 17524: archive_expsym_cmds_CXX='tpldir=Template.dir~
1.237 moko 17525: rm -rf $tpldir~
17526: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17527: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17528: ;;
17529: *) # Version 6 and above use weak symbols
1.237 moko 17530: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17531: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17532: ;;
17533: esac
17534:
1.237 moko 17535: hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17536: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17537: whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 17538: ;;
17539: cxx*)
17540: # Compaq C++
1.237 moko 17541: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17542: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
1.128 moko 17543:
17544: runpath_var=LD_RUN_PATH
17545: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17546: hardcode_libdir_separator_CXX=:
17547:
17548: # Commands to make compiler produce verbose output that lists
17549: # what "hidden" libraries, object files and flags are used when
17550: # linking a shared library.
17551: #
17552: # There doesn't appear to be a way to prevent this compiler from
17553: # explicitly linking system object files so we need to strip them
17554: # from the output so that they don't get included in the library
17555: # dependencies.
1.237 moko 17556: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
1.128 moko 17557: ;;
17558: xl* | mpixl* | bgxl*)
17559: # IBM XL 8.0 on PPC, with GNU ld
1.237 moko 17560: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17561: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17562: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17563: if test yes = "$supports_anon_versioning"; then
1.128 moko 17564: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 17565: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17566: echo "local: *; };" >> $output_objdir/$libname.ver~
17567: $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.128 moko 17568: fi
17569: ;;
17570: *)
1.237 moko 17571: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 17572: *Sun\ C*)
17573: # Sun C++ 5.9
17574: no_undefined_flag_CXX=' -zdefs'
1.237 moko 17575: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17576: archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
1.128 moko 17577: hardcode_libdir_flag_spec_CXX='-R$libdir'
1.237 moko 17578: whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 17579: compiler_needs_object_CXX=yes
17580:
17581: # Not sure whether something based on
17582: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17583: # would be better.
17584: output_verbose_link_cmd='func_echo_all'
17585:
17586: # Archives containing C++ object files must be created using
17587: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17588: # necessary to make sure instantiated templates are included
17589: # in the archive.
17590: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17591: ;;
17592: esac
17593: ;;
17594: esac
17595: ;;
17596:
17597: lynxos*)
17598: # FIXME: insert proper C++ library support
17599: ld_shlibs_CXX=no
17600: ;;
17601:
17602: m88k*)
17603: # FIXME: insert proper C++ library support
17604: ld_shlibs_CXX=no
17605: ;;
17606:
17607: mvs*)
17608: case $cc_basename in
17609: cxx*)
17610: # FIXME: insert proper C++ library support
17611: ld_shlibs_CXX=no
17612: ;;
17613: *)
17614: # FIXME: insert proper C++ library support
17615: ld_shlibs_CXX=no
17616: ;;
17617: esac
17618: ;;
17619:
1.237 moko 17620: *-mlibc)
17621: ld_shlibs_CXX=yes
17622: ;;
17623:
1.128 moko 17624: netbsd*)
17625: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17626: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17627: wlarc=
17628: hardcode_libdir_flag_spec_CXX='-R$libdir'
17629: hardcode_direct_CXX=yes
17630: hardcode_shlibpath_var_CXX=no
17631: fi
17632: # Workaround some broken pre-1.5 toolchains
17633: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17634: ;;
17635:
17636: *nto* | *qnx*)
17637: ld_shlibs_CXX=yes
17638: ;;
17639:
17640: openbsd*)
17641: if test -f /usr/libexec/ld.so; then
17642: hardcode_direct_CXX=yes
17643: hardcode_shlibpath_var_CXX=no
17644: hardcode_direct_absolute_CXX=yes
17645: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.237 moko 17646: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17647: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17648: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17649: export_dynamic_flag_spec_CXX='$wl-E'
17650: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 17651: fi
17652: output_verbose_link_cmd=func_echo_all
17653: else
17654: ld_shlibs_CXX=no
17655: fi
17656: ;;
17657:
17658: osf3* | osf4* | osf5*)
17659: case $cc_basename in
17660: KCC*)
17661: # Kuck and Associates, Inc. (KAI) C++ Compiler
17662:
17663: # KCC will only create a shared library if the output file
17664: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17665: # to its proper name (with version) after linking.
1.237 moko 17666: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.128 moko 17667:
1.237 moko 17668: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
1.128 moko 17669: hardcode_libdir_separator_CXX=:
17670:
17671: # Archives containing C++ object files must be created using
17672: # the KAI C++ compiler.
17673: case $host in
17674: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17675: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17676: esac
17677: ;;
17678: RCC*)
17679: # Rational C++ 2.4.1
17680: # FIXME: insert proper C++ library support
17681: ld_shlibs_CXX=no
17682: ;;
17683: cxx*)
17684: case $host in
17685: osf3*)
1.237 moko 17686: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17687: archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17688: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17689: ;;
17690: *)
17691: allow_undefined_flag_CXX=' -expect_unresolved \*'
1.237 moko 17692: archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.128 moko 17693: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1.237 moko 17694: echo "-hidden">> $lib.exp~
17695: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17696: $RM $lib.exp'
1.128 moko 17697: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17698: ;;
17699: esac
17700:
17701: hardcode_libdir_separator_CXX=:
17702:
17703: # Commands to make compiler produce verbose output that lists
17704: # what "hidden" libraries, object files and flags are used when
17705: # linking a shared library.
17706: #
17707: # There doesn't appear to be a way to prevent this compiler from
17708: # explicitly linking system object files so we need to strip them
17709: # from the output so that they don't get included in the library
17710: # dependencies.
1.237 moko 17711: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17712: ;;
17713: *)
1.237 moko 17714: if test yes,no = "$GXX,$with_gnu_ld"; then
17715: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
1.128 moko 17716: case $host in
17717: osf3*)
1.237 moko 17718: archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 17719: ;;
17720: *)
1.237 moko 17721: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 17722: ;;
17723: esac
17724:
1.237 moko 17725: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17726: hardcode_libdir_separator_CXX=:
17727:
17728: # Commands to make compiler produce verbose output that lists
17729: # what "hidden" libraries, object files and flags are used when
17730: # linking a shared library.
1.237 moko 17731: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17732:
17733: else
17734: # FIXME: insert proper C++ library support
17735: ld_shlibs_CXX=no
17736: fi
17737: ;;
17738: esac
17739: ;;
17740:
17741: psos*)
17742: # FIXME: insert proper C++ library support
17743: ld_shlibs_CXX=no
17744: ;;
17745:
1.237 moko 17746: serenity*)
17747: ;;
17748:
1.128 moko 17749: sunos4*)
17750: case $cc_basename in
17751: CC*)
17752: # Sun C++ 4.x
17753: # FIXME: insert proper C++ library support
17754: ld_shlibs_CXX=no
17755: ;;
17756: lcc*)
17757: # Lucid
17758: # FIXME: insert proper C++ library support
17759: ld_shlibs_CXX=no
17760: ;;
17761: *)
17762: # FIXME: insert proper C++ library support
17763: ld_shlibs_CXX=no
17764: ;;
17765: esac
17766: ;;
17767:
17768: solaris*)
17769: case $cc_basename in
17770: CC* | sunCC*)
17771: # Sun C++ 4.2, 5.x and Centerline C++
17772: archive_cmds_need_lc_CXX=yes
17773: no_undefined_flag_CXX=' -zdefs'
1.237 moko 17774: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17775: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17776: $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17777:
17778: hardcode_libdir_flag_spec_CXX='-R$libdir'
17779: hardcode_shlibpath_var_CXX=no
17780: case $host_os in
17781: solaris2.[0-5] | solaris2.[0-5].*) ;;
17782: *)
17783: # The compiler driver will combine and reorder linker options,
1.237 moko 17784: # but understands '-z linker_flag'.
1.128 moko 17785: # Supported since Solaris 2.6 (maybe 2.5.1?)
17786: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17787: ;;
17788: esac
17789: link_all_deplibs_CXX=yes
17790:
17791: output_verbose_link_cmd='func_echo_all'
17792:
17793: # Archives containing C++ object files must be created using
17794: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17795: # necessary to make sure instantiated templates are included
17796: # in the archive.
17797: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17798: ;;
17799: gcx*)
17800: # Green Hills C++ Compiler
1.237 moko 17801: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17802:
17803: # The C++ compiler must be used to create the archive.
17804: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17805: ;;
17806: *)
17807: # GNU C++ compiler with Solaris linker
1.237 moko 17808: if test yes,no = "$GXX,$with_gnu_ld"; then
17809: no_undefined_flag_CXX=' $wl-z ${wl}defs'
1.128 moko 17810: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
1.237 moko 17811: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17812: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17813: $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17814:
17815: # Commands to make compiler produce verbose output that lists
17816: # what "hidden" libraries, object files and flags are used when
17817: # linking a shared library.
1.237 moko 17818: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17819: else
1.237 moko 17820: # g++ 2.7 appears to require '-G' NOT '-shared' on this
1.128 moko 17821: # platform.
1.237 moko 17822: archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17823: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17824: $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17825:
17826: # Commands to make compiler produce verbose output that lists
17827: # what "hidden" libraries, object files and flags are used when
17828: # linking a shared library.
1.237 moko 17829: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17830: fi
17831:
1.237 moko 17832: hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1.128 moko 17833: case $host_os in
17834: solaris2.[0-5] | solaris2.[0-5].*) ;;
17835: *)
1.237 moko 17836: whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 17837: ;;
17838: esac
17839: fi
17840: ;;
17841: esac
17842: ;;
17843:
17844: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 moko 17845: no_undefined_flag_CXX='$wl-z,text'
1.128 moko 17846: archive_cmds_need_lc_CXX=no
17847: hardcode_shlibpath_var_CXX=no
17848: runpath_var='LD_RUN_PATH'
17849:
17850: case $cc_basename in
17851: CC*)
1.237 moko 17852: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17853: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17854: ;;
17855: *)
1.237 moko 17856: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17857: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17858: ;;
17859: esac
17860: ;;
17861:
17862: sysv5* | sco3.2v5* | sco5v6*)
1.237 moko 17863: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 17864: # link with -lc, and that would cause any symbols used from libc to
17865: # always be unresolved, which means just about no library would
17866: # ever link correctly. If we're not using GNU ld we use -z text
17867: # though, which does catch some bad symbols but isn't as heavy-handed
17868: # as -z defs.
1.237 moko 17869: no_undefined_flag_CXX='$wl-z,text'
17870: allow_undefined_flag_CXX='$wl-z,nodefs'
1.128 moko 17871: archive_cmds_need_lc_CXX=no
17872: hardcode_shlibpath_var_CXX=no
1.237 moko 17873: hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
1.128 moko 17874: hardcode_libdir_separator_CXX=':'
17875: link_all_deplibs_CXX=yes
1.237 moko 17876: export_dynamic_flag_spec_CXX='$wl-Bexport'
1.128 moko 17877: runpath_var='LD_RUN_PATH'
17878:
17879: case $cc_basename in
17880: CC*)
1.237 moko 17881: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17882: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17883: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
1.237 moko 17884: '"$old_archive_cmds_CXX"
1.128 moko 17885: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
1.237 moko 17886: '"$reload_cmds_CXX"
1.128 moko 17887: ;;
17888: *)
1.237 moko 17889: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17890: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17891: ;;
17892: esac
17893: ;;
17894:
17895: tandem*)
17896: case $cc_basename in
17897: NCC*)
17898: # NonStop-UX NCC 3.20
17899: # FIXME: insert proper C++ library support
17900: ld_shlibs_CXX=no
17901: ;;
17902: *)
17903: # FIXME: insert proper C++ library support
17904: ld_shlibs_CXX=no
17905: ;;
17906: esac
17907: ;;
17908:
17909: vxworks*)
17910: # FIXME: insert proper C++ library support
17911: ld_shlibs_CXX=no
17912: ;;
17913:
17914: *)
17915: # FIXME: insert proper C++ library support
17916: ld_shlibs_CXX=no
17917: ;;
17918: esac
17919:
1.237 moko 17920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17921: printf "%s\n" "$ld_shlibs_CXX" >&6; }
17922: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 17923:
1.237 moko 17924: GCC_CXX=$GXX
17925: LD_CXX=$LD
1.128 moko 17926:
17927: ## CAVEAT EMPTOR:
17928: ## There is no encapsulation within the following macros, do not change
17929: ## the running order or otherwise move them around unless you know exactly
17930: ## what you are doing...
17931: # Dependencies to place before and after the object being linked:
17932: predep_objects_CXX=
17933: postdep_objects_CXX=
17934: predeps_CXX=
17935: postdeps_CXX=
17936: compiler_lib_search_path_CXX=
17937:
17938: cat > conftest.$ac_ext <<_LT_EOF
17939: class Foo
17940: {
17941: public:
17942: Foo (void) { a = 0; }
17943: private:
17944: int a;
17945: };
17946: _LT_EOF
17947:
17948:
17949: _lt_libdeps_save_CFLAGS=$CFLAGS
17950: case "$CC $CFLAGS " in #(
17951: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17952: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17953: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17954: esac
17955:
1.150 moko 17956: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 17957: (eval $ac_compile) 2>&5
17958: ac_status=$?
1.237 moko 17959: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 17960: test $ac_status = 0; }; then
1.128 moko 17961: # Parse the compiler output and extract the necessary
17962: # objects, libraries and library flags.
17963:
17964: # Sentinel used to keep track of whether or not we are before
17965: # the conftest object file.
17966: pre_test_object_deps_done=no
17967:
17968: for p in `eval "$output_verbose_link_cmd"`; do
1.237 moko 17969: case $prev$p in
1.128 moko 17970:
17971: -L* | -R* | -l*)
1.237 moko 17972: # Some compilers place space between "-{L,R,l}" and the path.
1.128 moko 17973: # Remove the space.
1.237 moko 17974: if test x-L = x"$p" ||
17975: test x-R = x"$p" ||
17976: test x-l = x"$p"; then
1.128 moko 17977: prev=$p
17978: continue
17979: fi
17980:
17981: # Expand the sysroot to ease extracting the directories later.
17982: if test -z "$prev"; then
17983: case $p in
17984: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17985: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17986: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17987: esac
17988: fi
17989: case $p in
17990: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17991: esac
1.237 moko 17992: if test no = "$pre_test_object_deps_done"; then
17993: case $prev in
1.128 moko 17994: -L | -R)
17995: # Internal compiler library paths should come after those
17996: # provided the user. The postdeps already come after the
17997: # user supplied libs so there is no need to process them.
17998: if test -z "$compiler_lib_search_path_CXX"; then
1.237 moko 17999: compiler_lib_search_path_CXX=$prev$p
1.128 moko 18000: else
1.237 moko 18001: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
1.128 moko 18002: fi
18003: ;;
18004: # The "-l" case would never come before the object being
18005: # linked, so don't bother handling this case.
18006: esac
18007: else
18008: if test -z "$postdeps_CXX"; then
1.237 moko 18009: postdeps_CXX=$prev$p
1.128 moko 18010: else
1.237 moko 18011: postdeps_CXX="${postdeps_CXX} $prev$p"
1.128 moko 18012: fi
18013: fi
18014: prev=
18015: ;;
18016:
18017: *.lto.$objext) ;; # Ignore GCC LTO objects
18018: *.$objext)
18019: # This assumes that the test object file only shows up
18020: # once in the compiler output.
18021: if test "$p" = "conftest.$objext"; then
18022: pre_test_object_deps_done=yes
18023: continue
18024: fi
18025:
1.237 moko 18026: if test no = "$pre_test_object_deps_done"; then
1.128 moko 18027: if test -z "$predep_objects_CXX"; then
1.237 moko 18028: predep_objects_CXX=$p
1.128 moko 18029: else
18030: predep_objects_CXX="$predep_objects_CXX $p"
18031: fi
18032: else
18033: if test -z "$postdep_objects_CXX"; then
1.237 moko 18034: postdep_objects_CXX=$p
1.128 moko 18035: else
18036: postdep_objects_CXX="$postdep_objects_CXX $p"
18037: fi
18038: fi
18039: ;;
18040:
18041: *) ;; # Ignore the rest.
18042:
18043: esac
18044: done
18045:
18046: # Clean up.
18047: rm -f a.out a.exe
18048: else
18049: echo "libtool.m4: error: problem compiling CXX test program"
18050: fi
18051:
18052: $RM -f confest.$objext
18053: CFLAGS=$_lt_libdeps_save_CFLAGS
18054:
18055: # PORTME: override above test on systems where it is broken
18056: case $host_os in
18057: interix[3-9]*)
18058: # Interix 3.5 installs completely hosed .la files for C++, so rather than
18059: # hack all around it, let's just trust "g++" to DTRT.
18060: predep_objects_CXX=
18061: postdep_objects_CXX=
18062: postdeps_CXX=
18063: ;;
1.237 moko 18064: esac
1.128 moko 18065:
18066:
1.237 moko 18067: case " $postdeps_CXX " in
18068: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18069: esac
1.128 moko 18070: compiler_lib_search_dirs_CXX=
18071: if test -n "${compiler_lib_search_path_CXX}"; then
1.237 moko 18072: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
1.128 moko 18073: fi
18074:
18075:
18076:
18077:
18078:
18079:
18080:
18081:
18082:
18083:
18084:
18085:
18086:
18087:
18088:
18089:
18090:
18091:
18092:
18093:
18094:
18095:
18096:
18097:
18098:
18099:
18100:
18101:
18102:
18103:
18104:
18105: lt_prog_compiler_wl_CXX=
18106: lt_prog_compiler_pic_CXX=
18107: lt_prog_compiler_static_CXX=
18108:
18109:
18110: # C++ specific cases for pic, static, wl, etc.
1.237 moko 18111: if test yes = "$GXX"; then
1.128 moko 18112: lt_prog_compiler_wl_CXX='-Wl,'
18113: lt_prog_compiler_static_CXX='-static'
18114:
18115: case $host_os in
18116: aix*)
18117: # All AIX code is PIC.
1.237 moko 18118: if test ia64 = "$host_cpu"; then
1.128 moko 18119: # AIX 5 now supports IA64 processor
18120: lt_prog_compiler_static_CXX='-Bstatic'
18121: fi
1.237 moko 18122: lt_prog_compiler_pic_CXX='-fPIC'
1.128 moko 18123: ;;
18124:
18125: amigaos*)
18126: case $host_cpu in
18127: powerpc)
18128: # see comment about AmigaOS4 .so support
18129: lt_prog_compiler_pic_CXX='-fPIC'
18130: ;;
18131: m68k)
18132: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 moko 18133: # adding the '-m68020' flag to GCC prevents building anything better,
18134: # like '-m68040'.
1.128 moko 18135: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18136: ;;
18137: esac
18138: ;;
18139:
18140: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18141: # PIC is the default for these OSes.
18142: ;;
1.237 moko 18143: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 18144: # This hack is so that the source file can tell whether it is being
18145: # built for inclusion in a dll (and should export symbols for example).
18146: # Although the cygwin gcc ignores -fPIC, still need this for old-style
18147: # (--disable-auto-import) libraries
18148: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1.237 moko 18149: case $host_os in
18150: os2*)
18151: lt_prog_compiler_static_CXX='$wl-static'
18152: ;;
18153: esac
1.128 moko 18154: ;;
18155: darwin* | rhapsody*)
18156: # PIC is the default on this platform
18157: # Common symbols not allowed in MH_DYLIB files
18158: lt_prog_compiler_pic_CXX='-fno-common'
18159: ;;
18160: *djgpp*)
18161: # DJGPP does not support shared libraries at all
18162: lt_prog_compiler_pic_CXX=
18163: ;;
18164: haiku*)
18165: # PIC is the default for Haiku.
18166: # The "-static" flag exists, but is broken.
18167: lt_prog_compiler_static_CXX=
18168: ;;
18169: interix[3-9]*)
18170: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18171: # Instead, we relocate shared libraries at runtime.
18172: ;;
18173: sysv4*MP*)
18174: if test -d /usr/nec; then
18175: lt_prog_compiler_pic_CXX=-Kconform_pic
18176: fi
18177: ;;
18178: hpux*)
18179: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18180: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18181: # sets the default TLS model and affects inlining.
18182: case $host_cpu in
18183: hppa*64*)
18184: ;;
18185: *)
18186: lt_prog_compiler_pic_CXX='-fPIC'
18187: ;;
18188: esac
18189: ;;
18190: *qnx* | *nto*)
18191: # QNX uses GNU C++, but need to define -shared option too, otherwise
18192: # it will coredump.
18193: lt_prog_compiler_pic_CXX='-fPIC -shared'
18194: ;;
18195: *)
18196: lt_prog_compiler_pic_CXX='-fPIC'
18197: ;;
18198: esac
18199: else
18200: case $host_os in
18201: aix[4-9]*)
18202: # All AIX code is PIC.
1.237 moko 18203: if test ia64 = "$host_cpu"; then
1.128 moko 18204: # AIX 5 now supports IA64 processor
18205: lt_prog_compiler_static_CXX='-Bstatic'
18206: else
18207: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18208: fi
18209: ;;
18210: chorus*)
18211: case $cc_basename in
18212: cxch68*)
18213: # Green Hills C++ Compiler
18214: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18215: ;;
18216: esac
18217: ;;
1.237 moko 18218: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 18219: # This hack is so that the source file can tell whether it is being
18220: # built for inclusion in a dll (and should export symbols for example).
18221: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18222: ;;
18223: dgux*)
18224: case $cc_basename in
18225: ec++*)
18226: lt_prog_compiler_pic_CXX='-KPIC'
18227: ;;
18228: ghcx*)
18229: # Green Hills C++ Compiler
18230: lt_prog_compiler_pic_CXX='-pic'
18231: ;;
18232: *)
18233: ;;
18234: esac
18235: ;;
1.237 moko 18236: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 18237: # FreeBSD uses GNU C++
18238: ;;
18239: hpux9* | hpux10* | hpux11*)
18240: case $cc_basename in
18241: CC*)
18242: lt_prog_compiler_wl_CXX='-Wl,'
1.237 moko 18243: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18244: if test ia64 != "$host_cpu"; then
1.128 moko 18245: lt_prog_compiler_pic_CXX='+Z'
18246: fi
18247: ;;
18248: aCC*)
18249: lt_prog_compiler_wl_CXX='-Wl,'
1.237 moko 18250: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
1.128 moko 18251: case $host_cpu in
18252: hppa*64*|ia64*)
18253: # +Z the default
18254: ;;
18255: *)
18256: lt_prog_compiler_pic_CXX='+Z'
18257: ;;
18258: esac
18259: ;;
18260: *)
18261: ;;
18262: esac
18263: ;;
18264: interix*)
18265: # This is c89, which is MS Visual C++ (no shared libs)
18266: # Anyone wants to do a port?
18267: ;;
18268: irix5* | irix6* | nonstopux*)
18269: case $cc_basename in
18270: CC*)
18271: lt_prog_compiler_wl_CXX='-Wl,'
18272: lt_prog_compiler_static_CXX='-non_shared'
18273: # CC pic flag -KPIC is the default.
18274: ;;
18275: *)
18276: ;;
18277: esac
18278: ;;
1.237 moko 18279: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 18280: case $cc_basename in
18281: KCC*)
18282: # KAI C++ Compiler
18283: lt_prog_compiler_wl_CXX='--backend -Wl,'
18284: lt_prog_compiler_pic_CXX='-fPIC'
18285: ;;
18286: ecpc* )
1.237 moko 18287: # old Intel C++ for x86_64, which still supported -KPIC.
1.128 moko 18288: lt_prog_compiler_wl_CXX='-Wl,'
18289: lt_prog_compiler_pic_CXX='-KPIC'
18290: lt_prog_compiler_static_CXX='-static'
18291: ;;
18292: icpc* )
18293: # Intel C++, used to be incompatible with GCC.
18294: # ICC 10 doesn't accept -KPIC any more.
18295: lt_prog_compiler_wl_CXX='-Wl,'
18296: lt_prog_compiler_pic_CXX='-fPIC'
18297: lt_prog_compiler_static_CXX='-static'
18298: ;;
18299: pgCC* | pgcpp*)
18300: # Portland Group C++ compiler
18301: lt_prog_compiler_wl_CXX='-Wl,'
18302: lt_prog_compiler_pic_CXX='-fpic'
18303: lt_prog_compiler_static_CXX='-Bstatic'
18304: ;;
18305: cxx*)
18306: # Compaq C++
18307: # Make sure the PIC flag is empty. It appears that all Alpha
18308: # Linux and Compaq Tru64 Unix objects are PIC.
18309: lt_prog_compiler_pic_CXX=
18310: lt_prog_compiler_static_CXX='-non_shared'
18311: ;;
18312: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18313: # IBM XL 8.0, 9.0 on PPC and BlueGene
18314: lt_prog_compiler_wl_CXX='-Wl,'
18315: lt_prog_compiler_pic_CXX='-qpic'
18316: lt_prog_compiler_static_CXX='-qstaticlink'
18317: ;;
18318: *)
1.237 moko 18319: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 18320: *Sun\ C*)
18321: # Sun C++ 5.9
18322: lt_prog_compiler_pic_CXX='-KPIC'
18323: lt_prog_compiler_static_CXX='-Bstatic'
18324: lt_prog_compiler_wl_CXX='-Qoption ld '
18325: ;;
18326: esac
18327: ;;
18328: esac
18329: ;;
18330: lynxos*)
18331: ;;
18332: m88k*)
18333: ;;
18334: mvs*)
18335: case $cc_basename in
18336: cxx*)
18337: lt_prog_compiler_pic_CXX='-W c,exportall'
18338: ;;
18339: *)
18340: ;;
18341: esac
18342: ;;
1.237 moko 18343: netbsd* | netbsdelf*-gnu)
18344: ;;
18345: *-mlibc)
1.128 moko 18346: ;;
18347: *qnx* | *nto*)
18348: # QNX uses GNU C++, but need to define -shared option too, otherwise
18349: # it will coredump.
18350: lt_prog_compiler_pic_CXX='-fPIC -shared'
18351: ;;
18352: osf3* | osf4* | osf5*)
18353: case $cc_basename in
18354: KCC*)
18355: lt_prog_compiler_wl_CXX='--backend -Wl,'
18356: ;;
18357: RCC*)
18358: # Rational C++ 2.4.1
18359: lt_prog_compiler_pic_CXX='-pic'
18360: ;;
18361: cxx*)
18362: # Digital/Compaq C++
18363: lt_prog_compiler_wl_CXX='-Wl,'
18364: # Make sure the PIC flag is empty. It appears that all Alpha
18365: # Linux and Compaq Tru64 Unix objects are PIC.
18366: lt_prog_compiler_pic_CXX=
18367: lt_prog_compiler_static_CXX='-non_shared'
18368: ;;
18369: *)
18370: ;;
18371: esac
18372: ;;
18373: psos*)
18374: ;;
1.237 moko 18375: serenity*)
18376: ;;
1.128 moko 18377: solaris*)
18378: case $cc_basename in
18379: CC* | sunCC*)
18380: # Sun C++ 4.2, 5.x and Centerline C++
18381: lt_prog_compiler_pic_CXX='-KPIC'
18382: lt_prog_compiler_static_CXX='-Bstatic'
18383: lt_prog_compiler_wl_CXX='-Qoption ld '
18384: ;;
18385: gcx*)
18386: # Green Hills C++ Compiler
18387: lt_prog_compiler_pic_CXX='-PIC'
18388: ;;
18389: *)
18390: ;;
18391: esac
18392: ;;
18393: sunos4*)
18394: case $cc_basename in
18395: CC*)
18396: # Sun C++ 4.x
18397: lt_prog_compiler_pic_CXX='-pic'
18398: lt_prog_compiler_static_CXX='-Bstatic'
18399: ;;
18400: lcc*)
18401: # Lucid
18402: lt_prog_compiler_pic_CXX='-pic'
18403: ;;
18404: *)
18405: ;;
18406: esac
18407: ;;
18408: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18409: case $cc_basename in
18410: CC*)
18411: lt_prog_compiler_wl_CXX='-Wl,'
18412: lt_prog_compiler_pic_CXX='-KPIC'
18413: lt_prog_compiler_static_CXX='-Bstatic'
18414: ;;
18415: esac
18416: ;;
18417: tandem*)
18418: case $cc_basename in
18419: NCC*)
18420: # NonStop-UX NCC 3.20
18421: lt_prog_compiler_pic_CXX='-KPIC'
18422: ;;
18423: *)
18424: ;;
18425: esac
18426: ;;
18427: vxworks*)
18428: ;;
18429: *)
18430: lt_prog_compiler_can_build_shared_CXX=no
18431: ;;
18432: esac
18433: fi
18434:
18435: case $host_os in
1.237 moko 18436: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 18437: *djgpp*)
18438: lt_prog_compiler_pic_CXX=
18439: ;;
18440: *)
18441: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18442: ;;
18443: esac
18444:
1.237 moko 18445: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18446: printf %s "checking for $compiler option to produce PIC... " >&6; }
18447: if test ${lt_cv_prog_compiler_pic_CXX+y}
18448: then :
18449: printf %s "(cached) " >&6
18450: else case e in #(
18451: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18452: esac
1.128 moko 18453: fi
1.237 moko 18454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18455: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 18456: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18457:
18458: #
18459: # Check to make sure the PIC flag actually works.
18460: #
18461: if test -n "$lt_prog_compiler_pic_CXX"; then
1.237 moko 18462: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18463: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18464: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18465: then :
18466: printf %s "(cached) " >&6
18467: else case e in #(
18468: e) lt_cv_prog_compiler_pic_works_CXX=no
1.128 moko 18469: ac_outfile=conftest.$ac_objext
18470: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 18471: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 18472: # Insert the option either (1) after the last *FLAGS variable, or
18473: # (2) before a word containing "conftest.", or (3) at the end.
18474: # Note that $ac_compile itself does not contain backslashes and begins
18475: # with a dollar sign (not a hyphen), so the echo should work correctly.
18476: # The option is referenced via a variable to avoid confusing sed.
18477: lt_compile=`echo "$ac_compile" | $SED \
18478: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18479: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18480: -e 's:$: $lt_compiler_flag:'`
18481: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18482: (eval "$lt_compile" 2>conftest.err)
18483: ac_status=$?
18484: cat conftest.err >&5
18485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486: if (exit $ac_status) && test -s "$ac_outfile"; then
18487: # The compiler can only warn and ignore the option if not recognized
18488: # So say no if there are warnings other than the usual output.
18489: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18490: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18491: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18492: lt_cv_prog_compiler_pic_works_CXX=yes
18493: fi
18494: fi
18495: $RM conftest*
1.237 moko 18496: ;;
18497: esac
1.128 moko 18498: fi
1.237 moko 18499: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18500: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 18501:
1.237 moko 18502: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1.128 moko 18503: case $lt_prog_compiler_pic_CXX in
18504: "" | " "*) ;;
18505: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18506: esac
18507: else
18508: lt_prog_compiler_pic_CXX=
18509: lt_prog_compiler_can_build_shared_CXX=no
18510: fi
18511:
18512: fi
18513:
18514:
18515:
18516:
18517:
18518: #
18519: # Check to make sure the static flag actually works.
18520: #
18521: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.237 moko 18522: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18523: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18524: if test ${lt_cv_prog_compiler_static_works_CXX+y}
18525: then :
18526: printf %s "(cached) " >&6
18527: else case e in #(
18528: e) lt_cv_prog_compiler_static_works_CXX=no
18529: save_LDFLAGS=$LDFLAGS
1.128 moko 18530: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18531: echo "$lt_simple_link_test_code" > conftest.$ac_ext
18532: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18533: # The linker can only warn and ignore the option if not recognized
18534: # So say no if there are warnings
18535: if test -s conftest.err; then
18536: # Append any errors to the config.log.
18537: cat conftest.err 1>&5
18538: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18539: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18540: if diff conftest.exp conftest.er2 >/dev/null; then
18541: lt_cv_prog_compiler_static_works_CXX=yes
18542: fi
18543: else
18544: lt_cv_prog_compiler_static_works_CXX=yes
18545: fi
18546: fi
18547: $RM -r conftest*
1.237 moko 18548: LDFLAGS=$save_LDFLAGS
18549: ;;
18550: esac
1.128 moko 18551: fi
1.237 moko 18552: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18553: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 18554:
1.237 moko 18555: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1.128 moko 18556: :
18557: else
18558: lt_prog_compiler_static_CXX=
18559: fi
18560:
18561:
18562:
18563:
1.237 moko 18564: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18565: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18566: if test ${lt_cv_prog_compiler_c_o_CXX+y}
18567: then :
18568: printf %s "(cached) " >&6
18569: else case e in #(
18570: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18571: $RM -r conftest 2>/dev/null
18572: mkdir conftest
18573: cd conftest
18574: mkdir out
18575: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18576:
18577: lt_compiler_flag="-o out/conftest2.$ac_objext"
18578: # Insert the option either (1) after the last *FLAGS variable, or
18579: # (2) before a word containing "conftest.", or (3) at the end.
18580: # Note that $ac_compile itself does not contain backslashes and begins
18581: # with a dollar sign (not a hyphen), so the echo should work correctly.
18582: lt_compile=`echo "$ac_compile" | $SED \
18583: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18584: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18585: -e 's:$: $lt_compiler_flag:'`
18586: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18587: (eval "$lt_compile" 2>out/conftest.err)
18588: ac_status=$?
18589: cat out/conftest.err >&5
18590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18592: then
18593: # The compiler can only warn and ignore the option if not recognized
18594: # So say no if there are warnings
18595: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18596: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18597: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18598: lt_cv_prog_compiler_c_o_CXX=yes
18599: fi
18600: fi
18601: chmod u+w . 2>&5
18602: $RM conftest*
18603: # SGI C++ compiler will create directory out/ii_files/ for
18604: # template instantiation
18605: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18606: $RM out/* && rmdir out
18607: cd ..
18608: $RM -r conftest
18609: $RM conftest*
1.237 moko 18610: ;;
18611: esac
1.128 moko 18612: fi
1.237 moko 18613: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18614: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18615:
18616:
18617:
1.237 moko 18618: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18619: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18620: if test ${lt_cv_prog_compiler_c_o_CXX+y}
18621: then :
18622: printf %s "(cached) " >&6
18623: else case e in #(
18624: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18625: $RM -r conftest 2>/dev/null
18626: mkdir conftest
18627: cd conftest
18628: mkdir out
18629: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18630:
18631: lt_compiler_flag="-o out/conftest2.$ac_objext"
18632: # Insert the option either (1) after the last *FLAGS variable, or
18633: # (2) before a word containing "conftest.", or (3) at the end.
18634: # Note that $ac_compile itself does not contain backslashes and begins
18635: # with a dollar sign (not a hyphen), so the echo should work correctly.
18636: lt_compile=`echo "$ac_compile" | $SED \
18637: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18638: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18639: -e 's:$: $lt_compiler_flag:'`
18640: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18641: (eval "$lt_compile" 2>out/conftest.err)
18642: ac_status=$?
18643: cat out/conftest.err >&5
18644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18646: then
18647: # The compiler can only warn and ignore the option if not recognized
18648: # So say no if there are warnings
18649: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18650: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18651: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18652: lt_cv_prog_compiler_c_o_CXX=yes
18653: fi
18654: fi
18655: chmod u+w . 2>&5
18656: $RM conftest*
18657: # SGI C++ compiler will create directory out/ii_files/ for
18658: # template instantiation
18659: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18660: $RM out/* && rmdir out
18661: cd ..
18662: $RM -r conftest
18663: $RM conftest*
1.237 moko 18664: ;;
18665: esac
1.128 moko 18666: fi
1.237 moko 18667: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18668: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18669:
18670:
18671:
18672:
1.237 moko 18673: hard_links=nottested
18674: if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1.128 moko 18675: # do not overwrite the value of need_locks provided by the user
1.237 moko 18676: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18677: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 18678: hard_links=yes
18679: $RM conftest*
18680: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18681: touch conftest.a
18682: ln conftest.a conftest.b 2>&5 || hard_links=no
18683: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 moko 18684: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18685: printf "%s\n" "$hard_links" >&6; }
18686: if test no = "$hard_links"; then
18687: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18688: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 18689: need_locks=warn
18690: fi
18691: else
18692: need_locks=no
18693: fi
18694:
18695:
18696:
1.237 moko 18697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18698: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 18699:
18700: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18701: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18702: case $host_os in
18703: aix[4-9]*)
18704: # If we're using GNU nm, then we don't want the "-C" option.
1.237 moko 18705: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18706: # Without the "-l" option, or with the "-B" option, AIX nm treats
18707: # weak defined symbols like other global defined symbols, whereas
18708: # GNU nm marks them as "W".
18709: # While the 'weak' keyword is ignored in the Export File, we need
18710: # it in the Import File for the 'aix-soname' feature, so we have
18711: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 18712: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 moko 18713: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.128 moko 18714: else
1.237 moko 18715: export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.128 moko 18716: fi
18717: ;;
18718: pw32*)
1.237 moko 18719: export_symbols_cmds_CXX=$ltdll_cmds
1.128 moko 18720: ;;
1.237 moko 18721: cygwin* | mingw* | windows* | cegcc*)
1.128 moko 18722: case $cc_basename in
1.237 moko 18723: cl* | icl*)
1.128 moko 18724: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18725: ;;
18726: *)
18727: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18728: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18729: ;;
18730: esac
18731: ;;
1.237 moko 18732: linux* | k*bsd*-gnu | gnu*)
18733: link_all_deplibs_CXX=no
18734: ;;
1.128 moko 18735: *)
18736: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18737: ;;
18738: esac
18739:
1.237 moko 18740: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18741: printf "%s\n" "$ld_shlibs_CXX" >&6; }
18742: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 18743:
18744: with_gnu_ld_CXX=$with_gnu_ld
18745:
18746:
18747:
18748:
18749:
18750:
18751: #
18752: # Do we need to explicitly link libc?
18753: #
18754: case "x$archive_cmds_need_lc_CXX" in
18755: x|xyes)
18756: # Assume -lc should be added
18757: archive_cmds_need_lc_CXX=yes
18758:
1.237 moko 18759: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 18760: case $archive_cmds_CXX in
18761: *'~'*)
18762: # FIXME: we may have to deal with multi-command sequences.
18763: ;;
18764: '$CC '*)
18765: # Test whether the compiler implicitly links with -lc since on some
18766: # systems, -lgcc has to come before -lc. If gcc already passes -lc
18767: # to ld, don't add -lc before -lgcc.
1.237 moko 18768: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18769: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18770: if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18771: then :
18772: printf %s "(cached) " >&6
18773: else case e in #(
18774: e) $RM conftest*
1.128 moko 18775: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18776:
1.150 moko 18777: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 18778: (eval $ac_compile) 2>&5
18779: ac_status=$?
1.237 moko 18780: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18781: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 18782: soname=conftest
18783: lib=conftest
18784: libobjs=conftest.$ac_objext
18785: deplibs=
18786: wl=$lt_prog_compiler_wl_CXX
18787: pic_flag=$lt_prog_compiler_pic_CXX
18788: compiler_flags=-v
18789: linker_flags=-v
18790: verstring=
18791: output_objdir=.
18792: libname=conftest
18793: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18794: allow_undefined_flag_CXX=
1.150 moko 18795: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 18796: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18797: ac_status=$?
1.237 moko 18798: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18799: test $ac_status = 0; }
1.128 moko 18800: then
18801: lt_cv_archive_cmds_need_lc_CXX=no
18802: else
18803: lt_cv_archive_cmds_need_lc_CXX=yes
18804: fi
18805: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18806: else
18807: cat conftest.err 1>&5
18808: fi
18809: $RM conftest*
1.237 moko 18810: ;;
18811: esac
1.128 moko 18812: fi
1.237 moko 18813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18814: printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 18815: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18816: ;;
18817: esac
18818: fi
18819: ;;
18820: esac
18821:
18822:
18823:
18824:
18825:
18826:
18827:
18828:
18829:
18830:
18831:
18832:
18833:
18834:
18835:
18836:
18837:
18838:
18839:
18840:
18841:
18842:
18843:
18844:
18845:
18846:
18847:
18848:
18849:
18850:
18851:
18852:
18853:
18854:
18855:
18856:
18857:
18858:
18859:
18860:
18861:
18862:
18863:
18864:
18865:
18866:
18867:
18868:
18869:
18870:
18871:
18872:
18873:
18874:
18875:
18876:
18877:
18878:
18879:
18880:
18881:
18882:
1.237 moko 18883: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18884: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 18885:
18886: library_names_spec=
18887: libname_spec='lib$name'
18888: soname_spec=
1.237 moko 18889: shrext_cmds=.so
1.128 moko 18890: postinstall_cmds=
18891: postuninstall_cmds=
18892: finish_cmds=
18893: finish_eval=
18894: shlibpath_var=
18895: shlibpath_overrides_runpath=unknown
18896: version_type=none
18897: dynamic_linker="$host_os ld.so"
18898: sys_lib_dlsearch_path_spec="/lib /usr/lib"
18899: need_lib_prefix=unknown
18900: hardcode_into_libs=no
18901:
18902: # when you set need_version to no, make sure it does not cause -set_version
18903: # flags to be left without arguments
18904: need_version=unknown
18905:
1.237 moko 18906:
18907:
1.128 moko 18908: case $host_os in
18909: aix3*)
18910: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 18911: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 18912: shlibpath_var=LIBPATH
18913:
18914: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 moko 18915: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18916: ;;
18917:
18918: aix[4-9]*)
18919: version_type=linux # correct to gnu/linux during the next big refactor
18920: need_lib_prefix=no
18921: need_version=no
18922: hardcode_into_libs=yes
1.237 moko 18923: if test ia64 = "$host_cpu"; then
1.128 moko 18924: # AIX 5 supports IA64
1.237 moko 18925: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 18926: shlibpath_var=LD_LIBRARY_PATH
18927: else
18928: # With GCC up to 2.95.x, collect2 would create an import file
18929: # for dependence libraries. The import file would start with
1.237 moko 18930: # the line '#! .'. This would cause the generated library to
18931: # depend on '.', always an invalid library. This was fixed in
1.128 moko 18932: # development snapshots of GCC prior to 3.0.
18933: case $host_os in
18934: aix4 | aix4.[01] | aix4.[01].*)
18935: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18936: echo ' yes '
1.237 moko 18937: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 18938: :
18939: else
18940: can_build_shared=no
18941: fi
18942: ;;
18943: esac
1.237 moko 18944: # Using Import Files as archive members, it is possible to support
18945: # filename-based versioning of shared library archives on AIX. While
18946: # this would work for both with and without runtime linking, it will
18947: # prevent static linking of such archives. So we do filename-based
18948: # shared library versioning with .so extension only, which is used
18949: # when both runtime linking and shared linking is enabled.
18950: # Unfortunately, runtime linking may impact performance, so we do
18951: # not want this to be the default eventually. Also, we use the
18952: # versioned .so libs for executables only if there is the -brtl
18953: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18954: # To allow for filename-based versioning support, we need to create
18955: # libNAME.so.V as an archive file, containing:
18956: # *) an Import File, referring to the versioned filename of the
18957: # archive as well as the shared archive member, telling the
18958: # bitwidth (32 or 64) of that shared object, and providing the
18959: # list of exported symbols of that shared object, eventually
18960: # decorated with the 'weak' keyword
18961: # *) the shared object with the F_LOADONLY flag set, to really avoid
18962: # it being seen by the linker.
18963: # At run time we better use the real file rather than another symlink,
18964: # but for link time we create the symlink libNAME.so -> libNAME.so.V
18965:
18966: case $with_aix_soname,$aix_use_runtimelinking in
18967: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 18968: # soname into executable. Probably we can add versioning support to
18969: # collect2, so additional links can be useful in future.
1.237 moko 18970: aix,yes) # traditional libtool
18971: dynamic_linker='AIX unversionable lib.so'
1.128 moko 18972: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18973: # instead of lib<name>.a to let people know that these are not
18974: # typical AIX shared libraries.
1.237 moko 18975: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18976: ;;
18977: aix,no) # traditional AIX only
18978: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 18979: # We preserve .a as extension for shared libraries through AIX4.2
18980: # and later when we are not doing run time linking.
1.237 moko 18981: library_names_spec='$libname$release.a $libname.a'
18982: soname_spec='$libname$release$shared_ext$major'
18983: ;;
18984: svr4,*) # full svr4 only
18985: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18986: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18987: # We do not specify a path in Import Files, so LIBPATH fires.
18988: shlibpath_overrides_runpath=yes
18989: ;;
18990: *,yes) # both, prefer svr4
18991: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18992: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18993: # unpreferred sharedlib libNAME.a needs extra handling
18994: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18995: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18996: # We do not specify a path in Import Files, so LIBPATH fires.
18997: shlibpath_overrides_runpath=yes
18998: ;;
18999: *,no) # both, prefer aix
19000: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19001: library_names_spec='$libname$release.a $libname.a'
19002: soname_spec='$libname$release$shared_ext$major'
19003: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19004: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
19005: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
19006: ;;
19007: esac
1.128 moko 19008: shlibpath_var=LIBPATH
19009: fi
19010: ;;
19011:
19012: amigaos*)
19013: case $host_cpu in
19014: powerpc)
19015: # Since July 2007 AmigaOS4 officially supports .so libraries.
19016: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 moko 19017: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19018: ;;
19019: m68k)
19020: library_names_spec='$libname.ixlibrary $libname.a'
19021: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 moko 19022: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
1.128 moko 19023: ;;
19024: esac
19025: ;;
19026:
19027: beos*)
1.237 moko 19028: library_names_spec='$libname$shared_ext'
1.128 moko 19029: dynamic_linker="$host_os ld.so"
19030: shlibpath_var=LIBRARY_PATH
19031: ;;
19032:
19033: bsdi[45]*)
19034: version_type=linux # correct to gnu/linux during the next big refactor
19035: need_version=no
1.237 moko 19036: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19037: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19038: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19039: shlibpath_var=LD_LIBRARY_PATH
19040: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19041: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19042: # the default ld.so.conf also contains /usr/contrib/lib and
19043: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19044: # libtool to hard-code these into programs
19045: ;;
19046:
1.237 moko 19047: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 19048: version_type=windows
1.237 moko 19049: shrext_cmds=.dll
1.128 moko 19050: need_version=no
19051: need_lib_prefix=no
19052:
19053: case $GCC,$cc_basename in
19054: yes,*)
19055: # gcc
19056: library_names_spec='$libname.dll.a'
19057: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 19058: # If user builds GCC with multilib enabled,
19059: # it should just install on $(libdir)
19060: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
19061: if test xyes = x"$multilib"; then
19062: postinstall_cmds='base_file=`basename \$file`~
19063: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19064: dldir=$destdir/`dirname \$dlpath`~
19065: $install_prog $dir/$dlname $destdir/$dlname~
19066: chmod a+x $destdir/$dlname~
19067: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19068: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
19069: fi'
19070: else
19071: postinstall_cmds='base_file=`basename \$file`~
19072: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19073: dldir=$destdir/`dirname \$dlpath`~
19074: test -d \$dldir || mkdir -p \$dldir~
19075: $install_prog $dir/$dlname \$dldir/$dlname~
19076: chmod a+x \$dldir/$dlname~
19077: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19078: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19079: fi'
19080: fi
1.128 moko 19081: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19082: dlpath=$dir/\$dldll~
19083: $RM \$dlpath'
19084: shlibpath_overrides_runpath=yes
19085:
19086: case $host_os in
19087: cygwin*)
19088: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 moko 19089: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 19090:
19091: ;;
1.237 moko 19092: mingw* | windows* | cegcc*)
1.128 moko 19093: # MinGW DLLs use traditional 'lib' prefix
1.237 moko 19094: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 19095: ;;
19096: pw32*)
19097: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 moko 19098: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 19099: ;;
19100: esac
19101: dynamic_linker='Win32 ld.exe'
19102: ;;
19103:
1.237 moko 19104: *,cl* | *,icl*)
19105: # Native MSVC or ICC
1.128 moko 19106: libname_spec='$name'
1.237 moko 19107: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19108: library_names_spec='$libname.dll.lib'
1.128 moko 19109:
19110: case $build_os in
1.237 moko 19111: mingw* | windows*)
1.128 moko 19112: sys_lib_search_path_spec=
19113: lt_save_ifs=$IFS
19114: IFS=';'
19115: for lt_path in $LIB
19116: do
19117: IFS=$lt_save_ifs
19118: # Let DOS variable expansion print the short 8.3 style file name.
19119: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19120: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19121: done
19122: IFS=$lt_save_ifs
19123: # Convert to MSYS style.
1.237 moko 19124: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.128 moko 19125: ;;
19126: cygwin*)
19127: # Convert to unix form, then to dos form, then back to unix form
19128: # but this time dos style (no spaces!) so that the unix form looks
19129: # like /cygdrive/c/PROGRA~1:/cygdr...
19130: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19131: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19132: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19133: ;;
19134: *)
1.237 moko 19135: sys_lib_search_path_spec=$LIB
1.128 moko 19136: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19137: # It is most probably a Windows format PATH.
19138: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19139: else
19140: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19141: fi
19142: # FIXME: find the short name or the path components, as spaces are
19143: # common. (e.g. "Program Files" -> "PROGRA~1")
19144: ;;
19145: esac
19146:
19147: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 19148: postinstall_cmds='base_file=`basename \$file`~
19149: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 19150: dldir=$destdir/`dirname \$dlpath`~
19151: test -d \$dldir || mkdir -p \$dldir~
19152: $install_prog $dir/$dlname \$dldir/$dlname'
19153: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19154: dlpath=$dir/\$dldll~
19155: $RM \$dlpath'
19156: shlibpath_overrides_runpath=yes
19157: dynamic_linker='Win32 link.exe'
19158: ;;
19159:
19160: *)
1.237 moko 19161: # Assume MSVC and ICC wrapper
19162: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 19163: dynamic_linker='Win32 ld.exe'
19164: ;;
19165: esac
19166: # FIXME: first we should search . and the directory the executable is in
19167: shlibpath_var=PATH
19168: ;;
19169:
19170: darwin* | rhapsody*)
19171: dynamic_linker="$host_os dyld"
19172: version_type=darwin
19173: need_lib_prefix=no
19174: need_version=no
1.237 moko 19175: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19176: soname_spec='$libname$release$major$shared_ext'
1.128 moko 19177: shlibpath_overrides_runpath=yes
19178: shlibpath_var=DYLD_LIBRARY_PATH
19179: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19180:
19181: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19182: ;;
19183:
19184: dgux*)
19185: version_type=linux # correct to gnu/linux during the next big refactor
19186: need_lib_prefix=no
19187: need_version=no
1.237 moko 19188: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19189: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19190: shlibpath_var=LD_LIBRARY_PATH
19191: ;;
19192:
1.237 moko 19193: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 19194: # DragonFly does not have aout. When/if they implement a new
19195: # versioning mechanism, adjust this.
19196: if test -x /usr/bin/objformat; then
19197: objformat=`/usr/bin/objformat`
19198: else
19199: case $host_os in
19200: freebsd[23].*) objformat=aout ;;
19201: *) objformat=elf ;;
19202: esac
19203: fi
19204: version_type=freebsd-$objformat
19205: case $version_type in
19206: freebsd-elf*)
1.237 moko 19207: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19208: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19209: need_version=no
19210: need_lib_prefix=no
19211: ;;
19212: freebsd-*)
1.237 moko 19213: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19214: need_version=yes
19215: ;;
19216: esac
1.237 moko 19217: case $host_cpu in
19218: powerpc64)
19219: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19220: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222: /* end confdefs.h. */
19223: int test_pointer_size[sizeof (void *) - 5];
19224:
19225: _ACEOF
19226: if ac_fn_cxx_try_compile "$LINENO"
19227: then :
1.128 moko 19228: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 19229: else case e in #(
19230: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19231: esac
19232: fi
19233: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19234: ;;
19235: *)
19236: shlibpath_var=LD_LIBRARY_PATH
19237: ;;
19238: esac
1.128 moko 19239: case $host_os in
19240: freebsd2.*)
19241: shlibpath_overrides_runpath=yes
19242: ;;
19243: freebsd3.[01]* | freebsdelf3.[01]*)
19244: shlibpath_overrides_runpath=yes
19245: hardcode_into_libs=yes
19246: ;;
19247: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19248: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19249: shlibpath_overrides_runpath=no
19250: hardcode_into_libs=yes
19251: ;;
19252: *) # from 4.6 on, and DragonFly
19253: shlibpath_overrides_runpath=yes
19254: hardcode_into_libs=yes
19255: ;;
19256: esac
19257: ;;
19258:
19259: haiku*)
19260: version_type=linux # correct to gnu/linux during the next big refactor
19261: need_lib_prefix=no
19262: need_version=no
19263: dynamic_linker="$host_os runtime_loader"
1.237 moko 19264: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19265: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19266: shlibpath_var=LIBRARY_PATH
1.237 moko 19267: shlibpath_overrides_runpath=no
19268: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19269: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19270: hardcode_into_libs=no
1.128 moko 19271: ;;
19272:
19273: hpux9* | hpux10* | hpux11*)
19274: # Give a soname corresponding to the major version so that dld.sl refuses to
19275: # link against other versions.
19276: version_type=sunos
19277: need_lib_prefix=no
19278: need_version=no
19279: case $host_cpu in
19280: ia64*)
19281: shrext_cmds='.so'
19282: hardcode_into_libs=yes
19283: dynamic_linker="$host_os dld.so"
19284: shlibpath_var=LD_LIBRARY_PATH
19285: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 19286: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19287: soname_spec='$libname$release$shared_ext$major'
19288: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 19289: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 moko 19290: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 19291: else
19292: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 moko 19293: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 19294: fi
19295: ;;
19296: hppa*64*)
19297: shrext_cmds='.sl'
19298: hardcode_into_libs=yes
19299: dynamic_linker="$host_os dld.sl"
19300: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19301: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 19302: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19303: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19304: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19305: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19306: ;;
19307: *)
19308: shrext_cmds='.sl'
19309: dynamic_linker="$host_os dld.sl"
19310: shlibpath_var=SHLIB_PATH
19311: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 moko 19312: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19313: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19314: ;;
19315: esac
19316: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19317: postinstall_cmds='chmod 555 $lib'
19318: # or fails outright, so override atomically:
19319: install_override_mode=555
19320: ;;
19321:
19322: interix[3-9]*)
19323: version_type=linux # correct to gnu/linux during the next big refactor
19324: need_lib_prefix=no
19325: need_version=no
1.237 moko 19326: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19327: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19328: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19329: shlibpath_var=LD_LIBRARY_PATH
19330: shlibpath_overrides_runpath=no
19331: hardcode_into_libs=yes
19332: ;;
19333:
19334: irix5* | irix6* | nonstopux*)
19335: case $host_os in
19336: nonstopux*) version_type=nonstopux ;;
19337: *)
1.237 moko 19338: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 19339: version_type=linux # correct to gnu/linux during the next big refactor
19340: else
19341: version_type=irix
19342: fi ;;
19343: esac
19344: need_lib_prefix=no
19345: need_version=no
1.237 moko 19346: soname_spec='$libname$release$shared_ext$major'
19347: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 19348: case $host_os in
19349: irix5* | nonstopux*)
19350: libsuff= shlibsuff=
19351: ;;
19352: *)
19353: case $LD in # libtool.m4 will add one of these switches to LD
19354: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19355: libsuff= shlibsuff= libmagic=32-bit;;
19356: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19357: libsuff=32 shlibsuff=N32 libmagic=N32;;
19358: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19359: libsuff=64 shlibsuff=64 libmagic=64-bit;;
19360: *) libsuff= shlibsuff= libmagic=never-match;;
19361: esac
19362: ;;
19363: esac
19364: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19365: shlibpath_overrides_runpath=no
1.237 moko 19366: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19367: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 19368: hardcode_into_libs=yes
19369: ;;
19370:
19371: # No shared lib support for Linux oldld, aout, or coff.
19372: linux*oldld* | linux*aout* | linux*coff*)
19373: dynamic_linker=no
19374: ;;
19375:
1.237 moko 19376: linux*android*)
19377: version_type=none # Android doesn't support versioned libraries.
19378: need_lib_prefix=no
19379: need_version=no
19380: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19381: soname_spec='$libname$release$shared_ext'
19382: finish_cmds=
19383: shlibpath_var=LD_LIBRARY_PATH
19384: shlibpath_overrides_runpath=yes
19385:
19386: # This implies no fast_install, which is unacceptable.
19387: # Some rework will be needed to allow for fast_install
19388: # before this can be enabled.
19389: hardcode_into_libs=yes
19390:
19391: dynamic_linker='Android linker'
19392: # -rpath works at least for libraries that are not overridden by
19393: # libraries installed in system locations.
19394: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19395: ;;
19396:
1.128 moko 19397: # This must be glibc/ELF.
1.237 moko 19398: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 19399: version_type=linux # correct to gnu/linux during the next big refactor
19400: need_lib_prefix=no
19401: need_version=no
1.237 moko 19402: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19403: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19404: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19405: shlibpath_var=LD_LIBRARY_PATH
19406: shlibpath_overrides_runpath=no
19407:
19408: # Some binutils ld are patched to set DT_RUNPATH
1.237 moko 19409: if test ${lt_cv_shlibpath_overrides_runpath+y}
19410: then :
19411: printf %s "(cached) " >&6
19412: else case e in #(
19413: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 19414: save_LDFLAGS=$LDFLAGS
19415: save_libdir=$libdir
19416: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19417: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 19418: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 19419: /* end confdefs.h. */
19420:
19421: int
1.237 moko 19422: main (void)
1.128 moko 19423: {
19424:
19425: ;
19426: return 0;
19427: }
19428: _ACEOF
1.237 moko 19429: if ac_fn_cxx_try_link "$LINENO"
19430: then :
19431: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19432: then :
1.128 moko 19433: lt_cv_shlibpath_overrides_runpath=yes
19434: fi
19435: fi
1.237 moko 19436: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 19437: conftest$ac_exeext conftest.$ac_ext
1.128 moko 19438: LDFLAGS=$save_LDFLAGS
19439: libdir=$save_libdir
1.237 moko 19440: ;;
19441: esac
1.128 moko 19442: fi
19443:
19444: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19445:
19446: # This implies no fast_install, which is unacceptable.
19447: # Some rework will be needed to allow for fast_install
19448: # before this can be enabled.
19449: hardcode_into_libs=yes
19450:
1.237 moko 19451: # Ideally, we could use ldconfig to report *all* directories which are
19452: # searched for libraries, however this is still not possible. Aside from not
19453: # being certain /sbin/ldconfig is available, command
19454: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19455: # even though it is searched at run-time. Try to do the best guess by
19456: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 19457: if test -f /etc/ld.so.conf; then
19458: 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;s/"//g;/^$/d' | tr '\n' ' '`
19459: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19460: fi
19461:
19462: # We used to test for /lib/ld.so.1 and disable shared libraries on
19463: # powerpc, because MkLinux only supported shared libraries with the
19464: # GNU dynamic linker. Since this was broken with cross compilers,
19465: # most powerpc-linux boxes support dynamic linking these days and
19466: # people can always --disable-shared, the test was removed, and we
19467: # assume the GNU/Linux dynamic linker is in use.
19468: dynamic_linker='GNU/Linux ld.so'
19469: ;;
19470:
1.237 moko 19471: netbsdelf*-gnu)
19472: version_type=linux
19473: need_lib_prefix=no
19474: need_version=no
19475: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19476: soname_spec='$libname$release$shared_ext$major'
19477: shlibpath_var=LD_LIBRARY_PATH
19478: shlibpath_overrides_runpath=no
19479: hardcode_into_libs=yes
19480: dynamic_linker='NetBSD ld.elf_so'
19481: ;;
19482:
19483: netbsdelf*-gnu)
19484: version_type=linux
19485: need_lib_prefix=no
19486: need_version=no
19487: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19488: soname_spec='${libname}${release}${shared_ext}$major'
19489: shlibpath_var=LD_LIBRARY_PATH
19490: shlibpath_overrides_runpath=no
19491: hardcode_into_libs=yes
19492: dynamic_linker='NetBSD ld.elf_so'
19493: ;;
19494:
1.128 moko 19495: netbsd*)
19496: version_type=sunos
19497: need_lib_prefix=no
19498: need_version=no
19499: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 moko 19500: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19501: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19502: dynamic_linker='NetBSD (a.out) ld.so'
19503: else
1.237 moko 19504: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19505: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19506: dynamic_linker='NetBSD ld.elf_so'
19507: fi
19508: shlibpath_var=LD_LIBRARY_PATH
19509: shlibpath_overrides_runpath=yes
19510: hardcode_into_libs=yes
19511: ;;
19512:
1.237 moko 19513: *-mlibc)
19514: version_type=linux # correct to gnu/linux during the next big refactor
19515: need_lib_prefix=no
19516: need_version=no
19517: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19518: soname_spec='$libname$release$shared_ext$major'
19519: dynamic_linker='mlibc ld.so'
19520: shlibpath_var=LD_LIBRARY_PATH
19521: shlibpath_overrides_runpath=no
19522: hardcode_into_libs=yes
19523: ;;
19524:
1.128 moko 19525: newsos6)
19526: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 19527: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19528: shlibpath_var=LD_LIBRARY_PATH
19529: shlibpath_overrides_runpath=yes
19530: ;;
19531:
19532: *nto* | *qnx*)
19533: version_type=qnx
19534: need_lib_prefix=no
19535: need_version=no
1.237 moko 19536: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19537: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19538: shlibpath_var=LD_LIBRARY_PATH
19539: shlibpath_overrides_runpath=no
19540: hardcode_into_libs=yes
19541: dynamic_linker='ldqnx.so'
19542: ;;
19543:
19544: openbsd*)
19545: version_type=sunos
1.237 moko 19546: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 19547: need_lib_prefix=no
1.237 moko 19548: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19549: need_version=no
19550: else
19551: need_version=yes
19552: fi
19553: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19554: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19555: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 19556: shlibpath_overrides_runpath=yes
1.128 moko 19557: ;;
19558:
19559: os2*)
19560: libname_spec='$name'
1.237 moko 19561: version_type=windows
19562: shrext_cmds=.dll
19563: need_version=no
1.128 moko 19564: need_lib_prefix=no
1.237 moko 19565: # OS/2 can only load a DLL with a base name of 8 characters or less.
19566: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19567: v=$($ECHO $release$versuffix | tr -d .-);
19568: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19569: $ECHO $n$v`$shared_ext'
19570: library_names_spec='${libname}_dll.$libext'
1.128 moko 19571: dynamic_linker='OS/2 ld.exe'
1.237 moko 19572: shlibpath_var=BEGINLIBPATH
19573: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19574: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19575: postinstall_cmds='base_file=`basename \$file`~
19576: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19577: dldir=$destdir/`dirname \$dlpath`~
19578: test -d \$dldir || mkdir -p \$dldir~
19579: $install_prog $dir/$dlname \$dldir/$dlname~
19580: chmod a+x \$dldir/$dlname~
19581: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19582: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19583: fi'
19584: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19585: dlpath=$dir/\$dldll~
19586: $RM \$dlpath'
1.128 moko 19587: ;;
19588:
19589: osf3* | osf4* | osf5*)
19590: version_type=osf
19591: need_lib_prefix=no
19592: need_version=no
1.237 moko 19593: soname_spec='$libname$release$shared_ext$major'
19594: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19595: shlibpath_var=LD_LIBRARY_PATH
19596: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 moko 19597: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 19598: ;;
19599:
19600: rdos*)
19601: dynamic_linker=no
19602: ;;
19603:
1.237 moko 19604: serenity*)
19605: version_type=linux # correct to gnu/linux during the next big refactor
19606: need_lib_prefix=no
19607: need_version=no
19608: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19609: soname_spec='$libname$release$shared_ext$major'
19610: shlibpath_var=LD_LIBRARY_PATH
19611: shlibpath_overrides_runpath=no
19612: dynamic_linker='SerenityOS LibELF'
19613: ;;
19614:
1.128 moko 19615: solaris*)
19616: version_type=linux # correct to gnu/linux during the next big refactor
19617: need_lib_prefix=no
19618: need_version=no
1.237 moko 19619: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19620: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19621: shlibpath_var=LD_LIBRARY_PATH
19622: shlibpath_overrides_runpath=yes
19623: hardcode_into_libs=yes
19624: # ldd complains unless libraries are executable
19625: postinstall_cmds='chmod +x $lib'
19626: ;;
19627:
19628: sunos4*)
19629: version_type=sunos
1.237 moko 19630: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19631: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19632: shlibpath_var=LD_LIBRARY_PATH
19633: shlibpath_overrides_runpath=yes
1.237 moko 19634: if test yes = "$with_gnu_ld"; then
1.128 moko 19635: need_lib_prefix=no
19636: fi
19637: need_version=yes
19638: ;;
19639:
19640: sysv4 | sysv4.3*)
19641: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 19642: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19643: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19644: shlibpath_var=LD_LIBRARY_PATH
19645: case $host_vendor in
19646: sni)
19647: shlibpath_overrides_runpath=no
19648: need_lib_prefix=no
19649: runpath_var=LD_RUN_PATH
1.237 moko 19650: ;;
19651: siemens)
19652: need_lib_prefix=no
19653: ;;
19654: motorola)
19655: need_lib_prefix=no
19656: need_version=no
19657: shlibpath_overrides_runpath=no
19658: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19659: ;;
19660: esac
19661: ;;
19662:
19663: sysv4*MP*)
19664: if test -d /usr/nec; then
19665: version_type=linux # correct to gnu/linux during the next big refactor
19666: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19667: soname_spec='$libname$shared_ext.$major'
19668: shlibpath_var=LD_LIBRARY_PATH
19669: fi
19670: ;;
19671:
19672: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19673: version_type=sco
19674: need_lib_prefix=no
19675: need_version=no
19676: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19677: soname_spec='$libname$release$shared_ext$major'
19678: shlibpath_var=LD_LIBRARY_PATH
19679: shlibpath_overrides_runpath=yes
19680: hardcode_into_libs=yes
19681: if test yes = "$with_gnu_ld"; then
19682: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19683: else
19684: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19685: case $host_os in
19686: sco3.2v5*)
19687: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19688: ;;
19689: esac
19690: fi
19691: sys_lib_dlsearch_path_spec='/usr/lib'
19692: ;;
19693:
19694: tpf*)
19695: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19696: version_type=linux # correct to gnu/linux during the next big refactor
19697: need_lib_prefix=no
19698: need_version=no
19699: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19700: shlibpath_var=LD_LIBRARY_PATH
19701: shlibpath_overrides_runpath=no
19702: hardcode_into_libs=yes
19703: ;;
19704:
19705: uts4*)
19706: version_type=linux # correct to gnu/linux during the next big refactor
19707: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19708: soname_spec='$libname$release$shared_ext$major'
19709: shlibpath_var=LD_LIBRARY_PATH
19710: ;;
19711:
19712: emscripten*)
19713: version_type=none
19714: need_lib_prefix=no
19715: need_version=no
19716: library_names_spec='$libname$release$shared_ext'
19717: soname_spec='$libname$release$shared_ext'
19718: finish_cmds=
19719: dynamic_linker="Emscripten linker"
19720: lt_prog_compiler_wl_CXX=
19721: lt_prog_compiler_pic_CXX=
19722: lt_prog_compiler_static_CXX=
19723:
19724:
19725: # C++ specific cases for pic, static, wl, etc.
19726: if test yes = "$GXX"; then
19727: lt_prog_compiler_wl_CXX='-Wl,'
19728: lt_prog_compiler_static_CXX='-static'
19729:
19730: case $host_os in
19731: aix*)
19732: # All AIX code is PIC.
19733: if test ia64 = "$host_cpu"; then
19734: # AIX 5 now supports IA64 processor
19735: lt_prog_compiler_static_CXX='-Bstatic'
19736: fi
19737: lt_prog_compiler_pic_CXX='-fPIC'
19738: ;;
19739:
19740: amigaos*)
19741: case $host_cpu in
19742: powerpc)
19743: # see comment about AmigaOS4 .so support
19744: lt_prog_compiler_pic_CXX='-fPIC'
19745: ;;
19746: m68k)
19747: # FIXME: we need at least 68020 code to build shared libraries, but
19748: # adding the '-m68020' flag to GCC prevents building anything better,
19749: # like '-m68040'.
19750: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19751: ;;
19752: esac
19753: ;;
19754:
19755: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19756: # PIC is the default for these OSes.
19757: ;;
19758: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19759: # This hack is so that the source file can tell whether it is being
19760: # built for inclusion in a dll (and should export symbols for example).
19761: # Although the cygwin gcc ignores -fPIC, still need this for old-style
19762: # (--disable-auto-import) libraries
19763: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19764: case $host_os in
19765: os2*)
19766: lt_prog_compiler_static_CXX='$wl-static'
19767: ;;
19768: esac
19769: ;;
19770: darwin* | rhapsody*)
19771: # PIC is the default on this platform
19772: # Common symbols not allowed in MH_DYLIB files
19773: lt_prog_compiler_pic_CXX='-fno-common'
19774: ;;
19775: *djgpp*)
19776: # DJGPP does not support shared libraries at all
19777: lt_prog_compiler_pic_CXX=
19778: ;;
19779: haiku*)
19780: # PIC is the default for Haiku.
19781: # The "-static" flag exists, but is broken.
19782: lt_prog_compiler_static_CXX=
19783: ;;
19784: interix[3-9]*)
19785: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19786: # Instead, we relocate shared libraries at runtime.
19787: ;;
19788: sysv4*MP*)
19789: if test -d /usr/nec; then
19790: lt_prog_compiler_pic_CXX=-Kconform_pic
19791: fi
19792: ;;
19793: hpux*)
19794: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19795: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19796: # sets the default TLS model and affects inlining.
19797: case $host_cpu in
19798: hppa*64*)
19799: ;;
19800: *)
19801: lt_prog_compiler_pic_CXX='-fPIC'
19802: ;;
19803: esac
19804: ;;
19805: *qnx* | *nto*)
19806: # QNX uses GNU C++, but need to define -shared option too, otherwise
19807: # it will coredump.
19808: lt_prog_compiler_pic_CXX='-fPIC -shared'
19809: ;;
19810: *)
19811: lt_prog_compiler_pic_CXX='-fPIC'
19812: ;;
19813: esac
19814: else
19815: case $host_os in
19816: aix[4-9]*)
19817: # All AIX code is PIC.
19818: if test ia64 = "$host_cpu"; then
19819: # AIX 5 now supports IA64 processor
19820: lt_prog_compiler_static_CXX='-Bstatic'
19821: else
19822: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19823: fi
19824: ;;
19825: chorus*)
19826: case $cc_basename in
19827: cxch68*)
19828: # Green Hills C++ Compiler
19829: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19830: ;;
19831: esac
19832: ;;
19833: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19834: # This hack is so that the source file can tell whether it is being
19835: # built for inclusion in a dll (and should export symbols for example).
19836: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19837: ;;
19838: dgux*)
19839: case $cc_basename in
19840: ec++*)
19841: lt_prog_compiler_pic_CXX='-KPIC'
19842: ;;
19843: ghcx*)
19844: # Green Hills C++ Compiler
19845: lt_prog_compiler_pic_CXX='-pic'
19846: ;;
19847: *)
19848: ;;
19849: esac
19850: ;;
19851: freebsd* | dragonfly* | midnightbsd*)
19852: # FreeBSD uses GNU C++
19853: ;;
19854: hpux9* | hpux10* | hpux11*)
19855: case $cc_basename in
19856: CC*)
19857: lt_prog_compiler_wl_CXX='-Wl,'
19858: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19859: if test ia64 != "$host_cpu"; then
19860: lt_prog_compiler_pic_CXX='+Z'
19861: fi
19862: ;;
19863: aCC*)
19864: lt_prog_compiler_wl_CXX='-Wl,'
19865: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19866: case $host_cpu in
19867: hppa*64*|ia64*)
19868: # +Z the default
19869: ;;
19870: *)
19871: lt_prog_compiler_pic_CXX='+Z'
19872: ;;
19873: esac
19874: ;;
19875: *)
19876: ;;
19877: esac
19878: ;;
19879: interix*)
19880: # This is c89, which is MS Visual C++ (no shared libs)
19881: # Anyone wants to do a port?
19882: ;;
19883: irix5* | irix6* | nonstopux*)
19884: case $cc_basename in
19885: CC*)
19886: lt_prog_compiler_wl_CXX='-Wl,'
19887: lt_prog_compiler_static_CXX='-non_shared'
19888: # CC pic flag -KPIC is the default.
19889: ;;
19890: *)
19891: ;;
19892: esac
19893: ;;
19894: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19895: case $cc_basename in
19896: KCC*)
19897: # KAI C++ Compiler
19898: lt_prog_compiler_wl_CXX='--backend -Wl,'
19899: lt_prog_compiler_pic_CXX='-fPIC'
19900: ;;
19901: ecpc* )
19902: # old Intel C++ for x86_64, which still supported -KPIC.
19903: lt_prog_compiler_wl_CXX='-Wl,'
19904: lt_prog_compiler_pic_CXX='-KPIC'
19905: lt_prog_compiler_static_CXX='-static'
19906: ;;
19907: icpc* )
19908: # Intel C++, used to be incompatible with GCC.
19909: # ICC 10 doesn't accept -KPIC any more.
19910: lt_prog_compiler_wl_CXX='-Wl,'
19911: lt_prog_compiler_pic_CXX='-fPIC'
19912: lt_prog_compiler_static_CXX='-static'
19913: ;;
19914: pgCC* | pgcpp*)
19915: # Portland Group C++ compiler
19916: lt_prog_compiler_wl_CXX='-Wl,'
19917: lt_prog_compiler_pic_CXX='-fpic'
19918: lt_prog_compiler_static_CXX='-Bstatic'
19919: ;;
19920: cxx*)
19921: # Compaq C++
19922: # Make sure the PIC flag is empty. It appears that all Alpha
19923: # Linux and Compaq Tru64 Unix objects are PIC.
19924: lt_prog_compiler_pic_CXX=
19925: lt_prog_compiler_static_CXX='-non_shared'
19926: ;;
19927: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19928: # IBM XL 8.0, 9.0 on PPC and BlueGene
19929: lt_prog_compiler_wl_CXX='-Wl,'
19930: lt_prog_compiler_pic_CXX='-qpic'
19931: lt_prog_compiler_static_CXX='-qstaticlink'
19932: ;;
19933: *)
19934: case `$CC -V 2>&1 | $SED 5q` in
19935: *Sun\ C*)
19936: # Sun C++ 5.9
19937: lt_prog_compiler_pic_CXX='-KPIC'
19938: lt_prog_compiler_static_CXX='-Bstatic'
19939: lt_prog_compiler_wl_CXX='-Qoption ld '
19940: ;;
19941: esac
19942: ;;
19943: esac
19944: ;;
19945: lynxos*)
19946: ;;
19947: m88k*)
19948: ;;
19949: mvs*)
19950: case $cc_basename in
19951: cxx*)
19952: lt_prog_compiler_pic_CXX='-W c,exportall'
19953: ;;
19954: *)
19955: ;;
19956: esac
19957: ;;
19958: netbsd* | netbsdelf*-gnu)
19959: ;;
19960: *-mlibc)
19961: ;;
19962: *qnx* | *nto*)
19963: # QNX uses GNU C++, but need to define -shared option too, otherwise
19964: # it will coredump.
19965: lt_prog_compiler_pic_CXX='-fPIC -shared'
19966: ;;
19967: osf3* | osf4* | osf5*)
19968: case $cc_basename in
19969: KCC*)
19970: lt_prog_compiler_wl_CXX='--backend -Wl,'
19971: ;;
19972: RCC*)
19973: # Rational C++ 2.4.1
19974: lt_prog_compiler_pic_CXX='-pic'
19975: ;;
19976: cxx*)
19977: # Digital/Compaq C++
19978: lt_prog_compiler_wl_CXX='-Wl,'
19979: # Make sure the PIC flag is empty. It appears that all Alpha
19980: # Linux and Compaq Tru64 Unix objects are PIC.
19981: lt_prog_compiler_pic_CXX=
19982: lt_prog_compiler_static_CXX='-non_shared'
19983: ;;
19984: *)
19985: ;;
19986: esac
19987: ;;
19988: psos*)
19989: ;;
19990: serenity*)
19991: ;;
19992: solaris*)
19993: case $cc_basename in
19994: CC* | sunCC*)
19995: # Sun C++ 4.2, 5.x and Centerline C++
19996: lt_prog_compiler_pic_CXX='-KPIC'
19997: lt_prog_compiler_static_CXX='-Bstatic'
19998: lt_prog_compiler_wl_CXX='-Qoption ld '
19999: ;;
20000: gcx*)
20001: # Green Hills C++ Compiler
20002: lt_prog_compiler_pic_CXX='-PIC'
20003: ;;
20004: *)
20005: ;;
20006: esac
20007: ;;
20008: sunos4*)
20009: case $cc_basename in
20010: CC*)
20011: # Sun C++ 4.x
20012: lt_prog_compiler_pic_CXX='-pic'
20013: lt_prog_compiler_static_CXX='-Bstatic'
20014: ;;
20015: lcc*)
20016: # Lucid
20017: lt_prog_compiler_pic_CXX='-pic'
20018: ;;
20019: *)
20020: ;;
20021: esac
20022: ;;
20023: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20024: case $cc_basename in
20025: CC*)
20026: lt_prog_compiler_wl_CXX='-Wl,'
20027: lt_prog_compiler_pic_CXX='-KPIC'
20028: lt_prog_compiler_static_CXX='-Bstatic'
20029: ;;
20030: esac
20031: ;;
20032: tandem*)
20033: case $cc_basename in
20034: NCC*)
20035: # NonStop-UX NCC 3.20
20036: lt_prog_compiler_pic_CXX='-KPIC'
20037: ;;
20038: *)
20039: ;;
20040: esac
20041: ;;
20042: vxworks*)
20043: ;;
20044: *)
20045: lt_prog_compiler_can_build_shared_CXX=no
20046: ;;
20047: esac
20048: fi
20049:
20050: case $host_os in
20051: # For platforms that do not support PIC, -DPIC is meaningless:
20052: *djgpp*)
20053: lt_prog_compiler_pic_CXX=
20054: ;;
20055: *)
20056: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20057: ;;
20058: esac
20059:
20060: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20061: printf %s "checking for $compiler option to produce PIC... " >&6; }
20062: if test ${lt_cv_prog_compiler_pic_CXX+y}
20063: then :
20064: printf %s "(cached) " >&6
20065: else case e in #(
20066: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
20067: esac
20068: fi
20069: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20070: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
20071: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20072:
20073: #
20074: # Check to make sure the PIC flag actually works.
20075: #
20076: if test -n "$lt_prog_compiler_pic_CXX"; then
20077: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20078: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20079: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
20080: then :
20081: printf %s "(cached) " >&6
20082: else case e in #(
20083: e) lt_cv_prog_compiler_pic_works_CXX=no
20084: ac_outfile=conftest.$ac_objext
20085: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20086: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
20087: # Insert the option either (1) after the last *FLAGS variable, or
20088: # (2) before a word containing "conftest.", or (3) at the end.
20089: # Note that $ac_compile itself does not contain backslashes and begins
20090: # with a dollar sign (not a hyphen), so the echo should work correctly.
20091: # The option is referenced via a variable to avoid confusing sed.
20092: lt_compile=`echo "$ac_compile" | $SED \
20093: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20094: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20095: -e 's:$: $lt_compiler_flag:'`
20096: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20097: (eval "$lt_compile" 2>conftest.err)
20098: ac_status=$?
20099: cat conftest.err >&5
20100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101: if (exit $ac_status) && test -s "$ac_outfile"; then
20102: # The compiler can only warn and ignore the option if not recognized
20103: # So say no if there are warnings other than the usual output.
20104: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20105: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20106: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20107: lt_cv_prog_compiler_pic_works_CXX=yes
20108: fi
20109: fi
20110: $RM conftest*
20111: ;;
20112: esac
20113: fi
20114: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20115: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20116:
20117: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20118: case $lt_prog_compiler_pic_CXX in
20119: "" | " "*) ;;
20120: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20121: esac
20122: else
20123: lt_prog_compiler_pic_CXX=
20124: lt_prog_compiler_can_build_shared_CXX=no
20125: fi
20126:
20127: fi
20128:
20129:
20130:
20131:
20132:
20133: #
20134: # Check to make sure the static flag actually works.
20135: #
20136: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20137: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20138: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20139: if test ${lt_cv_prog_compiler_static_works_CXX+y}
20140: then :
20141: printf %s "(cached) " >&6
20142: else case e in #(
20143: e) lt_cv_prog_compiler_static_works_CXX=no
20144: save_LDFLAGS=$LDFLAGS
20145: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20146: echo "$lt_simple_link_test_code" > conftest.$ac_ext
20147: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20148: # The linker can only warn and ignore the option if not recognized
20149: # So say no if there are warnings
20150: if test -s conftest.err; then
20151: # Append any errors to the config.log.
20152: cat conftest.err 1>&5
20153: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20154: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20155: if diff conftest.exp conftest.er2 >/dev/null; then
20156: lt_cv_prog_compiler_static_works_CXX=yes
20157: fi
20158: else
20159: lt_cv_prog_compiler_static_works_CXX=yes
20160: fi
20161: fi
20162: $RM -r conftest*
20163: LDFLAGS=$save_LDFLAGS
20164: ;;
20165: esac
20166: fi
20167: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20168: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 20169:
1.237 moko 20170: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
20171: :
20172: else
20173: lt_prog_compiler_static_CXX=
20174: fi
1.128 moko 20175:
20176:
20177:
1.237 moko 20178: ='-fPIC'
20179: archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
20180: archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
20181: archive_cmds_need_lc_CXX=no
20182: no_undefined_flag_CXX=
1.128 moko 20183: ;;
20184:
20185: *)
20186: dynamic_linker=no
20187: ;;
20188: esac
1.237 moko 20189: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20190: printf "%s\n" "$dynamic_linker" >&6; }
20191: test no = "$dynamic_linker" && can_build_shared=no
1.128 moko 20192:
20193: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.237 moko 20194: if test yes = "$GCC"; then
1.128 moko 20195: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20196: fi
20197:
1.237 moko 20198: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20199: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
1.128 moko 20200: fi
1.237 moko 20201:
20202: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20203: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
1.128 moko 20204: fi
20205:
1.237 moko 20206: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20207: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20208:
20209: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20210: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20211:
20212: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20213: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 20214:
20215:
20216:
20217:
20218:
20219:
20220:
20221:
20222:
20223:
20224:
20225:
20226:
20227:
20228:
20229:
20230:
20231:
20232:
20233:
20234:
20235:
20236:
20237:
20238:
20239:
20240:
20241:
20242:
20243:
20244:
20245:
20246:
20247:
20248:
20249:
20250:
1.237 moko 20251:
20252:
20253:
20254: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20255: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 20256: hardcode_action_CXX=
20257: if test -n "$hardcode_libdir_flag_spec_CXX" ||
20258: test -n "$runpath_var_CXX" ||
1.237 moko 20259: test yes = "$hardcode_automatic_CXX"; then
1.128 moko 20260:
20261: # We can hardcode non-existent directories.
1.237 moko 20262: if test no != "$hardcode_direct_CXX" &&
1.128 moko 20263: # If the only mechanism to avoid hardcoding is shlibpath_var, we
20264: # have to relink, otherwise we might link with an installed library
20265: # when we should be linking with a yet-to-be-installed one
1.237 moko 20266: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20267: test no != "$hardcode_minus_L_CXX"; then
1.128 moko 20268: # Linking always hardcodes the temporary library directory.
20269: hardcode_action_CXX=relink
20270: else
20271: # We can link without hardcoding, and we can hardcode nonexisting dirs.
20272: hardcode_action_CXX=immediate
20273: fi
20274: else
20275: # We cannot hardcode anything, or else we can only hardcode existing
20276: # directories.
20277: hardcode_action_CXX=unsupported
20278: fi
1.237 moko 20279: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20280: printf "%s\n" "$hardcode_action_CXX" >&6; }
1.128 moko 20281:
1.237 moko 20282: if test relink = "$hardcode_action_CXX" ||
20283: test yes = "$inherit_rpath_CXX"; then
1.128 moko 20284: # Fast installation is not supported
20285: enable_fast_install=no
1.237 moko 20286: elif test yes = "$shlibpath_overrides_runpath" ||
20287: test no = "$enable_shared"; then
1.128 moko 20288: # Fast installation is not necessary
20289: enable_fast_install=needless
20290: fi
20291:
20292:
20293:
20294:
20295:
20296:
20297:
20298: fi # test -n "$compiler"
20299:
20300: CC=$lt_save_CC
20301: CFLAGS=$lt_save_CFLAGS
20302: LDCXX=$LD
20303: LD=$lt_save_LD
20304: GCC=$lt_save_GCC
20305: with_gnu_ld=$lt_save_with_gnu_ld
20306: lt_cv_path_LDCXX=$lt_cv_path_LD
20307: lt_cv_path_LD=$lt_save_path_LD
20308: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20309: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
1.237 moko 20310: fi # test yes != "$_lt_caught_CXX_error"
1.128 moko 20311:
20312: ac_ext=c
20313: ac_cpp='$CPP $CPPFLAGS'
20314: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20317:
20318:
20319:
20320:
20321:
20322:
20323:
20324:
20325:
20326:
20327:
20328:
20329:
20330:
20331:
1.150 moko 20332: ac_config_commands="$ac_config_commands libtool"
1.128 moko 20333:
20334:
20335:
20336:
20337: # Only expand once:
20338:
20339:
1.237 moko 20340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20341: printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
20342: if test ${ac_cv_c_undeclared_builtin_options+y}
20343: then :
20344: printf %s "(cached) " >&6
20345: else case e in #(
20346: e) ac_save_CFLAGS=$CFLAGS
20347: ac_cv_c_undeclared_builtin_options='cannot detect'
20348: for ac_arg in '' -fno-builtin; do
20349: CFLAGS="$ac_save_CFLAGS $ac_arg"
20350: # This test program should *not* compile successfully.
20351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352: /* end confdefs.h. */
20353:
20354: int
20355: main (void)
20356: {
20357: (void) strchr;
20358: ;
20359: return 0;
20360: }
20361: _ACEOF
20362: if ac_fn_c_try_compile "$LINENO"
20363: then :
20364:
20365: else case e in #(
20366: e) # This test program should compile successfully.
20367: # No library function is consistently available on
20368: # freestanding implementations, so test against a dummy
20369: # declaration. Include always-available headers on the
20370: # off chance that they somehow elicit warnings.
20371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20372: /* end confdefs.h. */
20373: #include <float.h>
20374: #include <limits.h>
20375: #include <stdarg.h>
20376: #include <stddef.h>
20377: extern void ac_decl (int, char *);
20378:
20379: int
20380: main (void)
20381: {
20382: (void) ac_decl (0, (char *) 0);
20383: (void) ac_decl;
20384:
20385: ;
20386: return 0;
20387: }
20388: _ACEOF
20389: if ac_fn_c_try_compile "$LINENO"
20390: then :
20391: if test x"$ac_arg" = x
20392: then :
20393: ac_cv_c_undeclared_builtin_options='none needed'
20394: else case e in #(
20395: e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
20396: esac
20397: fi
20398: break
20399: fi
20400: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20401: esac
20402: fi
20403: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20404: done
20405: CFLAGS=$ac_save_CFLAGS
20406: ;;
20407: esac
20408: fi
20409: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20410: printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20411: case $ac_cv_c_undeclared_builtin_options in #(
20412: 'cannot detect') :
20413: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20414: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20415: as_fn_error $? "cannot make $CC report undeclared builtins
20416: See 'config.log' for more details" "$LINENO" 5; } ;; #(
20417: 'none needed') :
20418: ac_c_undeclared_builtin_options='' ;; #(
20419: *) :
20420: ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20421: esac
1.128 moko 20422:
1.237 moko 20423: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
20424: printf %s "checking what extension is used for runtime loadable modules... " >&6; }
20425: if test ${libltdl_cv_shlibext+y}
20426: then :
20427: printf %s "(cached) " >&6
20428: else case e in #(
20429: e)
1.128 moko 20430: module=yes
20431: eval libltdl_cv_shlibext=$shrext_cmds
20432: module=no
20433: eval libltdl_cv_shrext=$shrext_cmds
1.237 moko 20434: ;;
20435: esac
1.128 moko 20436: fi
1.237 moko 20437: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20438: printf "%s\n" "$libltdl_cv_shlibext" >&6; }
1.128 moko 20439: if test -n "$libltdl_cv_shlibext"; then
20440:
1.237 moko 20441: printf "%s\n" "#define LT_MODULE_EXT \"$libltdl_cv_shlibext\"" >>confdefs.h
1.128 moko 20442:
20443: fi
20444: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20445:
1.237 moko 20446: printf "%s\n" "#define LT_SHARED_EXT \"$libltdl_cv_shrext\"" >>confdefs.h
20447:
20448: fi
20449: if test -n "$shared_archive_member_spec"; then
20450:
20451: printf "%s\n" "#define LT_SHARED_LIB_MEMBER \"($shared_archive_member_spec.o)\"" >>confdefs.h
1.128 moko 20452:
20453: fi
20454:
1.237 moko 20455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
20456: printf %s "checking what variable specifies run-time module search path... " >&6; }
20457: if test ${lt_cv_module_path_var+y}
20458: then :
20459: printf %s "(cached) " >&6
20460: else case e in #(
20461: e) lt_cv_module_path_var=$shlibpath_var ;;
20462: esac
1.128 moko 20463: fi
1.237 moko 20464: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20465: printf "%s\n" "$lt_cv_module_path_var" >&6; }
1.128 moko 20466: if test -n "$lt_cv_module_path_var"; then
20467:
1.237 moko 20468: printf "%s\n" "#define LT_MODULE_PATH_VAR \"$lt_cv_module_path_var\"" >>confdefs.h
1.128 moko 20469:
20470: fi
20471:
1.237 moko 20472: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20473: printf %s "checking for the default library search path... " >&6; }
20474: if test ${lt_cv_sys_dlsearch_path+y}
20475: then :
20476: printf %s "(cached) " >&6
20477: else case e in #(
20478: e) lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec ;;
20479: esac
1.128 moko 20480: fi
1.237 moko 20481: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20482: printf "%s\n" "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 20483: if test -n "$lt_cv_sys_dlsearch_path"; then
20484: sys_dlsearch_path=
20485: for dir in $lt_cv_sys_dlsearch_path; do
20486: if test -z "$sys_dlsearch_path"; then
1.237 moko 20487: sys_dlsearch_path=$dir
1.128 moko 20488: else
1.237 moko 20489: sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
1.128 moko 20490: fi
20491: done
20492:
1.237 moko 20493: printf "%s\n" "#define LT_DLSEARCH_PATH \"$sys_dlsearch_path\"" >>confdefs.h
1.128 moko 20494:
20495: fi
20496:
20497:
20498: LT_DLLOADERS=
20499:
20500:
20501: ac_ext=c
20502: ac_cpp='$CPP $CPPFLAGS'
20503: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20506:
1.237 moko 20507: lt_dlload_save_LIBS=$LIBS
1.128 moko 20508:
20509: LIBADD_DLOPEN=
1.237 moko 20510: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20511: printf %s "checking for library containing dlopen... " >&6; }
20512: if test ${ac_cv_search_dlopen+y}
20513: then :
20514: printf %s "(cached) " >&6
20515: else case e in #(
20516: e) ac_func_search_save_LIBS=$LIBS
1.150 moko 20517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20518: /* end confdefs.h. */
20519:
1.150 moko 20520: /* Override any GCC internal prototype to avoid an error.
20521: Use char because int might match the return type of a GCC
1.237 moko 20522: builtin and then its argument prototype would still apply.
20523: The 'extern "C"' is for builds by C++ compilers;
20524: although this is not generally supported in C code supporting it here
20525: has little cost and some practical benefit (sr 110532). */
1.128 moko 20526: #ifdef __cplusplus
20527: extern "C"
20528: #endif
1.237 moko 20529: char dlopen (void);
1.128 moko 20530: int
1.237 moko 20531: main (void)
1.128 moko 20532: {
1.150 moko 20533: return dlopen ();
1.128 moko 20534: ;
20535: return 0;
20536: }
20537: _ACEOF
1.237 moko 20538: for ac_lib in '' dl
20539: do
1.150 moko 20540: if test -z "$ac_lib"; then
20541: ac_res="none required"
20542: else
20543: ac_res=-l$ac_lib
20544: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20545: fi
1.237 moko 20546: if ac_fn_c_try_link "$LINENO"
20547: then :
1.150 moko 20548: ac_cv_search_dlopen=$ac_res
20549: fi
1.237 moko 20550: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20551: conftest$ac_exeext
1.237 moko 20552: if test ${ac_cv_search_dlopen+y}
20553: then :
1.150 moko 20554: break
1.128 moko 20555: fi
1.150 moko 20556: done
1.237 moko 20557: if test ${ac_cv_search_dlopen+y}
20558: then :
1.128 moko 20559:
1.237 moko 20560: else case e in #(
20561: e) ac_cv_search_dlopen=no ;;
20562: esac
1.128 moko 20563: fi
1.150 moko 20564: rm conftest.$ac_ext
1.237 moko 20565: LIBS=$ac_func_search_save_LIBS ;;
20566: esac
1.128 moko 20567: fi
1.237 moko 20568: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20569: printf "%s\n" "$ac_cv_search_dlopen" >&6; }
1.150 moko 20570: ac_res=$ac_cv_search_dlopen
1.237 moko 20571: if test "$ac_res" != no
20572: then :
1.150 moko 20573: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 20574:
1.237 moko 20575: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20576:
1.237 moko 20577: if test "$ac_cv_search_dlopen" != "none required"; then
20578: LIBADD_DLOPEN=-ldl
1.128 moko 20579: fi
1.237 moko 20580: libltdl_cv_lib_dl_dlopen=yes
1.128 moko 20581: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 moko 20582: else case e in #(
20583: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20584: /* end confdefs.h. */
20585: #if HAVE_DLFCN_H
20586: # include <dlfcn.h>
20587: #endif
20588:
20589: int
1.237 moko 20590: main (void)
1.128 moko 20591: {
20592: dlopen(0, 0);
20593: ;
20594: return 0;
20595: }
20596: _ACEOF
1.237 moko 20597: if ac_fn_c_try_link "$LINENO"
20598: then :
1.128 moko 20599:
1.237 moko 20600: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20601:
1.237 moko 20602: libltdl_cv_func_dlopen=yes
1.128 moko 20603: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 moko 20604: else case e in #(
20605: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20606: printf %s "checking for dlopen in -lsvld... " >&6; }
20607: if test ${ac_cv_lib_svld_dlopen+y}
20608: then :
20609: printf %s "(cached) " >&6
20610: else case e in #(
20611: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20612: LIBS="-lsvld $LIBS"
1.150 moko 20613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20614: /* end confdefs.h. */
20615:
1.150 moko 20616: /* Override any GCC internal prototype to avoid an error.
20617: Use char because int might match the return type of a GCC
1.237 moko 20618: builtin and then its argument prototype would still apply.
20619: The 'extern "C"' is for builds by C++ compilers;
20620: although this is not generally supported in C code supporting it here
20621: has little cost and some practical benefit (sr 110532). */
1.128 moko 20622: #ifdef __cplusplus
20623: extern "C"
20624: #endif
1.237 moko 20625: char dlopen (void);
1.128 moko 20626: int
1.237 moko 20627: main (void)
1.128 moko 20628: {
1.150 moko 20629: return dlopen ();
1.128 moko 20630: ;
20631: return 0;
20632: }
20633: _ACEOF
1.237 moko 20634: if ac_fn_c_try_link "$LINENO"
20635: then :
1.128 moko 20636: ac_cv_lib_svld_dlopen=yes
1.237 moko 20637: else case e in #(
20638: e) ac_cv_lib_svld_dlopen=no ;;
20639: esac
1.128 moko 20640: fi
1.237 moko 20641: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20642: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20643: LIBS=$ac_check_lib_save_LIBS ;;
20644: esac
1.128 moko 20645: fi
1.237 moko 20646: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20647: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
20648: if test "x$ac_cv_lib_svld_dlopen" = xyes
20649: then :
1.128 moko 20650:
1.237 moko 20651: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20652:
1.237 moko 20653: LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
1.128 moko 20654: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20655: fi
1.237 moko 20656: ;;
20657: esac
1.128 moko 20658: fi
1.237 moko 20659: rm -f core conftest.err conftest.$ac_objext conftest.beam \
20660: conftest$ac_exeext conftest.$ac_ext ;;
20661: esac
1.128 moko 20662: fi
20663:
1.237 moko 20664: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
1.128 moko 20665: then
1.237 moko 20666: lt_save_LIBS=$LIBS
1.128 moko 20667: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 20668: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
1.237 moko 20669: if test "x$ac_cv_func_dlerror" = xyes
20670: then :
20671: printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h
1.128 moko 20672:
20673: fi
20674:
1.237 moko 20675: LIBS=$lt_save_LIBS
1.128 moko 20676: fi
20677:
20678:
20679: LIBADD_SHL_LOAD=
1.150 moko 20680: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 moko 20681: if test "x$ac_cv_func_shl_load" = xyes
20682: then :
1.128 moko 20683:
1.237 moko 20684: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 20685:
20686: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 moko 20687: else case e in #(
20688: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20689: printf %s "checking for shl_load in -ldld... " >&6; }
20690: if test ${ac_cv_lib_dld_shl_load+y}
20691: then :
20692: printf %s "(cached) " >&6
20693: else case e in #(
20694: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 20695: LIBS="-ldld $LIBS"
1.150 moko 20696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20697: /* end confdefs.h. */
1.10 paf 20698:
1.150 moko 20699: /* Override any GCC internal prototype to avoid an error.
20700: Use char because int might match the return type of a GCC
1.237 moko 20701: builtin and then its argument prototype would still apply.
20702: The 'extern "C"' is for builds by C++ compilers;
20703: although this is not generally supported in C code supporting it here
20704: has little cost and some practical benefit (sr 110532). */
1.66 paf 20705: #ifdef __cplusplus
20706: extern "C"
20707: #endif
1.237 moko 20708: char shl_load (void);
1.66 paf 20709: int
1.237 moko 20710: main (void)
1.66 paf 20711: {
1.150 moko 20712: return shl_load ();
1.66 paf 20713: ;
20714: return 0;
20715: }
20716: _ACEOF
1.237 moko 20717: if ac_fn_c_try_link "$LINENO"
20718: then :
1.66 paf 20719: ac_cv_lib_dld_shl_load=yes
1.237 moko 20720: else case e in #(
20721: e) ac_cv_lib_dld_shl_load=no ;;
20722: esac
1.66 paf 20723: fi
1.237 moko 20724: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20725: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20726: LIBS=$ac_check_lib_save_LIBS ;;
20727: esac
1.66 paf 20728: fi
1.237 moko 20729: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20730: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
20731: if test "x$ac_cv_lib_dld_shl_load" = xyes
20732: then :
1.1 paf 20733:
1.237 moko 20734: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 20735:
1.128 moko 20736: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 moko 20737: LIBADD_SHL_LOAD=-ldld
1.128 moko 20738: fi
1.237 moko 20739: ;;
20740: esac
1.128 moko 20741: fi
20742:
20743:
20744:
20745: case $host_os in
20746: darwin[1567].*)
20747: # We only want this for pre-Mac OS X 10.4.
1.150 moko 20748: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
1.237 moko 20749: if test "x$ac_cv_func__dyld_func_lookup" = xyes
20750: then :
1.150 moko 20751:
1.237 moko 20752: printf "%s\n" "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 20753:
1.150 moko 20754: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20755: fi
1.128 moko 20756:
1.150 moko 20757: ;;
20758: beos*)
1.128 moko 20759: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20760: ;;
1.237 moko 20761: cygwin* | mingw* | windows* | pw32*)
20762: ac_fn_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20763: " "$ac_c_undeclared_builtin_options" "CFLAGS"
20764: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes
20765: then :
1.150 moko 20766: ac_have_decl=1
1.237 moko 20767: else case e in #(
20768: e) ac_have_decl=0 ;;
20769: esac
1.128 moko 20770: fi
1.237 moko 20771: printf "%s\n" "#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl" >>confdefs.h
1.128 moko 20772:
20773: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20774: ;;
20775: esac
20776:
1.237 moko 20777: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20778: printf %s "checking for dld_link in -ldld... " >&6; }
20779: if test ${ac_cv_lib_dld_dld_link+y}
20780: then :
20781: printf %s "(cached) " >&6
20782: else case e in #(
20783: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20784: LIBS="-ldld $LIBS"
1.150 moko 20785: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20786: /* end confdefs.h. */
1.62 paf 20787:
1.150 moko 20788: /* Override any GCC internal prototype to avoid an error.
20789: Use char because int might match the return type of a GCC
1.237 moko 20790: builtin and then its argument prototype would still apply.
20791: The 'extern "C"' is for builds by C++ compilers;
20792: although this is not generally supported in C code supporting it here
20793: has little cost and some practical benefit (sr 110532). */
1.66 paf 20794: #ifdef __cplusplus
20795: extern "C"
20796: #endif
1.237 moko 20797: char dld_link (void);
1.66 paf 20798: int
1.237 moko 20799: main (void)
1.66 paf 20800: {
1.150 moko 20801: return dld_link ();
1.66 paf 20802: ;
20803: return 0;
20804: }
20805: _ACEOF
1.237 moko 20806: if ac_fn_c_try_link "$LINENO"
20807: then :
1.128 moko 20808: ac_cv_lib_dld_dld_link=yes
1.237 moko 20809: else case e in #(
20810: e) ac_cv_lib_dld_dld_link=no ;;
20811: esac
1.128 moko 20812: fi
1.237 moko 20813: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20814: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20815: LIBS=$ac_check_lib_save_LIBS ;;
20816: esac
1.128 moko 20817: fi
1.237 moko 20818: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20819: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
20820: if test "x$ac_cv_lib_dld_dld_link" = xyes
20821: then :
1.128 moko 20822:
1.237 moko 20823: printf "%s\n" "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 20824:
20825: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20826: fi
20827:
20828:
20829:
20830:
20831: LT_DLPREOPEN=
20832: if test -n "$LT_DLLOADERS"
20833: then
20834: for lt_loader in $LT_DLLOADERS; do
20835: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20836: done
20837:
1.237 moko 20838: printf "%s\n" "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 20839:
20840: fi
20841:
20842:
20843: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20844:
20845:
1.237 moko 20846: LIBS=$lt_dlload_save_LIBS
1.128 moko 20847: ac_ext=c
20848: ac_cpp='$CPP $CPPFLAGS'
20849: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852:
20853:
1.237 moko 20854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20855: printf %s "checking for _ prefix in compiled symbols... " >&6; }
20856: if test ${lt_cv_sys_symbol_underscore+y}
20857: then :
20858: printf %s "(cached) " >&6
20859: else case e in #(
20860: e) lt_cv_sys_symbol_underscore=no
1.128 moko 20861: cat > conftest.$ac_ext <<_LT_EOF
20862: void nm_test_func(){}
1.237 moko 20863: int main(void){nm_test_func;return 0;}
1.128 moko 20864: _LT_EOF
1.150 moko 20865: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 20866: (eval $ac_compile) 2>&5
20867: ac_status=$?
1.237 moko 20868: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20869: test $ac_status = 0; }; then
1.128 moko 20870: # Now try to grab the symbols.
20871: ac_nlist=conftest.nm
1.150 moko 20872: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 20873: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20874: ac_status=$?
1.237 moko 20875: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20876: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 20877: # See whether the symbols have a leading underscore.
20878: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20879: lt_cv_sys_symbol_underscore=yes
20880: else
20881: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20882: :
20883: else
20884: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20885: fi
20886: fi
20887: else
20888: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20889: fi
20890: else
20891: echo "configure: failed program was:" >&5
20892: cat conftest.c >&5
20893: fi
20894: rm -rf conftest*
1.237 moko 20895: ;;
20896: esac
1.66 paf 20897: fi
1.237 moko 20898: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20899: printf "%s\n" "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 20900: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 20901:
1.62 paf 20902:
1.237 moko 20903: if test yes = "$lt_cv_sys_symbol_underscore"; then
20904: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
20905: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20906: printf %s "checking whether we have to add an underscore for dlsym... " >&6; }
20907: if test ${libltdl_cv_need_uscore+y}
20908: then :
20909: printf %s "(cached) " >&6
20910: else case e in #(
20911: e) libltdl_cv_need_uscore=unknown
20912: dlsym_uscore_save_LIBS=$LIBS
20913: LIBS="$LIBS $LIBADD_DLOPEN"
20914: libname=conftmod # stay within 8.3 filename limits!
20915: cat >$libname.$ac_ext <<_LT_EOF
1.128 moko 20916: #line $LINENO "configure"
20917: #include "confdefs.h"
1.237 moko 20918: /* When -fvisibility=hidden is used, assume the code has been annotated
20919: correspondingly for the symbols needed. */
20920: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20921: int fnord () __attribute__((visibility("default")));
20922: #endif
20923: int fnord () { return 42; }
20924: _LT_EOF
1.128 moko 20925:
1.237 moko 20926: # ltfn_module_cmds module_cmds
20927: # Execute tilde-delimited MODULE_CMDS with environment primed for
20928: # $module_cmds or $archive_cmds type content.
20929: ltfn_module_cmds ()
20930: {( # subshell avoids polluting parent global environment
20931: module_cmds_save_ifs=$IFS; IFS='~'
20932: for cmd in $1; do
20933: IFS=$module_cmds_save_ifs
20934: libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
20935: rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
20936: major=; versuffix=; verstring=; deplibs=
20937: ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
20938: eval $cmd
20939: done
20940: IFS=$module_cmds_save_ifs
20941: )}
20942:
20943: # Compile a loadable module using libtool macro expansion results.
20944: $CC $pic_flag -c $libname.$ac_ext
20945: ltfn_module_cmds "${module_cmds:-$archive_cmds}"
20946:
20947: # Try to fetch fnord with dlsym().
20948: libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
20949: cat >conftest.$ac_ext <<_LT_EOF
20950: #line $LINENO "configure"
20951: #include "confdefs.h"
1.66 paf 20952: #if HAVE_DLFCN_H
1.128 moko 20953: #include <dlfcn.h>
20954: #endif
20955: #include <stdio.h>
1.237 moko 20956: #ifndef RTLD_GLOBAL
1.128 moko 20957: # ifdef DL_GLOBAL
1.237 moko 20958: # define RTLD_GLOBAL DL_GLOBAL
1.128 moko 20959: # else
1.237 moko 20960: # define RTLD_GLOBAL 0
1.128 moko 20961: # endif
20962: #endif
1.237 moko 20963: #ifndef RTLD_NOW
20964: # ifdef DL_NOW
20965: # define RTLD_NOW DL_NOW
1.128 moko 20966: # else
1.237 moko 20967: # define RTLD_NOW 0
1.128 moko 20968: # endif
20969: #endif
1.237 moko 20970: int main (void) {
20971: void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
20972: int status = $libltdl_dlunknown;
20973: if (handle) {
20974: if (dlsym (handle, "fnord"))
20975: status = $libltdl_dlnouscore;
20976: else {
20977: if (dlsym (handle, "_fnord"))
20978: status = $libltdl_dluscore;
1.128 moko 20979: else
1.237 moko 20980: puts (dlerror ());
1.128 moko 20981: }
1.237 moko 20982: dlclose (handle);
20983: } else
1.128 moko 20984: puts (dlerror ());
20985: return status;
1.66 paf 20986: }
1.128 moko 20987: _LT_EOF
1.237 moko 20988: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 20989: (eval $ac_link) 2>&5
1.66 paf 20990: ac_status=$?
1.237 moko 20991: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20992: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20993: (./conftest; exit; ) >&5 2>/dev/null
20994: libltdl_status=$?
20995: case x$libltdl_status in
20996: x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
20997: x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
20998: x*) libltdl_cv_need_uscore=unknown ;;
20999: esac
21000: fi
21001: rm -rf conftest* $libname*
21002: LIBS=$dlsym_uscore_save_LIBS
21003: ;;
21004: esac
1.128 moko 21005: fi
1.237 moko 21006: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21007: printf "%s\n" "$libltdl_cv_need_uscore" >&6; }
1.128 moko 21008: fi
21009: fi
21010:
1.237 moko 21011: if test yes = "$libltdl_cv_need_uscore"; then
1.29 paf 21012:
1.237 moko 21013: printf "%s\n" "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 21014:
1.128 moko 21015: fi
21016:
1.237 moko 21017: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21018: printf %s "checking whether deplibs are loaded by dlopen... " >&6; }
21019: if test ${lt_cv_sys_dlopen_deplibs+y}
21020: then :
21021: printf %s "(cached) " >&6
21022: else case e in #(
21023: e) # PORTME does your system automatically load deplibs for dlopen?
1.128 moko 21024: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21025: # For now, we just catch OSes we know something about -- in the
21026: # future, we'll try test this programmatically.
21027: lt_cv_sys_dlopen_deplibs=unknown
21028: case $host_os in
21029: aix3*|aix4.1.*|aix4.2.*)
21030: # Unknown whether this is true for these versions of AIX, but
1.237 moko 21031: # we want this 'case' here to explicitly catch those versions.
1.128 moko 21032: lt_cv_sys_dlopen_deplibs=unknown
21033: ;;
21034: aix[4-9]*)
21035: lt_cv_sys_dlopen_deplibs=yes
21036: ;;
21037: amigaos*)
21038: case $host_cpu in
21039: powerpc)
21040: lt_cv_sys_dlopen_deplibs=no
21041: ;;
21042: esac
21043: ;;
21044: darwin*)
21045: # Assuming the user has installed a libdl from somewhere, this is true
21046: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21047: lt_cv_sys_dlopen_deplibs=yes
21048: ;;
1.237 moko 21049: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 21050: lt_cv_sys_dlopen_deplibs=yes
21051: ;;
21052: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
21053: # GNU and its variants, using gnu ld.so (Glibc)
21054: lt_cv_sys_dlopen_deplibs=yes
21055: ;;
21056: hpux10*|hpux11*)
21057: lt_cv_sys_dlopen_deplibs=yes
21058: ;;
21059: interix*)
21060: lt_cv_sys_dlopen_deplibs=yes
21061: ;;
21062: irix[12345]*|irix6.[01]*)
21063: # Catch all versions of IRIX before 6.2, and indicate that we don't
21064: # know how it worked for any of those versions.
21065: lt_cv_sys_dlopen_deplibs=unknown
21066: ;;
21067: irix*)
21068: # The case above catches anything before 6.2, and it's known that
21069: # at 6.2 and later dlopen does load deplibs.
21070: lt_cv_sys_dlopen_deplibs=yes
21071: ;;
1.237 moko 21072: *-mlibc)
21073: lt_cv_sys_dlopen_deplibs=yes
21074: ;;
21075: netbsd* | netbsdelf*-gnu)
1.128 moko 21076: lt_cv_sys_dlopen_deplibs=yes
21077: ;;
21078: openbsd*)
21079: lt_cv_sys_dlopen_deplibs=yes
21080: ;;
21081: osf[1234]*)
21082: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21083: # it did *not* use an RPATH in a shared library to find objects the
1.237 moko 21084: # library depends on, so we explicitly say 'no'.
1.128 moko 21085: lt_cv_sys_dlopen_deplibs=no
21086: ;;
21087: osf5.0|osf5.0a|osf5.1)
21088: # dlopen *does* load deplibs and with the right loader patch applied
21089: # it even uses RPATH in a shared library to search for shared objects
21090: # that the library depends on, but there's no easy way to know if that
21091: # patch is installed. Since this is the case, all we can really
21092: # say is unknown -- it depends on the patch being installed. If
1.237 moko 21093: # it is, this changes to 'yes'. Without it, it would be 'no'.
1.128 moko 21094: lt_cv_sys_dlopen_deplibs=unknown
21095: ;;
21096: osf*)
21097: # the two cases above should catch all versions of osf <= 5.1. Read
21098: # the comments above for what we know about them.
21099: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
1.237 moko 21100: # is used to find them so we can finally say 'yes'.
1.128 moko 21101: lt_cv_sys_dlopen_deplibs=yes
21102: ;;
21103: qnx*)
21104: lt_cv_sys_dlopen_deplibs=yes
21105: ;;
21106: solaris*)
21107: lt_cv_sys_dlopen_deplibs=yes
21108: ;;
21109: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21110: libltdl_cv_sys_dlopen_deplibs=yes
21111: ;;
21112: esac
1.237 moko 21113: ;;
21114: esac
1.128 moko 21115: fi
1.237 moko 21116: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21117: printf "%s\n" "$lt_cv_sys_dlopen_deplibs" >&6; }
21118: if test yes != "$lt_cv_sys_dlopen_deplibs"; then
1.128 moko 21119:
1.237 moko 21120: printf "%s\n" "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 21121:
1.243 moko 21122: fi
1.128 moko 21123:
21124:
1.243 moko 21125: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
1.237 moko 21126: "
1.243 moko 21127: if test "x$ac_cv_header_argz_h" = xyes
1.237 moko 21128: then :
1.243 moko 21129: printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
1.237 moko 21130:
21131: fi
1.243 moko 21132:
21133:
21134: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21135: # include <argz.h>
21136: #endif
1.237 moko 21137: "
1.243 moko 21138: if test "x$ac_cv_type_error_t" = xyes
1.237 moko 21139: then :
21140:
1.243 moko 21141: printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h
1.237 moko 21142:
21143:
1.243 moko 21144: else case e in #(
21145: e)
21146: printf "%s\n" "#define error_t int" >>confdefs.h
1.237 moko 21147:
1.128 moko 21148:
1.243 moko 21149: printf "%s\n" "#define __error_t_defined 1" >>confdefs.h
21150: ;;
21151: esac
1.150 moko 21152: fi
1.128 moko 21153:
21154:
1.243 moko 21155: LT_ARGZ_H=
1.128 moko 21156:
1.243 moko 21157: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert argz_next argz_stringify
1.150 moko 21158: do :
1.237 moko 21159: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 21160: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 moko 21161: if eval test \"x\$"$as_ac_var"\" = x"yes"
21162: then :
1.150 moko 21163: cat >>confdefs.h <<_ACEOF
1.237 moko 21164: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.150 moko 21165: _ACEOF
1.66 paf 21166:
1.237 moko 21167: else case e in #(
1.243 moko 21168: e) LT_ARGZ_H=lt__argz.h;
1.66 paf 21169:
1.243 moko 21170: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
1.237 moko 21171: ;;
21172: esac
21173: fi
1.1 paf 21174:
1.128 moko 21175: done
21176:
1.243 moko 21177: if test -z "$LT_ARGZ_H"
21178: then :
21179: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21180: printf %s "checking if argz actually works... " >&6; }
21181: if test ${lt_cv_sys_argz_works+y}
21182: then :
21183: printf %s "(cached) " >&6
21184: else case e in #(
21185: e) case $host_os in #(
21186: *cygwin*)
21187: lt_cv_sys_argz_works=no
21188: if test no != "$cross_compiling"; then
21189: lt_cv_sys_argz_works="guessing no"
21190: else
21191: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21192: save_IFS=$IFS
21193: IFS=-.
21194: set x `uname -r | $SED -e "$lt_sed_extract_leading_digits"`
21195: IFS=$save_IFS
21196: lt_os_major=${2-0}
21197: lt_os_minor=${3-0}
21198: lt_os_micro=${4-0}
21199: if test 1 -lt "$lt_os_major" \
21200: || { test 1 -eq "$lt_os_major" \
21201: && { test 5 -lt "$lt_os_minor" \
21202: || { test 5 -eq "$lt_os_minor" \
21203: && test 24 -lt "$lt_os_micro"; }; }; }; then
21204: lt_cv_sys_argz_works=yes
21205: fi
21206: fi
21207: ;; #(
21208: *) lt_cv_sys_argz_works=yes ;;
21209: esac ;;
21210: esac
21211: fi
21212: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21213: printf "%s\n" "$lt_cv_sys_argz_works" >&6; }
21214: if test yes = "$lt_cv_sys_argz_works"
1.237 moko 21215: then :
1.243 moko 21216:
21217: printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 21218:
1.237 moko 21219: else case e in #(
1.243 moko 21220: e) LT_ARGZ_H=lt__argz.h
21221:
1.128 moko 21222:
1.243 moko 21223: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
1.237 moko 21224: ;;
21225: esac
21226: fi
1.243 moko 21227: fi
1.128 moko 21228:
21229:
21230:
1.243 moko 21231: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21232: printf %s "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
21233: if test ${libltdl_cv_preloaded_symbols+y}
21234: then :
21235: printf %s "(cached) " >&6
21236: else case e in #(
21237: e) if test -n "$lt_cv_sys_global_symbol_pipe"; then
21238: libltdl_cv_preloaded_symbols=yes
21239: else
21240: libltdl_cv_preloaded_symbols=no
21241: fi
21242: ;;
21243: esac
21244: fi
21245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21246: printf "%s\n" "$libltdl_cv_preloaded_symbols" >&6; }
21247: if test yes = "$libltdl_cv_preloaded_symbols"; then
1.64 paf 21248:
1.243 moko 21249: printf "%s\n" "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.128 moko 21250:
1.243 moko 21251: fi
1.128 moko 21252:
21253:
21254:
1.243 moko 21255: # Set options
1.128 moko 21256:
21257:
21258:
21259:
21260:
21261:
21262:
21263:
21264:
21265:
21266:
21267:
1.243 moko 21268: # Check whether --with-included_ltdl was given.
21269: if test ${with_included_ltdl+y}
1.237 moko 21270: then :
1.243 moko 21271: withval=$with_included_ltdl;
21272: fi
1.150 moko 21273:
21274:
1.243 moko 21275: if test yes != "$with_included_ltdl"; then
21276: # We are not being forced to use the included libltdl sources, so
21277: # decide whether there is a useful installed version we can use.
21278: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 21279:
1.243 moko 21280: "
21281: if test "x$ac_cv_header_ltdl_h" = xyes
1.237 moko 21282: then :
1.243 moko 21283: ac_fn_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21284: #include <ltdl.h>
21285: " "$ac_c_undeclared_builtin_options" "CFLAGS"
21286: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes
1.237 moko 21287: then :
1.243 moko 21288: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21289: printf %s "checking for lt_dladvise_preload in -lltdl... " >&6; }
21290: if test ${ac_cv_lib_ltdl_lt_dladvise_preload+y}
1.237 moko 21291: then :
1.243 moko 21292: printf %s "(cached) " >&6
21293: else case e in #(
21294: e) ac_check_lib_save_LIBS=$LIBS
21295: LIBS="-lltdl $LIBS"
21296: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 21297: /* end confdefs.h. */
1.150 moko 21298:
1.243 moko 21299: /* Override any GCC internal prototype to avoid an error.
21300: Use char because int might match the return type of a GCC
21301: builtin and then its argument prototype would still apply.
21302: The 'extern "C"' is for builds by C++ compilers;
21303: although this is not generally supported in C code supporting it here
21304: has little cost and some practical benefit (sr 110532). */
21305: #ifdef __cplusplus
21306: extern "C"
21307: #endif
21308: char lt_dladvise_preload (void);
1.128 moko 21309: int
1.237 moko 21310: main (void)
1.128 moko 21311: {
1.243 moko 21312: return lt_dladvise_preload ();
1.128 moko 21313: ;
21314: return 0;
21315: }
1.62 paf 21316: _ACEOF
1.243 moko 21317: if ac_fn_c_try_link "$LINENO"
1.237 moko 21318: then :
1.243 moko 21319: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.237 moko 21320: else case e in #(
1.243 moko 21321: e) ac_cv_lib_ltdl_lt_dladvise_preload=no ;;
1.237 moko 21322: esac
1.128 moko 21323: fi
1.243 moko 21324: rm -f core conftest.err conftest.$ac_objext conftest.beam \
21325: conftest$ac_exeext conftest.$ac_ext
21326: LIBS=$ac_check_lib_save_LIBS ;;
21327: esac
1.128 moko 21328: fi
1.243 moko 21329: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21330: printf "%s\n" "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21331: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes
1.237 moko 21332: then :
1.243 moko 21333: with_included_ltdl=no
21334: else case e in #(
21335: e) with_included_ltdl=yes ;;
21336: esac
1.128 moko 21337: fi
1.150 moko 21338:
1.237 moko 21339: else case e in #(
1.243 moko 21340: e) with_included_ltdl=yes ;;
1.237 moko 21341: esac
1.128 moko 21342: fi
1.243 moko 21343: else case e in #(
21344: e) with_included_ltdl=yes ;;
1.237 moko 21345: esac
1.128 moko 21346: fi
1.150 moko 21347:
1.66 paf 21348: fi
1.150 moko 21349:
21350:
1.128 moko 21351:
1.66 paf 21352:
1.243 moko 21353: # Check whether --with-ltdl_include was given.
21354: if test ${with_ltdl_include+y}
21355: then :
21356: withval=$with_ltdl_include;
21357: fi
1.128 moko 21358:
1.1 paf 21359:
1.243 moko 21360: if test -n "$with_ltdl_include"; then
21361: if test -f "$with_ltdl_include/ltdl.h"; then :
21362: else
21363: as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
21364: fi
21365: else
21366: with_ltdl_include=no
21367: fi
1.66 paf 21368:
21369:
1.243 moko 21370: # Check whether --with-ltdl_lib was given.
21371: if test ${with_ltdl_lib+y}
1.237 moko 21372: then :
1.243 moko 21373: withval=$with_ltdl_lib;
21374: fi
21375:
21376:
21377: if test -n "$with_ltdl_lib"; then
21378: if test -f "$with_ltdl_lib/libltdl.la"; then :
21379: else
21380: as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
21381: fi
21382: else
21383: with_ltdl_lib=no
21384: fi
1.62 paf 21385:
1.243 moko 21386: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21387: ,yes,no,no,)
21388: case $enable_ltdl_convenience in
21389: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
21390: "") enable_ltdl_convenience=yes
21391: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1.237 moko 21392: esac
1.243 moko 21393: LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21394: LTDLDEPS=$LIBLTDL
21395: LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21396:
21397:
21398:
21399:
21400:
21401: # For backwards non-gettext consistent compatibility...
21402: INCLTDL=$LTDLINCL
21403:
21404:
21405: ;;
21406: ,no,no,no,)
21407: # If the included ltdl is not to be used, then use the
21408: # preinstalled libltdl we found.
1.66 paf 21409:
1.243 moko 21410: printf "%s\n" "#define HAVE_LTDL 1" >>confdefs.h
1.156 moko 21411:
1.243 moko 21412: LIBLTDL=-lltdl
21413: LTDLDEPS=
21414: LTDLINCL=
21415: ;;
21416: ,no*,no,*)
21417: as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
21418: ;;
21419: *) with_included_ltdl=no
21420: LIBLTDL="-L$with_ltdl_lib -lltdl"
21421: LTDLDEPS=
21422: LTDLINCL=-I$with_ltdl_include
21423: ;;
1.237 moko 21424: esac
1.243 moko 21425: INCLTDL=$LTDLINCL
1.156 moko 21426:
1.243 moko 21427: # Report our decision...
21428: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21429: printf %s "checking where to find libltdl headers... " >&6; }
21430: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21431: printf "%s\n" "$LTDLINCL" >&6; }
21432: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21433: printf %s "checking where to find libltdl library... " >&6; }
21434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21435: printf "%s\n" "$LIBLTDL" >&6; }
1.159 moko 21436:
21437:
21438:
1.243 moko 21439: # Check whether --enable-ltdl-install was given.
21440: if test ${enable_ltdl_install+y}
21441: then :
21442: enableval=$enable_ltdl_install;
21443: fi
1.159 moko 21444:
1.165 moko 21445:
1.243 moko 21446: case ,$enable_ltdl_install,$enable_ltdl_convenience in
21447: *yes*) ;;
21448: *) enable_ltdl_convenience=yes ;;
21449: esac
1.165 moko 21450:
1.243 moko 21451: if test no != "${enable_ltdl_install-no}"; then
21452: INSTALL_LTDL_TRUE=
21453: INSTALL_LTDL_FALSE='#'
21454: else
21455: INSTALL_LTDL_TRUE='#'
21456: INSTALL_LTDL_FALSE=
21457: fi
1.165 moko 21458:
1.243 moko 21459: if test no != "${enable_ltdl_convenience-no}"; then
21460: CONVENIENCE_LTDL_TRUE=
21461: CONVENIENCE_LTDL_FALSE='#'
21462: else
21463: CONVENIENCE_LTDL_TRUE='#'
21464: CONVENIENCE_LTDL_FALSE=
21465: fi
1.156 moko 21466:
1.243 moko 21467: if test -n "$LT_ARGZ_H"; then
21468: LTARGZH_EXISTS_TRUE=
21469: LTARGZH_EXISTS_FALSE='#'
21470: else
21471: LTARGZH_EXISTS_TRUE='#'
21472: LTARGZH_EXISTS_FALSE=
21473: fi
1.156 moko 21474:
21475:
1.128 moko 21476:
1.243 moko 21477: subdirs="$subdirs src/lib/ltdl"
1.159 moko 21478:
21479:
21480:
21481:
1.243 moko 21482: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21483: # the user used. This is so that ltdl.h can pick up the parent projects
21484: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
21485: # definitions required by ltdl.c.
21486: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
1.234 moko 21487:
21488:
1.159 moko 21489:
1.243 moko 21490: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
21491: "
21492: if test "x$ac_cv_header_unistd_h" = xyes
1.237 moko 21493: then :
1.243 moko 21494: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
1.161 moko 21495:
1.243 moko 21496: fi
21497: ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default
21498: "
21499: if test "x$ac_cv_header_dl_h" = xyes
1.237 moko 21500: then :
1.243 moko 21501: printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21502:
1.161 moko 21503: fi
1.243 moko 21504: ac_fn_c_check_header_compile "$LINENO" "sys/dl.h" "ac_cv_header_sys_dl_h" "$ac_includes_default
21505: "
21506: if test "x$ac_cv_header_sys_dl_h" = xyes
21507: then :
21508: printf "%s\n" "#define HAVE_SYS_DL_H 1" >>confdefs.h
21509:
1.161 moko 21510: fi
1.243 moko 21511: ac_fn_c_check_header_compile "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default
21512: "
21513: if test "x$ac_cv_header_dld_h" = xyes
1.237 moko 21514: then :
1.243 moko 21515: printf "%s\n" "#define HAVE_DLD_H 1" >>confdefs.h
1.161 moko 21516:
21517: fi
1.243 moko 21518: ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default
21519: "
21520: if test "x$ac_cv_header_mach_o_dyld_h" = xyes
1.237 moko 21521: then :
1.243 moko 21522: printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
1.161 moko 21523:
21524: fi
1.243 moko 21525: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default
21526: "
21527: if test "x$ac_cv_header_dirent_h" = xyes
1.237 moko 21528: then :
1.243 moko 21529: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
21530:
1.161 moko 21531: fi
1.243 moko 21532:
21533:
21534:
21535: for ac_func in closedir opendir readdir
21536: do :
21537: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
21538: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21539: if eval test \"x\$"$as_ac_var"\" = x"yes"
1.237 moko 21540: then :
1.243 moko 21541: cat >>confdefs.h <<_ACEOF
21542: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
21543: _ACEOF
1.161 moko 21544:
1.237 moko 21545: else case e in #(
1.243 moko 21546: e)
21547:
21548: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21549: ;;
1.237 moko 21550: esac
1.161 moko 21551: fi
21552:
1.243 moko 21553: done
1.161 moko 21554:
1.243 moko 21555: for ac_func in strlcat strlcpy
21556: do :
21557: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
21558: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21559: if eval test \"x\$"$as_ac_var"\" = x"yes"
1.237 moko 21560: then :
1.243 moko 21561: cat >>confdefs.h <<_ACEOF
21562: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
21563: _ACEOF
21564:
1.237 moko 21565: else case e in #(
1.243 moko 21566: e)
1.161 moko 21567:
1.243 moko 21568: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21569: ;;
21570: esac
1.161 moko 21571: fi
1.243 moko 21572:
1.161 moko 21573: done
21574:
21575:
1.243 moko 21576: printf "%s\n" "#define LT_LIBEXT \"$libext\"" >>confdefs.h
21577:
21578:
21579: name=
21580: eval "lt_libprefix=\"$libname_spec\""
21581:
21582: printf "%s\n" "#define LT_LIBPREFIX \"$lt_libprefix\"" >>confdefs.h
21583:
21584:
21585: name=ltdl
21586: eval "LTDLOPEN=\"$libname_spec\""
21587:
1.161 moko 21588:
21589:
21590:
21591:
21592:
21593:
21594:
1.243 moko 21595: # Only expand once:
1.161 moko 21596:
21597:
21598:
1.159 moko 21599:
1.243 moko 21600: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21601: printf %s "checking whether byte ordering is bigendian... " >&6; }
21602: if test ${ac_cv_c_bigendian+y}
1.237 moko 21603: then :
21604: printf %s "(cached) " >&6
21605: else case e in #(
1.243 moko 21606: e) ac_cv_c_bigendian=unknown
21607: # See if we're dealing with a universal compiler.
21608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609: /* end confdefs.h. */
21610: #ifndef __APPLE_CC__
21611: not a universal capable compiler
21612: #endif
21613: typedef int dummy;
21614:
21615: _ACEOF
21616: if ac_fn_c_try_compile "$LINENO"
1.237 moko 21617: then :
1.243 moko 21618:
21619: # Check for potential -arch flags. It is not universal unless
21620: # there are at least two -arch flags with different values.
21621: ac_arch=
21622: ac_prev=
21623: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21624: if test -n "$ac_prev"; then
21625: case $ac_word in
21626: i?86 | x86_64 | ppc | ppc64)
21627: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21628: ac_arch=$ac_word
21629: else
21630: ac_cv_c_bigendian=universal
21631: break
21632: fi
21633: ;;
21634: esac
21635: ac_prev=
21636: elif test "x$ac_word" = "x-arch"; then
21637: ac_prev=arch
21638: fi
21639: done
1.237 moko 21640: fi
1.243 moko 21641: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21642: if test $ac_cv_c_bigendian = unknown; then
21643: # See if sys/param.h defines the BYTE_ORDER macro.
21644: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21645: /* end confdefs.h. */
21646: #include <sys/types.h>
1.243 moko 21647: #include <sys/param.h>
21648:
1.171 moko 21649: int
1.237 moko 21650: main (void)
1.171 moko 21651: {
1.243 moko 21652: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
21653: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
21654: && LITTLE_ENDIAN)
21655: bogus endian macros
21656: #endif
1.171 moko 21657:
21658: ;
21659: return 0;
21660: }
21661: _ACEOF
1.237 moko 21662: if ac_fn_c_try_compile "$LINENO"
21663: then :
1.243 moko 21664: # It does; now see whether it defined to BIG_ENDIAN or not.
21665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666: /* end confdefs.h. */
21667: #include <sys/types.h>
21668: #include <sys/param.h>
21669:
21670: int
21671: main (void)
21672: {
21673: #if BYTE_ORDER != BIG_ENDIAN
21674: not big endian
21675: #endif
21676:
21677: ;
21678: return 0;
21679: }
21680: _ACEOF
21681: if ac_fn_c_try_compile "$LINENO"
1.237 moko 21682: then :
1.243 moko 21683: ac_cv_c_bigendian=yes
1.237 moko 21684: else case e in #(
1.243 moko 21685: e) ac_cv_c_bigendian=no ;;
1.237 moko 21686: esac
21687: fi
1.243 moko 21688: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.171 moko 21689: fi
1.237 moko 21690: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.243 moko 21691: fi
21692: if test $ac_cv_c_bigendian = unknown; then
21693: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695: /* end confdefs.h. */
21696: #include <limits.h>
1.237 moko 21697:
1.243 moko 21698: int
21699: main (void)
21700: {
21701: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21702: bogus endian macros
21703: #endif
1.237 moko 21704:
1.243 moko 21705: ;
21706: return 0;
21707: }
21708: _ACEOF
21709: if ac_fn_c_try_compile "$LINENO"
21710: then :
21711: # It does; now see whether it defined to _BIG_ENDIAN or not.
21712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713: /* end confdefs.h. */
21714: #include <limits.h>
1.237 moko 21715:
1.243 moko 21716: int
21717: main (void)
21718: {
21719: #ifndef _BIG_ENDIAN
21720: not big endian
21721: #endif
1.171 moko 21722:
1.243 moko 21723: ;
21724: return 0;
21725: }
21726: _ACEOF
21727: if ac_fn_c_try_compile "$LINENO"
21728: then :
21729: ac_cv_c_bigendian=yes
21730: else case e in #(
21731: e) ac_cv_c_bigendian=no ;;
1.237 moko 21732: esac
1.243 moko 21733: fi
21734: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21735: fi
21736: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21737: fi
21738: if test $ac_cv_c_bigendian = unknown; then
21739: # Compile a test program.
21740: if test "$cross_compiling" = yes
1.237 moko 21741: then :
1.243 moko 21742: # Try to guess by grepping values from an object file.
21743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21744: /* end confdefs.h. */
21745: unsigned short int ascii_mm[] =
21746: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21747: unsigned short int ascii_ii[] =
21748: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21749: int use_ascii (int i) {
21750: return ascii_mm[i] + ascii_ii[i];
21751: }
21752: unsigned short int ebcdic_ii[] =
21753: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21754: unsigned short int ebcdic_mm[] =
21755: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21756: int use_ebcdic (int i) {
21757: return ebcdic_mm[i] + ebcdic_ii[i];
21758: }
21759: int
21760: main (int argc, char **argv)
21761: {
21762: /* Intimidate the compiler so that it does not
21763: optimize the arrays away. */
21764: char *p = argv[0];
21765: ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
21766: ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
21767: return use_ascii (argc) == use_ebcdic (*p);
21768: }
21769: _ACEOF
21770: if ac_fn_c_try_link "$LINENO"
1.237 moko 21771: then :
1.243 moko 21772: if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
21773: ac_cv_c_bigendian=yes
21774: fi
21775: if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
21776: if test "$ac_cv_c_bigendian" = unknown; then
21777: ac_cv_c_bigendian=no
21778: else
21779: # finding both strings is unlikely to happen, but who knows?
21780: ac_cv_c_bigendian=unknown
21781: fi
21782: fi
1.171 moko 21783: fi
1.243 moko 21784: rm -f core conftest.err conftest.$ac_objext conftest.beam \
21785: conftest$ac_exeext conftest.$ac_ext
21786: else case e in #(
21787: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21788: /* end confdefs.h. */
1.243 moko 21789: $ac_includes_default
1.171 moko 21790: int
1.237 moko 21791: main (void)
1.171 moko 21792: {
21793:
1.243 moko 21794: /* Are we little or big endian? From Harbison&Steele. */
21795: union
21796: {
21797: long int l;
21798: char c[sizeof (long int)];
21799: } u;
21800: u.l = 1;
21801: return u.c[sizeof (long int) - 1] == 1;
21802:
1.171 moko 21803: ;
21804: return 0;
21805: }
21806: _ACEOF
1.243 moko 21807: if ac_fn_c_try_run "$LINENO"
1.237 moko 21808: then :
1.243 moko 21809: ac_cv_c_bigendian=no
21810: else case e in #(
21811: e) ac_cv_c_bigendian=yes ;;
21812: esac
21813: fi
21814: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21815: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21816: esac
1.171 moko 21817: fi
1.243 moko 21818:
21819: fi ;;
1.237 moko 21820: esac
1.171 moko 21821: fi
1.243 moko 21822: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21823: printf "%s\n" "$ac_cv_c_bigendian" >&6; }
21824: case $ac_cv_c_bigendian in #(
21825: yes)
21826:
21827: printf "%s\n" "#define PA_BIG_ENDIAN /**/" >>confdefs.h
21828:
21829: ;; #(
21830: no)
1.237 moko 21831:
1.243 moko 21832: printf "%s\n" "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.237 moko 21833:
21834: ;; #(
1.243 moko 21835: universal)
1.237 moko 21836:
1.243 moko 21837: printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.171 moko 21838:
1.243 moko 21839: ;; #(
21840: *)
21841: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
21842: ;;
21843: esac
1.171 moko 21844:
1.237 moko 21845:
1.243 moko 21846: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21847: if test "x$ac_cv_type_size_t" = xyes
1.237 moko 21848: then :
21849:
1.243 moko 21850: else case e in #(
21851: e)
21852: printf "%s\n" "#define size_t unsigned int" >>confdefs.h
21853: ;;
21854: esac
1.237 moko 21855: fi
1.243 moko 21856:
21857: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21858: if test "x$ac_cv_type_ssize_t" = xyes
1.237 moko 21859: then :
21860:
1.243 moko 21861: else case e in #(
21862: e)
21863: printf "%s\n" "#define ssize_t int" >>confdefs.h
21864: ;;
21865: esac
1.237 moko 21866: fi
21867:
1.243 moko 21868: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21869: case $ac_cv_c_uint8_t in #(
21870: no|yes) ;; #(
21871: *)
21872:
21873: printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
21874:
21875:
21876: printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
21877: ;;
21878: esac
21879:
21880: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21881: case $ac_cv_c_uint16_t in #(
21882: no|yes) ;; #(
21883: *)
21884:
21885:
21886: printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
21887: ;;
21888: esac
21889:
21890: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21891: case $ac_cv_c_uint32_t in #(
21892: no|yes) ;; #(
21893: *)
21894:
21895: printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
21896:
1.237 moko 21897:
1.243 moko 21898: printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
21899: ;;
21900: esac
1.237 moko 21901:
1.243 moko 21902: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21903: case $ac_cv_c_uint64_t in #(
21904: no|yes) ;; #(
21905: *)
1.237 moko 21906:
1.243 moko 21907: printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
1.237 moko 21908:
21909:
1.243 moko 21910: printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
21911: ;;
21912: esac
1.237 moko 21913:
1.243 moko 21914: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21915: case $ac_cv_c_int64_t in #(
21916: no|yes) ;; #(
21917: *)
1.237 moko 21918:
1.243 moko 21919: printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
21920: ;;
21921: esac
1.237 moko 21922:
21923:
1.243 moko 21924: ac_header_dirent=no
21925: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21926: as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
21927: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21928: printf %s "checking for $ac_hdr that defines DIR... " >&6; }
21929: if eval test \${$as_ac_Header+y}
1.237 moko 21930: then :
1.243 moko 21931: printf %s "(cached) " >&6
21932: else case e in #(
21933: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934: /* end confdefs.h. */
21935: #include <sys/types.h>
21936: #include <$ac_hdr>
1.237 moko 21937:
1.243 moko 21938: int
21939: main (void)
21940: {
21941: if ((DIR *) 0)
21942: return 0;
21943: ;
21944: return 0;
21945: }
21946: _ACEOF
21947: if ac_fn_c_try_compile "$LINENO"
21948: then :
21949: eval "$as_ac_Header=yes"
21950: else case e in #(
21951: e) eval "$as_ac_Header=no" ;;
21952: esac
1.237 moko 21953: fi
1.243 moko 21954: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21955: esac
1.237 moko 21956: fi
1.243 moko 21957: eval ac_res=\$$as_ac_Header
21958: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21959: printf "%s\n" "$ac_res" >&6; }
21960: if eval test \"x\$"$as_ac_Header"\" = x"yes"
1.237 moko 21961: then :
1.243 moko 21962: cat >>confdefs.h <<_ACEOF
21963: #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
21964: _ACEOF
1.237 moko 21965:
1.243 moko 21966: ac_header_dirent=$ac_hdr; break
1.237 moko 21967: fi
21968:
1.243 moko 21969: done
21970: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21971: if test $ac_header_dirent = dirent.h; then
21972: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21973: printf %s "checking for library containing opendir... " >&6; }
21974: if test ${ac_cv_search_opendir+y}
1.237 moko 21975: then :
1.243 moko 21976: printf %s "(cached) " >&6
21977: else case e in #(
21978: e) ac_func_search_save_LIBS=$LIBS
21979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21980: /* end confdefs.h. */
1.237 moko 21981:
1.243 moko 21982: /* Override any GCC internal prototype to avoid an error.
21983: Use char because int might match the return type of a GCC
21984: builtin and then its argument prototype would still apply.
21985: The 'extern "C"' is for builds by C++ compilers;
21986: although this is not generally supported in C code supporting it here
21987: has little cost and some practical benefit (sr 110532). */
21988: #ifdef __cplusplus
21989: extern "C"
21990: #endif
21991: char opendir (void);
21992: int
21993: main (void)
21994: {
21995: return opendir ();
21996: ;
21997: return 0;
21998: }
21999: _ACEOF
22000: for ac_lib in '' dir
22001: do
22002: if test -z "$ac_lib"; then
22003: ac_res="none required"
22004: else
22005: ac_res=-l$ac_lib
22006: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22007: fi
22008: if ac_fn_c_try_link "$LINENO"
1.237 moko 22009: then :
1.243 moko 22010: ac_cv_search_opendir=$ac_res
1.237 moko 22011: fi
1.243 moko 22012: rm -f core conftest.err conftest.$ac_objext conftest.beam \
22013: conftest$ac_exeext
22014: if test ${ac_cv_search_opendir+y}
1.237 moko 22015: then :
1.243 moko 22016: break
1.237 moko 22017: fi
1.243 moko 22018: done
22019: if test ${ac_cv_search_opendir+y}
1.237 moko 22020: then :
22021:
1.243 moko 22022: else case e in #(
22023: e) ac_cv_search_opendir=no ;;
22024: esac
1.171 moko 22025: fi
1.243 moko 22026: rm conftest.$ac_ext
22027: LIBS=$ac_func_search_save_LIBS ;;
22028: esac
1.237 moko 22029: fi
1.243 moko 22030: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22031: printf "%s\n" "$ac_cv_search_opendir" >&6; }
22032: ac_res=$ac_cv_search_opendir
22033: if test "$ac_res" != no
1.237 moko 22034: then :
1.243 moko 22035: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.171 moko 22036:
22037: fi
22038:
1.243 moko 22039: else
22040: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22041: printf %s "checking for library containing opendir... " >&6; }
22042: if test ${ac_cv_search_opendir+y}
1.237 moko 22043: then :
1.243 moko 22044: printf %s "(cached) " >&6
22045: else case e in #(
22046: e) ac_func_search_save_LIBS=$LIBS
22047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048: /* end confdefs.h. */
1.237 moko 22049:
1.243 moko 22050: /* Override any GCC internal prototype to avoid an error.
22051: Use char because int might match the return type of a GCC
22052: builtin and then its argument prototype would still apply.
22053: The 'extern "C"' is for builds by C++ compilers;
22054: although this is not generally supported in C code supporting it here
22055: has little cost and some practical benefit (sr 110532). */
22056: #ifdef __cplusplus
22057: extern "C"
22058: #endif
22059: char opendir (void);
22060: int
22061: main (void)
22062: {
22063: return opendir ();
22064: ;
22065: return 0;
22066: }
22067: _ACEOF
22068: for ac_lib in '' x
22069: do
22070: if test -z "$ac_lib"; then
22071: ac_res="none required"
22072: else
22073: ac_res=-l$ac_lib
22074: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22075: fi
22076: if ac_fn_c_try_link "$LINENO"
1.237 moko 22077: then :
1.243 moko 22078: ac_cv_search_opendir=$ac_res
1.237 moko 22079: fi
1.243 moko 22080: rm -f core conftest.err conftest.$ac_objext conftest.beam \
22081: conftest$ac_exeext
22082: if test ${ac_cv_search_opendir+y}
1.237 moko 22083: then :
1.243 moko 22084: break
1.159 moko 22085: fi
1.243 moko 22086: done
22087: if test ${ac_cv_search_opendir+y}
1.237 moko 22088: then :
1.150 moko 22089:
1.243 moko 22090: else case e in #(
22091: e) ac_cv_search_opendir=no ;;
22092: esac
1.237 moko 22093: fi
1.243 moko 22094: rm conftest.$ac_ext
22095: LIBS=$ac_func_search_save_LIBS ;;
22096: esac
1.237 moko 22097: fi
1.243 moko 22098: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22099: printf "%s\n" "$ac_cv_search_opendir" >&6; }
22100: ac_res=$ac_cv_search_opendir
22101: if test "$ac_res" != no
1.237 moko 22102: then :
1.243 moko 22103: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.159 moko 22104:
22105: fi
22106:
1.237 moko 22107: fi
1.159 moko 22108:
22109:
22110:
1.243 moko 22111: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
22112: #include <sys/types.h>
22113: #ifdef HAVE_DIRENT_H
22114: # include <dirent.h>
22115: #else
22116: # define dirent direct
22117: # ifdef HAVE_SYS_NDIR_H
22118: # include <sys/ndir.h>
22119: # endif
22120: # ifdef HAVE_SYS_DIR_H
22121: # include <sys/dir.h>
22122: # endif
22123: # ifdef HAVE_NDIR_H
22124: # include <ndir.h>
22125: # endif
22126: #endif
1.237 moko 22127:
1.243 moko 22128: "
22129: if test "x$ac_cv_member_struct_dirent_d_type" = xyes
1.237 moko 22130: then :
1.159 moko 22131:
1.243 moko 22132: printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
1.62 paf 22133:
22134:
1.237 moko 22135: fi
1.62 paf 22136:
22137:
22138:
1.243 moko 22139: # Check whether --enable-largefile was given.
22140: if test ${enable_largefile+y}
22141: then :
22142: enableval=$enable_largefile;
22143: fi
22144: if test "$enable_largefile,$enable_year2038" != no,no
22145: then :
22146: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
22147: printf %s "checking for $CPPFLAGS option for large files... " >&6; }
22148: if test ${ac_cv_sys_largefile_opts+y}
1.237 moko 22149: then :
22150: printf %s "(cached) " >&6
22151: else case e in #(
1.243 moko 22152: e) ac_save_CPPFLAGS=$CPPFLAGS
22153: ac_opt_found=no
22154: for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
22155: if test x"$ac_opt" != x"none needed"
22156: then :
22157: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
22158: fi
22159: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22160: /* end confdefs.h. */
1.243 moko 22161: #include <sys/types.h>
22162: #ifndef FTYPE
22163: # define FTYPE off_t
22164: #endif
22165: /* Check that FTYPE can represent 2**63 - 1 correctly.
22166: We can't simply define LARGE_FTYPE to be 9223372036854775807,
22167: since some C++ compilers masquerading as C compilers
22168: incorrectly reject 9223372036854775807. */
22169: #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
22170: int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
22171: && LARGE_FTYPE % 2147483647 == 1)
22172: ? 1 : -1];
1.66 paf 22173: int
1.237 moko 22174: main (void)
1.66 paf 22175: {
1.243 moko 22176:
1.66 paf 22177: ;
22178: return 0;
22179: }
1.62 paf 22180: _ACEOF
1.243 moko 22181: if ac_fn_c_try_compile "$LINENO"
22182: then :
22183: if test x"$ac_opt" = x"none needed"
22184: then :
22185: # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
22186: CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
22187: if ac_fn_c_try_compile "$LINENO"
1.237 moko 22188: then :
1.243 moko 22189:
1.237 moko 22190: else case e in #(
1.243 moko 22191: e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
22192: if ac_fn_c_try_compile "$LINENO"
22193: then :
22194: ac_opt='-D_FILE_OFFSET_BITS=64'
22195: fi
22196: rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
1.237 moko 22197: esac
1.62 paf 22198: fi
1.243 moko 22199: rm -f core conftest.err conftest.$ac_objext conftest.beam
22200: fi
22201: ac_cv_sys_largefile_opts=$ac_opt
22202: ac_opt_found=yes
22203: fi
22204: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22205: test $ac_opt_found = no || break
22206: done
22207: CPPFLAGS=$ac_save_CPPFLAGS
22208:
22209: test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
1.237 moko 22210: esac
1.62 paf 22211: fi
1.243 moko 22212: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
22213: printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
22214:
22215: ac_have_largefile=yes
22216: case $ac_cv_sys_largefile_opts in #(
22217: "none needed") :
22218: ;; #(
22219: "supported through gnulib") :
22220: ;; #(
22221: "support not detected") :
22222: ac_have_largefile=no ;; #(
22223: "-D_FILE_OFFSET_BITS=64") :
1.1 paf 22224:
1.243 moko 22225: printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
22226: ;; #(
22227: "-D_LARGE_FILES=1") :
1.66 paf 22228:
1.243 moko 22229: printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
22230: ;; #(
22231: *) :
22232: as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
22233: esac
1.1 paf 22234:
1.243 moko 22235: if test "$enable_year2038" != no
22236: then :
22237: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
22238: printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
22239: if test ${ac_cv_sys_year2038_opts+y}
1.237 moko 22240: then :
22241: printf %s "(cached) " >&6
22242: else case e in #(
1.243 moko 22243: e) ac_save_CPPFLAGS="$CPPFLAGS"
22244: ac_opt_found=no
22245: for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
22246: if test x"$ac_opt" != x"none needed"
22247: then :
22248: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
22249: fi
22250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22251: /* end confdefs.h. */
1.66 paf 22252:
1.243 moko 22253: #include <time.h>
22254: /* Check that time_t can represent 2**32 - 1 correctly. */
22255: #define LARGE_TIME_T \\
22256: ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
22257: int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
22258: && LARGE_TIME_T % 65537 == 0)
22259: ? 1 : -1];
1.66 paf 22260:
1.62 paf 22261: int
1.237 moko 22262: main (void)
1.62 paf 22263: {
1.243 moko 22264:
1.62 paf 22265: ;
22266: return 0;
22267: }
22268: _ACEOF
1.243 moko 22269: if ac_fn_c_try_compile "$LINENO"
1.237 moko 22270: then :
1.243 moko 22271: ac_cv_sys_year2038_opts="$ac_opt"
22272: ac_opt_found=yes
22273: fi
22274: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22275: test $ac_opt_found = no || break
22276: done
22277: CPPFLAGS="$ac_save_CPPFLAGS"
22278: test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
1.237 moko 22279: esac
1.1 paf 22280: fi
1.243 moko 22281: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
22282: printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
22283:
22284: ac_have_year2038=yes
22285: case $ac_cv_sys_year2038_opts in #(
22286: "none needed") :
22287: ;; #(
22288: "support not detected") :
22289: ac_have_year2038=no ;; #(
22290: "-D_TIME_BITS=64") :
22291:
22292: printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
22293: ;; #(
22294: "-D__MINGW_USE_VC2005_COMPAT") :
22295:
22296: printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
22297: ;; #(
22298: "-U_USE_32_BIT_TIME_T"*) :
22299: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22300: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22301: as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
22302: will stop working after mid-January 2038. Remove
22303: _USE_32BIT_TIME_T from the compiler flags.
22304: See 'config.log' for more details" "$LINENO" 5; } ;; #(
22305: *) :
22306: as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
1.237 moko 22307: esac
1.243 moko 22308:
22309: fi
22310:
1.62 paf 22311: fi
1.243 moko 22312:
22313: ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22314: if test "x$ac_cv_header_stdio_h" = xyes
1.237 moko 22315: then :
1.243 moko 22316: printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
1.1 paf 22317:
1.243 moko 22318: fi
22319: ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22320: if test "x$ac_cv_header_sys_types_h" = xyes
22321: then :
22322: printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
1.1 paf 22323:
22324: fi
1.243 moko 22325: ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
22326: if test "x$ac_cv_header_sys_stat_h" = xyes
22327: then :
22328: printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
1.1 paf 22329:
1.243 moko 22330: fi
22331: ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
22332: if test "x$ac_cv_header_stdlib_h" = xyes
1.237 moko 22333: then :
1.243 moko 22334: printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
1.66 paf 22335:
1.243 moko 22336: fi
22337: ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
22338: if test "x$ac_cv_header_stddef_h" = xyes
22339: then :
22340: printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
1.66 paf 22341:
1.243 moko 22342: fi
22343: ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
22344: if test "x$ac_cv_header_memory_h" = xyes
1.237 moko 22345: then :
1.243 moko 22346: printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
22347:
1.30 paf 22348: fi
1.243 moko 22349: ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
22350: if test "x$ac_cv_header_string_h" = xyes
22351: then :
22352: printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
22353:
1.62 paf 22354: fi
1.243 moko 22355: ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
22356: if test "x$ac_cv_header_strings_h" = xyes
1.237 moko 22357: then :
1.243 moko 22358: printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
1.30 paf 22359:
1.243 moko 22360: fi
22361: ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
22362: if test "x$ac_cv_header_inttypes_h" = xyes
22363: then :
22364: printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
1.30 paf 22365:
22366: fi
1.243 moko 22367: ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22368: if test "x$ac_cv_header_stdint_h" = xyes
22369: then :
22370: printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
1.30 paf 22371:
1.243 moko 22372: fi
22373: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22374: if test "x$ac_cv_header_unistd_h" = xyes
1.237 moko 22375: then :
1.243 moko 22376: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
22377:
22378: fi
1.66 paf 22379:
1.243 moko 22380: ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
22381: if test "x$ac_cv_header_time_h" = xyes
1.237 moko 22382: then :
1.243 moko 22383: printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
22384:
1.30 paf 22385: fi
1.243 moko 22386: ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22387: if test "x$ac_cv_header_sys_time_h" = xyes
22388: then :
22389: printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22390:
1.62 paf 22391: fi
1.243 moko 22392: ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
22393: if test "x$ac_cv_header_assert_h" = xyes
1.237 moko 22394: then :
1.243 moko 22395: printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
1.30 paf 22396:
1.243 moko 22397: fi
22398: ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
22399: if test "x$ac_cv_header_limits_h" = xyes
22400: then :
22401: printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
1.30 paf 22402:
22403: fi
1.243 moko 22404: ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
22405: if test "x$ac_cv_header_ctype_h" = xyes
22406: then :
22407: printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
1.30 paf 22408:
1.243 moko 22409: fi
22410: ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
22411: if test "x$ac_cv_header_math_h" = xyes
1.237 moko 22412: then :
1.243 moko 22413: printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
1.62 paf 22414:
1.243 moko 22415: fi
22416: ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
22417: if test "x$ac_cv_header_process_h" = xyes
1.237 moko 22418: then :
1.243 moko 22419: printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
22420:
1.8 paf 22421: fi
1.243 moko 22422: ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
22423: if test "x$ac_cv_header_stdarg_h" = xyes
22424: then :
22425: printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
22426:
1.8 paf 22427: fi
1.243 moko 22428: ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
22429: if test "x$ac_cv_header_setjmp_h" = xyes
1.237 moko 22430: then :
1.243 moko 22431: printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
1.66 paf 22432:
1.243 moko 22433: fi
22434: ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
22435: if test "x$ac_cv_header_signal_h" = xyes
22436: then :
22437: printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
1.66 paf 22438:
1.62 paf 22439: fi
1.243 moko 22440: ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22441: if test "x$ac_cv_header_pthread_h" = xyes
22442: then :
22443: printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
1.62 paf 22444:
1.243 moko 22445: fi
1.128 moko 22446:
1.243 moko 22447: ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
22448: if test "x$ac_cv_header_errno_h" = xyes
22449: then :
22450: printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
1.128 moko 22451:
1.243 moko 22452: fi
22453: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
22454: if test "x$ac_cv_header_dirent_h" = xyes
22455: then :
22456: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
1.1 paf 22457:
1.243 moko 22458: fi
22459: ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
22460: if test "x$ac_cv_header_fcntl_h" = xyes
1.237 moko 22461: then :
1.243 moko 22462: printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
1.62 paf 22463:
1.243 moko 22464: fi
22465: ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
22466: if test "x$ac_cv_header_io_h" = xyes
1.237 moko 22467: then :
1.243 moko 22468: printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
22469:
1.62 paf 22470: fi
1.243 moko 22471: ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
22472: if test "x$ac_cv_header_sys_file_h" = xyes
22473: then :
22474: printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
22475:
1.62 paf 22476: fi
1.243 moko 22477: ac_fn_c_check_header_compile "$LINENO" "sys/locking.h" "ac_cv_header_sys_locking_h" "$ac_includes_default"
22478: if test "x$ac_cv_header_sys_locking_h" = xyes
1.237 moko 22479: then :
1.243 moko 22480: printf "%s\n" "#define HAVE_SYS_LOCKING_H 1" >>confdefs.h
1.1 paf 22481:
1.243 moko 22482: fi
22483: ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
22484: if test "x$ac_cv_header_sys_select_h" = xyes
22485: then :
22486: printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
1.1 paf 22487:
22488: fi
1.243 moko 22489: ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
22490: if test "x$ac_cv_header_sys_resource_h" = xyes
22491: then :
22492: printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
1.1 paf 22493:
1.243 moko 22494: fi
22495: ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
22496: if test "x$ac_cv_header_sys_wait_h" = xyes
1.237 moko 22497: then :
1.243 moko 22498: printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
22499:
22500: fi
1.62 paf 22501:
1.243 moko 22502: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22503: if test "x$ac_cv_header_sys_socket_h" = xyes
1.237 moko 22504: then :
1.243 moko 22505: printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
22506:
1.62 paf 22507: fi
1.243 moko 22508: ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22509: if test "x$ac_cv_header_netinet_in_h" = xyes
22510: then :
22511: printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
22512:
1.62 paf 22513: fi
1.243 moko 22514: ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22515: if test "x$ac_cv_header_arpa_inet_h" = xyes
1.237 moko 22516: then :
1.243 moko 22517: printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
1.1 paf 22518:
1.243 moko 22519: fi
22520: ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
22521: if test "x$ac_cv_header_netdb_h" = xyes
22522: then :
22523: printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
1.66 paf 22524:
22525: fi
22526:
22527:
22528:
1.237 moko 22529: ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
22530: if test "x$ac_cv_func_flock" = xyes
22531: then :
22532: printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
22533:
22534: fi
22535: ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22536: if test "x$ac_cv_func_fcntl" = xyes
22537: then :
22538: printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
22539:
22540: fi
22541: ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
22542: if test "x$ac_cv_func_lockf" = xyes
22543: then :
22544: printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
22545:
22546: fi
22547: ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
22548: if test "x$ac_cv_func_ftruncate" = xyes
22549: then :
22550: printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
22551:
22552: fi
22553: ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
22554: if test "x$ac_cv_func_fchmod" = xyes
22555: then :
22556: printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
22557:
22558: fi
22559:
22560: ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
22561: if test "x$ac_cv_func_getrusage" = xyes
22562: then :
22563: printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
22564:
22565: fi
22566: ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22567: if test "x$ac_cv_func_gettimeofday" = xyes
22568: then :
22569: printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
22570:
22571: fi
22572: ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22573: if test "x$ac_cv_func_crypt" = xyes
22574: then :
22575: printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
22576:
22577: fi
22578: ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
22579: if test "x$ac_cv_func_sigsetjmp" = xyes
22580: then :
22581: printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
22582:
22583: fi
22584: ac_fn_c_check_func "$LINENO" "siglongjmp" "ac_cv_func_siglongjmp"
22585: if test "x$ac_cv_func_siglongjmp" = xyes
22586: then :
22587: printf "%s\n" "#define HAVE_SIGLONGJMP 1" >>confdefs.h
1.159 moko 22588:
22589: fi
1.237 moko 22590: ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
22591: if test "x$ac_cv_func_unsetenv" = xyes
22592: then :
22593: printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
1.66 paf 22594:
1.237 moko 22595: fi
22596: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
22597: if test "x$ac_cv_func_syslog" = xyes
22598: then :
22599: printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
1.1 paf 22600:
1.66 paf 22601: fi
22602:
1.1 paf 22603:
22604:
1.159 moko 22605:
1.67 paf 22606: pa_func=sigsetjmp
1.237 moko 22607: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
22608: printf %s "checking for (maybe built-in) function $pa_func... " >&6; }
1.229 moko 22609:
22610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22611: /* end confdefs.h. */
22612:
22613: #ifdef HAVE_SETJMP_H
22614: # include <setjmp.h>
22615: #endif
22616:
22617: int
1.237 moko 22618: main (void)
1.67 paf 22619: {
22620:
22621: $pa_func(0,0);
22622:
22623: ;
22624: return 0;
22625: }
22626: _ACEOF
1.237 moko 22627: if ac_fn_c_try_compile "$LINENO"
22628: then :
22629: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22630: printf "%s\n" "yes" >&6; }
1.67 paf 22631: cat >>confdefs.h <<_ACEOF
1.237 moko 22632: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.67 paf 22633: _ACEOF
22634:
22635:
1.237 moko 22636: else case e in #(
22637: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22638: printf "%s\n" "no" >&6; }
1.229 moko 22639:
1.237 moko 22640: ;;
22641: esac
1.67 paf 22642: fi
1.237 moko 22643: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.67 paf 22644:
22645:
22646:
1.159 moko 22647:
1.229 moko 22648:
1.150 moko 22649: ac_ext=cpp
1.67 paf 22650: ac_cpp='$CXXCPP $CPPFLAGS'
22651: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22652: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22653: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22654:
22655:
22656:
1.188 moko 22657: for pa_func in trunc round sign isfinite
1.67 paf 22658: do
22659:
1.237 moko 22660: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
22661: printf %s "checking for (maybe built-in) math function $pa_func... " >&6; }
1.229 moko 22662:
22663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22664: /* end confdefs.h. */
22665:
22666: #ifdef HAVE_MATH_H
22667: # include <math.h>
22668: #endif
22669:
22670: int
1.237 moko 22671: main (void)
1.67 paf 22672: {
22673:
22674: double result=$pa_func(1.6);
22675:
22676: ;
22677: return 0;
22678: }
22679: _ACEOF
1.237 moko 22680: if ac_fn_cxx_try_compile "$LINENO"
22681: then :
22682: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22683: printf "%s\n" "yes" >&6; }
1.67 paf 22684: cat >>confdefs.h <<_ACEOF
1.237 moko 22685: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.62 paf 22686: _ACEOF
1.66 paf 22687:
1.237 moko 22688: else case e in #(
22689: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22690: printf "%s\n" "no" >&6; }
1.229 moko 22691:
1.237 moko 22692: ;;
22693: esac
1.62 paf 22694: fi
1.237 moko 22695: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 22696:
1.229 moko 22697:
1.150 moko 22698: done
22699:
22700: ac_ext=c
22701: ac_cpp='$CPP $CPPFLAGS'
22702: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22703: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22704: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22705:
22706:
22707:
1.237 moko 22708:
22709: for ac_func in qsort
1.150 moko 22710: do :
22711: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
1.237 moko 22712: if test "x$ac_cv_func_qsort" = xyes
22713: then :
22714: printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
1.1 paf 22715:
1.237 moko 22716: else case e in #(
22717: e) as_fn_error $? "No qsort library function." "$LINENO" 5 ;;
22718: esac
1.1 paf 22719: fi
1.237 moko 22720:
1.66 paf 22721: done
1.1 paf 22722:
22723:
1.62 paf 22724:
1.177 moko 22725: ac_ext=cpp
22726: ac_cpp='$CXXCPP $CPPFLAGS'
22727: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22728: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22729: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22730:
1.237 moko 22731: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
22732: printf %s "checking for timezone variable... " >&6; }
1.229 moko 22733:
22734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22735: /* end confdefs.h. */
1.66 paf 22736: #include <time.h>
1.62 paf 22737: int
1.237 moko 22738: main (void)
1.62 paf 22739: {
1.177 moko 22740: int test=timezone;
1.62 paf 22741: ;
22742: return 0;
22743: }
22744: _ACEOF
1.237 moko 22745: if ac_fn_cxx_try_compile "$LINENO"
22746: then :
22747: printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
22748: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22749: printf "%s\n" "yes" >&6; }
22750: else case e in #(
22751: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22752: printf "%s\n" "no" >&6; }
22753: ;;
22754: esac
1.62 paf 22755: fi
1.237 moko 22756: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.229 moko 22757:
1.177 moko 22758: ac_ext=c
22759: ac_cpp='$CPP $CPPFLAGS'
22760: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22761: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22762: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22763:
1.1 paf 22764:
1.237 moko 22765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
22766: printf %s "checking for tm_gmtoff in struct tm... " >&6; }
1.229 moko 22767:
22768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22769: /* end confdefs.h. */
1.66 paf 22770: #include <time.h>
1.62 paf 22771: int
1.237 moko 22772: main (void)
1.62 paf 22773: {
1.176 moko 22774: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 22775: ;
22776: return 0;
22777: }
22778: _ACEOF
1.237 moko 22779: if ac_fn_c_try_compile "$LINENO"
22780: then :
22781: printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
22782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22783: printf "%s\n" "yes" >&6; }
22784: else case e in #(
22785: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22786: printf "%s\n" "no" >&6; }
22787: ;;
22788: esac
1.62 paf 22789: fi
1.237 moko 22790: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.62 paf 22791:
1.229 moko 22792:
1.237 moko 22793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
22794: printf %s "checking for tm_tzadj in struct tm... " >&6; }
1.229 moko 22795:
22796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22797: /* end confdefs.h. */
1.66 paf 22798: #include <time.h>
1.62 paf 22799: int
1.237 moko 22800: main (void)
1.62 paf 22801: {
1.176 moko 22802: struct tm tm; tm.tm_tzadj=0;
1.62 paf 22803: ;
22804: return 0;
22805: }
22806: _ACEOF
1.237 moko 22807: if ac_fn_c_try_compile "$LINENO"
22808: then :
22809: printf "%s\n" "#define HAVE_TM_TZADJ 1" >>confdefs.h
22810: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22811: printf "%s\n" "yes" >&6; }
22812: else case e in #(
22813: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22814: printf "%s\n" "no" >&6; }
22815: ;;
22816: esac
1.62 paf 22817: fi
1.237 moko 22818: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 paf 22819:
1.229 moko 22820:
1.237 moko 22821: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5
22822: printf %s "checking for gettid... " >&6; }
1.229 moko 22823:
22824: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.206 moko 22825: /* end confdefs.h. */
22826:
22827: #include <sys/types.h>
22828: #include <sys/syscall.h>
22829:
22830: int
1.237 moko 22831: main (void)
1.206 moko 22832: {
22833: uint tid=syscall(__NR_gettid);
22834: ;
22835: return 0;
22836: }
22837: _ACEOF
1.237 moko 22838: if ac_fn_c_try_compile "$LINENO"
22839: then :
22840: printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h
22841: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22842: printf "%s\n" "yes" >&6; }
22843: else case e in #(
22844: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22845: printf "%s\n" "no" >&6; }
22846: ;;
22847: esac
1.206 moko 22848: fi
1.237 moko 22849: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.206 moko 22850:
1.229 moko 22851:
1.237 moko 22852: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22853: printf %s "checking for TLS... " >&6; }
1.229 moko 22854:
22855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.208 moko 22856: /* end confdefs.h. */
1.209 moko 22857: __thread int i=0;
1.208 moko 22858: int
1.237 moko 22859: main (void)
1.208 moko 22860: {
1.209 moko 22861:
1.208 moko 22862: ;
22863: return 0;
22864: }
22865: _ACEOF
1.237 moko 22866: if ac_fn_c_try_compile "$LINENO"
22867: then :
22868: printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h
22869: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22870: printf "%s\n" "yes" >&6; }
22871: else case e in #(
22872: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22873: printf "%s\n" "no" >&6; }
22874: ;;
22875: esac
1.208 moko 22876: fi
1.237 moko 22877: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.208 moko 22878:
1.229 moko 22879:
1.237 moko 22880: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
22881: printf %s "checking for 0..9999 year date range support... " >&6; }
22882: if test "$cross_compiling" = yes
22883: then :
22884: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22885: printf "%s\n" "no" >&6; }
22886: else case e in #(
22887: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22888: /* end confdefs.h. */
1.176 moko 22889:
22890: #include <string.h>
1.66 paf 22891: #include <time.h>
1.176 moko 22892:
22893: int main() {
22894: struct tm tmL,tmH;
22895: memset(&tmL, 0, sizeof(tmL));
22896: memset(&tmH, 0, sizeof(tmH));
22897: tmL.tm_year=-1900;
22898: tmL.tm_mon=-1;
22899: tmH.tm_year=9999-1900;
22900: tmH.tm_mon=12-1;
22901: tmH.tm_mday=31;
22902: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 22903: }
1.176 moko 22904:
1.62 paf 22905: _ACEOF
1.237 moko 22906: if ac_fn_c_try_run "$LINENO"
22907: then :
22908: printf "%s\n" "#define PA_DATE64 1" >>confdefs.h
22909: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22910: printf "%s\n" "yes" >&6; }
22911: else case e in #(
22912: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22913: printf "%s\n" "no" >&6; } ;;
22914: esac
1.62 paf 22915: fi
1.176 moko 22916: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.237 moko 22917: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22918: esac
1.176 moko 22919: fi
1.31 paf 22920:
1.1 paf 22921:
22922:
22923:
1.62 paf 22924:
22925:
22926:
1.206 moko 22927:
1.208 moko 22928:
1.150 moko 22929: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 22930:
22931:
1.200 moko 22932: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/curl/Makefile src/lib/punycode/Makefile src/lib/memcached/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile etc/auto.p"
1.62 paf 22933:
22934: cat >confcache <<\_ACEOF
1.1 paf 22935: # This file is a shell script that caches the results of configure
22936: # tests run on this system so they can be shared between configure
1.62 paf 22937: # scripts and configure runs, see configure's option --config-cache.
22938: # It is not useful on other systems. If it contains results you don't
22939: # want to keep, you may remove or edit it.
1.1 paf 22940: #
1.62 paf 22941: # config.status only pays attention to the cache file if you give it
22942: # the --recheck option to rerun configure.
1.1 paf 22943: #
1.237 moko 22944: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22945: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.62 paf 22946: # following values.
22947:
22948: _ACEOF
22949:
1.1 paf 22950: # The following way of writing the cache mishandles newlines in values,
22951: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 22952: # So, we kill variables containing newlines.
1.1 paf 22953: # Ultrix sh set writes to stderr and can't be redirected directly,
22954: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 22955: (
22956: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22957: eval ac_val=\$$ac_var
22958: case $ac_val in #(
22959: *${as_nl}*)
22960: case $ac_var in #(
1.237 moko 22961: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22962: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 22963: esac
22964: case $ac_var in #(
22965: _ | IFS | as_nl) ;; #(
22966: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22967: *) { eval $ac_var=; unset $ac_var;} ;;
22968: esac ;;
22969: esac
22970: done
22971:
1.62 paf 22972: (set) 2>&1 |
1.150 moko 22973: case $as_nl`(ac_space=' '; set) 2>&1` in #(
22974: *${as_nl}ac_space=\ *)
1.237 moko 22975: # 'set' does not quote correctly, so add quotes: double-quote
1.150 moko 22976: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 22977: sed -n \
1.86 paf 22978: "s/'/'\\\\''/g;
22979: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 22980: ;; #(
1.62 paf 22981: *)
1.237 moko 22982: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 22983: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 22984: ;;
1.150 moko 22985: esac |
22986: sort
22987: ) |
1.62 paf 22988: sed '
1.150 moko 22989: /^ac_cv_env_/b end
1.62 paf 22990: t clear
1.150 moko 22991: :clear
1.237 moko 22992: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.62 paf 22993: t end
1.150 moko 22994: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22995: :end' >>confcache
22996: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22997: if test -w "$cache_file"; then
22998: if test "x$cache_file" != "x/dev/null"; then
1.237 moko 22999: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23000: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.150 moko 23001: if test ! -f "$cache_file" || test -h "$cache_file"; then
23002: cat confcache >"$cache_file"
23003: else
23004: case $cache_file in #(
23005: */* | ?:*)
23006: mv -f confcache "$cache_file"$$ &&
23007: mv -f "$cache_file"$$ "$cache_file" ;; #(
23008: *)
23009: mv -f confcache "$cache_file" ;;
23010: esac
23011: fi
23012: fi
1.1 paf 23013: else
1.237 moko 23014: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23015: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 23016: fi
23017: fi
23018: rm -f confcache
23019:
23020: test "x$prefix" = xNONE && prefix=$ac_default_prefix
23021: # Let make expand exec_prefix.
23022: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23023:
1.62 paf 23024: DEFS=-DHAVE_CONFIG_H
23025:
23026: ac_libobjs=
23027: ac_ltlibobjs=
1.229 moko 23028: U=
1.62 paf 23029: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23030: # 1. Remove the extension, and $U if already installed.
1.150 moko 23031: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.237 moko 23032: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.150 moko 23033: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23034: # will be set to the directory where LIBOBJS objects are built.
23035: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23036: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 23037: done
23038: LIBOBJS=$ac_libobjs
23039:
23040: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 23041:
23042:
1.237 moko 23043: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23044: printf %s "checking that generated files are newer than configure... " >&6; }
1.187 moko 23045: if test -n "$am_sleep_pid"; then
23046: # Hide warnings about reused PIDs.
23047: wait $am_sleep_pid 2>/dev/null
23048: fi
1.237 moko 23049: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23050: printf "%s\n" "done" >&6; }
23051: case $enable_silent_rules in # (((
23052: yes) AM_DEFAULT_VERBOSITY=0;;
23053: no) AM_DEFAULT_VERBOSITY=1;;
23054: esac
23055: if test $am_cv_make_support_nested_variables = yes; then
23056: AM_V='$(V)'
23057: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
23058: else
23059: AM_V=$AM_DEFAULT_VERBOSITY
23060: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
23061: fi
23062:
1.150 moko 23063: if test -n "$EXEEXT"; then
23064: am__EXEEXT_TRUE=
23065: am__EXEEXT_FALSE='#'
23066: else
23067: am__EXEEXT_TRUE='#'
23068: am__EXEEXT_FALSE=
23069: fi
23070:
1.62 paf 23071: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 23072: as_fn_error $? "conditional \"AMDEP\" was never defined.
23073: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23074: fi
1.66 paf 23075: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 23076: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23077: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23078: fi
1.66 paf 23079: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 23080: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23081: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23082: fi
1.122 moko 23083: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 23084: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
23085: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23086: fi
1.128 moko 23087: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 23088: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
23089: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 23090: fi
23091: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 23092: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
23093: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 23094: fi
1.237 moko 23095: if test -z "${LTARGZH_EXISTS_TRUE}" && test -z "${LTARGZH_EXISTS_FALSE}"; then
23096: as_fn_error $? "conditional \"LTARGZH_EXISTS\" was never defined.
23097: Usually this means the macro was only invoked conditionally." "$LINENO" 5
23098: fi
1.150 moko 23099: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 23100:
23101: _ltdl_libobjs=
23102: _ltdl_ltlibobjs=
23103: if test -n "$_LT_LIBOBJS"; then
23104: # Remove the extension.
23105: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
1.237 moko 23106: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do
1.128 moko 23107: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
23108: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
23109: done
23110: fi
23111: ltdl_LIBOBJS=$_ltdl_libobjs
23112:
23113: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
23114:
23115:
1.62 paf 23116:
1.237 moko 23117: # Check whether --enable-year2038 was given.
23118: if test ${enable_year2038+y}
23119: then :
23120: enableval=$enable_year2038;
23121: fi
23122:
1.150 moko 23123:
23124: : "${CONFIG_STATUS=./config.status}"
23125: ac_write_fail=0
1.62 paf 23126: ac_clean_files_save=$ac_clean_files
23127: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.237 moko 23128: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23129: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.150 moko 23130: as_write_fail=0
23131: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 23132: #! $SHELL
23133: # Generated by $as_me.
23134: # Run this file to recreate the current configuration.
23135: # Compiler output produced by configure, useful for debugging
23136: # configure, is in config.log if it exists.
23137:
23138: debug=false
23139: ac_cs_recheck=false
23140: ac_cs_silent=false
1.150 moko 23141:
1.62 paf 23142: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 23143: export SHELL
23144: _ASEOF
23145: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23146: ## -------------------- ##
23147: ## M4sh Initialization. ##
23148: ## -------------------- ##
1.62 paf 23149:
1.150 moko 23150: # Be more Bourne compatible
23151: DUALCASE=1; export DUALCASE # for MKS sh
1.237 moko 23152: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23153: then :
1.62 paf 23154: emulate sh
23155: NULLCMD=:
1.150 moko 23156: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23157: # is contrary to our usage. Disable this feature.
23158: alias -g '${1+"$@"}'='"$@"'
1.150 moko 23159: setopt NO_GLOB_SUBST
1.237 moko 23160: else case e in #(
23161: e) case `(set -o) 2>/dev/null` in #(
1.150 moko 23162: *posix*) :
23163: set -o posix ;; #(
23164: *) :
23165: ;;
1.237 moko 23166: esac ;;
1.150 moko 23167: esac
23168: fi
23169:
23170:
1.237 moko 23171:
23172: # Reset variables that may have inherited troublesome values from
23173: # the environment.
23174:
23175: # IFS needs to be set, to space, tab, and newline, in precisely that order.
23176: # (If _AS_PATH_WALK were called with IFS unset, it would have the
23177: # side effect of setting IFS to empty, thus disabling word splitting.)
23178: # Quoting is to prevent editors from complaining about space-tab.
1.150 moko 23179: as_nl='
23180: '
23181: export as_nl
1.237 moko 23182: IFS=" "" $as_nl"
23183:
23184: PS1='$ '
23185: PS2='> '
23186: PS4='+ '
23187:
23188: # Ensure predictable behavior from utilities with locale-dependent output.
23189: LC_ALL=C
23190: export LC_ALL
23191: LANGUAGE=C
23192: export LANGUAGE
23193:
23194: # We cannot yet rely on "unset" to work, but we need these variables
23195: # to be unset--not just set to an empty or harmless value--now, to
23196: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23197: # also avoids known problems related to "unset" and subshell syntax
23198: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23199: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23200: do eval test \${$as_var+y} \
23201: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23202: done
23203:
23204: # Ensure that fds 0, 1, and 2 are open.
23205: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23206: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23207: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.62 paf 23208:
1.150 moko 23209: # The user is always right.
1.237 moko 23210: if ${PATH_SEPARATOR+false} :; then
1.150 moko 23211: PATH_SEPARATOR=:
23212: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23213: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23214: PATH_SEPARATOR=';'
23215: }
1.62 paf 23216: fi
23217:
23218:
1.150 moko 23219: # Find who we are. Look in the path if we contain no directory separator.
23220: as_myself=
23221: case $0 in #((
23222: *[\\/]* ) as_myself=$0 ;;
23223: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23224: for as_dir in $PATH
23225: do
23226: IFS=$as_save_IFS
1.237 moko 23227: case $as_dir in #(((
23228: '') as_dir=./ ;;
23229: */) ;;
23230: *) as_dir=$as_dir/ ;;
23231: esac
23232: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.150 moko 23233: done
23234: IFS=$as_save_IFS
23235:
23236: ;;
23237: esac
1.237 moko 23238: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.150 moko 23239: # in which case we are not to be found in the path.
23240: if test "x$as_myself" = x; then
23241: as_myself=$0
23242: fi
23243: if test ! -f "$as_myself"; then
1.237 moko 23244: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.150 moko 23245: exit 1
23246: fi
23247:
23248:
23249:
23250: # as_fn_error STATUS ERROR [LINENO LOG_FD]
23251: # ----------------------------------------
23252: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23253: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23254: # script with STATUS, using 1 if that was 0.
23255: as_fn_error ()
23256: {
23257: as_status=$1; test $as_status -eq 0 && as_status=1
23258: if test "$4"; then
23259: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 23260: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.150 moko 23261: fi
1.237 moko 23262: printf "%s\n" "$as_me: error: $2" >&2
1.150 moko 23263: as_fn_exit $as_status
23264: } # as_fn_error
23265:
23266:
23267: # as_fn_set_status STATUS
23268: # -----------------------
23269: # Set $? to STATUS, without forking.
23270: as_fn_set_status ()
23271: {
23272: return $1
23273: } # as_fn_set_status
23274:
23275: # as_fn_exit STATUS
23276: # -----------------
23277: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23278: as_fn_exit ()
23279: {
23280: set +e
23281: as_fn_set_status $1
23282: exit $1
23283: } # as_fn_exit
23284:
23285: # as_fn_unset VAR
23286: # ---------------
23287: # Portably unset VAR.
23288: as_fn_unset ()
23289: {
23290: { eval $1=; unset $1;}
23291: }
23292: as_unset=as_fn_unset
1.237 moko 23293:
1.150 moko 23294: # as_fn_append VAR VALUE
23295: # ----------------------
23296: # Append the text in VALUE to the end of the definition contained in VAR. Take
23297: # advantage of any shell optimizations that allow amortized linear growth over
23298: # repeated appends, instead of the typical quadratic growth present in naive
23299: # implementations.
1.237 moko 23300: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23301: then :
1.150 moko 23302: eval 'as_fn_append ()
23303: {
23304: eval $1+=\$2
23305: }'
1.237 moko 23306: else case e in #(
23307: e) as_fn_append ()
1.150 moko 23308: {
23309: eval $1=\$$1\$2
1.237 moko 23310: } ;;
23311: esac
1.150 moko 23312: fi # as_fn_append
23313:
23314: # as_fn_arith ARG...
23315: # ------------------
23316: # Perform arithmetic evaluation on the ARGs, and store the result in the
23317: # global $as_val. Take advantage of shells that can avoid forks. The arguments
23318: # must be portable across $(()) and expr.
1.237 moko 23319: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23320: then :
1.150 moko 23321: eval 'as_fn_arith ()
23322: {
23323: as_val=$(( $* ))
23324: }'
1.237 moko 23325: else case e in #(
23326: e) as_fn_arith ()
1.150 moko 23327: {
23328: as_val=`expr "$@" || test $? -eq 1`
1.237 moko 23329: } ;;
23330: esac
1.150 moko 23331: fi # as_fn_arith
23332:
1.1 paf 23333:
1.150 moko 23334: if expr a : '\(a\)' >/dev/null 2>&1 &&
23335: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 23336: as_expr=expr
23337: else
23338: as_expr=false
23339: fi
23340:
1.150 moko 23341: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 23342: as_basename=basename
23343: else
23344: as_basename=false
23345: fi
23346:
1.150 moko 23347: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23348: as_dirname=dirname
23349: else
23350: as_dirname=false
23351: fi
1.62 paf 23352:
1.150 moko 23353: as_me=`$as_basename -- "$0" ||
1.62 paf 23354: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23355: X"$0" : 'X\(//\)$' \| \
1.150 moko 23356: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 23357: printf "%s\n" X/"$0" |
1.150 moko 23358: sed '/^.*\/\([^/][^/]*\)\/*$/{
23359: s//\1/
23360: q
23361: }
23362: /^X\/\(\/\/\)$/{
23363: s//\1/
23364: q
23365: }
23366: /^X\/\(\/\).*/{
23367: s//\1/
23368: q
23369: }
23370: s/.*/./; q'`
1.62 paf 23371:
23372: # Avoid depending upon Character Ranges.
23373: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23374: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23375: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23376: as_cr_digits='0123456789'
23377: as_cr_alnum=$as_cr_Letters$as_cr_digits
23378:
1.237 moko 23379:
23380: # Determine whether it's possible to make 'echo' print without a newline.
23381: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23382: # for compatibility with existing Makefiles.
1.150 moko 23383: ECHO_C= ECHO_N= ECHO_T=
23384: case `echo -n x` in #(((((
23385: -n*)
23386: case `echo 'xy\c'` in
23387: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23388: xy) ECHO_C='\c';;
23389: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23390: ECHO_T=' ';;
23391: esac;;
23392: *)
23393: ECHO_N='-n';;
1.62 paf 23394: esac
23395:
1.237 moko 23396: # For backward compatibility with old third-party macros, we provide
23397: # the shell variables $as_echo and $as_echo_n. New code should use
23398: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23399: as_echo='printf %s\n'
23400: as_echo_n='printf %s'
23401:
1.150 moko 23402: rm -f conf$$ conf$$.exe conf$$.file
23403: if test -d conf$$.dir; then
23404: rm -f conf$$.dir/conf$$.file
1.62 paf 23405: else
1.150 moko 23406: rm -f conf$$.dir
23407: mkdir conf$$.dir 2>/dev/null
1.62 paf 23408: fi
1.150 moko 23409: if (echo >conf$$.file) 2>/dev/null; then
23410: if ln -s conf$$.file conf$$ 2>/dev/null; then
23411: as_ln_s='ln -s'
23412: # ... but there are two gotchas:
1.237 moko 23413: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23414: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23415: # In both cases, we have to default to 'cp -pR'.
1.150 moko 23416: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 23417: as_ln_s='cp -pR'
1.150 moko 23418: elif ln conf$$.file conf$$ 2>/dev/null; then
23419: as_ln_s=ln
23420: else
1.166 moko 23421: as_ln_s='cp -pR'
1.62 paf 23422: fi
23423: else
1.166 moko 23424: as_ln_s='cp -pR'
1.62 paf 23425: fi
1.150 moko 23426: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23427: rmdir conf$$.dir 2>/dev/null
23428:
23429:
23430: # as_fn_mkdir_p
23431: # -------------
23432: # Create "$as_dir" as a directory, including parents if necessary.
23433: as_fn_mkdir_p ()
23434: {
23435:
23436: case $as_dir in #(
23437: -*) as_dir=./$as_dir;;
23438: esac
23439: test -d "$as_dir" || eval $as_mkdir_p || {
23440: as_dirs=
23441: while :; do
23442: case $as_dir in #(
1.237 moko 23443: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.150 moko 23444: *) as_qdir=$as_dir;;
23445: esac
23446: as_dirs="'$as_qdir' $as_dirs"
23447: as_dir=`$as_dirname -- "$as_dir" ||
23448: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23449: X"$as_dir" : 'X\(//\)[^/]' \| \
23450: X"$as_dir" : 'X\(//\)$' \| \
23451: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 23452: printf "%s\n" X"$as_dir" |
1.150 moko 23453: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23454: s//\1/
23455: q
23456: }
23457: /^X\(\/\/\)[^/].*/{
23458: s//\1/
23459: q
23460: }
23461: /^X\(\/\/\)$/{
23462: s//\1/
23463: q
23464: }
23465: /^X\(\/\).*/{
23466: s//\1/
23467: q
23468: }
23469: s/.*/./; q'`
23470: test -d "$as_dir" && break
23471: done
23472: test -z "$as_dirs" || eval "mkdir $as_dirs"
23473: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23474:
1.62 paf 23475:
1.150 moko 23476: } # as_fn_mkdir_p
1.62 paf 23477: if mkdir -p . 2>/dev/null; then
1.150 moko 23478: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 23479: else
1.86 paf 23480: test -d ./-p && rmdir ./-p
1.62 paf 23481: as_mkdir_p=false
23482: fi
23483:
1.166 moko 23484:
23485: # as_fn_executable_p FILE
23486: # -----------------------
23487: # Test if FILE is an executable regular file.
23488: as_fn_executable_p ()
23489: {
23490: test -f "$1" && test -x "$1"
23491: } # as_fn_executable_p
23492: as_test_x='test -x'
23493: as_executable_p=as_fn_executable_p
1.62 paf 23494:
23495: # Sed expression to map a string onto a valid CPP name.
1.237 moko 23496: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23497: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.62 paf 23498:
23499: # Sed expression to map a string onto a valid variable name.
1.237 moko 23500: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23501: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.62 paf 23502:
23503:
23504: exec 6>&1
1.150 moko 23505: ## ----------------------------------- ##
23506: ## Main body of $CONFIG_STATUS script. ##
23507: ## ----------------------------------- ##
23508: _ASEOF
23509: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 23510:
1.150 moko 23511: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23512: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 23513: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 23514: # values after options handling.
23515: ac_log="
1.230 moko 23516: This file was extended by parser $as_me 3.5.2b, which was
1.237 moko 23517: generated by GNU Autoconf 2.72. Invocation command line was
1.62 paf 23518:
23519: CONFIG_FILES = $CONFIG_FILES
23520: CONFIG_HEADERS = $CONFIG_HEADERS
23521: CONFIG_LINKS = $CONFIG_LINKS
23522: CONFIG_COMMANDS = $CONFIG_COMMANDS
23523: $ $0 $@
23524:
1.150 moko 23525: on `(hostname || uname -n) 2>/dev/null | sed 1q`
23526: "
23527:
1.62 paf 23528: _ACEOF
23529:
1.150 moko 23530: case $ac_config_files in *"
23531: "*) set x $ac_config_files; shift; ac_config_files=$*;;
23532: esac
1.62 paf 23533:
1.150 moko 23534: case $ac_config_headers in *"
23535: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23536: esac
1.62 paf 23537:
23538:
1.150 moko 23539: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23540: # Files that config.status was made for.
23541: config_files="$ac_config_files"
23542: config_headers="$ac_config_headers"
23543: config_commands="$ac_config_commands"
1.62 paf 23544:
1.150 moko 23545: _ACEOF
1.62 paf 23546:
1.150 moko 23547: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 23548: ac_cs_usage="\
1.237 moko 23549: '$as_me' instantiates files and other configuration actions
1.150 moko 23550: from templates according to the current configuration. Unless the files
23551: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 23552:
1.150 moko 23553: Usage: $0 [OPTION]... [TAG]...
1.62 paf 23554:
23555: -h, --help print this help, then exit
1.150 moko 23556: -V, --version print version number and configuration settings, then exit
23557: --config print configuration, then exit
23558: -q, --quiet, --silent
23559: do not print progress messages
1.62 paf 23560: -d, --debug don't remove temporary files
23561: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 23562: --file=FILE[:TEMPLATE]
23563: instantiate the configuration file FILE
23564: --header=FILE[:TEMPLATE]
23565: instantiate the configuration header FILE
1.62 paf 23566:
23567: Configuration files:
23568: $config_files
23569:
23570: Configuration headers:
23571: $config_headers
23572:
23573: Configuration commands:
23574: $config_commands
23575:
1.150 moko 23576: Report bugs to the package provider."
23577:
1.62 paf 23578: _ACEOF
1.237 moko 23579: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23580: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.150 moko 23581: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.237 moko 23582: ac_cs_config='$ac_cs_config_escaped'
1.62 paf 23583: ac_cs_version="\\
1.230 moko 23584: parser config.status 3.5.2b
1.237 moko 23585: configured by $0, generated by GNU Autoconf 2.72,
1.150 moko 23586: with options \\"\$ac_cs_config\\"
1.62 paf 23587:
1.237 moko 23588: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 23589: This config.status script is free software; the Free Software Foundation
23590: gives unlimited permission to copy, distribute and modify it."
1.150 moko 23591:
23592: ac_pwd='$ac_pwd'
23593: srcdir='$srcdir'
23594: INSTALL='$INSTALL'
23595: MKDIR_P='$MKDIR_P'
23596: AWK='$AWK'
23597: test -n "\$AWK" || AWK=awk
1.62 paf 23598: _ACEOF
23599:
1.150 moko 23600: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23601: # The default lists apply if the user does not specify any file.
1.62 paf 23602: ac_need_defaults=:
23603: while test $# != 0
23604: do
23605: case $1 in
1.150 moko 23606: --*=?*)
23607: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23608: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 23609: ac_shift=:
23610: ;;
1.150 moko 23611: --*=)
23612: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23613: ac_optarg=
23614: ac_shift=:
23615: ;;
23616: *)
1.62 paf 23617: ac_option=$1
23618: ac_optarg=$2
23619: ac_shift=shift
23620: ;;
23621: esac
23622:
23623: case $ac_option in
23624: # Handling of the options.
23625: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23626: ac_cs_recheck=: ;;
1.150 moko 23627: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.237 moko 23628: printf "%s\n" "$ac_cs_version"; exit ;;
1.150 moko 23629: --config | --confi | --conf | --con | --co | --c )
1.237 moko 23630: printf "%s\n" "$ac_cs_config"; exit ;;
1.150 moko 23631: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 23632: debug=: ;;
23633: --file | --fil | --fi | --f )
23634: $ac_shift
1.150 moko 23635: case $ac_optarg in
1.237 moko 23636: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23637: '') as_fn_error $? "missing file argument" ;;
23638: esac
23639: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 23640: ac_need_defaults=false;;
23641: --header | --heade | --head | --hea )
23642: $ac_shift
1.150 moko 23643: case $ac_optarg in
1.237 moko 23644: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23645: esac
23646: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 23647: ac_need_defaults=false;;
1.150 moko 23648: --he | --h)
23649: # Conflict between --help and --header
1.237 moko 23650: as_fn_error $? "ambiguous option: '$1'
23651: Try '$0 --help' for more information.";;
1.150 moko 23652: --help | --hel | -h )
1.237 moko 23653: printf "%s\n" "$ac_cs_usage"; exit ;;
1.62 paf 23654: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23655: | -silent | --silent | --silen | --sile | --sil | --si | --s)
23656: ac_cs_silent=: ;;
23657:
23658: # This is an error.
1.237 moko 23659: -*) as_fn_error $? "unrecognized option: '$1'
23660: Try '$0 --help' for more information." ;;
1.62 paf 23661:
1.150 moko 23662: *) as_fn_append ac_config_targets " $1"
23663: ac_need_defaults=false ;;
1.62 paf 23664:
23665: esac
23666: shift
23667: done
23668:
23669: ac_configure_extra_args=
23670:
23671: if $ac_cs_silent; then
23672: exec 6>/dev/null
1.150 moko 23673: ac_configure_extra_args="$ac_configure_extra_args --silent"
23674: fi
23675:
23676: _ACEOF
23677: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23678: if \$ac_cs_recheck; then
1.166 moko 23679: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 23680: shift
1.237 moko 23681: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.150 moko 23682: CONFIG_SHELL='$SHELL'
23683: export CONFIG_SHELL
23684: exec "\$@"
23685: fi
23686:
23687: _ACEOF
23688: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23689: exec 5>>config.log
23690: {
23691: echo
23692: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23693: ## Running $as_me. ##
23694: _ASBOX
1.237 moko 23695: printf "%s\n" "$ac_log"
1.150 moko 23696: } >&5
1.62 paf 23697:
23698: _ACEOF
1.150 moko 23699: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 23700: #
1.150 moko 23701: # INIT-COMMANDS
1.1 paf 23702: #
1.199 moko 23703: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.62 paf 23704:
1.128 moko 23705:
23706: # The HP-UX ksh and POSIX shell print the target directory to stdout
23707: # if CDPATH is set.
23708: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23709:
23710: sed_quote_subst='$sed_quote_subst'
23711: double_quote_subst='$double_quote_subst'
23712: delay_variable_subst='$delay_variable_subst'
23713: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23714: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23715: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23716: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23717: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 23718: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 23719: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 23720: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 23721: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1.237 moko 23722: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1.128 moko 23723: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23724: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23725: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23726: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23727: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23728: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23729: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23730: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23731: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23732: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23733: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23734: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23735: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23736: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23737: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23738: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23739: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23740: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23741: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23742: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23743: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23744: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23745: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23746: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23747: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23748: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23749: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1.237 moko 23750: FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1.128 moko 23751: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23752: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23753: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23754: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23755: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23756: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1.237 moko 23757: lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1.128 moko 23758: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23759: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23760: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23761: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23762: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23763: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23764: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23765: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23766: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23767: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23768: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23769: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23770: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23771: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1.237 moko 23772: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1.128 moko 23773: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23774: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
1.237 moko 23775: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1.128 moko 23776: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23777: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1.237 moko 23778: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1.128 moko 23779: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23780: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23781: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23782: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23783: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23784: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23785: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23786: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23787: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23788: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23789: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23790: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23791: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23792: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23793: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23794: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23795: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23796: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23797: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23798: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23799: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23800: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23801: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23802: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23803: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23804: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23805: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23806: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23807: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23808: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23809: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23810: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23811: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23812: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23813: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23814: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23815: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23816: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23817: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23818: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23819: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23820: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23821: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23822: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23823: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23824: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23825: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23826: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23827: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23828: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23829: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23830: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23831: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23832: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23833: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23834: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23835: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23836: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23837: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23838: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23839: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23840: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23841: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23842: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1.237 moko 23843: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23844: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1.128 moko 23845: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23846: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23847: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23848: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23849: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23850: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23851: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23852: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23853: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23854: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23855: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23856: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23857: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23858: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23859: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23860: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23861: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23862: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23863: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23864: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23865: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23866: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23867: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23868: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23869: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23870: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23871: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23872: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23873: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23874: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23875: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23876: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23877: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23878: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23879: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23880: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23881: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23882: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23883: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23884: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23885: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23886: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23887: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23888: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23889: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23890: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23891: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23892: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23893: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23894: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23895: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23896: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23897: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23898: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23899: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23900: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23901: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23902: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23903: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23904: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23905:
23906: LTCC='$LTCC'
23907: LTCFLAGS='$LTCFLAGS'
23908: compiler='$compiler_DEFAULT'
23909:
23910: # A function that is used when there is no print builtin or printf.
23911: func_fallback_echo ()
23912: {
23913: eval 'cat <<_LTECHO_EOF
23914: \$1
23915: _LTECHO_EOF'
23916: }
23917:
23918: # Quote evaled strings.
23919: for var in AS \
23920: DLLTOOL \
23921: OBJDUMP \
23922: SHELL \
23923: ECHO \
23924: PATH_SEPARATOR \
23925: SED \
23926: GREP \
23927: EGREP \
23928: FGREP \
23929: LD \
23930: NM \
23931: LN_S \
23932: lt_SP2NL \
23933: lt_NL2SP \
23934: reload_flag \
1.237 moko 23935: FILECMD \
1.128 moko 23936: deplibs_check_method \
23937: file_magic_cmd \
23938: file_magic_glob \
23939: want_nocaseglob \
23940: sharedlib_from_linklib_cmd \
23941: AR \
23942: archiver_list_spec \
23943: STRIP \
23944: RANLIB \
23945: CC \
23946: CFLAGS \
23947: compiler \
23948: lt_cv_sys_global_symbol_pipe \
23949: lt_cv_sys_global_symbol_to_cdecl \
1.237 moko 23950: lt_cv_sys_global_symbol_to_import \
1.128 moko 23951: lt_cv_sys_global_symbol_to_c_name_address \
23952: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.237 moko 23953: lt_cv_nm_interface \
1.128 moko 23954: nm_file_list_spec \
1.237 moko 23955: lt_cv_truncate_bin \
1.128 moko 23956: lt_prog_compiler_no_builtin_flag \
23957: lt_prog_compiler_pic \
23958: lt_prog_compiler_wl \
23959: lt_prog_compiler_static \
23960: lt_cv_prog_compiler_c_o \
23961: need_locks \
23962: MANIFEST_TOOL \
23963: DSYMUTIL \
23964: NMEDIT \
23965: LIPO \
23966: OTOOL \
23967: OTOOL64 \
23968: shrext_cmds \
23969: export_dynamic_flag_spec \
23970: whole_archive_flag_spec \
23971: compiler_needs_object \
23972: with_gnu_ld \
23973: allow_undefined_flag \
23974: no_undefined_flag \
23975: hardcode_libdir_flag_spec \
23976: hardcode_libdir_separator \
23977: exclude_expsyms \
23978: include_expsyms \
23979: file_list_spec \
23980: variables_saved_for_relink \
23981: libname_spec \
23982: library_names_spec \
23983: soname_spec \
23984: install_override_mode \
23985: finish_eval \
23986: old_striplib \
23987: striplib \
23988: compiler_lib_search_dirs \
23989: predep_objects \
23990: postdep_objects \
23991: predeps \
23992: postdeps \
23993: compiler_lib_search_path \
23994: LD_CXX \
23995: reload_flag_CXX \
23996: compiler_CXX \
23997: lt_prog_compiler_no_builtin_flag_CXX \
23998: lt_prog_compiler_pic_CXX \
23999: lt_prog_compiler_wl_CXX \
24000: lt_prog_compiler_static_CXX \
24001: lt_cv_prog_compiler_c_o_CXX \
24002: export_dynamic_flag_spec_CXX \
24003: whole_archive_flag_spec_CXX \
24004: compiler_needs_object_CXX \
24005: with_gnu_ld_CXX \
24006: allow_undefined_flag_CXX \
24007: no_undefined_flag_CXX \
24008: hardcode_libdir_flag_spec_CXX \
24009: hardcode_libdir_separator_CXX \
24010: exclude_expsyms_CXX \
24011: include_expsyms_CXX \
24012: file_list_spec_CXX \
24013: compiler_lib_search_dirs_CXX \
24014: predep_objects_CXX \
24015: postdep_objects_CXX \
24016: predeps_CXX \
24017: postdeps_CXX \
24018: compiler_lib_search_path_CXX; do
24019: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24020: *[\\\\\\\`\\"\\\$]*)
1.237 moko 24021: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.128 moko 24022: ;;
24023: *)
24024: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24025: ;;
24026: esac
24027: done
24028:
24029: # Double-quote double-evaled strings.
24030: for var in reload_cmds \
24031: old_postinstall_cmds \
24032: old_postuninstall_cmds \
24033: old_archive_cmds \
24034: extract_expsyms_cmds \
24035: old_archive_from_new_cmds \
24036: old_archive_from_expsyms_cmds \
24037: archive_cmds \
24038: archive_expsym_cmds \
24039: module_cmds \
24040: module_expsym_cmds \
24041: export_symbols_cmds \
24042: prelink_cmds \
24043: postlink_cmds \
24044: postinstall_cmds \
24045: postuninstall_cmds \
24046: finish_cmds \
24047: sys_lib_search_path_spec \
1.237 moko 24048: configure_time_dlsearch_path \
24049: configure_time_lt_sys_library_path \
1.128 moko 24050: reload_cmds_CXX \
24051: old_archive_cmds_CXX \
24052: old_archive_from_new_cmds_CXX \
24053: old_archive_from_expsyms_cmds_CXX \
24054: archive_cmds_CXX \
24055: archive_expsym_cmds_CXX \
24056: module_cmds_CXX \
24057: module_expsym_cmds_CXX \
24058: export_symbols_cmds_CXX \
24059: prelink_cmds_CXX \
24060: postlink_cmds_CXX; do
24061: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24062: *[\\\\\\\`\\"\\\$]*)
1.237 moko 24063: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.128 moko 24064: ;;
24065: *)
24066: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24067: ;;
24068: esac
24069: done
24070:
24071: ac_aux_dir='$ac_aux_dir'
24072:
1.237 moko 24073: # See if we are running on zsh, and set the options that allow our
1.128 moko 24074: # commands through without removal of \ escapes INIT.
1.237 moko 24075: if test -n "\${ZSH_VERSION+set}"; then
1.128 moko 24076: setopt NO_GLOB_SUBST
24077: fi
24078:
24079:
24080: PACKAGE='$PACKAGE'
24081: VERSION='$VERSION'
24082: RM='$RM'
24083: ofile='$ofile'
24084:
24085:
24086:
24087:
24088:
24089:
1.62 paf 24090: _ACEOF
24091:
1.150 moko 24092: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 24093:
1.150 moko 24094: # Handling of arguments.
1.62 paf 24095: for ac_config_target in $ac_config_targets
1.1 paf 24096: do
1.150 moko 24097: case $ac_config_target in
24098: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24099: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24100: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
24101: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24102: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24103: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
24104: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
24105: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
24106: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
24107: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
24108: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24109: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
24110: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
24111: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
24112: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
24113: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
24114: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
24115: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
24116: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
24117: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
24118: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
24119: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
24120: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 24121: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
24122: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 24123: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
24124: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
24125: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
24126: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
24127: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
24128: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24129: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
1.200 moko 24130: "etc/auto.p") CONFIG_FILES="$CONFIG_FILES etc/auto.p" ;;
1.150 moko 24131:
1.237 moko 24132: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.1 paf 24133: esac
24134: done
24135:
1.150 moko 24136:
1.62 paf 24137: # If the user did not use the arguments to specify the items to instantiate,
24138: # then the envvar interface is used. Set only those that are not.
24139: # We use the long form for the default assignment because of an extremely
24140: # bizarre bug on SunOS 4.1.3.
24141: if $ac_need_defaults; then
1.237 moko 24142: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24143: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24144: test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1.62 paf 24145: fi
24146:
24147: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 24148: # simply because there is no reason against having it here, and in addition,
1.62 paf 24149: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 24150: # Hook for its removal unless debugging.
24151: # Note that there is a small window in which the directory will not be cleaned:
1.237 moko 24152: # after its creation but before its name has been assigned to '$tmp'.
1.62 paf 24153: $debug ||
24154: {
1.150 moko 24155: tmp= ac_tmp=
24156: trap 'exit_status=$?
24157: : "${ac_tmp:=$tmp}"
24158: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24159: ' 0
24160: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 24161: }
24162: # Create a (secure) tmp directory for tmp files.
24163:
24164: {
1.150 moko 24165: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24166: test -d "$tmp"
1.62 paf 24167: } ||
24168: {
1.150 moko 24169: tmp=./conf$$-$RANDOM
24170: (umask 077 && mkdir "$tmp")
24171: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24172: ac_tmp=$tmp
24173:
24174: # Set up the scripts for CONFIG_FILES section.
24175: # No need to generate them if there are no CONFIG_FILES.
1.237 moko 24176: # This happens for instance with './config.status config.h'.
1.150 moko 24177: if test -n "$CONFIG_FILES"; then
24178:
24179:
24180: ac_cr=`echo X | tr X '\015'`
24181: # On cygwin, bash can eat \r inside `` if the user requested igncr.
24182: # But we know of no other shell where ac_cr would be empty at this
24183: # point, so we can use a bashism as a fallback.
24184: if test "x$ac_cr" = x; then
24185: eval ac_cr=\$\'\\r\'
24186: fi
24187: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24188: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24189: ac_cs_awk_cr='\\r'
24190: else
24191: ac_cs_awk_cr=$ac_cr
24192: fi
24193:
24194: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24195: _ACEOF
24196:
24197:
1.62 paf 24198: {
1.150 moko 24199: echo "cat >conf$$subs.awk <<_ACEOF" &&
24200: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24201: echo "_ACEOF"
24202: } >conf$$subs.sh ||
24203: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24204: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24205: ac_delim='%!_!# '
24206: for ac_last_try in false false false false false :; do
24207: . ./conf$$subs.sh ||
24208: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24209:
24210: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24211: if test $ac_delim_n = $ac_delim_num; then
24212: break
24213: elif $ac_last_try; then
24214: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24215: else
24216: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24217: fi
24218: done
24219: rm -f conf$$subs.sh
24220:
24221: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24222: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24223: _ACEOF
24224: sed -n '
24225: h
24226: s/^/S["/; s/!.*/"]=/
24227: p
24228: g
24229: s/^[^!]*!//
24230: :repl
24231: t repl
24232: s/'"$ac_delim"'$//
24233: t delim
24234: :nl
24235: h
24236: s/\(.\{148\}\)..*/\1/
24237: t more1
24238: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24239: p
24240: n
24241: b repl
24242: :more1
24243: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24244: p
24245: g
24246: s/.\{148\}//
24247: t nl
24248: :delim
24249: h
24250: s/\(.\{148\}\)..*/\1/
24251: t more2
24252: s/["\\]/\\&/g; s/^/"/; s/$/"/
24253: p
24254: b
24255: :more2
24256: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24257: p
24258: g
24259: s/.\{148\}//
24260: t delim
24261: ' <conf$$subs.awk | sed '
24262: /^[^""]/{
24263: N
24264: s/\n//
24265: }
24266: ' >>$CONFIG_STATUS || ac_write_fail=1
24267: rm -f conf$$subs.awk
24268: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24269: _ACAWK
24270: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24271: for (key in S) S_is_set[key] = 1
24272: FS = ""
24273:
24274: }
24275: {
24276: line = $ 0
24277: nfields = split(line, field, "@")
24278: substed = 0
24279: len = length(field[1])
24280: for (i = 2; i < nfields; i++) {
24281: key = field[i]
24282: keylen = length(key)
24283: if (S_is_set[key]) {
24284: value = S[key]
24285: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24286: len += length(value) + length(field[++i])
24287: substed = 1
24288: } else
24289: len += 1 + keylen
24290: }
24291:
24292: print line
1.62 paf 24293: }
24294:
1.150 moko 24295: _ACAWK
24296: _ACEOF
24297: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24298: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24299: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24300: else
24301: cat
24302: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24303: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 24304: _ACEOF
1.1 paf 24305:
1.150 moko 24306: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24307: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24308: # trailing colons and then remove the whole line if VPATH becomes empty
24309: # (actually we leave an empty line to preserve line numbers).
24310: if test "x$srcdir" = x.; then
24311: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24312: h
24313: s///
24314: s/^/:/
24315: s/[ ]*$/:/
24316: s/:\$(srcdir):/:/g
24317: s/:\${srcdir}:/:/g
24318: s/:@srcdir@:/:/g
24319: s/^:*//
24320: s/:*$//
24321: x
24322: s/\(=[ ]*\).*/\1/
24323: G
24324: s/\n//
24325: s/^[^=]*=[ ]*$//
24326: }'
24327: fi
1.62 paf 24328:
1.150 moko 24329: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24330: fi # test -n "$CONFIG_FILES"
1.1 paf 24331:
1.150 moko 24332: # Set up the scripts for CONFIG_HEADERS section.
24333: # No need to generate them if there are no CONFIG_HEADERS.
1.237 moko 24334: # This happens for instance with './config.status Makefile'.
1.150 moko 24335: if test -n "$CONFIG_HEADERS"; then
24336: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24337: BEGIN {
24338: _ACEOF
24339:
1.237 moko 24340: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.150 moko 24341: # here-document in config.status, that substitutes the proper values into
24342: # config.h.in to produce config.h.
24343:
24344: # Create a delimiter string that does not exist in confdefs.h, to ease
24345: # handling of long lines.
24346: ac_delim='%!_!# '
24347: for ac_last_try in false false :; do
24348: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24349: if test -z "$ac_tt"; then
24350: break
24351: elif $ac_last_try; then
24352: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24353: else
24354: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 24355: fi
1.150 moko 24356: done
1.1 paf 24357:
1.150 moko 24358: # For the awk script, D is an array of macro values keyed by name,
24359: # likewise P contains macro parameters if any. Preserve backslash
24360: # newline sequences.
24361:
24362: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24363: sed -n '
24364: s/.\{148\}/&'"$ac_delim"'/g
24365: t rset
24366: :rset
24367: s/^[ ]*#[ ]*define[ ][ ]*/ /
24368: t def
24369: d
24370: :def
24371: s/\\$//
24372: t bsnl
24373: s/["\\]/\\&/g
24374: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24375: D["\1"]=" \3"/p
24376: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24377: d
24378: :bsnl
24379: s/["\\]/\\&/g
24380: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24381: D["\1"]=" \3\\\\\\n"\\/p
24382: t cont
24383: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24384: t cont
24385: d
24386: :cont
24387: n
24388: s/.\{148\}/&'"$ac_delim"'/g
24389: t clear
24390: :clear
24391: s/\\$//
24392: t bsnlc
24393: s/["\\]/\\&/g; s/^/"/; s/$/"/p
24394: d
24395: :bsnlc
24396: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24397: b cont
24398: ' <confdefs.h | sed '
24399: s/'"$ac_delim"'/"\\\
24400: "/g' >>$CONFIG_STATUS || ac_write_fail=1
24401:
24402: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24403: for (key in D) D_is_set[key] = 1
24404: FS = ""
24405: }
24406: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24407: line = \$ 0
24408: split(line, arg, " ")
24409: if (arg[1] == "#") {
24410: defundef = arg[2]
24411: mac1 = arg[3]
24412: } else {
24413: defundef = substr(arg[1], 2)
24414: mac1 = arg[2]
24415: }
24416: split(mac1, mac2, "(") #)
24417: macro = mac2[1]
24418: prefix = substr(line, 1, index(line, defundef) - 1)
24419: if (D_is_set[macro]) {
24420: # Preserve the white space surrounding the "#".
24421: print prefix "define", macro P[macro] D[macro]
24422: next
24423: } else {
24424: # Replace #undef with comments. This is necessary, for example,
24425: # in the case of _POSIX_SOURCE, which is predefined and required
24426: # on some systems where configure will not decide to define it.
24427: if (defundef == "undef") {
24428: print "/*", prefix defundef, macro, "*/"
24429: next
24430: }
24431: }
24432: }
24433: { print }
24434: _ACAWK
1.62 paf 24435: _ACEOF
1.150 moko 24436: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24437: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24438: fi # test -n "$CONFIG_HEADERS"
24439:
24440:
24441: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24442: shift
24443: for ac_tag
24444: do
24445: case $ac_tag in
24446: :[FHLC]) ac_mode=$ac_tag; continue;;
24447: esac
24448: case $ac_mode$ac_tag in
24449: :[FHL]*:*);;
1.237 moko 24450: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.150 moko 24451: :[FH]-) ac_tag=-:-;;
24452: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24453: esac
24454: ac_save_IFS=$IFS
24455: IFS=:
24456: set x $ac_tag
24457: IFS=$ac_save_IFS
24458: shift
24459: ac_file=$1
24460: shift
24461:
24462: case $ac_mode in
24463: :L) ac_source=$1;;
24464: :[FH])
24465: ac_file_inputs=
24466: for ac_f
24467: do
24468: case $ac_f in
24469: -) ac_f="$ac_tmp/stdin";;
24470: *) # Look for the file first in the build tree, then in the source tree
24471: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.237 moko 24472: # because $ac_f cannot contain ':'.
1.150 moko 24473: test -f "$ac_f" ||
24474: case $ac_f in
24475: [\\/$]*) false;;
24476: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24477: esac ||
1.237 moko 24478: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.150 moko 24479: esac
1.237 moko 24480: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.150 moko 24481: as_fn_append ac_file_inputs " '$ac_f'"
24482: done
24483:
1.237 moko 24484: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.150 moko 24485: # use $as_me), people would be surprised to read:
24486: # /* config.h. Generated by config.status. */
24487: configure_input='Generated from '`
1.237 moko 24488: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.150 moko 24489: `' by configure.'
24490: if test x"$ac_file" != x-; then
24491: configure_input="$ac_file. $configure_input"
1.237 moko 24492: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24493: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.150 moko 24494: fi
24495: # Neutralize special characters interpreted by sed in replacement strings.
24496: case $configure_input in #(
24497: *\&* | *\|* | *\\* )
1.237 moko 24498: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.150 moko 24499: sed 's/[\\\\&|]/\\\\&/g'`;; #(
24500: *) ac_sed_conf_input=$configure_input;;
24501: esac
24502:
24503: case $ac_tag in
24504: *:-:* | *:-) cat >"$ac_tmp/stdin" \
24505: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24506: esac
24507: ;;
1.1 paf 24508: esac
24509:
1.150 moko 24510: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 24511: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 24512: X"$ac_file" : 'X\(//\)[^/]' \| \
24513: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 24514: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24515: printf "%s\n" X"$ac_file" |
1.150 moko 24516: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24517: s//\1/
24518: q
24519: }
24520: /^X\(\/\/\)[^/].*/{
24521: s//\1/
24522: q
24523: }
24524: /^X\(\/\/\)$/{
24525: s//\1/
24526: q
24527: }
24528: /^X\(\/\).*/{
24529: s//\1/
24530: q
24531: }
24532: s/.*/./; q'`
24533: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 24534: ac_builddir=.
24535:
1.150 moko 24536: case "$ac_dir" in
24537: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24538: *)
1.237 moko 24539: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 24540: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 24541: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 24542: case $ac_top_builddir_sub in
24543: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24544: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24545: esac ;;
24546: esac
24547: ac_abs_top_builddir=$ac_pwd
24548: ac_abs_builddir=$ac_pwd$ac_dir_suffix
24549: # for backward compatibility:
24550: ac_top_builddir=$ac_top_build_prefix
1.62 paf 24551:
24552: case $srcdir in
1.150 moko 24553: .) # We are building in place.
1.62 paf 24554: ac_srcdir=.
1.150 moko 24555: ac_top_srcdir=$ac_top_builddir_sub
24556: ac_abs_top_srcdir=$ac_pwd ;;
24557: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 24558: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 24559: ac_top_srcdir=$srcdir
24560: ac_abs_top_srcdir=$srcdir ;;
24561: *) # Relative name.
24562: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24563: ac_top_srcdir=$ac_top_build_prefix$srcdir
24564: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 24565: esac
1.150 moko 24566: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 24567:
1.62 paf 24568:
1.150 moko 24569: case $ac_mode in
24570: :F)
24571: #
24572: # CONFIG_FILE
24573: #
1.1 paf 24574:
1.62 paf 24575: case $INSTALL in
24576: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 24577: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 24578: esac
1.150 moko 24579: ac_MKDIR_P=$MKDIR_P
24580: case $MKDIR_P in
24581: [\\/$]* | ?:[\\/]* ) ;;
24582: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24583: esac
24584: _ACEOF
1.1 paf 24585:
1.150 moko 24586: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24587: # If the template does not know about datarootdir, expand it.
24588: # FIXME: This hack should be removed a few years after 2.60.
24589: ac_datarootdir_hack=; ac_datarootdir_seen=
24590: ac_sed_dataroot='
24591: /datarootdir/ {
24592: p
24593: q
24594: }
24595: /@datadir@/p
24596: /@docdir@/p
24597: /@infodir@/p
24598: /@localedir@/p
24599: /@mandir@/p'
24600: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24601: *datarootdir*) ac_datarootdir_seen=yes;;
24602: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.237 moko 24603: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24604: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.150 moko 24605: _ACEOF
24606: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24607: ac_datarootdir_hack='
24608: s&@datadir@&$datadir&g
24609: s&@docdir@&$docdir&g
24610: s&@infodir@&$infodir&g
24611: s&@localedir@&$localedir&g
24612: s&@mandir@&$mandir&g
24613: s&\\\${datarootdir}&$datarootdir&g' ;;
24614: esac
24615: _ACEOF
1.62 paf 24616:
1.237 moko 24617: # Neutralize VPATH when '$srcdir' = '.'.
1.150 moko 24618: # Shell code in configure.ac might set extrasub.
24619: # FIXME: do we really want to maintain this feature?
24620: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24621: ac_sed_extra="$ac_vpsub
1.62 paf 24622: $extrasub
24623: _ACEOF
1.150 moko 24624: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 24625: :t
24626: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 24627: s|@configure_input@|$ac_sed_conf_input|;t t
24628: s&@top_builddir@&$ac_top_builddir_sub&;t t
24629: s&@top_build_prefix@&$ac_top_build_prefix&;t t
24630: s&@srcdir@&$ac_srcdir&;t t
24631: s&@abs_srcdir@&$ac_abs_srcdir&;t t
24632: s&@top_srcdir@&$ac_top_srcdir&;t t
24633: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24634: s&@builddir@&$ac_builddir&;t t
24635: s&@abs_builddir@&$ac_abs_builddir&;t t
24636: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24637: s&@INSTALL@&$ac_INSTALL&;t t
24638: s&@MKDIR_P@&$ac_MKDIR_P&;t t
24639: $ac_datarootdir_hack
24640: "
24641: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24642: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24643:
24644: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24645: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24646: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24647: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.237 moko 24648: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24649: which seems to be undefined. Please make sure it is defined" >&5
1.237 moko 24650: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24651: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 24652:
1.150 moko 24653: rm -f "$ac_tmp/stdin"
1.62 paf 24654: case $ac_file in
1.150 moko 24655: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24656: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24657: esac \
24658: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24659: ;;
24660: :H)
24661: #
24662: # CONFIG_HEADER
24663: #
1.62 paf 24664: if test x"$ac_file" != x-; then
1.150 moko 24665: {
1.237 moko 24666: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24667: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24668: } >"$ac_tmp/config.h" \
24669: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24670: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.237 moko 24671: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24672: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 24673: else
1.150 moko 24674: rm -f "$ac_file"
24675: mv "$ac_tmp/config.h" "$ac_file" \
24676: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 24677: fi
24678: else
1.237 moko 24679: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24680: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24681: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 24682: fi
1.150 moko 24683: # Compute "$ac_file"'s index in $config_headers.
24684: _am_arg="$ac_file"
1.86 paf 24685: _am_stamp_count=1
24686: for _am_header in $config_headers :; do
24687: case $_am_header in
1.150 moko 24688: $_am_arg | $_am_arg:* )
1.86 paf 24689: break ;;
24690: * )
24691: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24692: esac
24693: done
1.150 moko 24694: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24695: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24696: X"$_am_arg" : 'X\(//\)[^/]' \| \
24697: X"$_am_arg" : 'X\(//\)$' \| \
24698: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24699: printf "%s\n" X"$_am_arg" |
1.150 moko 24700: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24701: s//\1/
24702: q
24703: }
24704: /^X\(\/\/\)[^/].*/{
24705: s//\1/
24706: q
24707: }
24708: /^X\(\/\/\)$/{
24709: s//\1/
24710: q
24711: }
24712: /^X\(\/\).*/{
24713: s//\1/
24714: q
24715: }
24716: s/.*/./; q'`/stamp-h$_am_stamp_count
24717: ;;
1.62 paf 24718:
1.237 moko 24719: :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24720: printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1.150 moko 24721: ;;
24722: esac
1.86 paf 24723:
1.62 paf 24724:
1.150 moko 24725: case $ac_file$ac_mode in
24726: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 24727: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 24728: # are listed without --file. Let's play safe and only enable the eval
24729: # if we detect the quoting.
1.199 moko 24730: # TODO: see whether this extra hack can be removed once we start
24731: # requiring Autoconf 2.70 or later.
24732: case $CONFIG_FILES in #(
24733: *\'*) :
24734: eval set x "$CONFIG_FILES" ;; #(
24735: *) :
24736: set x $CONFIG_FILES ;; #(
24737: *) :
24738: ;;
24739: esac
1.150 moko 24740: shift
1.199 moko 24741: # Used to flag and report bootstrapping failures.
24742: am_rc=0
24743: for am_mf
1.150 moko 24744: do
24745: # Strip MF so we end up with the name of the file.
1.237 moko 24746: am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1.199 moko 24747: # Check whether this is an Automake generated Makefile which includes
24748: # dependency-tracking related rules and includes.
24749: # Grep'ing the whole file directly is not great: AIX grep has a line
1.150 moko 24750: # limit of 2048, but all sed's we know have understand at least 4000.
1.199 moko 24751: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24752: || continue
24753: am_dirpart=`$as_dirname -- "$am_mf" ||
24754: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24755: X"$am_mf" : 'X\(//\)[^/]' \| \
24756: X"$am_mf" : 'X\(//\)$' \| \
24757: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24758: printf "%s\n" X"$am_mf" |
1.150 moko 24759: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24760: s//\1/
24761: q
24762: }
24763: /^X\(\/\/\)[^/].*/{
24764: s//\1/
24765: q
24766: }
24767: /^X\(\/\/\)$/{
24768: s//\1/
24769: q
24770: }
24771: /^X\(\/\).*/{
24772: s//\1/
24773: q
24774: }
24775: s/.*/./; q'`
1.199 moko 24776: am_filepart=`$as_basename -- "$am_mf" ||
24777: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24778: X"$am_mf" : 'X\(//\)$' \| \
24779: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24780: printf "%s\n" X/"$am_mf" |
1.199 moko 24781: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.150 moko 24782: s//\1/
24783: q
24784: }
1.199 moko 24785: /^X\/\(\/\/\)$/{
1.150 moko 24786: s//\1/
24787: q
24788: }
1.199 moko 24789: /^X\/\(\/\).*/{
1.150 moko 24790: s//\1/
24791: q
24792: }
24793: s/.*/./; q'`
1.199 moko 24794: { echo "$as_me:$LINENO: cd "$am_dirpart" \
24795: && sed -e '/# am--include-marker/d' "$am_filepart" \
24796: | $MAKE -f - am--depfiles" >&5
24797: (cd "$am_dirpart" \
24798: && sed -e '/# am--include-marker/d' "$am_filepart" \
24799: | $MAKE -f - am--depfiles) >&5 2>&5
24800: ac_status=$?
24801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802: (exit $ac_status); } || am_rc=$?
1.62 paf 24803: done
1.199 moko 24804: if test $am_rc -ne 0; then
1.237 moko 24805: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24806: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.199 moko 24807: as_fn_error $? "Something went wrong bootstrapping makefile fragments
1.216 moko 24808: for automatic dependency tracking. If GNU make was not used, consider
24809: re-running the configure script with MAKE=\"gmake\" (or whatever is
24810: necessary). You can also try re-running configure with the
1.199 moko 24811: '--disable-dependency-tracking' option to at least be able to build
24812: the package (albeit without support for automatic dependency tracking).
1.237 moko 24813: See 'config.log' for more details" "$LINENO" 5; }
1.199 moko 24814: fi
24815: { am_dirpart=; unset am_dirpart;}
24816: { am_filepart=; unset am_filepart;}
24817: { am_mf=; unset am_mf;}
24818: { am_rc=; unset am_rc;}
24819: rm -f conftest-deps.mk
1.150 moko 24820: }
1.62 paf 24821: ;;
1.150 moko 24822: "libtool":C)
1.128 moko 24823:
1.237 moko 24824: # See if we are running on zsh, and set the options that allow our
1.128 moko 24825: # commands through without removal of \ escapes.
1.237 moko 24826: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 24827: setopt NO_GLOB_SUBST
24828: fi
24829:
1.237 moko 24830: cfgfile=${ofile}T
1.128 moko 24831: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24832: $RM "$cfgfile"
24833:
24834: cat <<_LT_EOF >> "$cfgfile"
24835: #! $SHELL
1.237 moko 24836: # Generated automatically by $as_me ($PACKAGE) $VERSION
24837: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24838:
24839: # Provide generalized library-building support services.
24840: # Written by Gordon Matzigkeit, 1996
1.128 moko 24841:
1.237 moko 24842: # Copyright (C) 2024 Free Software Foundation, Inc.
24843: # This is free software; see the source for copying conditions. There is NO
24844: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24845:
24846: # GNU Libtool is free software; you can redistribute it and/or modify
24847: # it under the terms of the GNU General Public License as published by
24848: # the Free Software Foundation; either version 2 of the License, or
24849: # (at your option) any later version.
1.128 moko 24850: #
1.237 moko 24851: # As a special exception to the GNU General Public License, if you
24852: # distribute this file as part of a program or library that is built
24853: # using GNU Libtool, you may include this file under the same
24854: # distribution terms that you use for the rest of that program.
1.128 moko 24855: #
1.237 moko 24856: # GNU Libtool is distributed in the hope that it will be useful, but
24857: # WITHOUT ANY WARRANTY; without even the implied warranty of
1.128 moko 24858: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24859: # GNU General Public License for more details.
24860: #
24861: # You should have received a copy of the GNU General Public License
1.237 moko 24862: # along with this program. If not, see <http://www.gnu.org/licenses/>.
1.128 moko 24863:
24864:
24865: # The names of the tagged configurations supported by this script.
1.237 moko 24866: available_tags='CXX '
24867:
24868: # Configured defaults for sys_lib_dlsearch_path munging.
24869: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1.128 moko 24870:
24871: # ### BEGIN LIBTOOL CONFIG
24872:
24873: # Which release of libtool.m4 was used?
24874: macro_version=$macro_version
24875: macro_revision=$macro_revision
24876:
24877: # Assembler program.
24878: AS=$lt_AS
24879:
24880: # DLL creation program.
24881: DLLTOOL=$lt_DLLTOOL
24882:
24883: # Object dumper program.
24884: OBJDUMP=$lt_OBJDUMP
24885:
1.145 moko 24886: # What type of objects to build.
24887: pic_mode=$pic_mode
24888:
1.128 moko 24889: # Whether or not to build shared libraries.
24890: build_libtool_libs=$enable_shared
24891:
1.138 moko 24892: # Whether or not to build static libraries.
24893: build_old_libs=$enable_static
24894:
1.128 moko 24895: # Whether or not to optimize for fast installation.
24896: fast_install=$enable_fast_install
24897:
1.237 moko 24898: # Shared archive member basename,for filename based shared library versioning on AIX.
24899: shared_archive_member_spec=$shared_archive_member_spec
24900:
1.128 moko 24901: # Shell to use when invoking shell scripts.
24902: SHELL=$lt_SHELL
24903:
24904: # An echo program that protects backslashes.
24905: ECHO=$lt_ECHO
24906:
24907: # The PATH separator for the build system.
24908: PATH_SEPARATOR=$lt_PATH_SEPARATOR
24909:
24910: # The host system.
24911: host_alias=$host_alias
24912: host=$host
24913: host_os=$host_os
24914:
24915: # The build system.
24916: build_alias=$build_alias
24917: build=$build
24918: build_os=$build_os
24919:
24920: # A sed program that does not truncate output.
24921: SED=$lt_SED
24922:
24923: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24924: Xsed="\$SED -e 1s/^X//"
24925:
24926: # A grep program that handles long lines.
24927: GREP=$lt_GREP
24928:
24929: # An ERE matcher.
24930: EGREP=$lt_EGREP
24931:
24932: # A literal string matcher.
24933: FGREP=$lt_FGREP
24934:
24935: # A BSD- or MS-compatible name lister.
24936: NM=$lt_NM
24937:
24938: # Whether we need soft or hard links.
24939: LN_S=$lt_LN_S
24940:
24941: # What is the maximum length of a command?
24942: max_cmd_len=$max_cmd_len
24943:
24944: # Object file suffix (normally "o").
24945: objext=$ac_objext
24946:
24947: # Executable file suffix (normally "").
24948: exeext=$exeext
24949:
24950: # whether the shell understands "unset".
24951: lt_unset=$lt_unset
24952:
24953: # turn spaces into newlines.
24954: SP2NL=$lt_lt_SP2NL
24955:
24956: # turn newlines into spaces.
24957: NL2SP=$lt_lt_NL2SP
24958:
24959: # convert \$build file names to \$host format.
24960: to_host_file_cmd=$lt_cv_to_host_file_cmd
24961:
24962: # convert \$build files to toolchain format.
24963: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24964:
1.237 moko 24965: # A file(cmd) program that detects file types.
24966: FILECMD=$lt_FILECMD
24967:
1.128 moko 24968: # Method to check whether dependent libraries are shared objects.
24969: deplibs_check_method=$lt_deplibs_check_method
24970:
24971: # Command to use when deplibs_check_method = "file_magic".
24972: file_magic_cmd=$lt_file_magic_cmd
24973:
24974: # How to find potential files when deplibs_check_method = "file_magic".
24975: file_magic_glob=$lt_file_magic_glob
24976:
24977: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24978: want_nocaseglob=$lt_want_nocaseglob
24979:
24980: # Command to associate shared and link libraries.
24981: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24982:
24983: # The archiver.
24984: AR=$lt_AR
24985:
1.237 moko 24986: # Flags to create an archive (by configure).
24987: lt_ar_flags=$lt_ar_flags
24988:
1.128 moko 24989: # Flags to create an archive.
1.237 moko 24990: AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1.128 moko 24991:
24992: # How to feed a file listing to the archiver.
24993: archiver_list_spec=$lt_archiver_list_spec
24994:
24995: # A symbol stripping program.
24996: STRIP=$lt_STRIP
24997:
24998: # Commands used to install an old-style archive.
24999: RANLIB=$lt_RANLIB
25000: old_postinstall_cmds=$lt_old_postinstall_cmds
25001: old_postuninstall_cmds=$lt_old_postuninstall_cmds
25002:
25003: # Whether to use a lock for old archive extraction.
25004: lock_old_archive_extraction=$lock_old_archive_extraction
25005:
25006: # A C compiler.
25007: LTCC=$lt_CC
25008:
25009: # LTCC compiler flags.
25010: LTCFLAGS=$lt_CFLAGS
25011:
25012: # Take the output of nm and produce a listing of raw symbols and C names.
25013: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25014:
25015: # Transform the output of nm in a proper C declaration.
25016: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25017:
1.237 moko 25018: # Transform the output of nm into a list of symbols to manually relocate.
25019: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25020:
1.128 moko 25021: # Transform the output of nm in a C name address pair.
25022: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25023:
25024: # Transform the output of nm in a C name address pair when lib prefix is needed.
25025: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25026:
1.237 moko 25027: # The name lister interface.
25028: nm_interface=$lt_lt_cv_nm_interface
25029:
1.128 moko 25030: # Specify filename containing input files for \$NM.
25031: nm_file_list_spec=$lt_nm_file_list_spec
25032:
1.237 moko 25033: # The root where to search for dependent libraries,and where our libraries should be installed.
1.128 moko 25034: lt_sysroot=$lt_sysroot
25035:
1.237 moko 25036: # Command to truncate a binary pipe.
25037: lt_truncate_bin=$lt_lt_cv_truncate_bin
25038:
1.128 moko 25039: # The name of the directory that contains temporary libtool files.
25040: objdir=$objdir
25041:
25042: # Used to examine libraries when file_magic_cmd begins with "file".
25043: MAGIC_CMD=$MAGIC_CMD
25044:
25045: # Must we lock files when doing compilation?
25046: need_locks=$lt_need_locks
25047:
25048: # Manifest tool.
25049: MANIFEST_TOOL=$lt_MANIFEST_TOOL
25050:
25051: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25052: DSYMUTIL=$lt_DSYMUTIL
25053:
25054: # Tool to change global to local symbols on Mac OS X.
25055: NMEDIT=$lt_NMEDIT
25056:
25057: # Tool to manipulate fat objects and archives on Mac OS X.
25058: LIPO=$lt_LIPO
25059:
25060: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25061: OTOOL=$lt_OTOOL
25062:
25063: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25064: OTOOL64=$lt_OTOOL64
25065:
25066: # Old archive suffix (normally "a").
25067: libext=$libext
25068:
25069: # Shared library suffix (normally ".so").
25070: shrext_cmds=$lt_shrext_cmds
25071:
25072: # The commands to extract the exported symbol list from a shared archive.
25073: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25074:
25075: # Variables whose values should be saved in libtool wrapper scripts and
25076: # restored at link time.
25077: variables_saved_for_relink=$lt_variables_saved_for_relink
25078:
25079: # Do we need the "lib" prefix for modules?
25080: need_lib_prefix=$need_lib_prefix
25081:
25082: # Do we need a version for libraries?
25083: need_version=$need_version
25084:
25085: # Library versioning type.
25086: version_type=$version_type
25087:
25088: # Shared library runtime path variable.
25089: runpath_var=$runpath_var
25090:
25091: # Shared library path variable.
25092: shlibpath_var=$shlibpath_var
25093:
25094: # Is shlibpath searched before the hard-coded library search path?
25095: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25096:
25097: # Format of library name prefix.
25098: libname_spec=$lt_libname_spec
25099:
25100: # List of archive names. First name is the real one, the rest are links.
25101: # The last name is the one that the linker finds with -lNAME
25102: library_names_spec=$lt_library_names_spec
25103:
25104: # The coded name of the library, if different from the real name.
25105: soname_spec=$lt_soname_spec
25106:
25107: # Permission mode override for installation of shared libraries.
25108: install_override_mode=$lt_install_override_mode
25109:
25110: # Command to use after installation of a shared archive.
25111: postinstall_cmds=$lt_postinstall_cmds
25112:
25113: # Command to use after uninstallation of a shared archive.
25114: postuninstall_cmds=$lt_postuninstall_cmds
25115:
25116: # Commands used to finish a libtool library installation in a directory.
25117: finish_cmds=$lt_finish_cmds
25118:
25119: # As "finish_cmds", except a single script fragment to be evaled but
25120: # not shown.
25121: finish_eval=$lt_finish_eval
25122:
25123: # Whether we should hardcode library paths into libraries.
25124: hardcode_into_libs=$hardcode_into_libs
25125:
25126: # Compile-time system search path for libraries.
25127: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25128:
1.237 moko 25129: # Detected run-time system search path for libraries.
25130: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25131:
25132: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25133: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1.128 moko 25134:
25135: # Whether dlopen is supported.
25136: dlopen_support=$enable_dlopen
25137:
25138: # Whether dlopen of programs is supported.
25139: dlopen_self=$enable_dlopen_self
25140:
25141: # Whether dlopen of statically linked programs is supported.
25142: dlopen_self_static=$enable_dlopen_self_static
25143:
25144: # Commands to strip libraries.
25145: old_striplib=$lt_old_striplib
25146: striplib=$lt_striplib
25147:
25148:
25149: # The linker used to build libraries.
25150: LD=$lt_LD
25151:
25152: # How to create reloadable object files.
25153: reload_flag=$lt_reload_flag
25154: reload_cmds=$lt_reload_cmds
25155:
25156: # Commands used to build an old-style archive.
25157: old_archive_cmds=$lt_old_archive_cmds
25158:
25159: # A language specific compiler.
25160: CC=$lt_compiler
25161:
25162: # Is the compiler the GNU compiler?
25163: with_gcc=$GCC
25164:
25165: # Compiler flag to turn off builtin functions.
25166: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25167:
25168: # Additional compiler flags for building library objects.
25169: pic_flag=$lt_lt_prog_compiler_pic
25170:
25171: # How to pass a linker flag through the compiler.
25172: wl=$lt_lt_prog_compiler_wl
25173:
25174: # Compiler flag to prevent dynamic linking.
25175: link_static_flag=$lt_lt_prog_compiler_static
25176:
25177: # Does compiler simultaneously support -c and -o options?
25178: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25179:
25180: # Whether or not to add -lc for building shared libraries.
25181: build_libtool_need_lc=$archive_cmds_need_lc
25182:
25183: # Whether or not to disallow shared libs when runtime libs are static.
25184: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25185:
25186: # Compiler flag to allow reflexive dlopens.
25187: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25188:
25189: # Compiler flag to generate shared objects directly from archives.
25190: whole_archive_flag_spec=$lt_whole_archive_flag_spec
25191:
25192: # Whether the compiler copes with passing no objects directly.
25193: compiler_needs_object=$lt_compiler_needs_object
25194:
25195: # Create an old-style archive from a shared archive.
25196: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25197:
25198: # Create a temporary old-style archive to link instead of a shared archive.
25199: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25200:
25201: # Commands used to build a shared archive.
25202: archive_cmds=$lt_archive_cmds
25203: archive_expsym_cmds=$lt_archive_expsym_cmds
25204:
25205: # Commands used to build a loadable module if different from building
25206: # a shared archive.
25207: module_cmds=$lt_module_cmds
25208: module_expsym_cmds=$lt_module_expsym_cmds
25209:
25210: # Whether we are building with GNU ld or not.
25211: with_gnu_ld=$lt_with_gnu_ld
25212:
25213: # Flag that allows shared libraries with undefined symbols to be built.
25214: allow_undefined_flag=$lt_allow_undefined_flag
25215:
25216: # Flag that enforces no undefined symbols.
25217: no_undefined_flag=$lt_no_undefined_flag
25218:
25219: # Flag to hardcode \$libdir into a binary during linking.
25220: # This must work even if \$libdir does not exist
25221: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25222:
25223: # Whether we need a single "-rpath" flag with a separated argument.
25224: hardcode_libdir_separator=$lt_hardcode_libdir_separator
25225:
1.237 moko 25226: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25227: # DIR into the resulting binary.
25228: hardcode_direct=$hardcode_direct
25229:
1.237 moko 25230: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25231: # DIR into the resulting binary and the resulting library dependency is
1.237 moko 25232: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25233: # library is relocated.
25234: hardcode_direct_absolute=$hardcode_direct_absolute
25235:
25236: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25237: # into the resulting binary.
25238: hardcode_minus_L=$hardcode_minus_L
25239:
25240: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25241: # into the resulting binary.
25242: hardcode_shlibpath_var=$hardcode_shlibpath_var
25243:
25244: # Set to "yes" if building a shared library automatically hardcodes DIR
25245: # into the library and all subsequent libraries and executables linked
25246: # against it.
25247: hardcode_automatic=$hardcode_automatic
25248:
25249: # Set to yes if linker adds runtime paths of dependent libraries
25250: # to runtime path list.
25251: inherit_rpath=$inherit_rpath
25252:
25253: # Whether libtool must link a program against all its dependency libraries.
25254: link_all_deplibs=$link_all_deplibs
25255:
25256: # Set to "yes" if exported symbols are required.
25257: always_export_symbols=$always_export_symbols
25258:
25259: # The commands to list exported symbols.
25260: export_symbols_cmds=$lt_export_symbols_cmds
25261:
25262: # Symbols that should not be listed in the preloaded symbols.
25263: exclude_expsyms=$lt_exclude_expsyms
25264:
25265: # Symbols that must always be exported.
25266: include_expsyms=$lt_include_expsyms
25267:
25268: # Commands necessary for linking programs (against libraries) with templates.
25269: prelink_cmds=$lt_prelink_cmds
25270:
25271: # Commands necessary for finishing linking programs.
25272: postlink_cmds=$lt_postlink_cmds
25273:
25274: # Specify filename containing input files.
25275: file_list_spec=$lt_file_list_spec
25276:
25277: # How to hardcode a shared library path into an executable.
25278: hardcode_action=$hardcode_action
25279:
25280: # The directories searched by this compiler when creating a shared library.
25281: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25282:
25283: # Dependencies to place before and after the objects being linked to
25284: # create a shared library.
25285: predep_objects=$lt_predep_objects
25286: postdep_objects=$lt_postdep_objects
25287: predeps=$lt_predeps
25288: postdeps=$lt_postdeps
25289:
25290: # The library search path used internally by the compiler when linking
25291: # a shared library.
25292: compiler_lib_search_path=$lt_compiler_lib_search_path
25293:
25294: # ### END LIBTOOL CONFIG
25295:
25296: _LT_EOF
25297:
1.237 moko 25298: cat <<'_LT_EOF' >> "$cfgfile"
25299:
25300: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25301:
25302: # func_munge_path_list VARIABLE PATH
25303: # -----------------------------------
25304: # VARIABLE is name of variable containing _space_ separated list of
25305: # directories to be munged by the contents of PATH, which is string
25306: # having a format:
25307: # "DIR[:DIR]:"
25308: # string "DIR[ DIR]" will be prepended to VARIABLE
25309: # ":DIR[:DIR]"
25310: # string "DIR[ DIR]" will be appended to VARIABLE
25311: # "DIRP[:DIRP]::[DIRA:]DIRA"
25312: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25313: # "DIRA[ DIRA]" will be appended to VARIABLE
25314: # "DIR[:DIR]"
25315: # VARIABLE will be replaced by "DIR[ DIR]"
25316: func_munge_path_list ()
25317: {
25318: case x$2 in
25319: x)
25320: ;;
25321: *:)
25322: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25323: ;;
25324: x:*)
25325: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25326: ;;
25327: *::*)
25328: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25329: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25330: ;;
25331: *)
25332: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25333: ;;
25334: esac
25335: }
25336:
25337:
25338: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25339: func_cc_basename ()
25340: {
25341: for cc_temp in $*""; do
25342: case $cc_temp in
25343: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25344: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25345: \-*) ;;
25346: *) break;;
25347: esac
25348: done
25349: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25350: }
25351:
25352:
25353: # ### END FUNCTIONS SHARED WITH CONFIGURE
25354:
25355: _LT_EOF
25356:
1.128 moko 25357: case $host_os in
25358: aix3*)
25359: cat <<\_LT_EOF >> "$cfgfile"
25360: # AIX sometimes has problems with the GCC collect2 program. For some
25361: # reason, if we set the COLLECT_NAMES environment variable, the problems
25362: # vanish in a puff of smoke.
1.237 moko 25363: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 25364: COLLECT_NAMES=
25365: export COLLECT_NAMES
25366: fi
25367: _LT_EOF
25368: ;;
25369: esac
25370:
25371:
1.237 moko 25372:
25373: ltmain=$ac_aux_dir/ltmain.sh
1.128 moko 25374:
25375:
25376: # We use sed instead of cat because bash on DJGPP gets confused if
25377: # if finds mixed CR/LF and LF-only lines. Since sed operates in
25378: # text mode, it properly converts lines to CR/LF. This bash problem
25379: # is reportedly fixed, but why not run on old versions too?
1.237 moko 25380: $SED '$q' "$ltmain" >> "$cfgfile" \
1.128 moko 25381: || (rm -f "$cfgfile"; exit 1)
25382:
25383: mv -f "$cfgfile" "$ofile" ||
25384: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25385: chmod +x "$ofile"
25386:
25387:
25388: cat <<_LT_EOF >> "$ofile"
25389:
25390: # ### BEGIN LIBTOOL TAG CONFIG: CXX
25391:
25392: # The linker used to build libraries.
25393: LD=$lt_LD_CXX
25394:
25395: # How to create reloadable object files.
25396: reload_flag=$lt_reload_flag_CXX
25397: reload_cmds=$lt_reload_cmds_CXX
25398:
25399: # Commands used to build an old-style archive.
25400: old_archive_cmds=$lt_old_archive_cmds_CXX
25401:
25402: # A language specific compiler.
25403: CC=$lt_compiler_CXX
25404:
25405: # Is the compiler the GNU compiler?
25406: with_gcc=$GCC_CXX
25407:
25408: # Compiler flag to turn off builtin functions.
25409: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25410:
25411: # Additional compiler flags for building library objects.
25412: pic_flag=$lt_lt_prog_compiler_pic_CXX
25413:
25414: # How to pass a linker flag through the compiler.
25415: wl=$lt_lt_prog_compiler_wl_CXX
25416:
25417: # Compiler flag to prevent dynamic linking.
25418: link_static_flag=$lt_lt_prog_compiler_static_CXX
25419:
25420: # Does compiler simultaneously support -c and -o options?
25421: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25422:
25423: # Whether or not to add -lc for building shared libraries.
25424: build_libtool_need_lc=$archive_cmds_need_lc_CXX
25425:
25426: # Whether or not to disallow shared libs when runtime libs are static.
25427: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25428:
25429: # Compiler flag to allow reflexive dlopens.
25430: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25431:
25432: # Compiler flag to generate shared objects directly from archives.
25433: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25434:
25435: # Whether the compiler copes with passing no objects directly.
25436: compiler_needs_object=$lt_compiler_needs_object_CXX
25437:
25438: # Create an old-style archive from a shared archive.
25439: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25440:
25441: # Create a temporary old-style archive to link instead of a shared archive.
25442: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25443:
25444: # Commands used to build a shared archive.
25445: archive_cmds=$lt_archive_cmds_CXX
25446: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25447:
25448: # Commands used to build a loadable module if different from building
25449: # a shared archive.
25450: module_cmds=$lt_module_cmds_CXX
25451: module_expsym_cmds=$lt_module_expsym_cmds_CXX
25452:
25453: # Whether we are building with GNU ld or not.
25454: with_gnu_ld=$lt_with_gnu_ld_CXX
25455:
25456: # Flag that allows shared libraries with undefined symbols to be built.
25457: allow_undefined_flag=$lt_allow_undefined_flag_CXX
25458:
25459: # Flag that enforces no undefined symbols.
25460: no_undefined_flag=$lt_no_undefined_flag_CXX
25461:
25462: # Flag to hardcode \$libdir into a binary during linking.
25463: # This must work even if \$libdir does not exist
25464: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25465:
25466: # Whether we need a single "-rpath" flag with a separated argument.
25467: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25468:
1.237 moko 25469: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25470: # DIR into the resulting binary.
25471: hardcode_direct=$hardcode_direct_CXX
25472:
1.237 moko 25473: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25474: # DIR into the resulting binary and the resulting library dependency is
1.237 moko 25475: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25476: # library is relocated.
25477: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25478:
25479: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25480: # into the resulting binary.
25481: hardcode_minus_L=$hardcode_minus_L_CXX
25482:
25483: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25484: # into the resulting binary.
25485: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25486:
25487: # Set to "yes" if building a shared library automatically hardcodes DIR
25488: # into the library and all subsequent libraries and executables linked
25489: # against it.
25490: hardcode_automatic=$hardcode_automatic_CXX
25491:
25492: # Set to yes if linker adds runtime paths of dependent libraries
25493: # to runtime path list.
25494: inherit_rpath=$inherit_rpath_CXX
25495:
25496: # Whether libtool must link a program against all its dependency libraries.
25497: link_all_deplibs=$link_all_deplibs_CXX
25498:
25499: # Set to "yes" if exported symbols are required.
25500: always_export_symbols=$always_export_symbols_CXX
25501:
25502: # The commands to list exported symbols.
25503: export_symbols_cmds=$lt_export_symbols_cmds_CXX
25504:
25505: # Symbols that should not be listed in the preloaded symbols.
25506: exclude_expsyms=$lt_exclude_expsyms_CXX
25507:
25508: # Symbols that must always be exported.
25509: include_expsyms=$lt_include_expsyms_CXX
25510:
25511: # Commands necessary for linking programs (against libraries) with templates.
25512: prelink_cmds=$lt_prelink_cmds_CXX
25513:
25514: # Commands necessary for finishing linking programs.
25515: postlink_cmds=$lt_postlink_cmds_CXX
25516:
25517: # Specify filename containing input files.
25518: file_list_spec=$lt_file_list_spec_CXX
25519:
25520: # How to hardcode a shared library path into an executable.
25521: hardcode_action=$hardcode_action_CXX
25522:
25523: # The directories searched by this compiler when creating a shared library.
25524: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25525:
25526: # Dependencies to place before and after the objects being linked to
25527: # create a shared library.
25528: predep_objects=$lt_predep_objects_CXX
25529: postdep_objects=$lt_postdep_objects_CXX
25530: predeps=$lt_predeps_CXX
25531: postdeps=$lt_postdeps_CXX
25532:
25533: # The library search path used internally by the compiler when linking
25534: # a shared library.
25535: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25536:
25537: # ### END LIBTOOL TAG CONFIG: CXX
25538: _LT_EOF
25539:
25540: ;;
1.150 moko 25541:
1.62 paf 25542: esac
1.150 moko 25543: done # for ac_tag
1.62 paf 25544:
25545:
1.150 moko 25546: as_fn_exit 0
1.62 paf 25547: _ACEOF
25548: ac_clean_files=$ac_clean_files_save
25549:
1.150 moko 25550: test $ac_write_fail = 0 ||
25551: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25552:
1.1 paf 25553:
1.62 paf 25554: # configure is writing to config.log, and then calls config.status.
25555: # config.status does its own redirection, appending to config.log.
25556: # Unfortunately, on DOS this fails, as config.log is still kept open
25557: # by configure, so config.status won't be able to write to it; its
25558: # output is simply discarded. So we exec the FD to /dev/null,
25559: # effectively closing config.log, so it can be properly (re)opened and
25560: # appended to by config.status. When coming back to configure, we
25561: # need to make the FD available again.
25562: if test "$no_create" != yes; then
25563: ac_cs_success=:
25564: ac_config_status_args=
25565: test "$silent" = yes &&
25566: ac_config_status_args="$ac_config_status_args --quiet"
25567: exec 5>/dev/null
25568: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25569: exec 5>>config.log
25570: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25571: # would make configure fail if this is the last instruction.
1.150 moko 25572: $ac_cs_success || as_fn_exit 1
1.62 paf 25573: fi
25574:
25575: #
25576: # CONFIG_SUBDIRS section.
25577: #
1.1 paf 25578: if test "$no_recursion" != yes; then
25579:
1.150 moko 25580: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
25581: # so they do not pile up.
1.1 paf 25582: ac_sub_configure_args=
25583: ac_prev=
1.150 moko 25584: eval "set x $ac_configure_args"
25585: shift
25586: for ac_arg
25587: do
1.1 paf 25588: if test -n "$ac_prev"; then
25589: ac_prev=
25590: continue
25591: fi
1.62 paf 25592: case $ac_arg in
1.1 paf 25593: -cache-file | --cache-file | --cache-fil | --cache-fi \
25594: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25595: ac_prev=cache_file ;;
25596: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 25597: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25598: | --c=*)
25599: ;;
25600: --config-cache | -C)
1.1 paf 25601: ;;
25602: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25603: ac_prev=srcdir ;;
25604: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25605: ;;
1.62 paf 25606: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25607: ac_prev=prefix ;;
25608: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25609: ;;
1.150 moko 25610: --disable-option-checking)
25611: ;;
25612: *)
25613: case $ac_arg in
1.237 moko 25614: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25615: esac
25616: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 25617: esac
25618: done
25619:
1.62 paf 25620: # Always prepend --prefix to ensure using the same prefix
25621: # in subdir configurations.
1.150 moko 25622: ac_arg="--prefix=$prefix"
25623: case $ac_arg in
1.237 moko 25624: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25625: esac
25626: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25627:
25628: # Pass --silent
25629: if test "$silent" = yes; then
25630: ac_sub_configure_args="--silent $ac_sub_configure_args"
25631: fi
25632:
25633: # Always prepend --disable-option-checking to silence warnings, since
25634: # different subdirs can have different --enable and --with options.
25635: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 25636:
25637: ac_popdir=`pwd`
25638: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 25639:
25640: # Do not complain, so a configure script can configure whichever
25641: # parts of a large source tree are present.
1.150 moko 25642: test -d "$srcdir/$ac_dir" || continue
1.62 paf 25643:
1.150 moko 25644: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.237 moko 25645: printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
25646: printf "%s\n" "$ac_msg" >&6
1.150 moko 25647: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 25648: ac_builddir=.
25649:
1.150 moko 25650: case "$ac_dir" in
25651: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25652: *)
1.237 moko 25653: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 25654: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 25655: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 25656: case $ac_top_builddir_sub in
25657: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25658: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25659: esac ;;
25660: esac
25661: ac_abs_top_builddir=$ac_pwd
25662: ac_abs_builddir=$ac_pwd$ac_dir_suffix
25663: # for backward compatibility:
25664: ac_top_builddir=$ac_top_build_prefix
1.62 paf 25665:
25666: case $srcdir in
1.150 moko 25667: .) # We are building in place.
1.62 paf 25668: ac_srcdir=.
1.150 moko 25669: ac_top_srcdir=$ac_top_builddir_sub
25670: ac_abs_top_srcdir=$ac_pwd ;;
25671: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 25672: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 25673: ac_top_srcdir=$srcdir
25674: ac_abs_top_srcdir=$srcdir ;;
25675: *) # Relative name.
25676: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25677: ac_top_srcdir=$ac_top_build_prefix$srcdir
25678: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 25679: esac
1.150 moko 25680: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 25681:
25682:
1.150 moko 25683: cd "$ac_dir"
1.1 paf 25684:
1.237 moko 25685: # Check for configure.gnu first; this name is used for a wrapper for
25686: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 25687: if test -f "$ac_srcdir/configure.gnu"; then
25688: ac_sub_configure=$ac_srcdir/configure.gnu
25689: elif test -f "$ac_srcdir/configure"; then
25690: ac_sub_configure=$ac_srcdir/configure
1.1 paf 25691: else
1.237 moko 25692: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
25693: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 25694: ac_sub_configure=
25695: fi
25696:
25697: # The recursion is here.
25698: if test -n "$ac_sub_configure"; then
25699: # Make the cache file name correct relative to the subdirectory.
1.62 paf 25700: case $cache_file in
25701: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 25702: *) # Relative name.
25703: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 25704: esac
25705:
1.237 moko 25706: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25707: printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 25708: # The eval makes quoting arguments work.
1.150 moko 25709: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25710: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25711: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 25712: fi
25713:
1.150 moko 25714: cd "$ac_popdir"
1.1 paf 25715: done
25716: fi
1.150 moko 25717: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.237 moko 25718: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25719: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.150 moko 25720: fi
1.1 paf 25721:
1.237 moko 25722:
E-mail: