Annotation of rpl/configure, revision 1.56

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.53      bertrand    3: # Generated by GNU Autoconf 2.67 for rpl 4.1.0.prerelease.0.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
                      8: # Foundation, Inc.
1.15      bertrand    9: #
                     10: #
1.1       bertrand   11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
1.15      bertrand   13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
1.1       bertrand   16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand   20:   emulate sh
                     21:   NULLCMD=:
1.15      bertrand   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand   23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
1.15      bertrand   27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
1.1       bertrand   32: esac
                     33: fi
                     34: 
                     35: 
1.15      bertrand   36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:    expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
1.14      bertrand   73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand   76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
1.1       bertrand   81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""   $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand   92: case $0 in #((
1.1       bertrand   93:   *[\\/]* ) as_myself=$0 ;;
                     94:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     95: for as_dir in $PATH
                     96: do
                     97:   IFS=$as_save_IFS
                     98:   test -z "$as_dir" && as_dir=.
1.15      bertrand   99:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    100:   done
1.1       bertrand  101: IFS=$as_save_IFS
                    102: 
                    103:      ;;
                    104: esac
                    105: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    106: # in which case we are not to be found in the path.
                    107: if test "x$as_myself" = x; then
                    108:   as_myself=$0
                    109: fi
                    110: if test ! -f "$as_myself"; then
1.15      bertrand  111:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    112:   exit 1
1.1       bertrand  113: fi
                    114: 
1.15      bertrand  115: # Unset variables that we do not need and which cause bugs (e.g. in
                    116: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    117: # suppresses any "Segmentation fault" message there.  '((' could
                    118: # trigger a bug in pdksh 5.2.14.
                    119: for as_var in BASH_ENV ENV MAIL MAILPATH
                    120: do eval test x\${$as_var+set} = xset \
                    121:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  122: done
                    123: PS1='$ '
                    124: PS2='> '
                    125: PS4='+ '
                    126: 
                    127: # NLS nuisances.
1.15      bertrand  128: LC_ALL=C
                    129: export LC_ALL
                    130: LANGUAGE=C
                    131: export LANGUAGE
1.1       bertrand  132: 
                    133: # CDPATH.
1.15      bertrand  134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  135: 
                    136: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  137:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    138:   emulate sh
                    139:   NULLCMD=:
                    140:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    141:   # is contrary to our usage.  Disable this feature.
                    142:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    143:   setopt NO_GLOB_SUBST
1.1       bertrand  144: else
1.15      bertrand  145:   case \`(set -o) 2>/dev/null\` in #(
                    146:   *posix*) :
                    147:     set -o posix ;; #(
                    148:   *) :
                    149:      ;;
                    150: esac
1.1       bertrand  151: fi
1.15      bertrand  152: "
                    153:   as_required="as_fn_return () { (exit \$1); }
                    154: as_fn_success () { as_fn_return 0; }
                    155: as_fn_failure () { as_fn_return 1; }
                    156: as_fn_ret_success () { return 0; }
                    157: as_fn_ret_failure () { return 1; }
1.1       bertrand  158: 
                    159: exitcode=0
1.15      bertrand  160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    165: 
                    166: else
                    167:   exitcode=1; echo positional parameters were not saved.
                    168: fi
                    169: test x\$exitcode = x0 || exit 1"
                    170:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    171:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    172:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    173:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    174: test \$(( 1 + 1 )) = 2 || exit 1"
                    175:   if (eval "$as_required") 2>/dev/null; then :
                    176:   as_have_required=yes
1.14      bertrand  177: else
1.15      bertrand  178:   as_have_required=no
1.14      bertrand  179: fi
1.15      bertrand  180:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  181: 
                    182: else
1.15      bertrand  183:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    184: as_found=false
1.1       bertrand  185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    186: do
                    187:   IFS=$as_save_IFS
                    188:   test -z "$as_dir" && as_dir=.
1.15      bertrand  189:   as_found=:
                    190:   case $as_dir in #(
1.1       bertrand  191:     /*)
                    192:       for as_base in sh bash ksh sh5; do
1.15      bertrand  193:         # Try only shells that exist, to save several forks.
                    194:         as_shell=$as_dir/$as_base
                    195:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    196:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    197:   CONFIG_SHELL=$as_shell as_have_required=yes
                    198:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    199:   break 2
                    200: fi
                    201: fi
1.1       bertrand  202:       done;;
                    203:        esac
1.15      bertrand  204:   as_found=false
1.1       bertrand  205: done
1.15      bertrand  206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    207:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    208:   CONFIG_SHELL=$SHELL as_have_required=yes
                    209: fi; }
1.1       bertrand  210: IFS=$as_save_IFS
                    211: 
                    212: 
1.15      bertrand  213:       if test "x$CONFIG_SHELL" != x; then :
                    214:   # We cannot yet assume a decent shell, so we have to provide a
                    215:    # neutralization value for shells without unset; and this also
                    216:    # works around shells that cannot unset nonexistent variables.
                    217:    BASH_ENV=/dev/null
                    218:    ENV=/dev/null
                    219:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    220:    export CONFIG_SHELL
                    221:    exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    222: fi
                    223: 
                    224:     if test x$as_have_required = xno; then :
                    225:   $as_echo "$0: This script requires a shell more modern than all"
                    226:   $as_echo "$0: the shells that I found on your system."
                    227:   if test x${ZSH_VERSION+set} = xset ; then
                    228:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    229:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    230:   else
                    231:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    232: $0: including any error possibly output before this
                    233: $0: message. Then install a modern shell, or manually run
                    234: $0: the script under such a shell if you do have one."
                    235:   fi
                    236:   exit 1
                    237: fi
1.1       bertrand  238: fi
                    239: fi
1.15      bertrand  240: SHELL=${CONFIG_SHELL-/bin/sh}
                    241: export SHELL
                    242: # Unset more variables known to interfere with behavior of common tools.
                    243: CLICOLOR_FORCE= GREP_OPTIONS=
                    244: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  245: 
1.15      bertrand  246: ## --------------------- ##
                    247: ## M4sh Shell Functions. ##
                    248: ## --------------------- ##
                    249: # as_fn_unset VAR
                    250: # ---------------
                    251: # Portably unset VAR.
                    252: as_fn_unset ()
                    253: {
                    254:   { eval $1=; unset $1;}
                    255: }
                    256: as_unset=as_fn_unset
                    257: 
                    258: # as_fn_set_status STATUS
                    259: # -----------------------
                    260: # Set $? to STATUS, without forking.
                    261: as_fn_set_status ()
                    262: {
                    263:   return $1
                    264: } # as_fn_set_status
                    265: 
                    266: # as_fn_exit STATUS
                    267: # -----------------
                    268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    269: as_fn_exit ()
                    270: {
                    271:   set +e
                    272:   as_fn_set_status $1
                    273:   exit $1
                    274: } # as_fn_exit
                    275: 
                    276: # as_fn_mkdir_p
                    277: # -------------
                    278: # Create "$as_dir" as a directory, including parents if necessary.
                    279: as_fn_mkdir_p ()
                    280: {
1.14      bertrand  281: 
1.15      bertrand  282:   case $as_dir in #(
                    283:   -*) as_dir=./$as_dir;;
                    284:   esac
                    285:   test -d "$as_dir" || eval $as_mkdir_p || {
                    286:     as_dirs=
                    287:     while :; do
                    288:       case $as_dir in #(
                    289:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    290:       *) as_qdir=$as_dir;;
                    291:       esac
                    292:       as_dirs="'$as_qdir' $as_dirs"
                    293:       as_dir=`$as_dirname -- "$as_dir" ||
                    294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    295:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    296:     X"$as_dir" : 'X\(//\)$' \| \
                    297:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    298: $as_echo X"$as_dir" |
                    299:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    300:        s//\1/
                    301:        q
                    302:      }
                    303:      /^X\(\/\/\)[^/].*/{
                    304:        s//\1/
                    305:        q
                    306:      }
                    307:      /^X\(\/\/\)$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\).*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      s/.*/./; q'`
                    316:       test -d "$as_dir" && break
                    317:     done
                    318:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  319:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  320: 
                    321: 
1.15      bertrand  322: } # as_fn_mkdir_p
                    323: # as_fn_append VAR VALUE
                    324: # ----------------------
                    325: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    326: # advantage of any shell optimizations that allow amortized linear growth over
                    327: # repeated appends, instead of the typical quadratic growth present in naive
                    328: # implementations.
                    329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    330:   eval 'as_fn_append ()
                    331:   {
                    332:     eval $1+=\$2
                    333:   }'
1.14      bertrand  334: else
1.15      bertrand  335:   as_fn_append ()
                    336:   {
                    337:     eval $1=\$$1\$2
                    338:   }
                    339: fi # as_fn_append
1.1       bertrand  340: 
1.15      bertrand  341: # as_fn_arith ARG...
                    342: # ------------------
                    343: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    345: # must be portable across $(()) and expr.
                    346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    347:   eval 'as_fn_arith ()
                    348:   {
                    349:     as_val=$(( $* ))
                    350:   }'
1.1       bertrand  351: else
1.15      bertrand  352:   as_fn_arith ()
                    353:   {
                    354:     as_val=`expr "$@" || test $? -eq 1`
                    355:   }
                    356: fi # as_fn_arith
1.14      bertrand  357: 
                    358: 
1.36      bertrand  359: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    360: # ----------------------------------------
1.15      bertrand  361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  363: # script with STATUS, using 1 if that was 0.
1.15      bertrand  364: as_fn_error ()
                    365: {
1.36      bertrand  366:   as_status=$1; test $as_status -eq 0 && as_status=1
                    367:   if test "$4"; then
                    368:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    369:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  370:   fi
1.36      bertrand  371:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  372:   as_fn_exit $as_status
                    373: } # as_fn_error
1.14      bertrand  374: 
1.15      bertrand  375: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    376:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    377:   as_expr=expr
1.1       bertrand  378: else
1.15      bertrand  379:   as_expr=false
1.14      bertrand  380: fi
                    381: 
1.15      bertrand  382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    383:   as_basename=basename
1.1       bertrand  384: else
1.15      bertrand  385:   as_basename=false
1.14      bertrand  386: fi
                    387: 
1.15      bertrand  388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    389:   as_dirname=dirname
1.1       bertrand  390: else
1.15      bertrand  391:   as_dirname=false
1.1       bertrand  392: fi
                    393: 
1.15      bertrand  394: as_me=`$as_basename -- "$0" ||
                    395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    396:     X"$0" : 'X\(//\)$' \| \
                    397:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    398: $as_echo X/"$0" |
                    399:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    400:        s//\1/
                    401:        q
                    402:      }
                    403:      /^X\/\(\/\/\)$/{
                    404:        s//\1/
                    405:        q
                    406:      }
                    407:      /^X\/\(\/\).*/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      s/.*/./; q'`
1.1       bertrand  412: 
1.15      bertrand  413: # Avoid depending upon Character Ranges.
                    414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    417: as_cr_digits='0123456789'
                    418: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  419: 
                    420: 
1.15      bertrand  421:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    422:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    423:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    424:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    425:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  426:   sed -n '
                    427:     p
                    428:     /[$]LINENO/=
                    429:   ' <$as_myself |
                    430:     sed '
                    431:       s/[$]LINENO.*/&-/
                    432:       t lineno
                    433:       b
                    434:       :lineno
                    435:       N
                    436:       :loop
                    437:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    438:       t loop
                    439:       s/-\n.*//
                    440:     ' >$as_me.lineno &&
                    441:   chmod +x "$as_me.lineno" ||
1.15      bertrand  442:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  443: 
                    444:   # Don't try to exec as it changes $[0], causing all sort of problems
                    445:   # (the dirname of $[0] is not the place where we might find the
                    446:   # original and so on.  Autoconf is especially sensitive to this).
                    447:   . "./$as_me.lineno"
                    448:   # Exit status is that of the last command.
                    449:   exit
                    450: }
                    451: 
1.15      bertrand  452: ECHO_C= ECHO_N= ECHO_T=
                    453: case `echo -n x` in #(((((
                    454: -n*)
                    455:   case `echo 'xy\c'` in
1.1       bertrand  456:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  457:   xy)  ECHO_C='\c';;
                    458:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    459:        ECHO_T='    ';;
1.1       bertrand  460:   esac;;
                    461: *)
                    462:   ECHO_N='-n';;
                    463: esac
                    464: 
                    465: rm -f conf$$ conf$$.exe conf$$.file
                    466: if test -d conf$$.dir; then
                    467:   rm -f conf$$.dir/conf$$.file
                    468: else
                    469:   rm -f conf$$.dir
1.15      bertrand  470:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  471: fi
1.15      bertrand  472: if (echo >conf$$.file) 2>/dev/null; then
                    473:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    474:     as_ln_s='ln -s'
                    475:     # ... but there are two gotchas:
                    476:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    477:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    478:     # In both cases, we have to default to `cp -p'.
                    479:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    480:       as_ln_s='cp -p'
                    481:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s=ln
                    483:   else
1.1       bertrand  484:     as_ln_s='cp -p'
1.15      bertrand  485:   fi
1.1       bertrand  486: else
                    487:   as_ln_s='cp -p'
                    488: fi
                    489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    490: rmdir conf$$.dir 2>/dev/null
                    491: 
                    492: if mkdir -p . 2>/dev/null; then
1.15      bertrand  493:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  494: else
                    495:   test -d ./-p && rmdir ./-p
                    496:   as_mkdir_p=false
                    497: fi
                    498: 
                    499: if test -x / >/dev/null 2>&1; then
                    500:   as_test_x='test -x'
                    501: else
                    502:   if ls -dL / >/dev/null 2>&1; then
                    503:     as_ls_L_option=L
                    504:   else
                    505:     as_ls_L_option=
                    506:   fi
                    507:   as_test_x='
                    508:     eval sh -c '\''
                    509:       if test -d "$1"; then
1.15      bertrand  510:    test -d "$1/.";
1.1       bertrand  511:       else
1.15      bertrand  512:    case $1 in #(
                    513:    -*)set "./$1";;
1.1       bertrand  514:    esac;
1.15      bertrand  515:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  516:    ???[sx]*):;;*)false;;esac;fi
                    517:     '\'' sh
                    518:   '
                    519: fi
                    520: as_executable_p=$as_test_x
                    521: 
                    522: # Sed expression to map a string onto a valid CPP name.
                    523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    524: 
                    525: # Sed expression to map a string onto a valid variable name.
                    526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    527: 
                    528: 
1.15      bertrand  529: test -n "$DJDIR" || exec 7<&0 </dev/null
                    530: exec 6>&1
1.1       bertrand  531: 
                    532: # Name of the host.
1.36      bertrand  533: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  534: # so uname gets run too.
                    535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    536: 
                    537: #
                    538: # Initializations.
                    539: #
                    540: ac_default_prefix=/usr/local
                    541: ac_clean_files=
                    542: ac_config_libobj_dir=.
                    543: LIBOBJS=
                    544: cross_compiling=no
                    545: subdirs=
                    546: MFLAGS=
                    547: MAKEFLAGS=
                    548: 
                    549: # Identity of this package.
                    550: PACKAGE_NAME='rpl'
                    551: PACKAGE_TARNAME='rpl'
1.53      bertrand  552: PACKAGE_VERSION='4.1.0.prerelease.0'
                    553: PACKAGE_STRING='rpl 4.1.0.prerelease.0'
1.1       bertrand  554: PACKAGE_BUGREPORT=''
1.15      bertrand  555: PACKAGE_URL=''
1.1       bertrand  556: 
                    557: ac_default_prefix=/usr/local
                    558: # Factoring default headers for most tests.
                    559: ac_includes_default="\
                    560: #include <stdio.h>
                    561: #ifdef HAVE_SYS_TYPES_H
                    562: # include <sys/types.h>
                    563: #endif
                    564: #ifdef HAVE_SYS_STAT_H
                    565: # include <sys/stat.h>
                    566: #endif
                    567: #ifdef STDC_HEADERS
                    568: # include <stdlib.h>
                    569: # include <stddef.h>
                    570: #else
                    571: # ifdef HAVE_STDLIB_H
                    572: #  include <stdlib.h>
                    573: # endif
                    574: #endif
                    575: #ifdef HAVE_STRING_H
                    576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    577: #  include <memory.h>
                    578: # endif
                    579: # include <string.h>
                    580: #endif
                    581: #ifdef HAVE_STRINGS_H
                    582: # include <strings.h>
                    583: #endif
                    584: #ifdef HAVE_INTTYPES_H
                    585: # include <inttypes.h>
                    586: #endif
                    587: #ifdef HAVE_STDINT_H
                    588: # include <stdint.h>
                    589: #endif
                    590: #ifdef HAVE_UNISTD_H
                    591: # include <unistd.h>
                    592: #endif"
                    593: 
1.15      bertrand  594: enable_option_checking=no
                    595: ac_subst_vars='am__EXEEXT_FALSE
                    596: am__EXEEXT_TRUE
                    597: LTLIBOBJS
                    598: LIBOBJS
1.56    ! bertrand  599: GIAC
        !           600: PARI
        !           601: COCOA
        !           602: NTL
1.55      bertrand  603: MPFR
                    604: GMP
1.49      bertrand  605: MALLOC
1.30      bertrand  606: EXT_SQL
1.15      bertrand  607: DATE_FR
                    608: FINAL_ENCODING
                    609: OPENSSL
                    610: SQLITE
                    611: ICONV
                    612: FILE
                    613: GNUPLOT
                    614: GPP
                    615: GSL
                    616: UNITS
                    617: READLINE
                    618: NCURSES
1.40      bertrand  619: BSH_PATH
1.35      bertrand  620: BROKEN_SIGINFO
1.34      bertrand  621: IPV6
1.33      bertrand  622: SEMUN
1.36      bertrand  623: IPCS_SYSV
1.17      bertrand  624: SEMAPHORES_NOMMES
                    625: NESTED_FUNCTIONS
                    626: EXPORT_DYNAMIC
1.33      bertrand  627: C_STANDARD
1.15      bertrand  628: OS
                    629: GNUPLOT_COMPILATION
                    630: subdirs
                    631: EGREP
                    632: GREP
                    633: libPgSQLlib
                    634: libPgSQLinc
                    635: POSTGRESQL_SUPPORT
                    636: libMySQLlib
                    637: libMySQLinc
                    638: MYSQL_SUPPORT
                    639: DATE
                    640: includeX
                    641: libX
                    642: MOTIF_SUPPORT
                    643: DEBUG
                    644: EXPERIMENTAL_CODE
                    645: VIM_SUPPORT
                    646: POSTSCRIPT_SUPPORT
                    647: FORCE_GNUPLOT_PATH
                    648: GNUPLOT_SUPPORT
                    649: VIM
                    650: GNUPLOT_P
                    651: GV
                    652: GS
                    653: DVIPS
                    654: LATEX
                    655: TEX
                    656: SED
                    657: RANLIB
                    658: LN_S
                    659: RUNPATH
                    660: PROFILAGE
                    661: X_EXTRA_LIBS
                    662: X_LIBS
                    663: X_PRE_LIBS
                    664: X_CFLAGS
                    665: CPP
                    666: XMKMF
                    667: ac_ct_FC
                    668: FCFLAGS
                    669: FC
                    670: ac_ct_F77
                    671: FFLAGS
                    672: F77
                    673: am__fastdepCXX_FALSE
                    674: am__fastdepCXX_TRUE
                    675: CXXDEPMODE
                    676: ac_ct_CXX
                    677: CXXFLAGS
                    678: CXX
                    679: am__fastdepCC_FALSE
                    680: am__fastdepCC_TRUE
                    681: CCDEPMODE
                    682: AMDEPBACKSLASH
                    683: AMDEP_FALSE
                    684: AMDEP_TRUE
                    685: am__quote
                    686: am__include
                    687: DEPDIR
                    688: OBJEXT
                    689: EXEEXT
                    690: ac_ct_CC
                    691: CPPFLAGS
                    692: LDFLAGS
                    693: CFLAGS
                    694: CC
                    695: am__untar
                    696: am__tar
                    697: AMTAR
                    698: am__leading_dot
                    699: SET_MAKE
                    700: AWK
                    701: mkdir_p
                    702: MKDIR_P
                    703: INSTALL_STRIP_PROGRAM
                    704: STRIP
                    705: install_sh
                    706: MAKEINFO
                    707: AUTOHEADER
                    708: AUTOMAKE
                    709: AUTOCONF
                    710: ACLOCAL
                    711: VERSION
                    712: PACKAGE
                    713: CYGPATH_W
                    714: am__isrc
                    715: INSTALL_DATA
                    716: INSTALL_SCRIPT
                    717: INSTALL_PROGRAM
                    718: target_os
                    719: target_vendor
                    720: target_cpu
                    721: target
                    722: host_os
                    723: host_vendor
                    724: host_cpu
                    725: host
                    726: build_os
                    727: build_vendor
                    728: build_cpu
                    729: build
                    730: target_alias
                    731: host_alias
                    732: build_alias
                    733: LIBS
                    734: ECHO_T
                    735: ECHO_N
                    736: ECHO_C
                    737: DEFS
                    738: mandir
                    739: localedir
                    740: libdir
                    741: psdir
                    742: pdfdir
                    743: dvidir
                    744: htmldir
                    745: infodir
                    746: docdir
                    747: oldincludedir
                    748: includedir
                    749: localstatedir
                    750: sharedstatedir
                    751: sysconfdir
                    752: datadir
                    753: datarootdir
                    754: libexecdir
                    755: sbindir
                    756: bindir
                    757: program_transform_name
                    758: prefix
                    759: exec_prefix
                    760: PACKAGE_URL
                    761: PACKAGE_BUGREPORT
                    762: PACKAGE_STRING
                    763: PACKAGE_VERSION
                    764: PACKAGE_TARNAME
                    765: PACKAGE_NAME
1.14      bertrand  766: PATH_SEPARATOR
1.15      bertrand  767: SHELL'
                    768: ac_subst_files=''
                    769: ac_user_opts='
                    770: enable_option_checking
                    771: enable_dependency_tracking
                    772: with_x
                    773: enable_optimization
1.36      bertrand  774: enable_sysv_semaphores
1.30      bertrand  775: enable_full_static
1.15      bertrand  776: enable_final_encoding
                    777: enable_tex
                    778: enable_vim
                    779: enable_embedded_gnuplot
                    780: enable_gnuplot
                    781: enable_motif
                    782: enable_experimental
                    783: enable_debug
                    784: enable_profile
                    785: enable_final_run_path
                    786: with_mysql
                    787: with_postgresql
1.40      bertrand  788: with_bourne_shell
1.15      bertrand  789: with_openssl_arch
                    790: '
                    791:       ac_precious_vars='build_alias
1.1       bertrand  792: host_alias
                    793: target_alias
                    794: CC
                    795: CFLAGS
                    796: LDFLAGS
1.15      bertrand  797: LIBS
1.1       bertrand  798: CPPFLAGS
                    799: CXX
                    800: CXXFLAGS
1.15      bertrand  801: CCC
1.1       bertrand  802: F77
                    803: FFLAGS
                    804: FC
                    805: FCFLAGS
                    806: XMKMF
                    807: CPP'
                    808: ac_subdirs_all='tools/$NCURSES
                    809: tools/$READLINE
                    810: tools/$GSL
                    811: tools/$GPP
                    812: tools/$FILE
                    813: tools/$ICONV
1.9       bertrand  814: tools/$SQLITE
1.17      bertrand  815: tools/$UNITS
1.1       bertrand  816: tools/$GNUPLOT'
                    817: 
                    818: # Initialize some variables set by options.
                    819: ac_init_help=
                    820: ac_init_version=false
1.15      bertrand  821: ac_unrecognized_opts=
                    822: ac_unrecognized_sep=
1.1       bertrand  823: # The variables have the same names as the options, with
                    824: # dashes changed to underlines.
                    825: cache_file=/dev/null
                    826: exec_prefix=NONE
                    827: no_create=
                    828: no_recursion=
                    829: prefix=NONE
                    830: program_prefix=NONE
                    831: program_suffix=NONE
                    832: program_transform_name=s,x,x,
                    833: silent=
                    834: site=
                    835: srcdir=
                    836: verbose=
                    837: x_includes=NONE
                    838: x_libraries=NONE
                    839: 
                    840: # Installation directory options.
                    841: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    842: # and all the variables that are supposed to be based on exec_prefix
                    843: # by default will actually change.
                    844: # Use braces instead of parens because sh, perl, etc. also accept them.
                    845: # (The list follows the same order as the GNU Coding Standards.)
                    846: bindir='${exec_prefix}/bin'
                    847: sbindir='${exec_prefix}/sbin'
                    848: libexecdir='${exec_prefix}/libexec'
                    849: datarootdir='${prefix}/share'
                    850: datadir='${datarootdir}'
                    851: sysconfdir='${prefix}/etc'
                    852: sharedstatedir='${prefix}/com'
                    853: localstatedir='${prefix}/var'
                    854: includedir='${prefix}/include'
                    855: oldincludedir='/usr/include'
                    856: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    857: infodir='${datarootdir}/info'
                    858: htmldir='${docdir}'
                    859: dvidir='${docdir}'
                    860: pdfdir='${docdir}'
                    861: psdir='${docdir}'
                    862: libdir='${exec_prefix}/lib'
                    863: localedir='${datarootdir}/locale'
                    864: mandir='${datarootdir}/man'
                    865: 
                    866: ac_prev=
                    867: ac_dashdash=
                    868: for ac_option
                    869: do
                    870:   # If the previous option needs an argument, assign it.
                    871:   if test -n "$ac_prev"; then
                    872:     eval $ac_prev=\$ac_option
                    873:     ac_prev=
                    874:     continue
                    875:   fi
                    876: 
                    877:   case $ac_option in
1.36      bertrand  878:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    879:   *=)   ac_optarg= ;;
                    880:   *)    ac_optarg=yes ;;
1.1       bertrand  881:   esac
                    882: 
                    883:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    884: 
                    885:   case $ac_dashdash$ac_option in
                    886:   --)
                    887:     ac_dashdash=yes ;;
                    888: 
                    889:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    890:     ac_prev=bindir ;;
                    891:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    892:     bindir=$ac_optarg ;;
                    893: 
                    894:   -build | --build | --buil | --bui | --bu)
                    895:     ac_prev=build_alias ;;
                    896:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    897:     build_alias=$ac_optarg ;;
                    898: 
                    899:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    900:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    901:     ac_prev=cache_file ;;
                    902:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    903:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    904:     cache_file=$ac_optarg ;;
                    905: 
                    906:   --config-cache | -C)
                    907:     cache_file=config.cache ;;
                    908: 
                    909:   -datadir | --datadir | --datadi | --datad)
                    910:     ac_prev=datadir ;;
                    911:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    912:     datadir=$ac_optarg ;;
                    913: 
                    914:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    915:   | --dataroo | --dataro | --datar)
                    916:     ac_prev=datarootdir ;;
                    917:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    918:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    919:     datarootdir=$ac_optarg ;;
                    920: 
                    921:   -disable-* | --disable-*)
1.15      bertrand  922:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  923:     # Reject names that are not valid shell variable names.
1.15      bertrand  924:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  925:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  926:     ac_useropt_orig=$ac_useropt
                    927:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    928:     case $ac_user_opts in
                    929:       *"
                    930: "enable_$ac_useropt"
                    931: "*) ;;
                    932:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    933:     ac_unrecognized_sep=', ';;
                    934:     esac
                    935:     eval enable_$ac_useropt=no ;;
1.1       bertrand  936: 
                    937:   -docdir | --docdir | --docdi | --doc | --do)
                    938:     ac_prev=docdir ;;
                    939:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    940:     docdir=$ac_optarg ;;
                    941: 
                    942:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    943:     ac_prev=dvidir ;;
                    944:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    945:     dvidir=$ac_optarg ;;
                    946: 
                    947:   -enable-* | --enable-*)
1.15      bertrand  948:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  949:     # Reject names that are not valid shell variable names.
1.15      bertrand  950:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  951:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  952:     ac_useropt_orig=$ac_useropt
                    953:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    954:     case $ac_user_opts in
                    955:       *"
                    956: "enable_$ac_useropt"
                    957: "*) ;;
                    958:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    959:     ac_unrecognized_sep=', ';;
                    960:     esac
                    961:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  962: 
                    963:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    964:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    965:   | --exec | --exe | --ex)
                    966:     ac_prev=exec_prefix ;;
                    967:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    968:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    969:   | --exec=* | --exe=* | --ex=*)
                    970:     exec_prefix=$ac_optarg ;;
                    971: 
                    972:   -gas | --gas | --ga | --g)
                    973:     # Obsolete; use --with-gas.
                    974:     with_gas=yes ;;
                    975: 
                    976:   -help | --help | --hel | --he | -h)
                    977:     ac_init_help=long ;;
                    978:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    979:     ac_init_help=recursive ;;
                    980:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    981:     ac_init_help=short ;;
                    982: 
                    983:   -host | --host | --hos | --ho)
                    984:     ac_prev=host_alias ;;
                    985:   -host=* | --host=* | --hos=* | --ho=*)
                    986:     host_alias=$ac_optarg ;;
                    987: 
                    988:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                    989:     ac_prev=htmldir ;;
                    990:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                    991:   | --ht=*)
                    992:     htmldir=$ac_optarg ;;
                    993: 
                    994:   -includedir | --includedir | --includedi | --included | --include \
                    995:   | --includ | --inclu | --incl | --inc)
                    996:     ac_prev=includedir ;;
                    997:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    998:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    999:     includedir=$ac_optarg ;;
                   1000: 
                   1001:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1002:     ac_prev=infodir ;;
                   1003:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1004:     infodir=$ac_optarg ;;
                   1005: 
                   1006:   -libdir | --libdir | --libdi | --libd)
                   1007:     ac_prev=libdir ;;
                   1008:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1009:     libdir=$ac_optarg ;;
                   1010: 
                   1011:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1012:   | --libexe | --libex | --libe)
                   1013:     ac_prev=libexecdir ;;
                   1014:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1015:   | --libexe=* | --libex=* | --libe=*)
                   1016:     libexecdir=$ac_optarg ;;
                   1017: 
                   1018:   -localedir | --localedir | --localedi | --localed | --locale)
                   1019:     ac_prev=localedir ;;
                   1020:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1021:     localedir=$ac_optarg ;;
                   1022: 
                   1023:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1024:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1025:     ac_prev=localstatedir ;;
                   1026:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1027:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1028:     localstatedir=$ac_optarg ;;
                   1029: 
                   1030:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1031:     ac_prev=mandir ;;
                   1032:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1033:     mandir=$ac_optarg ;;
                   1034: 
                   1035:   -nfp | --nfp | --nf)
                   1036:     # Obsolete; use --without-fp.
                   1037:     with_fp=no ;;
                   1038: 
                   1039:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1040:   | --no-cr | --no-c | -n)
                   1041:     no_create=yes ;;
                   1042: 
                   1043:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1044:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1045:     no_recursion=yes ;;
                   1046: 
                   1047:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1048:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1049:   | --oldin | --oldi | --old | --ol | --o)
                   1050:     ac_prev=oldincludedir ;;
                   1051:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1052:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1053:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1054:     oldincludedir=$ac_optarg ;;
                   1055: 
                   1056:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1057:     ac_prev=prefix ;;
                   1058:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1059:     prefix=$ac_optarg ;;
                   1060: 
                   1061:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1062:   | --program-pre | --program-pr | --program-p)
                   1063:     ac_prev=program_prefix ;;
                   1064:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1065:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1066:     program_prefix=$ac_optarg ;;
                   1067: 
                   1068:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1069:   | --program-suf | --program-su | --program-s)
                   1070:     ac_prev=program_suffix ;;
                   1071:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1072:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1073:     program_suffix=$ac_optarg ;;
                   1074: 
                   1075:   -program-transform-name | --program-transform-name \
                   1076:   | --program-transform-nam | --program-transform-na \
                   1077:   | --program-transform-n | --program-transform- \
                   1078:   | --program-transform | --program-transfor \
                   1079:   | --program-transfo | --program-transf \
                   1080:   | --program-trans | --program-tran \
                   1081:   | --progr-tra | --program-tr | --program-t)
                   1082:     ac_prev=program_transform_name ;;
                   1083:   -program-transform-name=* | --program-transform-name=* \
                   1084:   | --program-transform-nam=* | --program-transform-na=* \
                   1085:   | --program-transform-n=* | --program-transform-=* \
                   1086:   | --program-transform=* | --program-transfor=* \
                   1087:   | --program-transfo=* | --program-transf=* \
                   1088:   | --program-trans=* | --program-tran=* \
                   1089:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1090:     program_transform_name=$ac_optarg ;;
                   1091: 
                   1092:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1093:     ac_prev=pdfdir ;;
                   1094:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1095:     pdfdir=$ac_optarg ;;
                   1096: 
                   1097:   -psdir | --psdir | --psdi | --psd | --ps)
                   1098:     ac_prev=psdir ;;
                   1099:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1100:     psdir=$ac_optarg ;;
                   1101: 
                   1102:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1103:   | -silent | --silent | --silen | --sile | --sil)
                   1104:     silent=yes ;;
                   1105: 
                   1106:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1107:     ac_prev=sbindir ;;
                   1108:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1109:   | --sbi=* | --sb=*)
                   1110:     sbindir=$ac_optarg ;;
                   1111: 
                   1112:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1113:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1114:   | --sharedst | --shareds | --shared | --share | --shar \
                   1115:   | --sha | --sh)
                   1116:     ac_prev=sharedstatedir ;;
                   1117:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1118:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1119:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1120:   | --sha=* | --sh=*)
                   1121:     sharedstatedir=$ac_optarg ;;
                   1122: 
                   1123:   -site | --site | --sit)
                   1124:     ac_prev=site ;;
                   1125:   -site=* | --site=* | --sit=*)
                   1126:     site=$ac_optarg ;;
                   1127: 
                   1128:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1129:     ac_prev=srcdir ;;
                   1130:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1131:     srcdir=$ac_optarg ;;
                   1132: 
                   1133:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1134:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1135:     ac_prev=sysconfdir ;;
                   1136:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1137:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1138:     sysconfdir=$ac_optarg ;;
                   1139: 
                   1140:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1141:     ac_prev=target_alias ;;
                   1142:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1143:     target_alias=$ac_optarg ;;
                   1144: 
                   1145:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1146:     verbose=yes ;;
                   1147: 
                   1148:   -version | --version | --versio | --versi | --vers | -V)
                   1149:     ac_init_version=: ;;
                   1150: 
                   1151:   -with-* | --with-*)
1.15      bertrand 1152:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1153:     # Reject names that are not valid shell variable names.
1.15      bertrand 1154:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1155:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1156:     ac_useropt_orig=$ac_useropt
                   1157:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1158:     case $ac_user_opts in
                   1159:       *"
                   1160: "with_$ac_useropt"
                   1161: "*) ;;
                   1162:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1163:     ac_unrecognized_sep=', ';;
                   1164:     esac
                   1165:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1166: 
                   1167:   -without-* | --without-*)
1.15      bertrand 1168:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1169:     # Reject names that are not valid shell variable names.
1.15      bertrand 1170:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1171:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1172:     ac_useropt_orig=$ac_useropt
                   1173:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1174:     case $ac_user_opts in
                   1175:       *"
                   1176: "with_$ac_useropt"
                   1177: "*) ;;
                   1178:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1179:     ac_unrecognized_sep=', ';;
                   1180:     esac
                   1181:     eval with_$ac_useropt=no ;;
1.1       bertrand 1182: 
                   1183:   --x)
                   1184:     # Obsolete; use --with-x.
                   1185:     with_x=yes ;;
                   1186: 
                   1187:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1188:   | --x-incl | --x-inc | --x-in | --x-i)
                   1189:     ac_prev=x_includes ;;
                   1190:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1191:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1192:     x_includes=$ac_optarg ;;
                   1193: 
                   1194:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1195:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1196:     ac_prev=x_libraries ;;
                   1197:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1198:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1199:     x_libraries=$ac_optarg ;;
                   1200: 
1.36      bertrand 1201:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1202: Try \`$0 --help' for more information"
1.1       bertrand 1203:     ;;
                   1204: 
                   1205:   *=*)
                   1206:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1207:     # Reject names that are not valid shell variable names.
1.15      bertrand 1208:     case $ac_envvar in #(
                   1209:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1210:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1211:     esac
1.1       bertrand 1212:     eval $ac_envvar=\$ac_optarg
                   1213:     export $ac_envvar ;;
                   1214: 
                   1215:   *)
                   1216:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1217:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1218:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1219:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1       bertrand 1220:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
                   1221:     ;;
                   1222: 
                   1223:   esac
                   1224: done
                   1225: 
                   1226: if test -n "$ac_prev"; then
                   1227:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1228:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1229: fi
                   1230: 
                   1231: if test -n "$ac_unrecognized_opts"; then
                   1232:   case $enable_option_checking in
                   1233:     no) ;;
1.36      bertrand 1234:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1235:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1236:   esac
1.1       bertrand 1237: fi
                   1238: 
1.15      bertrand 1239: # Check all directory arguments for consistency.
1.1       bertrand 1240: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1241:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1242:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1243:        libdir localedir mandir
                   1244: do
                   1245:   eval ac_val=\$$ac_var
1.15      bertrand 1246:   # Remove trailing slashes.
                   1247:   case $ac_val in
                   1248:     */ )
                   1249:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1250:       eval $ac_var=\$ac_val;;
                   1251:   esac
                   1252:   # Be sure to have absolute directory names.
1.1       bertrand 1253:   case $ac_val in
                   1254:     [\\/$]* | ?:[\\/]* )  continue;;
                   1255:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1256:   esac
1.36      bertrand 1257:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1258: done
                   1259: 
                   1260: # There might be people who depend on the old broken behavior: `$host'
                   1261: # used to hold the argument of --host etc.
                   1262: # FIXME: To remove some day.
                   1263: build=$build_alias
                   1264: host=$host_alias
                   1265: target=$target_alias
                   1266: 
                   1267: # FIXME: To remove some day.
                   1268: if test "x$host_alias" != x; then
                   1269:   if test "x$build_alias" = x; then
                   1270:     cross_compiling=maybe
1.36      bertrand 1271:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1272:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1273:   elif test "x$build_alias" != "x$host_alias"; then
                   1274:     cross_compiling=yes
                   1275:   fi
                   1276: fi
                   1277: 
                   1278: ac_tool_prefix=
                   1279: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1280: 
                   1281: test "$silent" = yes && exec 6>/dev/null
                   1282: 
                   1283: 
                   1284: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1285: ac_ls_di=`ls -di .` &&
                   1286: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1287:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1288: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1289:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1290: 
                   1291: 
                   1292: # Find the source files, if location was not specified.
                   1293: if test -z "$srcdir"; then
                   1294:   ac_srcdir_defaulted=yes
                   1295:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1296:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1297: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1298:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1299:     X"$as_myself" : 'X\(//\)$' \| \
                   1300:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1301: $as_echo X"$as_myself" |
1.1       bertrand 1302:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1303:        s//\1/
                   1304:        q
                   1305:      }
                   1306:      /^X\(\/\/\)[^/].*/{
                   1307:        s//\1/
                   1308:        q
                   1309:      }
                   1310:      /^X\(\/\/\)$/{
                   1311:        s//\1/
                   1312:        q
                   1313:      }
                   1314:      /^X\(\/\).*/{
                   1315:        s//\1/
                   1316:        q
                   1317:      }
                   1318:      s/.*/./; q'`
                   1319:   srcdir=$ac_confdir
                   1320:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1321:     srcdir=..
                   1322:   fi
                   1323: else
                   1324:   ac_srcdir_defaulted=no
                   1325: fi
                   1326: if test ! -r "$srcdir/$ac_unique_file"; then
                   1327:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1328:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1329: fi
                   1330: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1331: ac_abs_confdir=`(
1.36      bertrand 1332:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1333:    pwd)`
                   1334: # When building in place, set srcdir=.
                   1335: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1336:   srcdir=.
                   1337: fi
                   1338: # Remove unnecessary trailing slashes from srcdir.
                   1339: # Double slashes in file names in object file debugging info
                   1340: # mess up M-x gdb in Emacs.
                   1341: case $srcdir in
                   1342: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1343: esac
                   1344: for ac_var in $ac_precious_vars; do
                   1345:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1346:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1347:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1348:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1349: done
                   1350: 
                   1351: #
                   1352: # Report the --help message.
                   1353: #
                   1354: if test "$ac_init_help" = "long"; then
                   1355:   # Omit some internal or obsolete options to make the list less imposing.
                   1356:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1357:   cat <<_ACEOF
1.53      bertrand 1358: \`configure' configures rpl 4.1.0.prerelease.0 to adapt to many kinds of systems.
1.1       bertrand 1359: 
                   1360: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1361: 
                   1362: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1363: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1364: 
                   1365: Defaults for the options are specified in brackets.
                   1366: 
                   1367: Configuration:
                   1368:   -h, --help              display this help and exit
                   1369:       --help=short        display options specific to this package
                   1370:       --help=recursive    display the short help of all the included packages
                   1371:   -V, --version           display version information and exit
1.36      bertrand 1372:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1373:       --cache-file=FILE   cache test results in FILE [disabled]
                   1374:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1375:   -n, --no-create         do not create output files
                   1376:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1377: 
                   1378: Installation directories:
                   1379:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1380:                           [$ac_default_prefix]
1.1       bertrand 1381:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1382:                           [PREFIX]
1.1       bertrand 1383: 
                   1384: By default, \`make install' will install all the files in
                   1385: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1386: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1387: for instance \`--prefix=\$HOME'.
                   1388: 
                   1389: For better control, use the options below.
                   1390: 
                   1391: Fine tuning of the installation directories:
1.15      bertrand 1392:   --bindir=DIR            user executables [EPREFIX/bin]
                   1393:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1394:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1395:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1396:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1397:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1398:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1399:   --includedir=DIR        C header files [PREFIX/include]
                   1400:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1401:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1402:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1403:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1404:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1405:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1406:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1407:   --htmldir=DIR           html documentation [DOCDIR]
                   1408:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1409:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1410:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1411: _ACEOF
                   1412: 
                   1413:   cat <<\_ACEOF
                   1414: 
                   1415: Program names:
                   1416:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1417:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1418:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1419: 
                   1420: X features:
                   1421:   --x-includes=DIR    X include files are in DIR
                   1422:   --x-libraries=DIR   X library files are in DIR
                   1423: 
                   1424: System types:
                   1425:   --build=BUILD     configure for building on BUILD [guessed]
                   1426:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1427:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1428: _ACEOF
                   1429: fi
                   1430: 
                   1431: if test -n "$ac_init_help"; then
                   1432:   case $ac_init_help in
1.53      bertrand 1433:      short | recursive ) echo "Configuration of rpl 4.1.0.prerelease.0:";;
1.1       bertrand 1434:    esac
                   1435:   cat <<\_ACEOF
                   1436: 
                   1437: Optional Features:
1.15      bertrand 1438:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1439:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1440:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1441:   --disable-dependency-tracking  speeds up one-time build
                   1442:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1443:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.36      bertrand 1444:   --enable-sysv-ipcs      use SystemV IPC functions [default=no]
1.30      bertrand 1445:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1446:   --enable-final-encoding force final encoding [default=guessed]
                   1447:   --enable-tex            provide the TeX support [default=guessed]
                   1448:   --enable-vim            provide the vim support [default=guessed]
                   1449:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1450:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1451:   --enable-motif          provide the Motif support [default=guessed]
                   1452:   --enable-experimental   enable experimental code [default=no]
                   1453:   --enable-debug          enable debug code [default=no]
                   1454:   --enable-profile        enable profile code [default=no]
                   1455:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1456: 
                   1457: Optional Packages:
                   1458:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1459:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1460:   --with-x                use the X Window System
                   1461:   --with-mysql=PATH         specify directory for installed mysql
                   1462:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1463:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1464:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1465: 
                   1466: Some influential environment variables:
                   1467:   CC          C compiler command
                   1468:   CFLAGS      C compiler flags
                   1469:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1470:               nonstandard directory <lib dir>
                   1471:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1472:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1473:               you have headers in a nonstandard directory <include dir>
                   1474:   CXX         C++ compiler command
                   1475:   CXXFLAGS    C++ compiler flags
                   1476:   F77         Fortran 77 compiler command
                   1477:   FFLAGS      Fortran 77 compiler flags
                   1478:   FC          Fortran compiler command
                   1479:   FCFLAGS     Fortran compiler flags
                   1480:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1481:   CPP         C preprocessor
                   1482: 
                   1483: Use these variables to override the choices made by `configure' or to help
                   1484: it to find libraries and programs with nonstandard names/locations.
                   1485: 
1.15      bertrand 1486: Report bugs to the package provider.
1.1       bertrand 1487: _ACEOF
                   1488: ac_status=$?
                   1489: fi
                   1490: 
                   1491: if test "$ac_init_help" = "recursive"; then
                   1492:   # If there are subdirs, report their specific --help.
                   1493:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1494:     test -d "$ac_dir" ||
                   1495:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1496:       continue
1.1       bertrand 1497:     ac_builddir=.
                   1498: 
                   1499: case "$ac_dir" in
                   1500: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1501: *)
1.15      bertrand 1502:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1503:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1504:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1505:   case $ac_top_builddir_sub in
                   1506:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1507:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1508:   esac ;;
                   1509: esac
                   1510: ac_abs_top_builddir=$ac_pwd
                   1511: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1512: # for backward compatibility:
                   1513: ac_top_builddir=$ac_top_build_prefix
                   1514: 
                   1515: case $srcdir in
                   1516:   .)  # We are building in place.
                   1517:     ac_srcdir=.
                   1518:     ac_top_srcdir=$ac_top_builddir_sub
                   1519:     ac_abs_top_srcdir=$ac_pwd ;;
                   1520:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1521:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1522:     ac_top_srcdir=$srcdir
                   1523:     ac_abs_top_srcdir=$srcdir ;;
                   1524:   *) # Relative name.
                   1525:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1526:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1527:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1528: esac
                   1529: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1530: 
                   1531:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1532:     # Check for guested configure.
                   1533:     if test -f "$ac_srcdir/configure.gnu"; then
                   1534:       echo &&
                   1535:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1536:     elif test -f "$ac_srcdir/configure"; then
                   1537:       echo &&
                   1538:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1539:     else
1.15      bertrand 1540:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1541:     fi || ac_status=$?
                   1542:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1543:   done
                   1544: fi
                   1545: 
                   1546: test -n "$ac_init_help" && exit $ac_status
                   1547: if $ac_init_version; then
                   1548:   cat <<\_ACEOF
1.53      bertrand 1549: rpl configure 4.1.0.prerelease.0
1.36      bertrand 1550: generated by GNU Autoconf 2.67
1.1       bertrand 1551: 
1.36      bertrand 1552: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1553: This configure script is free software; the Free Software Foundation
                   1554: gives unlimited permission to copy, distribute and modify it.
                   1555: _ACEOF
                   1556:   exit
                   1557: fi
                   1558: 
1.15      bertrand 1559: ## ------------------------ ##
                   1560: ## Autoconf initialization. ##
                   1561: ## ------------------------ ##
                   1562: 
                   1563: # ac_fn_c_try_compile LINENO
                   1564: # --------------------------
                   1565: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1566: ac_fn_c_try_compile ()
                   1567: {
                   1568:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1569:   rm -f conftest.$ac_objext
                   1570:   if { { ac_try="$ac_compile"
                   1571: case "(($ac_try" in
                   1572:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1573:   *) ac_try_echo=$ac_try;;
                   1574: esac
                   1575: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1576: $as_echo "$ac_try_echo"; } >&5
                   1577:   (eval "$ac_compile") 2>conftest.err
                   1578:   ac_status=$?
                   1579:   if test -s conftest.err; then
                   1580:     grep -v '^ *+' conftest.err >conftest.er1
                   1581:     cat conftest.er1 >&5
                   1582:     mv -f conftest.er1 conftest.err
                   1583:   fi
                   1584:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1585:   test $ac_status = 0; } && {
                   1586:     test -z "$ac_c_werror_flag" ||
                   1587:     test ! -s conftest.err
                   1588:        } && test -s conftest.$ac_objext; then :
                   1589:   ac_retval=0
                   1590: else
                   1591:   $as_echo "$as_me: failed program was:" >&5
                   1592: sed 's/^/| /' conftest.$ac_ext >&5
                   1593: 
                   1594:    ac_retval=1
                   1595: fi
                   1596:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1597:   as_fn_set_status $ac_retval
1.1       bertrand 1598: 
1.15      bertrand 1599: } # ac_fn_c_try_compile
1.1       bertrand 1600: 
1.15      bertrand 1601: # ac_fn_cxx_try_compile LINENO
                   1602: # ----------------------------
                   1603: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1604: ac_fn_cxx_try_compile ()
1.1       bertrand 1605: {
1.15      bertrand 1606:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1607:   rm -f conftest.$ac_objext
                   1608:   if { { ac_try="$ac_compile"
                   1609: case "(($ac_try" in
                   1610:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1611:   *) ac_try_echo=$ac_try;;
                   1612: esac
                   1613: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1614: $as_echo "$ac_try_echo"; } >&5
                   1615:   (eval "$ac_compile") 2>conftest.err
                   1616:   ac_status=$?
                   1617:   if test -s conftest.err; then
                   1618:     grep -v '^ *+' conftest.err >conftest.er1
                   1619:     cat conftest.er1 >&5
                   1620:     mv -f conftest.er1 conftest.err
                   1621:   fi
                   1622:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1623:   test $ac_status = 0; } && {
                   1624:     test -z "$ac_cxx_werror_flag" ||
                   1625:     test ! -s conftest.err
                   1626:        } && test -s conftest.$ac_objext; then :
                   1627:   ac_retval=0
                   1628: else
                   1629:   $as_echo "$as_me: failed program was:" >&5
                   1630: sed 's/^/| /' conftest.$ac_ext >&5
                   1631: 
                   1632:    ac_retval=1
                   1633: fi
                   1634:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1635:   as_fn_set_status $ac_retval
1.1       bertrand 1636: 
1.15      bertrand 1637: } # ac_fn_cxx_try_compile
1.1       bertrand 1638: 
1.15      bertrand 1639: # ac_fn_f77_try_compile LINENO
                   1640: # ----------------------------
                   1641: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1642: ac_fn_f77_try_compile ()
                   1643: {
                   1644:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1645:   rm -f conftest.$ac_objext
                   1646:   if { { ac_try="$ac_compile"
                   1647: case "(($ac_try" in
                   1648:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1649:   *) ac_try_echo=$ac_try;;
                   1650: esac
                   1651: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1652: $as_echo "$ac_try_echo"; } >&5
                   1653:   (eval "$ac_compile") 2>conftest.err
                   1654:   ac_status=$?
                   1655:   if test -s conftest.err; then
                   1656:     grep -v '^ *+' conftest.err >conftest.er1
                   1657:     cat conftest.er1 >&5
                   1658:     mv -f conftest.er1 conftest.err
                   1659:   fi
                   1660:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1661:   test $ac_status = 0; } && {
                   1662:     test -z "$ac_f77_werror_flag" ||
                   1663:     test ! -s conftest.err
                   1664:        } && test -s conftest.$ac_objext; then :
                   1665:   ac_retval=0
                   1666: else
                   1667:   $as_echo "$as_me: failed program was:" >&5
                   1668: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1669: 
1.15      bertrand 1670:    ac_retval=1
                   1671: fi
                   1672:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1673:   as_fn_set_status $ac_retval
1.1       bertrand 1674: 
1.15      bertrand 1675: } # ac_fn_f77_try_compile
1.1       bertrand 1676: 
1.15      bertrand 1677: # ac_fn_fc_try_compile LINENO
                   1678: # ---------------------------
                   1679: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1680: ac_fn_fc_try_compile ()
                   1681: {
                   1682:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1683:   rm -f conftest.$ac_objext
                   1684:   if { { ac_try="$ac_compile"
                   1685: case "(($ac_try" in
                   1686:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1687:   *) ac_try_echo=$ac_try;;
                   1688: esac
                   1689: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1690: $as_echo "$ac_try_echo"; } >&5
                   1691:   (eval "$ac_compile") 2>conftest.err
                   1692:   ac_status=$?
                   1693:   if test -s conftest.err; then
                   1694:     grep -v '^ *+' conftest.err >conftest.er1
                   1695:     cat conftest.er1 >&5
                   1696:     mv -f conftest.er1 conftest.err
                   1697:   fi
                   1698:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1699:   test $ac_status = 0; } && {
                   1700:     test -z "$ac_fc_werror_flag" ||
                   1701:     test ! -s conftest.err
                   1702:        } && test -s conftest.$ac_objext; then :
                   1703:   ac_retval=0
                   1704: else
                   1705:   $as_echo "$as_me: failed program was:" >&5
                   1706: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1707: 
1.15      bertrand 1708:    ac_retval=1
                   1709: fi
                   1710:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1711:   as_fn_set_status $ac_retval
1.1       bertrand 1712: 
1.15      bertrand 1713: } # ac_fn_fc_try_compile
1.1       bertrand 1714: 
1.15      bertrand 1715: # ac_fn_c_try_cpp LINENO
                   1716: # ----------------------
                   1717: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1718: ac_fn_c_try_cpp ()
                   1719: {
                   1720:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1721:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1722: case "(($ac_try" in
                   1723:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1724:   *) ac_try_echo=$ac_try;;
                   1725: esac
                   1726: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1727: $as_echo "$ac_try_echo"; } >&5
                   1728:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1729:   ac_status=$?
                   1730:   if test -s conftest.err; then
                   1731:     grep -v '^ *+' conftest.err >conftest.er1
                   1732:     cat conftest.er1 >&5
                   1733:     mv -f conftest.er1 conftest.err
                   1734:   fi
                   1735:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1736:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1737:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1738:     test ! -s conftest.err
                   1739:        }; then :
                   1740:   ac_retval=0
                   1741: else
                   1742:   $as_echo "$as_me: failed program was:" >&5
                   1743: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1744: 
1.15      bertrand 1745:     ac_retval=1
                   1746: fi
                   1747:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1748:   as_fn_set_status $ac_retval
1.1       bertrand 1749: 
1.15      bertrand 1750: } # ac_fn_c_try_cpp
1.1       bertrand 1751: 
1.15      bertrand 1752: # ac_fn_c_try_link LINENO
                   1753: # -----------------------
                   1754: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1755: ac_fn_c_try_link ()
                   1756: {
                   1757:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1758:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1759:   if { { ac_try="$ac_link"
                   1760: case "(($ac_try" in
                   1761:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1762:   *) ac_try_echo=$ac_try;;
                   1763: esac
                   1764: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1765: $as_echo "$ac_try_echo"; } >&5
                   1766:   (eval "$ac_link") 2>conftest.err
                   1767:   ac_status=$?
                   1768:   if test -s conftest.err; then
                   1769:     grep -v '^ *+' conftest.err >conftest.er1
                   1770:     cat conftest.er1 >&5
                   1771:     mv -f conftest.er1 conftest.err
                   1772:   fi
                   1773:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1774:   test $ac_status = 0; } && {
                   1775:     test -z "$ac_c_werror_flag" ||
                   1776:     test ! -s conftest.err
                   1777:        } && test -s conftest$ac_exeext && {
                   1778:     test "$cross_compiling" = yes ||
                   1779:     $as_test_x conftest$ac_exeext
                   1780:        }; then :
                   1781:   ac_retval=0
                   1782: else
                   1783:   $as_echo "$as_me: failed program was:" >&5
                   1784: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1785: 
1.15      bertrand 1786:    ac_retval=1
                   1787: fi
                   1788:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1789:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1790:   # interfere with the next link command; also delete a directory that is
                   1791:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1792:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1793:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1794:   as_fn_set_status $ac_retval
1.1       bertrand 1795: 
1.15      bertrand 1796: } # ac_fn_c_try_link
1.1       bertrand 1797: 
1.15      bertrand 1798: # ac_fn_c_check_func LINENO FUNC VAR
                   1799: # ----------------------------------
                   1800: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1801: ac_fn_c_check_func ()
                   1802: {
                   1803:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1804:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1805: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 1806: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 1807:   $as_echo_n "(cached) " >&6
                   1808: else
                   1809:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1810: /* end confdefs.h.  */
                   1811: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1812:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1813: #define $2 innocuous_$2
1.1       bertrand 1814: 
1.15      bertrand 1815: /* System header to define __stub macros and hopefully few prototypes,
                   1816:     which can conflict with char $2 (); below.
                   1817:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1818:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1819: 
1.15      bertrand 1820: #ifdef __STDC__
                   1821: # include <limits.h>
                   1822: #else
                   1823: # include <assert.h>
                   1824: #endif
1.1       bertrand 1825: 
1.15      bertrand 1826: #undef $2
1.1       bertrand 1827: 
1.15      bertrand 1828: /* Override any GCC internal prototype to avoid an error.
                   1829:    Use char because int might match the return type of a GCC
                   1830:    builtin and then its argument prototype would still apply.  */
                   1831: #ifdef __cplusplus
                   1832: extern "C"
                   1833: #endif
                   1834: char $2 ();
                   1835: /* The GNU C library defines this for functions which it implements
                   1836:     to always fail with ENOSYS.  Some functions are actually named
                   1837:     something starting with __ and the normal name is an alias.  */
                   1838: #if defined __stub_$2 || defined __stub___$2
                   1839: choke me
                   1840: #endif
1.1       bertrand 1841: 
1.15      bertrand 1842: int
                   1843: main ()
                   1844: {
                   1845: return $2 ();
                   1846:   ;
                   1847:   return 0;
                   1848: }
1.1       bertrand 1849: _ACEOF
1.15      bertrand 1850: if ac_fn_c_try_link "$LINENO"; then :
                   1851:   eval "$3=yes"
                   1852: else
                   1853:   eval "$3=no"
                   1854: fi
                   1855: rm -f core conftest.err conftest.$ac_objext \
                   1856:     conftest$ac_exeext conftest.$ac_ext
                   1857: fi
                   1858: eval ac_res=\$$3
                   1859:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1860: $as_echo "$ac_res" >&6; }
                   1861:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 1862: 
1.15      bertrand 1863: } # ac_fn_c_check_func
1.1       bertrand 1864: 
1.33      bertrand 1865: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1866: # -------------------------------------------
                   1867: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1868: # variable VAR accordingly.
                   1869: ac_fn_c_check_type ()
                   1870: {
                   1871:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1872:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1873: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 1874: if eval "test \"\${$3+set}\"" = set; then :
1.33      bertrand 1875:   $as_echo_n "(cached) " >&6
                   1876: else
                   1877:   eval "$3=no"
                   1878:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1879: /* end confdefs.h.  */
                   1880: $4
                   1881: int
                   1882: main ()
                   1883: {
                   1884: if (sizeof ($2))
                   1885:     return 0;
                   1886:   ;
                   1887:   return 0;
                   1888: }
                   1889: _ACEOF
                   1890: if ac_fn_c_try_compile "$LINENO"; then :
                   1891:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1892: /* end confdefs.h.  */
                   1893: $4
                   1894: int
                   1895: main ()
                   1896: {
                   1897: if (sizeof (($2)))
                   1898:        return 0;
                   1899:   ;
                   1900:   return 0;
                   1901: }
                   1902: _ACEOF
                   1903: if ac_fn_c_try_compile "$LINENO"; then :
                   1904: 
                   1905: else
                   1906:   eval "$3=yes"
                   1907: fi
                   1908: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1909: fi
                   1910: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1911: fi
                   1912: eval ac_res=\$$3
                   1913:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1914: $as_echo "$ac_res" >&6; }
                   1915:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1916: 
                   1917: } # ac_fn_c_check_type
                   1918: 
1.15      bertrand 1919: # ac_fn_c_try_run LINENO
                   1920: # ----------------------
                   1921: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1922: # that executables *can* be run.
                   1923: ac_fn_c_try_run ()
                   1924: {
                   1925:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1926:   if { { ac_try="$ac_link"
                   1927: case "(($ac_try" in
                   1928:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1929:   *) ac_try_echo=$ac_try;;
                   1930: esac
                   1931: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1932: $as_echo "$ac_try_echo"; } >&5
                   1933:   (eval "$ac_link") 2>&5
                   1934:   ac_status=$?
                   1935:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1936:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1937:   { { case "(($ac_try" in
                   1938:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1939:   *) ac_try_echo=$ac_try;;
                   1940: esac
                   1941: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1942: $as_echo "$ac_try_echo"; } >&5
                   1943:   (eval "$ac_try") 2>&5
                   1944:   ac_status=$?
                   1945:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1946:   test $ac_status = 0; }; }; then :
                   1947:   ac_retval=0
                   1948: else
                   1949:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1950:        $as_echo "$as_me: failed program was:" >&5
                   1951: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1952: 
1.15      bertrand 1953:        ac_retval=$ac_status
                   1954: fi
                   1955:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1956:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1957:   as_fn_set_status $ac_retval
1.1       bertrand 1958: 
1.15      bertrand 1959: } # ac_fn_c_try_run
1.1       bertrand 1960: 
1.15      bertrand 1961: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1962: # --------------------------------------------
                   1963: # Tries to find the compile-time value of EXPR in a program that includes
                   1964: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1965: # computed
                   1966: ac_fn_c_compute_int ()
                   1967: {
                   1968:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1969:   if test "$cross_compiling" = yes; then
                   1970:     # Depending upon the size, compute the lo and hi bounds.
                   1971: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1972: /* end confdefs.h.  */
                   1973: $4
                   1974: int
                   1975: main ()
                   1976: {
                   1977: static int test_array [1 - 2 * !(($2) >= 0)];
                   1978: test_array [0] = 0
1.1       bertrand 1979: 
1.15      bertrand 1980:   ;
                   1981:   return 0;
                   1982: }
1.1       bertrand 1983: _ACEOF
1.15      bertrand 1984: if ac_fn_c_try_compile "$LINENO"; then :
                   1985:   ac_lo=0 ac_mid=0
                   1986:   while :; do
                   1987:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1988: /* end confdefs.h.  */
                   1989: $4
                   1990: int
                   1991: main ()
                   1992: {
                   1993: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   1994: test_array [0] = 0
1.1       bertrand 1995: 
1.15      bertrand 1996:   ;
                   1997:   return 0;
                   1998: }
                   1999: _ACEOF
                   2000: if ac_fn_c_try_compile "$LINENO"; then :
                   2001:   ac_hi=$ac_mid; break
                   2002: else
                   2003:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2004:            if test $ac_lo -le $ac_mid; then
                   2005:              ac_lo= ac_hi=
                   2006:              break
                   2007:            fi
                   2008:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2009: fi
                   2010: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2011:   done
                   2012: else
                   2013:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2014: /* end confdefs.h.  */
                   2015: $4
                   2016: int
                   2017: main ()
                   2018: {
                   2019: static int test_array [1 - 2 * !(($2) < 0)];
                   2020: test_array [0] = 0
1.1       bertrand 2021: 
1.15      bertrand 2022:   ;
                   2023:   return 0;
                   2024: }
1.1       bertrand 2025: _ACEOF
1.15      bertrand 2026: if ac_fn_c_try_compile "$LINENO"; then :
                   2027:   ac_hi=-1 ac_mid=-1
                   2028:   while :; do
                   2029:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2030: /* end confdefs.h.  */
                   2031: $4
                   2032: int
                   2033: main ()
                   2034: {
                   2035: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2036: test_array [0] = 0
1.1       bertrand 2037: 
1.15      bertrand 2038:   ;
                   2039:   return 0;
                   2040: }
                   2041: _ACEOF
                   2042: if ac_fn_c_try_compile "$LINENO"; then :
                   2043:   ac_lo=$ac_mid; break
                   2044: else
                   2045:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2046:            if test $ac_mid -le $ac_hi; then
                   2047:              ac_lo= ac_hi=
                   2048:              break
                   2049:            fi
                   2050:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2051: fi
                   2052: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2053:   done
1.1       bertrand 2054: else
1.15      bertrand 2055:   ac_lo= ac_hi=
                   2056: fi
                   2057: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2058: fi
1.15      bertrand 2059: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2060: # Binary search between lo and hi bounds.
                   2061: while test "x$ac_lo" != "x$ac_hi"; do
                   2062:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2063:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2064: /* end confdefs.h.  */
                   2065: $4
                   2066: int
                   2067: main ()
                   2068: {
                   2069: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2070: test_array [0] = 0
1.1       bertrand 2071: 
1.15      bertrand 2072:   ;
                   2073:   return 0;
                   2074: }
                   2075: _ACEOF
                   2076: if ac_fn_c_try_compile "$LINENO"; then :
                   2077:   ac_hi=$ac_mid
1.1       bertrand 2078: else
1.15      bertrand 2079:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2080: fi
1.15      bertrand 2081: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2082: done
                   2083: case $ac_lo in #((
                   2084: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2085: '') ac_retval=1 ;;
                   2086: esac
                   2087:   else
                   2088:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2089: /* end confdefs.h.  */
                   2090: $4
                   2091: static long int longval () { return $2; }
                   2092: static unsigned long int ulongval () { return $2; }
                   2093: #include <stdio.h>
                   2094: #include <stdlib.h>
                   2095: int
                   2096: main ()
                   2097: {
1.1       bertrand 2098: 
1.15      bertrand 2099:   FILE *f = fopen ("conftest.val", "w");
                   2100:   if (! f)
                   2101:     return 1;
                   2102:   if (($2) < 0)
                   2103:     {
                   2104:       long int i = longval ();
                   2105:       if (i != ($2))
                   2106:    return 1;
                   2107:       fprintf (f, "%ld", i);
                   2108:     }
                   2109:   else
                   2110:     {
                   2111:       unsigned long int i = ulongval ();
                   2112:       if (i != ($2))
                   2113:    return 1;
                   2114:       fprintf (f, "%lu", i);
                   2115:     }
                   2116:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2117:      on some platforms.  */
                   2118:   return ferror (f) || fclose (f) != 0;
                   2119: 
                   2120:   ;
                   2121:   return 0;
                   2122: }
                   2123: _ACEOF
                   2124: if ac_fn_c_try_run "$LINENO"; then :
                   2125:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2126: else
                   2127:   ac_retval=1
1.14      bertrand 2128: fi
1.15      bertrand 2129: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2130:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2131: rm -f conftest.val
1.14      bertrand 2132: 
1.15      bertrand 2133:   fi
                   2134:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   2135:   as_fn_set_status $ac_retval
1.14      bertrand 2136: 
1.15      bertrand 2137: } # ac_fn_c_compute_int
1.1       bertrand 2138: 
1.15      bertrand 2139: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2140: # -------------------------------------------------------
                   2141: # Tests whether HEADER exists and can be compiled using the include files in
                   2142: # INCLUDES, setting the cache variable VAR accordingly.
                   2143: ac_fn_c_check_header_compile ()
                   2144: {
                   2145:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2146:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2147: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 2148: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2149:   $as_echo_n "(cached) " >&6
                   2150: else
                   2151:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2152: /* end confdefs.h.  */
                   2153: $4
                   2154: #include <$2>
                   2155: _ACEOF
                   2156: if ac_fn_c_try_compile "$LINENO"; then :
                   2157:   eval "$3=yes"
                   2158: else
                   2159:   eval "$3=no"
                   2160: fi
                   2161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2162: fi
                   2163: eval ac_res=\$$3
                   2164:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2165: $as_echo "$ac_res" >&6; }
                   2166:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2167: 
1.15      bertrand 2168: } # ac_fn_c_check_header_compile
1.1       bertrand 2169: 
1.15      bertrand 2170: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2171: # -------------------------------------------------------
                   2172: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2173: # the include files in INCLUDES and setting the cache variable VAR
                   2174: # accordingly.
                   2175: ac_fn_c_check_header_mongrel ()
                   2176: {
                   2177:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.36      bertrand 2178:   if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2179:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2180: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 2181: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2182:   $as_echo_n "(cached) " >&6
                   2183: fi
                   2184: eval ac_res=\$$3
                   2185:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2186: $as_echo "$ac_res" >&6; }
                   2187: else
                   2188:   # Is the header compilable?
                   2189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2190: $as_echo_n "checking $2 usability... " >&6; }
                   2191: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2192: /* end confdefs.h.  */
                   2193: $4
                   2194: #include <$2>
                   2195: _ACEOF
                   2196: if ac_fn_c_try_compile "$LINENO"; then :
                   2197:   ac_header_compiler=yes
                   2198: else
                   2199:   ac_header_compiler=no
                   2200: fi
                   2201: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2203: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2204: 
1.15      bertrand 2205: # Is the header present?
                   2206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2207: $as_echo_n "checking $2 presence... " >&6; }
                   2208: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2209: /* end confdefs.h.  */
                   2210: #include <$2>
                   2211: _ACEOF
                   2212: if ac_fn_c_try_cpp "$LINENO"; then :
                   2213:   ac_header_preproc=yes
                   2214: else
                   2215:   ac_header_preproc=no
                   2216: fi
1.36      bertrand 2217: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2219: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2220: 
1.15      bertrand 2221: # So?  What about this header?
                   2222: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2223:   yes:no: )
                   2224:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2225: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2226:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2227: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2228:     ;;
                   2229:   no:yes:* )
                   2230:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2231: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2232:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2233: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2234:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2235: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2236:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2237: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2238:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2239: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2240:     ;;
                   2241: esac
                   2242:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2243: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 2244: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2245:   $as_echo_n "(cached) " >&6
                   2246: else
                   2247:   eval "$3=\$ac_header_compiler"
                   2248: fi
                   2249: eval ac_res=\$$3
                   2250:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2251: $as_echo "$ac_res" >&6; }
                   2252: fi
                   2253:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2254: 
1.15      bertrand 2255: } # ac_fn_c_check_header_mongrel
                   2256: cat >config.log <<_ACEOF
                   2257: This file contains any messages produced by compilers while
                   2258: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2259: 
1.53      bertrand 2260: It was created by rpl $as_me 4.1.0.prerelease.0, which was
1.36      bertrand 2261: generated by GNU Autoconf 2.67.  Invocation command line was
1.1       bertrand 2262: 
1.15      bertrand 2263:   $ $0 $@
1.1       bertrand 2264: 
1.15      bertrand 2265: _ACEOF
                   2266: exec 5>>config.log
                   2267: {
                   2268: cat <<_ASUNAME
                   2269: ## --------- ##
                   2270: ## Platform. ##
                   2271: ## --------- ##
1.1       bertrand 2272: 
1.15      bertrand 2273: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2274: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2275: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2276: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2277: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2278: 
1.15      bertrand 2279: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2280: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2281: 
1.15      bertrand 2282: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2283: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2284: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2285: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2286: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2287: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2288: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2289: 
1.15      bertrand 2290: _ASUNAME
1.1       bertrand 2291: 
1.15      bertrand 2292: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2293: for as_dir in $PATH
                   2294: do
                   2295:   IFS=$as_save_IFS
                   2296:   test -z "$as_dir" && as_dir=.
                   2297:     $as_echo "PATH: $as_dir"
                   2298:   done
                   2299: IFS=$as_save_IFS
1.1       bertrand 2300: 
1.15      bertrand 2301: } >&5
1.1       bertrand 2302: 
1.15      bertrand 2303: cat >&5 <<_ACEOF
1.1       bertrand 2304: 
                   2305: 
1.15      bertrand 2306: ## ----------- ##
                   2307: ## Core tests. ##
                   2308: ## ----------- ##
1.1       bertrand 2309: 
1.15      bertrand 2310: _ACEOF
1.1       bertrand 2311: 
                   2312: 
1.15      bertrand 2313: # Keep a trace of the command line.
                   2314: # Strip out --no-create and --no-recursion so they do not pile up.
                   2315: # Strip out --silent because we don't want to record it for future runs.
                   2316: # Also quote any args containing shell meta-characters.
                   2317: # Make two passes to allow for proper duplicate-argument suppression.
                   2318: ac_configure_args=
                   2319: ac_configure_args0=
                   2320: ac_configure_args1=
                   2321: ac_must_keep_next=false
                   2322: for ac_pass in 1 2
                   2323: do
                   2324:   for ac_arg
                   2325:   do
                   2326:     case $ac_arg in
                   2327:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2328:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2329:     | -silent | --silent | --silen | --sile | --sil)
                   2330:       continue ;;
                   2331:     *\'*)
                   2332:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2333:     esac
                   2334:     case $ac_pass in
                   2335:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2336:     2)
                   2337:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2338:       if test $ac_must_keep_next = true; then
                   2339:    ac_must_keep_next=false # Got value, back to normal.
                   2340:       else
                   2341:    case $ac_arg in
                   2342:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2343:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2344:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2345:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2346:        case "$ac_configure_args0 " in
                   2347:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2348:        esac
                   2349:        ;;
                   2350:      -* ) ac_must_keep_next=true ;;
                   2351:    esac
                   2352:       fi
                   2353:       as_fn_append ac_configure_args " '$ac_arg'"
                   2354:       ;;
                   2355:     esac
                   2356:   done
                   2357: done
                   2358: { ac_configure_args0=; unset ac_configure_args0;}
                   2359: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2360: 
1.15      bertrand 2361: # When interrupted or exit'd, cleanup temporary files, and complete
                   2362: # config.log.  We remove comments because anyway the quotes in there
                   2363: # would cause problems or look ugly.
                   2364: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2365: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2366: trap 'exit_status=$?
                   2367:   # Save into config.log some information that might help in debugging.
                   2368:   {
                   2369:     echo
1.1       bertrand 2370: 
1.36      bertrand 2371:     $as_echo "## ---------------- ##
1.15      bertrand 2372: ## Cache variables. ##
1.36      bertrand 2373: ## ---------------- ##"
1.15      bertrand 2374:     echo
                   2375:     # The following way of writing the cache mishandles newlines in values,
                   2376: (
                   2377:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2378:     eval ac_val=\$$ac_var
                   2379:     case $ac_val in #(
                   2380:     *${as_nl}*)
                   2381:       case $ac_var in #(
                   2382:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2383: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2384:       esac
                   2385:       case $ac_var in #(
                   2386:       _ | IFS | as_nl) ;; #(
                   2387:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2388:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2389:       esac ;;
                   2390:     esac
                   2391:   done
                   2392:   (set) 2>&1 |
                   2393:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2394:     *${as_nl}ac_space=\ *)
                   2395:       sed -n \
                   2396:    "s/'\''/'\''\\\\'\'''\''/g;
                   2397:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2398:       ;; #(
                   2399:     *)
                   2400:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2401:       ;;
                   2402:     esac |
                   2403:     sort
                   2404: )
                   2405:     echo
1.1       bertrand 2406: 
1.36      bertrand 2407:     $as_echo "## ----------------- ##
1.15      bertrand 2408: ## Output variables. ##
1.36      bertrand 2409: ## ----------------- ##"
1.15      bertrand 2410:     echo
                   2411:     for ac_var in $ac_subst_vars
                   2412:     do
                   2413:       eval ac_val=\$$ac_var
                   2414:       case $ac_val in
                   2415:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2416:       esac
                   2417:       $as_echo "$ac_var='\''$ac_val'\''"
                   2418:     done | sort
                   2419:     echo
1.1       bertrand 2420: 
1.15      bertrand 2421:     if test -n "$ac_subst_files"; then
1.36      bertrand 2422:       $as_echo "## ------------------- ##
1.15      bertrand 2423: ## File substitutions. ##
1.36      bertrand 2424: ## ------------------- ##"
1.15      bertrand 2425:       echo
                   2426:       for ac_var in $ac_subst_files
                   2427:       do
                   2428:    eval ac_val=\$$ac_var
                   2429:    case $ac_val in
                   2430:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2431:    esac
                   2432:    $as_echo "$ac_var='\''$ac_val'\''"
                   2433:       done | sort
                   2434:       echo
1.14      bertrand 2435:     fi
                   2436: 
1.15      bertrand 2437:     if test -s confdefs.h; then
1.36      bertrand 2438:       $as_echo "## ----------- ##
1.15      bertrand 2439: ## confdefs.h. ##
1.36      bertrand 2440: ## ----------- ##"
1.15      bertrand 2441:       echo
                   2442:       cat confdefs.h
                   2443:       echo
                   2444:     fi
                   2445:     test "$ac_signal" != 0 &&
                   2446:       $as_echo "$as_me: caught signal $ac_signal"
                   2447:     $as_echo "$as_me: exit $exit_status"
                   2448:   } >&5
                   2449:   rm -f core *.core core.conftest.* &&
                   2450:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2451:     exit $exit_status
                   2452: ' 0
                   2453: for ac_signal in 1 2 13 15; do
                   2454:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2455: done
                   2456: ac_signal=0
1.14      bertrand 2457: 
1.15      bertrand 2458: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2459: rm -f -r conftest* confdefs.h
1.14      bertrand 2460: 
1.15      bertrand 2461: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2462: 
1.15      bertrand 2463: # Predefined preprocessor variables.
1.14      bertrand 2464: 
1.15      bertrand 2465: cat >>confdefs.h <<_ACEOF
                   2466: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2467: _ACEOF
1.14      bertrand 2468: 
1.15      bertrand 2469: cat >>confdefs.h <<_ACEOF
                   2470: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2471: _ACEOF
                   2472: 
1.15      bertrand 2473: cat >>confdefs.h <<_ACEOF
                   2474: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2475: _ACEOF
1.14      bertrand 2476: 
1.15      bertrand 2477: cat >>confdefs.h <<_ACEOF
                   2478: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2479: _ACEOF
                   2480: 
1.15      bertrand 2481: cat >>confdefs.h <<_ACEOF
                   2482: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2483: _ACEOF
1.14      bertrand 2484: 
1.15      bertrand 2485: cat >>confdefs.h <<_ACEOF
                   2486: #define PACKAGE_URL "$PACKAGE_URL"
                   2487: _ACEOF
1.14      bertrand 2488: 
                   2489: 
1.15      bertrand 2490: # Let the site file select an alternate cache file if it wants to.
                   2491: # Prefer an explicitly selected file to automatically selected ones.
                   2492: ac_site_file1=NONE
                   2493: ac_site_file2=NONE
                   2494: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2495:   # We do not want a PATH search for config.site.
                   2496:   case $CONFIG_SITE in #((
                   2497:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2498:     */*) ac_site_file1=$CONFIG_SITE;;
                   2499:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2500:   esac
1.15      bertrand 2501: elif test "x$prefix" != xNONE; then
                   2502:   ac_site_file1=$prefix/share/config.site
                   2503:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2504: else
1.15      bertrand 2505:   ac_site_file1=$ac_default_prefix/share/config.site
                   2506:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2507: fi
1.15      bertrand 2508: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2509: do
                   2510:   test "x$ac_site_file" = xNONE && continue
                   2511:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2512:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2513: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2514:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2515:     . "$ac_site_file" \
                   2516:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2517: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2518: as_fn_error $? "failed to load site script $ac_site_file
                   2519: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 2520:   fi
                   2521: done
1.14      bertrand 2522: 
1.15      bertrand 2523: if test -r "$cache_file"; then
                   2524:   # Some versions of bash will fail to source /dev/null (special files
                   2525:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2526:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2527:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2528: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2529:     case $cache_file in
                   2530:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2531:       *)                      . "./$cache_file";;
                   2532:     esac
                   2533:   fi
1.14      bertrand 2534: else
1.15      bertrand 2535:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2536: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2537:   >$cache_file
1.14      bertrand 2538: fi
                   2539: 
1.15      bertrand 2540: # Check that the precious variables saved in the cache have kept the same
                   2541: # value.
                   2542: ac_cache_corrupted=false
                   2543: for ac_var in $ac_precious_vars; do
                   2544:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2545:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2546:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2547:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2548:   case $ac_old_set,$ac_new_set in
                   2549:     set,)
                   2550:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2551: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2552:       ac_cache_corrupted=: ;;
                   2553:     ,set)
                   2554:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2555: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2556:       ac_cache_corrupted=: ;;
                   2557:     ,);;
                   2558:     *)
                   2559:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2560:    # differences in whitespace do not lead to failure.
                   2561:    ac_old_val_w=`echo x $ac_old_val`
                   2562:    ac_new_val_w=`echo x $ac_new_val`
                   2563:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2564:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2565: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2566:      ac_cache_corrupted=:
                   2567:    else
                   2568:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2569: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2570:      eval $ac_var=\$ac_old_val
                   2571:    fi
                   2572:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2573: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2574:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2575: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2576:       fi;;
                   2577:   esac
                   2578:   # Pass precious variables to config.status.
                   2579:   if test "$ac_new_set" = set; then
                   2580:     case $ac_new_val in
                   2581:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2582:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2583:     esac
                   2584:     case " $ac_configure_args " in
                   2585:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2586:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2587:     esac
1.14      bertrand 2588:   fi
                   2589: done
1.15      bertrand 2590: if $ac_cache_corrupted; then
                   2591:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2592: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2593:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2594: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2595:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2596: fi
                   2597: ## -------------------- ##
                   2598: ## Main body of script. ##
                   2599: ## -------------------- ##
1.14      bertrand 2600: 
1.15      bertrand 2601: ac_ext=c
                   2602: ac_cpp='$CPP $CPPFLAGS'
                   2603: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2604: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2605: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2606: 
                   2607: 
1.15      bertrand 2608: ac_aux_dir=
                   2609: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2610:   if test -f "$ac_dir/install-sh"; then
                   2611:     ac_aux_dir=$ac_dir
                   2612:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2613:     break
                   2614:   elif test -f "$ac_dir/install.sh"; then
                   2615:     ac_aux_dir=$ac_dir
                   2616:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2617:     break
                   2618:   elif test -f "$ac_dir/shtool"; then
                   2619:     ac_aux_dir=$ac_dir
                   2620:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2621:     break
                   2622:   fi
1.14      bertrand 2623: done
1.15      bertrand 2624: if test -z "$ac_aux_dir"; then
1.36      bertrand 2625:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2626: fi
1.14      bertrand 2627: 
1.15      bertrand 2628: # These three variables are undocumented and unsupported,
                   2629: # and are intended to be withdrawn in a future Autoconf release.
                   2630: # They can cause serious problems if a builder's source tree is in a directory
                   2631: # whose full name contains unusual characters.
                   2632: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2633: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2634: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2635: 
                   2636: 
1.15      bertrand 2637: # Make sure we can run config.sub.
                   2638: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2639:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2640: 
1.15      bertrand 2641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2642: $as_echo_n "checking build system type... " >&6; }
                   2643: if test "${ac_cv_build+set}" = set; then :
                   2644:   $as_echo_n "(cached) " >&6
1.14      bertrand 2645: else
1.15      bertrand 2646:   ac_build_alias=$build_alias
                   2647: test "x$ac_build_alias" = x &&
                   2648:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2649: test "x$ac_build_alias" = x &&
1.36      bertrand 2650:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2651: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2652:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2653: 
                   2654: fi
1.15      bertrand 2655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2656: $as_echo "$ac_cv_build" >&6; }
                   2657: case $ac_cv_build in
                   2658: *-*-*) ;;
1.36      bertrand 2659: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1.15      bertrand 2660: esac
                   2661: build=$ac_cv_build
                   2662: ac_save_IFS=$IFS; IFS='-'
                   2663: set x $ac_cv_build
                   2664: shift
                   2665: build_cpu=$1
                   2666: build_vendor=$2
                   2667: shift; shift
                   2668: # Remember, the first character of IFS is used to create $*,
                   2669: # except with old shells:
                   2670: build_os=$*
                   2671: IFS=$ac_save_IFS
                   2672: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2673: 
                   2674: 
1.15      bertrand 2675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2676: $as_echo_n "checking host system type... " >&6; }
                   2677: if test "${ac_cv_host+set}" = set; then :
                   2678:   $as_echo_n "(cached) " >&6
1.14      bertrand 2679: else
1.15      bertrand 2680:   if test "x$host_alias" = x; then
                   2681:   ac_cv_host=$ac_cv_build
1.14      bertrand 2682: else
1.15      bertrand 2683:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2684:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2685: fi
                   2686: 
                   2687: fi
1.15      bertrand 2688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2689: $as_echo "$ac_cv_host" >&6; }
                   2690: case $ac_cv_host in
                   2691: *-*-*) ;;
1.36      bertrand 2692: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1.15      bertrand 2693: esac
                   2694: host=$ac_cv_host
                   2695: ac_save_IFS=$IFS; IFS='-'
                   2696: set x $ac_cv_host
                   2697: shift
                   2698: host_cpu=$1
                   2699: host_vendor=$2
                   2700: shift; shift
                   2701: # Remember, the first character of IFS is used to create $*,
                   2702: # except with old shells:
                   2703: host_os=$*
                   2704: IFS=$ac_save_IFS
                   2705: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2706: 
                   2707: 
1.15      bertrand 2708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2709: $as_echo_n "checking target system type... " >&6; }
                   2710: if test "${ac_cv_target+set}" = set; then :
                   2711:   $as_echo_n "(cached) " >&6
                   2712: else
                   2713:   if test "x$target_alias" = x; then
                   2714:   ac_cv_target=$ac_cv_host
1.14      bertrand 2715: else
1.15      bertrand 2716:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2717:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2718: fi
1.14      bertrand 2719: 
                   2720: fi
1.15      bertrand 2721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2722: $as_echo "$ac_cv_target" >&6; }
                   2723: case $ac_cv_target in
                   2724: *-*-*) ;;
1.36      bertrand 2725: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
1.15      bertrand 2726: esac
                   2727: target=$ac_cv_target
                   2728: ac_save_IFS=$IFS; IFS='-'
                   2729: set x $ac_cv_target
                   2730: shift
                   2731: target_cpu=$1
                   2732: target_vendor=$2
                   2733: shift; shift
                   2734: # Remember, the first character of IFS is used to create $*,
                   2735: # except with old shells:
                   2736: target_os=$*
                   2737: IFS=$ac_save_IFS
                   2738: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2739: 
1.14      bertrand 2740: 
1.15      bertrand 2741: # The aliases save the names the user supplied, while $host etc.
                   2742: # will get canonicalized.
                   2743: test -n "$target_alias" &&
                   2744:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2745:     NONENONEs,x,x, &&
                   2746:   program_prefix=${target_alias}-
1.1       bertrand 2747: 
1.15      bertrand 2748: am__api_version='1.11'
1.1       bertrand 2749: 
1.14      bertrand 2750: # Find a good install program.  We prefer a C program (faster),
                   2751: # so one script is as good as another.  But avoid the broken or
                   2752: # incompatible versions:
                   2753: # SysV /etc/install, /usr/sbin/install
                   2754: # SunOS /usr/etc/install
                   2755: # IRIX /sbin/install
                   2756: # AIX /bin/install
                   2757: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2758: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2759: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2760: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2761: # OS/2's system install, which has a completely different semantic
                   2762: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2763: # Reject install programs that cannot install multiple files.
                   2764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2765: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2766: if test -z "$INSTALL"; then
1.15      bertrand 2767: if test "${ac_cv_path_install+set}" = set; then :
                   2768:   $as_echo_n "(cached) " >&6
1.14      bertrand 2769: else
                   2770:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2771: for as_dir in $PATH
                   2772: do
                   2773:   IFS=$as_save_IFS
                   2774:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2775:     # Account for people who put trailing slashes in PATH elements.
                   2776: case $as_dir/ in #((
                   2777:   ./ | .// | /[cC]/* | \
1.14      bertrand 2778:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2779:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2780:   /usr/ucb/* ) ;;
                   2781:   *)
                   2782:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2783:     # Don't use installbsd from OSF since it installs stuff as root
                   2784:     # by default.
                   2785:     for ac_prog in ginstall scoinst install; do
                   2786:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2787:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2788:      if test $ac_prog = install &&
                   2789:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2790:        # AIX install.  It has an incompatible calling convention.
                   2791:        :
                   2792:      elif test $ac_prog = install &&
                   2793:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2794:        # program-specific install script used by HP pwplus--don't use.
                   2795:        :
                   2796:      else
1.15      bertrand 2797:        rm -rf conftest.one conftest.two conftest.dir
                   2798:        echo one > conftest.one
                   2799:        echo two > conftest.two
                   2800:        mkdir conftest.dir
                   2801:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2802:          test -s conftest.one && test -s conftest.two &&
                   2803:          test -s conftest.dir/conftest.one &&
                   2804:          test -s conftest.dir/conftest.two
                   2805:        then
                   2806:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2807:          break 3
                   2808:        fi
1.14      bertrand 2809:      fi
                   2810:    fi
                   2811:       done
                   2812:     done
                   2813:     ;;
                   2814: esac
1.15      bertrand 2815: 
                   2816:   done
1.14      bertrand 2817: IFS=$as_save_IFS
1.1       bertrand 2818: 
1.15      bertrand 2819: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2820: 
1.14      bertrand 2821: fi
                   2822:   if test "${ac_cv_path_install+set}" = set; then
                   2823:     INSTALL=$ac_cv_path_install
                   2824:   else
                   2825:     # As a last resort, use the slow shell script.  Don't cache a
                   2826:     # value for INSTALL within a source directory, because that will
                   2827:     # break other packages using the cache if that directory is
                   2828:     # removed, or if the value is a relative name.
                   2829:     INSTALL=$ac_install_sh
                   2830:   fi
                   2831: fi
1.15      bertrand 2832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2833: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2834: 
1.14      bertrand 2835: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2836: # It thinks the first close brace ends the variable substitution.
                   2837: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2838: 
1.14      bertrand 2839: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2840: 
1.14      bertrand 2841: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2842: 
1.15      bertrand 2843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2844: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2845: # Just in case
                   2846: sleep 1
                   2847: echo timestamp > conftest.file
                   2848: # Reject unsafe characters in $srcdir or the absolute working directory
                   2849: # name.  Accept space and tab only in the latter.
                   2850: am_lf='
                   2851: '
                   2852: case `pwd` in
                   2853:   *[\\\"\#\$\&\'\`$am_lf]*)
1.36      bertrand 2854:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
1.15      bertrand 2855: esac
                   2856: case $srcdir in
                   2857:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.36      bertrand 2858:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
1.15      bertrand 2859: esac
                   2860: 
                   2861: # Do `set' in a subshell so we don't clobber the current shell's
                   2862: # arguments.  Must try -L first in case configure is actually a
                   2863: # symlink; some systems play weird games with the mod time of symlinks
                   2864: # (eg FreeBSD returns the mod time of the symlink's containing
                   2865: # directory).
                   2866: if (
                   2867:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2868:    if test "$*" = "X"; then
                   2869:       # -L didn't work.
                   2870:       set X `ls -t "$srcdir/configure" conftest.file`
                   2871:    fi
                   2872:    rm -f conftest.file
                   2873:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2874:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2875: 
                   2876:       # If neither matched, then we have a broken ls.  This can happen
                   2877:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2878:       # broken ls alias from the environment.  This has actually
                   2879:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2880:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2881: alias in your environment" "$LINENO" 5
                   2882:    fi
                   2883: 
                   2884:    test "$2" = conftest.file
                   2885:    )
                   2886: then
                   2887:    # Ok.
                   2888:    :
1.14      bertrand 2889: else
1.36      bertrand 2890:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2891: Check your system clock" "$LINENO" 5
1.14      bertrand 2892: fi
1.15      bertrand 2893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2894: $as_echo "yes" >&6; }
                   2895: test "$program_prefix" != NONE &&
                   2896:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2897: # Use a double $ so make ignores it.
                   2898: test "$program_suffix" != NONE &&
                   2899:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2900: # Double any \ or $.
                   2901: # By default was `s,x,x', remove it if useless.
                   2902: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2903: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2904: 
                   2905: # expand $ac_aux_dir to an absolute path
                   2906: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2907: 
1.15      bertrand 2908: if test x"${MISSING+set}" != xset; then
                   2909:   case $am_aux_dir in
                   2910:   *\ * | *\    *)
                   2911:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2912:   *)
1.15      bertrand 2913:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2914:   esac
1.14      bertrand 2915: fi
1.15      bertrand 2916: # Use eval to expand $SHELL
                   2917: if eval "$MISSING --run true"; then
                   2918:   am_missing_run="$MISSING --run "
1.14      bertrand 2919: else
1.15      bertrand 2920:   am_missing_run=
                   2921:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2922: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2923: fi
                   2924: 
                   2925: if test x"${install_sh}" != xset; then
                   2926:   case $am_aux_dir in
                   2927:   *\ * | *\    *)
                   2928:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2929:   *)
                   2930:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2931:   esac
1.14      bertrand 2932: fi
1.15      bertrand 2933: 
                   2934: # Installed binaries are usually stripped using `strip' when the user
                   2935: # run `make install-strip'.  However `strip' might not be the right
                   2936: # tool to use in cross-compilation environments, therefore Automake
                   2937: # will honor the `STRIP' environment variable to overrule this program.
                   2938: if test "$cross_compiling" != no; then
                   2939:   if test -n "$ac_tool_prefix"; then
                   2940:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2941: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2943: $as_echo_n "checking for $ac_word... " >&6; }
                   2944: if test "${ac_cv_prog_STRIP+set}" = set; then :
                   2945:   $as_echo_n "(cached) " >&6
1.14      bertrand 2946: else
1.15      bertrand 2947:   if test -n "$STRIP"; then
                   2948:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2949: else
                   2950: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2951: for as_dir in $PATH
                   2952: do
                   2953:   IFS=$as_save_IFS
                   2954:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2955:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2956:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2957:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2958:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2959:     break 2
                   2960:   fi
                   2961: done
1.15      bertrand 2962:   done
1.14      bertrand 2963: IFS=$as_save_IFS
1.1       bertrand 2964: 
1.14      bertrand 2965: fi
                   2966: fi
1.15      bertrand 2967: STRIP=$ac_cv_prog_STRIP
                   2968: if test -n "$STRIP"; then
                   2969:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2970: $as_echo "$STRIP" >&6; }
1.14      bertrand 2971: else
1.15      bertrand 2972:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2973: $as_echo "no" >&6; }
1.14      bertrand 2974: fi
1.1       bertrand 2975: 
                   2976: 
1.14      bertrand 2977: fi
1.15      bertrand 2978: if test -z "$ac_cv_prog_STRIP"; then
                   2979:   ac_ct_STRIP=$STRIP
                   2980:   # Extract the first word of "strip", so it can be a program name with args.
                   2981: set dummy strip; ac_word=$2
                   2982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2983: $as_echo_n "checking for $ac_word... " >&6; }
                   2984: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
                   2985:   $as_echo_n "(cached) " >&6
1.14      bertrand 2986: else
1.15      bertrand 2987:   if test -n "$ac_ct_STRIP"; then
                   2988:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 2989: else
1.14      bertrand 2990: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2991: for as_dir in $PATH
1.1       bertrand 2992: do
1.14      bertrand 2993:   IFS=$as_save_IFS
                   2994:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2995:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2996:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2997:     ac_cv_prog_ac_ct_STRIP="strip"
                   2998:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2999:     break 2
1.1       bertrand 3000:   fi
                   3001: done
1.15      bertrand 3002:   done
1.14      bertrand 3003: IFS=$as_save_IFS
1.1       bertrand 3004: 
1.14      bertrand 3005: fi
                   3006: fi
1.15      bertrand 3007: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3008: if test -n "$ac_ct_STRIP"; then
                   3009:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3010: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3011: else
1.15      bertrand 3012:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3013: $as_echo "no" >&6; }
1.1       bertrand 3014: fi
                   3015: 
1.15      bertrand 3016:   if test "x$ac_ct_STRIP" = x; then
                   3017:     STRIP=":"
1.14      bertrand 3018:   else
                   3019:     case $cross_compiling:$ac_tool_warned in
                   3020: yes:)
1.15      bertrand 3021: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3022: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3023: ac_tool_warned=yes ;;
                   3024: esac
1.15      bertrand 3025:     STRIP=$ac_ct_STRIP
1.1       bertrand 3026:   fi
1.14      bertrand 3027: else
1.15      bertrand 3028:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3029: fi
                   3030: 
1.15      bertrand 3031: fi
                   3032: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3033: 
1.15      bertrand 3034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3035: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3036: if test -z "$MKDIR_P"; then
                   3037:   if test "${ac_cv_path_mkdir+set}" = set; then :
                   3038:   $as_echo_n "(cached) " >&6
1.14      bertrand 3039: else
1.15      bertrand 3040:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3041: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3042: do
                   3043:   IFS=$as_save_IFS
                   3044:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3045:     for ac_prog in mkdir gmkdir; do
                   3046:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3047:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3048:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3049:         'mkdir (GNU coreutils) '* | \
                   3050:         'mkdir (coreutils) '* | \
                   3051:         'mkdir (fileutils) '4.1*)
                   3052:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3053:           break 3;;
                   3054:       esac
                   3055:     done
                   3056:        done
                   3057:   done
1.14      bertrand 3058: IFS=$as_save_IFS
1.1       bertrand 3059: 
                   3060: fi
1.15      bertrand 3061: 
                   3062:   test -d ./--version && rmdir ./--version
                   3063:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3064:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3065:   else
                   3066:     # As a last resort, use the slow shell script.  Don't cache a
                   3067:     # value for MKDIR_P within a source directory, because that will
                   3068:     # break other packages using the cache if that directory is
                   3069:     # removed, or if the value is a relative name.
                   3070:     MKDIR_P="$ac_install_sh -d"
                   3071:   fi
1.14      bertrand 3072: fi
1.15      bertrand 3073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3074: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3075: 
1.15      bertrand 3076: mkdir_p="$MKDIR_P"
                   3077: case $mkdir_p in
                   3078:   [\\/$]* | ?:[\\/]*) ;;
                   3079:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3080: esac
1.1       bertrand 3081: 
1.15      bertrand 3082: for ac_prog in gawk mawk nawk awk
                   3083: do
                   3084:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3085: set dummy $ac_prog; ac_word=$2
                   3086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3087: $as_echo_n "checking for $ac_word... " >&6; }
                   3088: if test "${ac_cv_prog_AWK+set}" = set; then :
                   3089:   $as_echo_n "(cached) " >&6
1.1       bertrand 3090: else
1.15      bertrand 3091:   if test -n "$AWK"; then
                   3092:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3093: else
1.14      bertrand 3094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3095: for as_dir in $PATH
                   3096: do
                   3097:   IFS=$as_save_IFS
                   3098:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3099:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3100:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3101:     ac_cv_prog_AWK="$ac_prog"
                   3102:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3103:     break 2
                   3104:   fi
                   3105: done
1.15      bertrand 3106:   done
1.14      bertrand 3107: IFS=$as_save_IFS
                   3108: 
                   3109: fi
1.1       bertrand 3110: fi
1.15      bertrand 3111: AWK=$ac_cv_prog_AWK
                   3112: if test -n "$AWK"; then
                   3113:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3114: $as_echo "$AWK" >&6; }
1.14      bertrand 3115: else
1.15      bertrand 3116:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3117: $as_echo "no" >&6; }
1.1       bertrand 3118: fi
                   3119: 
                   3120: 
1.15      bertrand 3121:   test -n "$AWK" && break
                   3122: done
1.1       bertrand 3123: 
1.15      bertrand 3124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3125: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3126: set x ${MAKE-make}
                   3127: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36      bertrand 3128: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15      bertrand 3129:   $as_echo_n "(cached) " >&6
1.14      bertrand 3130: else
1.15      bertrand 3131:   cat >conftest.make <<\_ACEOF
                   3132: SHELL = /bin/sh
                   3133: all:
                   3134:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3135: _ACEOF
1.36      bertrand 3136: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3137: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3138:   *@@@%%%=?*=@@@%%%*)
                   3139:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3140:   *)
                   3141:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3142: esac
                   3143: rm -f conftest.make
                   3144: fi
                   3145: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3147: $as_echo "yes" >&6; }
                   3148:   SET_MAKE=
1.1       bertrand 3149: else
1.15      bertrand 3150:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3151: $as_echo "no" >&6; }
                   3152:   SET_MAKE="MAKE=${MAKE-make}"
                   3153: fi
1.1       bertrand 3154: 
1.15      bertrand 3155: rm -rf .tst 2>/dev/null
                   3156: mkdir .tst 2>/dev/null
                   3157: if test -d .tst; then
                   3158:   am__leading_dot=.
                   3159: else
                   3160:   am__leading_dot=_
1.14      bertrand 3161: fi
1.15      bertrand 3162: rmdir .tst 2>/dev/null
                   3163: 
                   3164: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3165:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3166:   # is not polluted with repeated "-I."
                   3167:   am__isrc=' -I$(srcdir)'
                   3168:   # test to see if srcdir already configured
                   3169:   if test -f $srcdir/config.status; then
1.36      bertrand 3170:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3171:   fi
1.1       bertrand 3172: fi
1.15      bertrand 3173: 
                   3174: # test whether we have cygpath
                   3175: if test -z "$CYGPATH_W"; then
                   3176:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3177:     CYGPATH_W='cygpath -w'
                   3178:   else
                   3179:     CYGPATH_W=echo
                   3180:   fi
1.1       bertrand 3181: fi
                   3182: 
                   3183: 
1.15      bertrand 3184: # Define the identity of the package.
                   3185:  PACKAGE='rpl'
1.53      bertrand 3186:  VERSION='4.1.0.prerelease.0'
1.15      bertrand 3187: 
                   3188: 
                   3189: cat >>confdefs.h <<_ACEOF
                   3190: #define PACKAGE "$PACKAGE"
                   3191: _ACEOF
                   3192: 
                   3193: 
                   3194: cat >>confdefs.h <<_ACEOF
                   3195: #define VERSION "$VERSION"
                   3196: _ACEOF
                   3197: 
                   3198: # Some tools Automake needs.
                   3199: 
                   3200: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3201: 
                   3202: 
                   3203: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3204: 
                   3205: 
                   3206: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3207: 
                   3208: 
                   3209: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3210: 
                   3211: 
                   3212: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3213: 
                   3214: # We need awk for the "check" target.  The system "awk" is bad on
                   3215: # some platforms.
                   3216: # Always define AMTAR for backward compatibility.
                   3217: 
                   3218: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3219: 
                   3220: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3221: 
                   3222: 
                   3223: 
                   3224: 
1.1       bertrand 3225: 
                   3226: 
1.15      bertrand 3227: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3228: 
                   3229: 
1.54      bertrand 3230: NCURSES=ncurses-5.9
1.50      bertrand 3231: READLINE=readline-6.2
1.30      bertrand 3232: UNITS=units-1.88
1.15      bertrand 3233: GSL=gsl-1.14
                   3234: GPP=gpp-2.24
1.52      bertrand 3235: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3236: FILE=file-5.03
                   3237: ICONV=libiconv-1.13.1
1.50      bertrand 3238: SQLITE=sqlite-3.7.5
                   3239: OPENSSL=openssl-1.0.0d
1.14      bertrand 3240: 
1.55      bertrand 3241: GMP=gmp-5.0.1
                   3242: MPFR=mpfr-3.0.1
1.56    ! bertrand 3243: NTL=ntl-5.5.2
        !          3244: COCOA=CoCoALib-0.9943
        !          3245: PARI=pari-2.3.5
        !          3246: GIAC=giac-0.9.2
1.55      bertrand 3247: 
1.15      bertrand 3248: ac_ext=c
                   3249: ac_cpp='$CPP $CPPFLAGS'
                   3250: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3251: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3252: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3253: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3254:   for ac_prog in gcc
1.15      bertrand 3255:   do
                   3256:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3257: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3259: $as_echo_n "checking for $ac_word... " >&6; }
                   3260: if test "${ac_cv_prog_CC+set}" = set; then :
                   3261:   $as_echo_n "(cached) " >&6
1.1       bertrand 3262: else
1.15      bertrand 3263:   if test -n "$CC"; then
                   3264:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3265: else
                   3266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3267: for as_dir in $PATH
                   3268: do
                   3269:   IFS=$as_save_IFS
                   3270:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3271:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3272:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3273:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3274:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3275:     break 2
                   3276:   fi
                   3277: done
1.15      bertrand 3278:   done
1.1       bertrand 3279: IFS=$as_save_IFS
                   3280: 
                   3281: fi
                   3282: fi
1.15      bertrand 3283: CC=$ac_cv_prog_CC
                   3284: if test -n "$CC"; then
                   3285:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3286: $as_echo "$CC" >&6; }
1.1       bertrand 3287: else
1.15      bertrand 3288:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3289: $as_echo "no" >&6; }
1.1       bertrand 3290: fi
                   3291: 
                   3292: 
1.15      bertrand 3293:     test -n "$CC" && break
                   3294:   done
                   3295: fi
                   3296: if test -z "$CC"; then
                   3297:   ac_ct_CC=$CC
1.23      bertrand 3298:   for ac_prog in gcc
1.15      bertrand 3299: do
                   3300:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3301: set dummy $ac_prog; ac_word=$2
                   3302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3303: $as_echo_n "checking for $ac_word... " >&6; }
                   3304: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
                   3305:   $as_echo_n "(cached) " >&6
1.1       bertrand 3306: else
1.15      bertrand 3307:   if test -n "$ac_ct_CC"; then
                   3308:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3309: else
                   3310: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3311: for as_dir in $PATH
                   3312: do
                   3313:   IFS=$as_save_IFS
                   3314:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3315:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3316:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3317:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3318:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3319:     break 2
                   3320:   fi
                   3321: done
1.15      bertrand 3322:   done
1.1       bertrand 3323: IFS=$as_save_IFS
                   3324: 
                   3325: fi
                   3326: fi
1.15      bertrand 3327: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3328: if test -n "$ac_ct_CC"; then
                   3329:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3330: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3331: else
1.15      bertrand 3332:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3333: $as_echo "no" >&6; }
1.1       bertrand 3334: fi
                   3335: 
                   3336: 
1.15      bertrand 3337:   test -n "$ac_ct_CC" && break
                   3338: done
1.1       bertrand 3339: 
1.15      bertrand 3340:   if test "x$ac_ct_CC" = x; then
                   3341:     CC=""
                   3342:   else
                   3343:     case $cross_compiling:$ac_tool_warned in
                   3344: yes:)
                   3345: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3346: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3347: ac_tool_warned=yes ;;
                   3348: esac
                   3349:     CC=$ac_ct_CC
1.1       bertrand 3350:   fi
                   3351: fi
                   3352: 
                   3353: 
1.15      bertrand 3354: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3355: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3356: as_fn_error $? "no acceptable C compiler found in \$PATH
                   3357: See \`config.log' for more details" "$LINENO" 5 ; }
1.1       bertrand 3358: 
1.15      bertrand 3359: # Provide some information about the compiler.
                   3360: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3361: set X $ac_compile
                   3362: ac_compiler=$2
                   3363: for ac_option in --version -v -V -qversion; do
                   3364:   { { ac_try="$ac_compiler $ac_option >&5"
                   3365: case "(($ac_try" in
                   3366:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3367:   *) ac_try_echo=$ac_try;;
                   3368: esac
                   3369: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3370: $as_echo "$ac_try_echo"; } >&5
                   3371:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3372:   ac_status=$?
                   3373:   if test -s conftest.err; then
                   3374:     sed '10a\
                   3375: ... rest of stderr output deleted ...
                   3376:          10q' conftest.err >conftest.er1
                   3377:     cat conftest.er1 >&5
1.1       bertrand 3378:   fi
1.15      bertrand 3379:   rm -f conftest.er1 conftest.err
                   3380:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3381:   test $ac_status = 0; }
1.1       bertrand 3382: done
                   3383: 
1.15      bertrand 3384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3385: /* end confdefs.h.  */
                   3386: 
                   3387: int
                   3388: main ()
                   3389: {
1.14      bertrand 3390: 
1.15      bertrand 3391:   ;
                   3392:   return 0;
                   3393: }
                   3394: _ACEOF
                   3395: ac_clean_files_save=$ac_clean_files
                   3396: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3397: # Try to create an executable without -o first, disregard a.out.
                   3398: # It will help us diagnose broken compilers, and finding out an intuition
                   3399: # of exeext.
                   3400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3401: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3402: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3403: 
1.15      bertrand 3404: # The possible output files:
                   3405: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3406: 
1.15      bertrand 3407: ac_rmfiles=
                   3408: for ac_file in $ac_files
1.1       bertrand 3409: do
1.15      bertrand 3410:   case $ac_file in
                   3411:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3412:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3413:   esac
1.1       bertrand 3414: done
1.15      bertrand 3415: rm -f $ac_rmfiles
                   3416: 
                   3417: if { { ac_try="$ac_link_default"
                   3418: case "(($ac_try" in
                   3419:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3420:   *) ac_try_echo=$ac_try;;
                   3421: esac
                   3422: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3423: $as_echo "$ac_try_echo"; } >&5
                   3424:   (eval "$ac_link_default") 2>&5
                   3425:   ac_status=$?
                   3426:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3427:   test $ac_status = 0; }; then :
                   3428:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3429: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3430: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3431: # so that the user can short-circuit this test for compilers unknown to
                   3432: # Autoconf.
                   3433: for ac_file in $ac_files ''
                   3434: do
                   3435:   test -f "$ac_file" || continue
                   3436:   case $ac_file in
                   3437:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3438:    ;;
                   3439:     [ab].out )
                   3440:    # We found the default executable, but exeext='' is most
                   3441:    # certainly right.
                   3442:    break;;
                   3443:     *.* )
                   3444:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3445:    then :; else
                   3446:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3447:    fi
                   3448:    # We set ac_cv_exeext here because the later test for it is not
                   3449:    # safe: cross compilers may not add the suffix if given an `-o'
                   3450:    # argument, so we may need to know it at that point already.
                   3451:    # Even if this section looks crufty: it has the advantage of
                   3452:    # actually working.
                   3453:    break;;
                   3454:     * )
                   3455:    break;;
                   3456:   esac
1.14      bertrand 3457: done
1.15      bertrand 3458: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3459: 
1.14      bertrand 3460: else
1.15      bertrand 3461:   ac_file=''
1.1       bertrand 3462: fi
1.15      bertrand 3463: if test -z "$ac_file"; then :
                   3464:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3465: $as_echo "no" >&6; }
                   3466: $as_echo "$as_me: failed program was:" >&5
                   3467: sed 's/^/| /' conftest.$ac_ext >&5
                   3468: 
                   3469: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3470: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3471: as_fn_error 77 "C compiler cannot create executables
                   3472: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3473: else
                   3474:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3475: $as_echo "yes" >&6; }
                   3476: fi
                   3477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3478: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3480: $as_echo "$ac_file" >&6; }
                   3481: ac_exeext=$ac_cv_exeext
1.1       bertrand 3482: 
1.15      bertrand 3483: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3484: ac_clean_files=$ac_clean_files_save
                   3485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3486: $as_echo_n "checking for suffix of executables... " >&6; }
                   3487: if { { ac_try="$ac_link"
                   3488: case "(($ac_try" in
                   3489:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3490:   *) ac_try_echo=$ac_try;;
                   3491: esac
                   3492: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3493: $as_echo "$ac_try_echo"; } >&5
                   3494:   (eval "$ac_link") 2>&5
                   3495:   ac_status=$?
                   3496:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3497:   test $ac_status = 0; }; then :
                   3498:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3499: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3500: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3501: # `rm'.
                   3502: for ac_file in conftest.exe conftest conftest.*; do
                   3503:   test -f "$ac_file" || continue
                   3504:   case $ac_file in
                   3505:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3506:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3507:      break;;
                   3508:     * ) break;;
                   3509:   esac
                   3510: done
1.14      bertrand 3511: else
1.15      bertrand 3512:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3513: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3514: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
                   3515: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3516: fi
                   3517: rm -f conftest conftest$ac_cv_exeext
                   3518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3519: $as_echo "$ac_cv_exeext" >&6; }
                   3520: 
                   3521: rm -f conftest.$ac_ext
                   3522: EXEEXT=$ac_cv_exeext
                   3523: ac_exeext=$EXEEXT
                   3524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3525: /* end confdefs.h.  */
1.15      bertrand 3526: #include <stdio.h>
1.14      bertrand 3527: int
                   3528: main ()
                   3529: {
1.15      bertrand 3530: FILE *f = fopen ("conftest.out", "w");
                   3531:  return ferror (f) || fclose (f) != 0;
                   3532: 
1.14      bertrand 3533:   ;
                   3534:   return 0;
                   3535: }
                   3536: _ACEOF
1.15      bertrand 3537: ac_clean_files="$ac_clean_files conftest.out"
                   3538: # Check that the compiler produces executables we can run.  If not, either
                   3539: # the compiler is broken, or we cross compile.
                   3540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3541: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3542: if test "$cross_compiling" != yes; then
                   3543:   { { ac_try="$ac_link"
1.1       bertrand 3544: case "(($ac_try" in
                   3545:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3546:   *) ac_try_echo=$ac_try;;
                   3547: esac
1.15      bertrand 3548: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3549: $as_echo "$ac_try_echo"; } >&5
                   3550:   (eval "$ac_link") 2>&5
                   3551:   ac_status=$?
                   3552:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3553:   test $ac_status = 0; }
                   3554:   if { ac_try='./conftest$ac_cv_exeext'
                   3555:   { { case "(($ac_try" in
                   3556:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3557:   *) ac_try_echo=$ac_try;;
                   3558: esac
                   3559: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3560: $as_echo "$ac_try_echo"; } >&5
                   3561:   (eval "$ac_try") 2>&5
1.1       bertrand 3562:   ac_status=$?
1.15      bertrand 3563:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3564:   test $ac_status = 0; }; }; then
                   3565:     cross_compiling=no
                   3566:   else
                   3567:     if test "$cross_compiling" = maybe; then
                   3568:    cross_compiling=yes
                   3569:     else
                   3570:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3571: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3572: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3573: If you meant to cross compile, use \`--host'.
1.36      bertrand 3574: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3575:     fi
                   3576:   fi
1.14      bertrand 3577: fi
1.15      bertrand 3578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3579: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3580: 
1.15      bertrand 3581: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3582: ac_clean_files=$ac_clean_files_save
                   3583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3584: $as_echo_n "checking for suffix of object files... " >&6; }
                   3585: if test "${ac_cv_objext+set}" = set; then :
                   3586:   $as_echo_n "(cached) " >&6
1.14      bertrand 3587: else
1.15      bertrand 3588:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3589: /* end confdefs.h.  */
                   3590: 
                   3591: int
                   3592: main ()
                   3593: {
1.15      bertrand 3594: 
1.1       bertrand 3595:   ;
                   3596:   return 0;
                   3597: }
                   3598: _ACEOF
1.15      bertrand 3599: rm -f conftest.o conftest.obj
                   3600: if { { ac_try="$ac_compile"
1.1       bertrand 3601: case "(($ac_try" in
                   3602:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3603:   *) ac_try_echo=$ac_try;;
                   3604: esac
1.15      bertrand 3605: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3606: $as_echo "$ac_try_echo"; } >&5
                   3607:   (eval "$ac_compile") 2>&5
1.1       bertrand 3608:   ac_status=$?
1.15      bertrand 3609:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3610:   test $ac_status = 0; }; then :
                   3611:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3612:   test -f "$ac_file" || continue;
                   3613:   case $ac_file in
                   3614:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3615:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3616:        break;;
                   3617:   esac
                   3618: done
1.14      bertrand 3619: else
1.15      bertrand 3620:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3621: sed 's/^/| /' conftest.$ac_ext >&5
                   3622: 
1.15      bertrand 3623: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3624: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3625: as_fn_error $? "cannot compute suffix of object files: cannot compile
                   3626: See \`config.log' for more details" "$LINENO" 5 ; }
1.14      bertrand 3627: fi
1.15      bertrand 3628: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3629: fi
                   3630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3631: $as_echo "$ac_cv_objext" >&6; }
                   3632: OBJEXT=$ac_cv_objext
                   3633: ac_objext=$OBJEXT
                   3634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3635: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3636: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
                   3637:   $as_echo_n "(cached) " >&6
                   3638: else
                   3639:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3640: /* end confdefs.h.  */
                   3641: 
                   3642: int
                   3643: main ()
                   3644: {
                   3645: #ifndef __GNUC__
                   3646:        choke me
                   3647: #endif
1.14      bertrand 3648: 
1.15      bertrand 3649:   ;
                   3650:   return 0;
                   3651: }
                   3652: _ACEOF
                   3653: if ac_fn_c_try_compile "$LINENO"; then :
                   3654:   ac_compiler_gnu=yes
1.14      bertrand 3655: else
1.15      bertrand 3656:   ac_compiler_gnu=no
1.14      bertrand 3657: fi
1.15      bertrand 3658: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3659: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3660: 
1.15      bertrand 3661: fi
                   3662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3663: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3664: if test $ac_compiler_gnu = yes; then
                   3665:   GCC=yes
1.14      bertrand 3666: else
1.15      bertrand 3667:   GCC=
1.14      bertrand 3668: fi
1.15      bertrand 3669: ac_test_CFLAGS=${CFLAGS+set}
                   3670: ac_save_CFLAGS=$CFLAGS
                   3671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3672: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3673: if test "${ac_cv_prog_cc_g+set}" = set; then :
                   3674:   $as_echo_n "(cached) " >&6
                   3675: else
                   3676:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3677:    ac_c_werror_flag=yes
                   3678:    ac_cv_prog_cc_g=no
                   3679:    CFLAGS="-g"
                   3680:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3681: /* end confdefs.h.  */
1.14      bertrand 3682: 
1.15      bertrand 3683: int
                   3684: main ()
                   3685: {
1.14      bertrand 3686: 
1.15      bertrand 3687:   ;
                   3688:   return 0;
                   3689: }
                   3690: _ACEOF
                   3691: if ac_fn_c_try_compile "$LINENO"; then :
                   3692:   ac_cv_prog_cc_g=yes
                   3693: else
                   3694:   CFLAGS=""
                   3695:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3696: /* end confdefs.h.  */
1.14      bertrand 3697: 
1.15      bertrand 3698: int
                   3699: main ()
                   3700: {
1.14      bertrand 3701: 
1.15      bertrand 3702:   ;
                   3703:   return 0;
                   3704: }
                   3705: _ACEOF
                   3706: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3707: 
1.15      bertrand 3708: else
                   3709:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3710:     CFLAGS="-g"
                   3711:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3712: /* end confdefs.h.  */
1.14      bertrand 3713: 
1.15      bertrand 3714: int
                   3715: main ()
                   3716: {
1.14      bertrand 3717: 
1.15      bertrand 3718:   ;
                   3719:   return 0;
                   3720: }
                   3721: _ACEOF
                   3722: if ac_fn_c_try_compile "$LINENO"; then :
                   3723:   ac_cv_prog_cc_g=yes
                   3724: fi
                   3725: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3726: fi
                   3727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3728: fi
                   3729: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3730:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3731: fi
                   3732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3733: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3734: if test "$ac_test_CFLAGS" = set; then
                   3735:   CFLAGS=$ac_save_CFLAGS
                   3736: elif test $ac_cv_prog_cc_g = yes; then
                   3737:   if test "$GCC" = yes; then
                   3738:     CFLAGS="-g -O2"
                   3739:   else
                   3740:     CFLAGS="-g"
                   3741:   fi
                   3742: else
                   3743:   if test "$GCC" = yes; then
                   3744:     CFLAGS="-O2"
                   3745:   else
                   3746:     CFLAGS=
                   3747:   fi
                   3748: fi
                   3749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3750: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3751: if test "${ac_cv_prog_cc_c89+set}" = set; then :
                   3752:   $as_echo_n "(cached) " >&6
1.1       bertrand 3753: else
1.15      bertrand 3754:   ac_cv_prog_cc_c89=no
                   3755: ac_save_CC=$CC
                   3756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3757: /* end confdefs.h.  */
1.15      bertrand 3758: #include <stdarg.h>
                   3759: #include <stdio.h>
                   3760: #include <sys/types.h>
                   3761: #include <sys/stat.h>
                   3762: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3763: struct buf { int x; };
                   3764: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3765: static char *e (p, i)
                   3766:      char **p;
                   3767:      int i;
                   3768: {
                   3769:   return p[i];
                   3770: }
                   3771: static char *f (char * (*g) (char **, int), char **p, ...)
                   3772: {
                   3773:   char *s;
                   3774:   va_list v;
                   3775:   va_start (v,p);
                   3776:   s = g (p, va_arg (v,int));
                   3777:   va_end (v);
                   3778:   return s;
                   3779: }
                   3780: 
                   3781: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3782:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3783:    These don't provoke an error unfortunately, instead are silently treated
                   3784:    as 'x'.  The following induces an error, until -std is added to get
                   3785:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3786:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3787:    that's true only with -std.  */
                   3788: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3789: 
1.15      bertrand 3790: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3791:    inside strings and character constants.  */
                   3792: #define FOO(x) 'x'
                   3793: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3794: 
1.15      bertrand 3795: int test (int i, double x);
                   3796: struct s1 {int (*f) (int a);};
                   3797: struct s2 {int (*f) (double a);};
                   3798: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3799: int argc;
                   3800: char **argv;
1.14      bertrand 3801: int
                   3802: main ()
                   3803: {
1.15      bertrand 3804: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3805:   ;
                   3806:   return 0;
                   3807: }
                   3808: _ACEOF
1.15      bertrand 3809: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3810:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3811: do
                   3812:   CC="$ac_save_CC $ac_arg"
                   3813:   if ac_fn_c_try_compile "$LINENO"; then :
                   3814:   ac_cv_prog_cc_c89=$ac_arg
                   3815: fi
                   3816: rm -f core conftest.err conftest.$ac_objext
                   3817:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3818: done
                   3819: rm -f conftest.$ac_ext
                   3820: CC=$ac_save_CC
                   3821: 
                   3822: fi
                   3823: # AC_CACHE_VAL
                   3824: case "x$ac_cv_prog_cc_c89" in
                   3825:   x)
                   3826:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3827: $as_echo "none needed" >&6; } ;;
                   3828:   xno)
                   3829:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3830: $as_echo "unsupported" >&6; } ;;
                   3831:   *)
                   3832:     CC="$CC $ac_cv_prog_cc_c89"
                   3833:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3834: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3835: esac
1.15      bertrand 3836: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3837: 
                   3838: fi
                   3839: 
1.15      bertrand 3840: ac_ext=c
                   3841: ac_cpp='$CPP $CPPFLAGS'
                   3842: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3843: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3844: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3845: DEPDIR="${am__leading_dot}deps"
                   3846: 
                   3847: ac_config_commands="$ac_config_commands depfiles"
                   3848: 
                   3849: 
                   3850: am_make=${MAKE-make}
                   3851: cat > confinc << 'END'
                   3852: am__doit:
                   3853:    @echo this is the am__doit target
                   3854: .PHONY: am__doit
                   3855: END
                   3856: # If we don't find an include directive, just comment out the code.
                   3857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3858: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3859: am__include="#"
                   3860: am__quote=
                   3861: _am_result=none
                   3862: # First try GNU make style include.
                   3863: echo "include confinc" > confmf
                   3864: # Ignore all kinds of additional output from `make'.
                   3865: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3866: *the\ am__doit\ target*)
                   3867:   am__include=include
                   3868:   am__quote=
                   3869:   _am_result=GNU
                   3870:   ;;
                   3871: esac
                   3872: # Now try BSD make style include.
                   3873: if test "$am__include" = "#"; then
                   3874:    echo '.include "confinc"' > confmf
                   3875:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3876:    *the\ am__doit\ target*)
                   3877:      am__include=.include
                   3878:      am__quote="\""
                   3879:      _am_result=BSD
                   3880:      ;;
                   3881:    esac
1.14      bertrand 3882: fi
                   3883: 
                   3884: 
1.15      bertrand 3885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3886: $as_echo "$_am_result" >&6; }
                   3887: rm -f confinc confmf
                   3888: 
                   3889: # Check whether --enable-dependency-tracking was given.
                   3890: if test "${enable_dependency_tracking+set}" = set; then :
                   3891:   enableval=$enable_dependency_tracking;
                   3892: fi
                   3893: 
                   3894: if test "x$enable_dependency_tracking" != xno; then
                   3895:   am_depcomp="$ac_aux_dir/depcomp"
                   3896:   AMDEPBACKSLASH='\'
                   3897: fi
                   3898:  if test "x$enable_dependency_tracking" != xno; then
                   3899:   AMDEP_TRUE=
                   3900:   AMDEP_FALSE='#'
1.1       bertrand 3901: else
1.15      bertrand 3902:   AMDEP_TRUE='#'
                   3903:   AMDEP_FALSE=
1.14      bertrand 3904: fi
1.1       bertrand 3905: 
1.14      bertrand 3906: 
                   3907: 
1.15      bertrand 3908: depcc="$CC"   am_compiler_list=
1.14      bertrand 3909: 
1.15      bertrand 3910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3911: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   3912: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
                   3913:   $as_echo_n "(cached) " >&6
1.14      bertrand 3914: else
1.15      bertrand 3915:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3916:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3917:   # making bogus files that we don't know about and never remove.  For
                   3918:   # instance it was reported that on HP-UX the gcc test will end up
                   3919:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3920:   # in D'.
                   3921:   mkdir conftest.dir
                   3922:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3923:   # using a relative directory.
                   3924:   cp "$am_depcomp" conftest.dir
                   3925:   cd conftest.dir
                   3926:   # We will build objects and dependencies in a subdirectory because
                   3927:   # it helps to detect inapplicable dependency modes.  For instance
                   3928:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3929:   # side effect of compilation, but ICC will put the dependencies in
                   3930:   # the current directory while Tru64 will put them in the object
                   3931:   # directory.
                   3932:   mkdir sub
1.14      bertrand 3933: 
1.15      bertrand 3934:   am_cv_CC_dependencies_compiler_type=none
                   3935:   if test "$am_compiler_list" = ""; then
                   3936:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3937:   fi
                   3938:   am__universal=false
                   3939:   case " $depcc " in #(
                   3940:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3941:      esac
1.14      bertrand 3942: 
1.15      bertrand 3943:   for depmode in $am_compiler_list; do
                   3944:     # Setup a source with many dependencies, because some compilers
                   3945:     # like to wrap large dependency lists on column 80 (with \), and
                   3946:     # we should not choose a depcomp mode which is confused by this.
                   3947:     #
                   3948:     # We need to recreate these files for each test, as the compiler may
                   3949:     # overwrite some of them when testing with obscure command lines.
                   3950:     # This happens at least with the AIX C compiler.
                   3951:     : > sub/conftest.c
                   3952:     for i in 1 2 3 4 5 6; do
                   3953:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3954:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3955:       # Solaris 8's {/usr,}/bin/sh.
                   3956:       touch sub/conftst$i.h
                   3957:     done
                   3958:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3959: 
1.15      bertrand 3960:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3961:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3962:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3963:     # versions had trouble with output in subdirs
                   3964:     am__obj=sub/conftest.${OBJEXT-o}
                   3965:     am__minus_obj="-o $am__obj"
                   3966:     case $depmode in
                   3967:     gcc)
                   3968:       # This depmode causes a compiler race in universal mode.
                   3969:       test "$am__universal" = false || continue
                   3970:       ;;
                   3971:     nosideeffect)
                   3972:       # after this tag, mechanisms are not by side-effect, so they'll
                   3973:       # only be used when explicitly requested
                   3974:       if test "x$enable_dependency_tracking" = xyes; then
                   3975:    continue
                   3976:       else
                   3977:    break
                   3978:       fi
                   3979:       ;;
                   3980:     msvisualcpp | msvcmsys)
                   3981:       # This compiler won't grok `-c -o', but also, the minuso test has
                   3982:       # not run yet.  These depmodes are late enough in the game, and
                   3983:       # so weak that their functioning should not be impacted.
                   3984:       am__obj=conftest.${OBJEXT-o}
                   3985:       am__minus_obj=
                   3986:       ;;
                   3987:     none) break ;;
                   3988:     esac
                   3989:     if depmode=$depmode \
                   3990:        source=sub/conftest.c object=$am__obj \
                   3991:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   3992:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   3993:          >/dev/null 2>conftest.err &&
                   3994:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   3995:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   3996:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   3997:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   3998:       # icc doesn't choke on unknown options, it will just issue warnings
                   3999:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4000:       # that says an option was ignored or not supported.
                   4001:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4002:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4003:       # The diagnosis changed in icc 8.0:
                   4004:       #   icc: Command line remark: option '-MP' not supported
                   4005:       if (grep 'ignoring option' conftest.err ||
                   4006:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4007:         am_cv_CC_dependencies_compiler_type=$depmode
                   4008:         break
                   4009:       fi
                   4010:     fi
                   4011:   done
1.14      bertrand 4012: 
1.15      bertrand 4013:   cd ..
                   4014:   rm -rf conftest.dir
1.14      bertrand 4015: else
1.15      bertrand 4016:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4017: fi
                   4018: 
1.15      bertrand 4019: fi
                   4020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4021: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4022: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4023: 
1.15      bertrand 4024:  if
                   4025:   test "x$enable_dependency_tracking" != xno \
                   4026:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4027:   am__fastdepCC_TRUE=
                   4028:   am__fastdepCC_FALSE='#'
1.1       bertrand 4029: else
1.15      bertrand 4030:   am__fastdepCC_TRUE='#'
                   4031:   am__fastdepCC_FALSE=
                   4032: fi
                   4033: 
1.1       bertrand 4034: 
                   4035: 
1.30      bertrand 4036: EXT_SQL=
                   4037: 
1.15      bertrand 4038: if test x"$CC" != x""; then
                   4039:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4040:            awk -F. '{ printf("%s", $1);}'`
                   4041:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4042:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4043:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4044:        OPTIMISATION_C=-O3
                   4045:    else
1.23      bertrand 4046:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4047:                then
1.15      bertrand 4048:            OPTIMISATION_C=-O3
                   4049:        else
1.23      bertrand 4050:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4051:                OPTIMISATION_C=-O2
                   4052:            else
1.36      bertrand 4053:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4054:            fi
1.15      bertrand 4055:        fi
                   4056:    fi
1.14      bertrand 4057: fi
                   4058: 
1.15      bertrand 4059: if test "x$CC" != xcc; then
                   4060:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4061: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4062: else
1.15      bertrand 4063:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4064: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4065: fi
1.15      bertrand 4066: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4067:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.36      bertrand 4068: if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
1.15      bertrand 4069:   $as_echo_n "(cached) " >&6
1.1       bertrand 4070: else
1.15      bertrand 4071:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4072: /* end confdefs.h.  */
                   4073: 
                   4074: int
                   4075: main ()
                   4076: {
1.15      bertrand 4077: 
1.1       bertrand 4078:   ;
                   4079:   return 0;
                   4080: }
                   4081: _ACEOF
1.15      bertrand 4082: # Make sure it works both with $CC and with simple cc.
                   4083: # We do the test twice because some compilers refuse to overwrite an
                   4084: # existing .o file with -o, though they will create one.
                   4085: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4086: rm -f conftest2.*
                   4087: if { { case "(($ac_try" in
                   4088:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4089:   *) ac_try_echo=$ac_try;;
                   4090: esac
                   4091: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4092: $as_echo "$ac_try_echo"; } >&5
                   4093:   (eval "$ac_try") 2>&5
                   4094:   ac_status=$?
                   4095:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4096:   test $ac_status = 0; } &&
                   4097:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4098:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4099:   *) ac_try_echo=$ac_try;;
                   4100: esac
                   4101: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4102: $as_echo "$ac_try_echo"; } >&5
                   4103:   (eval "$ac_try") 2>&5
                   4104:   ac_status=$?
                   4105:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4106:   test $ac_status = 0; };
                   4107: then
                   4108:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4109:   if test "x$CC" != xcc; then
                   4110:     # Test first that cc exists at all.
                   4111:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4112:   { { case "(($ac_try" in
                   4113:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4114:   *) ac_try_echo=$ac_try;;
                   4115: esac
                   4116: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4117: $as_echo "$ac_try_echo"; } >&5
                   4118:   (eval "$ac_try") 2>&5
                   4119:   ac_status=$?
                   4120:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4121:   test $ac_status = 0; }; }; then
                   4122:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4123:       rm -f conftest2.*
                   4124:       if { { case "(($ac_try" in
                   4125:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4126:   *) ac_try_echo=$ac_try;;
                   4127: esac
                   4128: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4129: $as_echo "$ac_try_echo"; } >&5
                   4130:   (eval "$ac_try") 2>&5
                   4131:   ac_status=$?
                   4132:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4133:   test $ac_status = 0; } &&
                   4134:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4135:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4136:   *) ac_try_echo=$ac_try;;
                   4137: esac
1.15      bertrand 4138: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4139: $as_echo "$ac_try_echo"; } >&5
                   4140:   (eval "$ac_try") 2>&5
1.14      bertrand 4141:   ac_status=$?
1.15      bertrand 4142:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4143:   test $ac_status = 0; };
                   4144:       then
                   4145:    # cc works too.
                   4146:    :
                   4147:       else
                   4148:    # cc exists but doesn't like -o.
                   4149:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4150:       fi
                   4151:     fi
                   4152:   fi
1.1       bertrand 4153: else
1.15      bertrand 4154:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4155: fi
                   4156: rm -f core conftest*
1.14      bertrand 4157: 
1.1       bertrand 4158: fi
1.15      bertrand 4159: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4160:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4161: $as_echo "yes" >&6; }
                   4162: else
                   4163:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4164: $as_echo "no" >&6; }
                   4165: 
                   4166: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4167: 
                   4168: fi
1.15      bertrand 4169: 
                   4170: # FIXME: we rely on the cache variable name because
                   4171: # there is no other way.
                   4172: set dummy $CC
                   4173: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4174: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4175: if test "$am_t" != yes; then
                   4176:    # Losing compiler, so override with the script.
                   4177:    # FIXME: It is wrong to rewrite CC.
                   4178:    # But if we don't then we get into trouble of one sort or another.
                   4179:    # A longer-term fix would be to have automake use am__CC in this case,
                   4180:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4181:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4182: fi
1.14      bertrand 4183: 
                   4184: 
1.15      bertrand 4185: 
                   4186: if test "$GCC" != yes; then
1.36      bertrand 4187:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4188: fi
                   4189: 
                   4190: ac_ext=cpp
                   4191: ac_cpp='$CXXCPP $CPPFLAGS'
                   4192: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4193: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4194: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4195: if test -z "$CXX"; then
                   4196:   if test -n "$CCC"; then
                   4197:     CXX=$CCC
                   4198:   else
                   4199:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4200:   for ac_prog in g++
1.15      bertrand 4201:   do
                   4202:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4203: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4205: $as_echo_n "checking for $ac_word... " >&6; }
                   4206: if test "${ac_cv_prog_CXX+set}" = set; then :
                   4207:   $as_echo_n "(cached) " >&6
1.1       bertrand 4208: else
1.15      bertrand 4209:   if test -n "$CXX"; then
                   4210:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4211: else
1.15      bertrand 4212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4213: for as_dir in $PATH
                   4214: do
                   4215:   IFS=$as_save_IFS
                   4216:   test -z "$as_dir" && as_dir=.
                   4217:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4218:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4219:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4220:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4221:     break 2
                   4222:   fi
                   4223: done
                   4224:   done
                   4225: IFS=$as_save_IFS
1.14      bertrand 4226: 
                   4227: fi
                   4228: fi
1.15      bertrand 4229: CXX=$ac_cv_prog_CXX
                   4230: if test -n "$CXX"; then
                   4231:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4232: $as_echo "$CXX" >&6; }
1.14      bertrand 4233: else
1.15      bertrand 4234:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4235: $as_echo "no" >&6; }
1.14      bertrand 4236: fi
                   4237: 
                   4238: 
1.15      bertrand 4239:     test -n "$CXX" && break
                   4240:   done
                   4241: fi
                   4242: if test -z "$CXX"; then
                   4243:   ac_ct_CXX=$CXX
1.23      bertrand 4244:   for ac_prog in g++
1.15      bertrand 4245: do
                   4246:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4247: set dummy $ac_prog; ac_word=$2
                   4248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4249: $as_echo_n "checking for $ac_word... " >&6; }
                   4250: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
                   4251:   $as_echo_n "(cached) " >&6
                   4252: else
                   4253:   if test -n "$ac_ct_CXX"; then
                   4254:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4255: else
                   4256: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4257: for as_dir in $PATH
                   4258: do
                   4259:   IFS=$as_save_IFS
                   4260:   test -z "$as_dir" && as_dir=.
                   4261:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4262:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4263:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4264:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4265:     break 2
                   4266:   fi
                   4267: done
                   4268:   done
                   4269: IFS=$as_save_IFS
1.14      bertrand 4270: 
1.15      bertrand 4271: fi
                   4272: fi
                   4273: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4274: if test -n "$ac_ct_CXX"; then
                   4275:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4276: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4277: else
1.15      bertrand 4278:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4279: $as_echo "no" >&6; }
1.14      bertrand 4280: fi
                   4281: 
                   4282: 
1.15      bertrand 4283:   test -n "$ac_ct_CXX" && break
                   4284: done
1.14      bertrand 4285: 
1.15      bertrand 4286:   if test "x$ac_ct_CXX" = x; then
                   4287:     CXX="g++"
                   4288:   else
                   4289:     case $cross_compiling:$ac_tool_warned in
                   4290: yes:)
                   4291: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4292: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4293: ac_tool_warned=yes ;;
                   4294: esac
                   4295:     CXX=$ac_ct_CXX
                   4296:   fi
                   4297: fi
1.1       bertrand 4298: 
1.15      bertrand 4299:   fi
                   4300: fi
                   4301: # Provide some information about the compiler.
                   4302: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4303: set X $ac_compile
                   4304: ac_compiler=$2
                   4305: for ac_option in --version -v -V -qversion; do
                   4306:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4307: case "(($ac_try" in
                   4308:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4309:   *) ac_try_echo=$ac_try;;
                   4310: esac
1.15      bertrand 4311: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4312: $as_echo "$ac_try_echo"; } >&5
                   4313:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4314:   ac_status=$?
1.15      bertrand 4315:   if test -s conftest.err; then
                   4316:     sed '10a\
                   4317: ... rest of stderr output deleted ...
                   4318:          10q' conftest.err >conftest.er1
                   4319:     cat conftest.er1 >&5
                   4320:   fi
                   4321:   rm -f conftest.er1 conftest.err
                   4322:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4323:   test $ac_status = 0; }
                   4324: done
                   4325: 
                   4326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4327: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
                   4328: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
                   4329:   $as_echo_n "(cached) " >&6
1.14      bertrand 4330: else
1.15      bertrand 4331:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4332: /* end confdefs.h.  */
1.1       bertrand 4333: 
                   4334: int
                   4335: main ()
                   4336: {
1.15      bertrand 4337: #ifndef __GNUC__
                   4338:        choke me
                   4339: #endif
1.1       bertrand 4340: 
                   4341:   ;
                   4342:   return 0;
                   4343: }
                   4344: _ACEOF
1.15      bertrand 4345: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4346:   ac_compiler_gnu=yes
1.1       bertrand 4347: else
1.15      bertrand 4348:   ac_compiler_gnu=no
1.1       bertrand 4349: fi
1.14      bertrand 4350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4351: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4352: 
1.15      bertrand 4353: fi
                   4354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4355: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4356: if test $ac_compiler_gnu = yes; then
                   4357:   GXX=yes
                   4358: else
                   4359:   GXX=
                   4360: fi
                   4361: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4362: ac_save_CXXFLAGS=$CXXFLAGS
                   4363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4364: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
                   4365: if test "${ac_cv_prog_cxx_g+set}" = set; then :
                   4366:   $as_echo_n "(cached) " >&6
                   4367: else
                   4368:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4369:    ac_cxx_werror_flag=yes
                   4370:    ac_cv_prog_cxx_g=no
                   4371:    CXXFLAGS="-g"
                   4372:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4373: /* end confdefs.h.  */
1.15      bertrand 4374: 
1.1       bertrand 4375: int
                   4376: main ()
                   4377: {
1.14      bertrand 4378: 
1.1       bertrand 4379:   ;
                   4380:   return 0;
                   4381: }
                   4382: _ACEOF
1.15      bertrand 4383: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4384:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4385: else
1.15      bertrand 4386:   CXXFLAGS=""
                   4387:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4388: /* end confdefs.h.  */
1.1       bertrand 4389: 
1.14      bertrand 4390: int
                   4391: main ()
                   4392: {
1.1       bertrand 4393: 
1.14      bertrand 4394:   ;
                   4395:   return 0;
                   4396: }
                   4397: _ACEOF
1.15      bertrand 4398: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4399: 
                   4400: else
1.15      bertrand 4401:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4402:     CXXFLAGS="-g"
                   4403:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4404: /* end confdefs.h.  */
1.1       bertrand 4405: 
1.14      bertrand 4406: int
                   4407: main ()
                   4408: {
1.1       bertrand 4409: 
1.14      bertrand 4410:   ;
                   4411:   return 0;
                   4412: }
                   4413: _ACEOF
1.15      bertrand 4414: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4415:   ac_cv_prog_cxx_g=yes
                   4416: fi
                   4417: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4418: fi
                   4419: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4420: fi
                   4421: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4422:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4423: fi
                   4424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4425: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4426: if test "$ac_test_CXXFLAGS" = set; then
                   4427:   CXXFLAGS=$ac_save_CXXFLAGS
                   4428: elif test $ac_cv_prog_cxx_g = yes; then
                   4429:   if test "$GXX" = yes; then
                   4430:     CXXFLAGS="-g -O2"
                   4431:   else
                   4432:     CXXFLAGS="-g"
                   4433:   fi
                   4434: else
                   4435:   if test "$GXX" = yes; then
                   4436:     CXXFLAGS="-O2"
                   4437:   else
                   4438:     CXXFLAGS=
                   4439:   fi
                   4440: fi
                   4441: ac_ext=c
                   4442: ac_cpp='$CPP $CPPFLAGS'
                   4443: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4444: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4445: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4446: 
                   4447: depcc="$CXX"  am_compiler_list=
                   4448: 
                   4449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4450: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   4451: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
                   4452:   $as_echo_n "(cached) " >&6
                   4453: else
                   4454:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4455:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4456:   # making bogus files that we don't know about and never remove.  For
                   4457:   # instance it was reported that on HP-UX the gcc test will end up
                   4458:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4459:   # in D'.
                   4460:   mkdir conftest.dir
                   4461:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4462:   # using a relative directory.
                   4463:   cp "$am_depcomp" conftest.dir
                   4464:   cd conftest.dir
                   4465:   # We will build objects and dependencies in a subdirectory because
                   4466:   # it helps to detect inapplicable dependency modes.  For instance
                   4467:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4468:   # side effect of compilation, but ICC will put the dependencies in
                   4469:   # the current directory while Tru64 will put them in the object
                   4470:   # directory.
                   4471:   mkdir sub
                   4472: 
                   4473:   am_cv_CXX_dependencies_compiler_type=none
                   4474:   if test "$am_compiler_list" = ""; then
                   4475:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4476:   fi
                   4477:   am__universal=false
                   4478:   case " $depcc " in #(
                   4479:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4480:      esac
                   4481: 
                   4482:   for depmode in $am_compiler_list; do
                   4483:     # Setup a source with many dependencies, because some compilers
                   4484:     # like to wrap large dependency lists on column 80 (with \), and
                   4485:     # we should not choose a depcomp mode which is confused by this.
                   4486:     #
                   4487:     # We need to recreate these files for each test, as the compiler may
                   4488:     # overwrite some of them when testing with obscure command lines.
                   4489:     # This happens at least with the AIX C compiler.
                   4490:     : > sub/conftest.c
                   4491:     for i in 1 2 3 4 5 6; do
                   4492:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4493:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4494:       # Solaris 8's {/usr,}/bin/sh.
                   4495:       touch sub/conftst$i.h
                   4496:     done
                   4497:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4498: 
                   4499:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4500:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4501:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4502:     # versions had trouble with output in subdirs
                   4503:     am__obj=sub/conftest.${OBJEXT-o}
                   4504:     am__minus_obj="-o $am__obj"
                   4505:     case $depmode in
                   4506:     gcc)
                   4507:       # This depmode causes a compiler race in universal mode.
                   4508:       test "$am__universal" = false || continue
                   4509:       ;;
                   4510:     nosideeffect)
                   4511:       # after this tag, mechanisms are not by side-effect, so they'll
                   4512:       # only be used when explicitly requested
                   4513:       if test "x$enable_dependency_tracking" = xyes; then
                   4514:    continue
                   4515:       else
                   4516:    break
                   4517:       fi
                   4518:       ;;
                   4519:     msvisualcpp | msvcmsys)
                   4520:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4521:       # not run yet.  These depmodes are late enough in the game, and
                   4522:       # so weak that their functioning should not be impacted.
                   4523:       am__obj=conftest.${OBJEXT-o}
                   4524:       am__minus_obj=
                   4525:       ;;
                   4526:     none) break ;;
                   4527:     esac
                   4528:     if depmode=$depmode \
                   4529:        source=sub/conftest.c object=$am__obj \
                   4530:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4531:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4532:          >/dev/null 2>conftest.err &&
                   4533:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4534:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4535:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4536:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4537:       # icc doesn't choke on unknown options, it will just issue warnings
                   4538:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4539:       # that says an option was ignored or not supported.
                   4540:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4541:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4542:       # The diagnosis changed in icc 8.0:
                   4543:       #   icc: Command line remark: option '-MP' not supported
                   4544:       if (grep 'ignoring option' conftest.err ||
                   4545:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4546:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4547:         break
                   4548:       fi
                   4549:     fi
                   4550:   done
                   4551: 
                   4552:   cd ..
                   4553:   rm -rf conftest.dir
                   4554: else
                   4555:   am_cv_CXX_dependencies_compiler_type=none
                   4556: fi
                   4557: 
                   4558: fi
                   4559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4560: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4561: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4562: 
                   4563:  if
                   4564:   test "x$enable_dependency_tracking" != xno \
                   4565:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4566:   am__fastdepCXX_TRUE=
                   4567:   am__fastdepCXX_FALSE='#'
                   4568: else
                   4569:   am__fastdepCXX_TRUE='#'
                   4570:   am__fastdepCXX_FALSE=
                   4571: fi
                   4572: 
                   4573: 
                   4574: 
                   4575: if test "$GXX" != yes; then
1.36      bertrand 4576:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4577: fi
                   4578: 
                   4579: ac_ext=f
                   4580: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4581: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4582: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4583: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4584:   for ac_prog in gfortran
1.15      bertrand 4585:   do
                   4586:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4587: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4589: $as_echo_n "checking for $ac_word... " >&6; }
                   4590: if test "${ac_cv_prog_F77+set}" = set; then :
                   4591:   $as_echo_n "(cached) " >&6
                   4592: else
                   4593:   if test -n "$F77"; then
                   4594:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4595: else
                   4596: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4597: for as_dir in $PATH
                   4598: do
                   4599:   IFS=$as_save_IFS
                   4600:   test -z "$as_dir" && as_dir=.
                   4601:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4602:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4603:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4604:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4605:     break 2
                   4606:   fi
                   4607: done
                   4608:   done
                   4609: IFS=$as_save_IFS
                   4610: 
                   4611: fi
                   4612: fi
                   4613: F77=$ac_cv_prog_F77
                   4614: if test -n "$F77"; then
                   4615:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4616: $as_echo "$F77" >&6; }
                   4617: else
                   4618:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4619: $as_echo "no" >&6; }
                   4620: fi
                   4621: 
                   4622: 
                   4623:     test -n "$F77" && break
                   4624:   done
                   4625: fi
                   4626: if test -z "$F77"; then
                   4627:   ac_ct_F77=$F77
1.23      bertrand 4628:   for ac_prog in gfortran
1.15      bertrand 4629: do
                   4630:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4631: set dummy $ac_prog; ac_word=$2
                   4632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4633: $as_echo_n "checking for $ac_word... " >&6; }
                   4634: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
                   4635:   $as_echo_n "(cached) " >&6
                   4636: else
                   4637:   if test -n "$ac_ct_F77"; then
                   4638:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4639: else
                   4640: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4641: for as_dir in $PATH
                   4642: do
                   4643:   IFS=$as_save_IFS
                   4644:   test -z "$as_dir" && as_dir=.
                   4645:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4646:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4647:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4648:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4649:     break 2
                   4650:   fi
                   4651: done
                   4652:   done
                   4653: IFS=$as_save_IFS
                   4654: 
                   4655: fi
                   4656: fi
                   4657: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4658: if test -n "$ac_ct_F77"; then
                   4659:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4660: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4661: else
1.15      bertrand 4662:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4663: $as_echo "no" >&6; }
                   4664: fi
                   4665: 
                   4666: 
                   4667:   test -n "$ac_ct_F77" && break
                   4668: done
1.1       bertrand 4669: 
1.15      bertrand 4670:   if test "x$ac_ct_F77" = x; then
                   4671:     F77=""
                   4672:   else
                   4673:     case $cross_compiling:$ac_tool_warned in
                   4674: yes:)
                   4675: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4676: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4677: ac_tool_warned=yes ;;
                   4678: esac
                   4679:     F77=$ac_ct_F77
                   4680:   fi
1.14      bertrand 4681: fi
1.1       bertrand 4682: 
                   4683: 
1.15      bertrand 4684: # Provide some information about the compiler.
                   4685: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4686: set X $ac_compile
                   4687: ac_compiler=$2
                   4688: for ac_option in --version -v -V -qversion; do
                   4689:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4690: case "(($ac_try" in
                   4691:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4692:   *) ac_try_echo=$ac_try;;
                   4693: esac
1.15      bertrand 4694: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4695: $as_echo "$ac_try_echo"; } >&5
                   4696:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4697:   ac_status=$?
1.15      bertrand 4698:   if test -s conftest.err; then
                   4699:     sed '10a\
                   4700: ... rest of stderr output deleted ...
                   4701:          10q' conftest.err >conftest.er1
                   4702:     cat conftest.er1 >&5
                   4703:   fi
                   4704:   rm -f conftest.er1 conftest.err
                   4705:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4706:   test $ac_status = 0; }
                   4707: done
                   4708: rm -f a.out
                   4709: 
                   4710: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4711: # input file.  (Note that this only needs to work for GNU compilers.)
                   4712: ac_save_ext=$ac_ext
                   4713: ac_ext=F
                   4714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4715: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
                   4716: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
                   4717:   $as_echo_n "(cached) " >&6
1.1       bertrand 4718: else
1.15      bertrand 4719:   cat > conftest.$ac_ext <<_ACEOF
                   4720:       program main
                   4721: #ifndef __GNUC__
                   4722:        choke me
                   4723: #endif
1.14      bertrand 4724: 
1.15      bertrand 4725:       end
                   4726: _ACEOF
                   4727: if ac_fn_f77_try_compile "$LINENO"; then :
                   4728:   ac_compiler_gnu=yes
                   4729: else
                   4730:   ac_compiler_gnu=no
1.1       bertrand 4731: fi
1.15      bertrand 4732: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4733: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4734: 
                   4735: fi
1.15      bertrand 4736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4737: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4738: ac_ext=$ac_save_ext
                   4739: ac_test_FFLAGS=${FFLAGS+set}
                   4740: ac_save_FFLAGS=$FFLAGS
                   4741: FFLAGS=
                   4742: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4743: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
                   4744: if test "${ac_cv_prog_f77_g+set}" = set; then :
                   4745:   $as_echo_n "(cached) " >&6
                   4746: else
                   4747:   FFLAGS=-g
                   4748: cat > conftest.$ac_ext <<_ACEOF
                   4749:       program main
1.1       bertrand 4750: 
1.15      bertrand 4751:       end
1.14      bertrand 4752: _ACEOF
1.15      bertrand 4753: if ac_fn_f77_try_compile "$LINENO"; then :
                   4754:   ac_cv_prog_f77_g=yes
1.1       bertrand 4755: else
1.15      bertrand 4756:   ac_cv_prog_f77_g=no
1.1       bertrand 4757: fi
1.15      bertrand 4758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4759: 
                   4760: fi
1.15      bertrand 4761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4762: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4763: if test "$ac_test_FFLAGS" = set; then
                   4764:   FFLAGS=$ac_save_FFLAGS
                   4765: elif test $ac_cv_prog_f77_g = yes; then
                   4766:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4767:     FFLAGS="-g -O2"
                   4768:   else
                   4769:     FFLAGS="-g"
                   4770:   fi
                   4771: else
                   4772:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4773:     FFLAGS="-O2"
                   4774:   else
                   4775:     FFLAGS=
                   4776:   fi
1.1       bertrand 4777: fi
                   4778: 
1.15      bertrand 4779: if test $ac_compiler_gnu = yes; then
                   4780:   G77=yes
1.1       bertrand 4781: else
1.15      bertrand 4782:   G77=
1.1       bertrand 4783: fi
1.15      bertrand 4784: ac_ext=c
                   4785: ac_cpp='$CPP $CPPFLAGS'
                   4786: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4787: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4788: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4789: 
                   4790: 
1.15      bertrand 4791: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36      bertrand 4792:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15      bertrand 4793: fi
1.14      bertrand 4794: 
1.15      bertrand 4795: ac_ext=${ac_fc_srcext-f}
                   4796: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4797: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4798: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4799: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4800:   for ac_prog in gfortran
1.15      bertrand 4801:   do
                   4802:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4803: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4805: $as_echo_n "checking for $ac_word... " >&6; }
                   4806: if test "${ac_cv_prog_FC+set}" = set; then :
                   4807:   $as_echo_n "(cached) " >&6
                   4808: else
                   4809:   if test -n "$FC"; then
                   4810:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4811: else
1.15      bertrand 4812: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4813: for as_dir in $PATH
                   4814: do
                   4815:   IFS=$as_save_IFS
                   4816:   test -z "$as_dir" && as_dir=.
                   4817:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4818:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4819:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4820:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4821:     break 2
                   4822:   fi
                   4823: done
                   4824:   done
                   4825: IFS=$as_save_IFS
1.1       bertrand 4826: 
                   4827: fi
1.15      bertrand 4828: fi
                   4829: FC=$ac_cv_prog_FC
                   4830: if test -n "$FC"; then
                   4831:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4832: $as_echo "$FC" >&6; }
1.14      bertrand 4833: else
1.15      bertrand 4834:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4835: $as_echo "no" >&6; }
1.14      bertrand 4836: fi
                   4837: 
1.1       bertrand 4838: 
1.15      bertrand 4839:     test -n "$FC" && break
                   4840:   done
                   4841: fi
                   4842: if test -z "$FC"; then
                   4843:   ac_ct_FC=$FC
1.23      bertrand 4844:   for ac_prog in gfortran
1.15      bertrand 4845: do
                   4846:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4847: set dummy $ac_prog; ac_word=$2
                   4848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4849: $as_echo_n "checking for $ac_word... " >&6; }
                   4850: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
                   4851:   $as_echo_n "(cached) " >&6
                   4852: else
                   4853:   if test -n "$ac_ct_FC"; then
                   4854:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4855: else
                   4856: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4857: for as_dir in $PATH
                   4858: do
                   4859:   IFS=$as_save_IFS
                   4860:   test -z "$as_dir" && as_dir=.
                   4861:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4862:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4863:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4864:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4865:     break 2
                   4866:   fi
                   4867: done
                   4868:   done
                   4869: IFS=$as_save_IFS
1.1       bertrand 4870: 
1.15      bertrand 4871: fi
                   4872: fi
                   4873: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4874: if test -n "$ac_ct_FC"; then
                   4875:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4876: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4877: else
1.15      bertrand 4878:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4879: $as_echo "no" >&6; }
1.1       bertrand 4880: fi
1.14      bertrand 4881: 
1.1       bertrand 4882: 
1.15      bertrand 4883:   test -n "$ac_ct_FC" && break
                   4884: done
1.1       bertrand 4885: 
1.15      bertrand 4886:   if test "x$ac_ct_FC" = x; then
                   4887:     FC=""
                   4888:   else
                   4889:     case $cross_compiling:$ac_tool_warned in
                   4890: yes:)
                   4891: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4892: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4893: ac_tool_warned=yes ;;
1.14      bertrand 4894: esac
1.15      bertrand 4895:     FC=$ac_ct_FC
                   4896:   fi
1.14      bertrand 4897: fi
                   4898: 
                   4899: 
1.15      bertrand 4900: # Provide some information about the compiler.
                   4901: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4902: set X $ac_compile
                   4903: ac_compiler=$2
                   4904: for ac_option in --version -v -V -qversion; do
                   4905:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4906: case "(($ac_try" in
                   4907:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4908:   *) ac_try_echo=$ac_try;;
                   4909: esac
1.15      bertrand 4910: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4911: $as_echo "$ac_try_echo"; } >&5
                   4912:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4913:   ac_status=$?
1.15      bertrand 4914:   if test -s conftest.err; then
                   4915:     sed '10a\
                   4916: ... rest of stderr output deleted ...
                   4917:          10q' conftest.err >conftest.er1
                   4918:     cat conftest.er1 >&5
                   4919:   fi
                   4920:   rm -f conftest.er1 conftest.err
                   4921:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4922:   test $ac_status = 0; }
                   4923: done
                   4924: rm -f a.out
                   4925: 
                   4926: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4927: # input file.  (Note that this only needs to work for GNU compilers.)
                   4928: ac_save_ext=$ac_ext
                   4929: ac_ext=F
                   4930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4931: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
                   4932: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
                   4933:   $as_echo_n "(cached) " >&6
1.14      bertrand 4934: else
1.15      bertrand 4935:   cat > conftest.$ac_ext <<_ACEOF
                   4936:       program main
                   4937: #ifndef __GNUC__
                   4938:        choke me
                   4939: #endif
1.14      bertrand 4940: 
1.15      bertrand 4941:       end
                   4942: _ACEOF
                   4943: if ac_fn_fc_try_compile "$LINENO"; then :
                   4944:   ac_compiler_gnu=yes
                   4945: else
                   4946:   ac_compiler_gnu=no
1.14      bertrand 4947: fi
                   4948: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4949: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4950: 
1.15      bertrand 4951: fi
                   4952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4953: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4954: ac_ext=$ac_save_ext
                   4955: ac_test_FCFLAGS=${FCFLAGS+set}
                   4956: ac_save_FCFLAGS=$FCFLAGS
                   4957: FCFLAGS=
                   4958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   4959: $as_echo_n "checking whether $FC accepts -g... " >&6; }
                   4960: if test "${ac_cv_prog_fc_g+set}" = set; then :
                   4961:   $as_echo_n "(cached) " >&6
                   4962: else
                   4963:   FCFLAGS=-g
                   4964: cat > conftest.$ac_ext <<_ACEOF
                   4965:       program main
1.1       bertrand 4966: 
1.15      bertrand 4967:       end
1.1       bertrand 4968: _ACEOF
1.15      bertrand 4969: if ac_fn_fc_try_compile "$LINENO"; then :
                   4970:   ac_cv_prog_fc_g=yes
1.1       bertrand 4971: else
1.15      bertrand 4972:   ac_cv_prog_fc_g=no
1.1       bertrand 4973: fi
1.14      bertrand 4974: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4975: 
1.15      bertrand 4976: fi
                   4977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   4978: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   4979: if test "$ac_test_FCFLAGS" = set; then
                   4980:   FCFLAGS=$ac_save_FCFLAGS
                   4981: elif test $ac_cv_prog_fc_g = yes; then
                   4982:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4983:     FCFLAGS="-g -O2"
                   4984:   else
                   4985:     FCFLAGS="-g"
                   4986:   fi
1.1       bertrand 4987: else
1.15      bertrand 4988:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4989:     FCFLAGS="-O2"
                   4990:   else
                   4991:     FCFLAGS=
                   4992:   fi
1.1       bertrand 4993: fi
                   4994: 
1.15      bertrand 4995: ac_ext=c
                   4996: ac_cpp='$CPP $CPPFLAGS'
                   4997: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4998: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4999: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5000: 
                   5001: 
1.15      bertrand 5002: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36      bertrand 5003:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5004: fi
                   5005: 
1.15      bertrand 5006: if test x"$FC" != x""; then
                   5007:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5008:            awk -F. '{ printf("%s", $1);}'`
                   5009:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5010:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5011:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5012:        OPTIMISATION_F=-O3
                   5013:    else
1.23      bertrand 5014:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5015:            OPTIMISATION_F=-O3
                   5016:        else
1.23      bertrand 5017:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5018:                OPTIMISATION_F=-O2
                   5019:            else
1.36      bertrand 5020:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5021:            fi
1.14      bertrand 5022:        fi
                   5023:    fi
                   5024: fi
1.1       bertrand 5025: 
                   5026: 
1.15      bertrand 5027: ac_ext=c
                   5028: ac_cpp='$CPP $CPPFLAGS'
                   5029: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5030: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5031: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5033: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5034: # On Suns, sometimes $CPP names a directory.
                   5035: if test -n "$CPP" && test -d "$CPP"; then
                   5036:   CPP=
                   5037: fi
                   5038: if test -z "$CPP"; then
                   5039:   if test "${ac_cv_prog_CPP+set}" = set; then :
                   5040:   $as_echo_n "(cached) " >&6
                   5041: else
                   5042:       # Double quotes because CPP needs to be expanded
                   5043:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5044:     do
                   5045:       ac_preproc_ok=false
                   5046: for ac_c_preproc_warn_flag in '' yes
                   5047: do
                   5048:   # Use a header file that comes with gcc, so configuring glibc
                   5049:   # with a fresh cross-compiler works.
                   5050:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5051:   # <limits.h> exists even on freestanding compilers.
                   5052:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5053:   # not just through cpp. "Syntax error" is here to catch this case.
                   5054:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5055: /* end confdefs.h.  */
1.15      bertrand 5056: #ifdef __STDC__
                   5057: # include <limits.h>
                   5058: #else
                   5059: # include <assert.h>
                   5060: #endif
                   5061:             Syntax error
1.1       bertrand 5062: _ACEOF
1.15      bertrand 5063: if ac_fn_c_try_cpp "$LINENO"; then :
                   5064: 
1.1       bertrand 5065: else
1.15      bertrand 5066:   # Broken: fails on valid input.
                   5067: continue
1.1       bertrand 5068: fi
1.36      bertrand 5069: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5070: 
1.15      bertrand 5071:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5072:   # can be detected and how.
                   5073:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5074: /* end confdefs.h.  */
                   5075: #include <ac_nonexistent.h>
                   5076: _ACEOF
                   5077: if ac_fn_c_try_cpp "$LINENO"; then :
                   5078:   # Broken: success on invalid input.
                   5079: continue
                   5080: else
                   5081:   # Passes both tests.
                   5082: ac_preproc_ok=:
                   5083: break
1.1       bertrand 5084: fi
1.36      bertrand 5085: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5086: 
1.15      bertrand 5087: done
                   5088: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5089: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5090: if $ac_preproc_ok; then :
                   5091:   break
1.1       bertrand 5092: fi
                   5093: 
1.15      bertrand 5094:     done
                   5095:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5096: 
1.15      bertrand 5097: fi
                   5098:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5099: else
1.15      bertrand 5100:   ac_cv_prog_CPP=$CPP
                   5101: fi
                   5102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5103: $as_echo "$CPP" >&6; }
                   5104: ac_preproc_ok=false
                   5105: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5106: do
1.15      bertrand 5107:   # Use a header file that comes with gcc, so configuring glibc
                   5108:   # with a fresh cross-compiler works.
                   5109:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5110:   # <limits.h> exists even on freestanding compilers.
                   5111:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5112:   # not just through cpp. "Syntax error" is here to catch this case.
                   5113:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5114: /* end confdefs.h.  */
                   5115: #ifdef __STDC__
                   5116: # include <limits.h>
                   5117: #else
                   5118: # include <assert.h>
                   5119: #endif
                   5120:             Syntax error
                   5121: _ACEOF
                   5122: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5123: 
1.15      bertrand 5124: else
                   5125:   # Broken: fails on valid input.
                   5126: continue
                   5127: fi
1.36      bertrand 5128: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5129: 
1.15      bertrand 5130:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5131:   # can be detected and how.
                   5132:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5133: /* end confdefs.h.  */
                   5134: #include <ac_nonexistent.h>
                   5135: _ACEOF
                   5136: if ac_fn_c_try_cpp "$LINENO"; then :
                   5137:   # Broken: success on invalid input.
                   5138: continue
                   5139: else
                   5140:   # Passes both tests.
                   5141: ac_preproc_ok=:
                   5142: break
                   5143: fi
1.36      bertrand 5144: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5145: 
                   5146: done
1.15      bertrand 5147: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5148: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5149: if $ac_preproc_ok; then :
1.1       bertrand 5150: 
1.15      bertrand 5151: else
                   5152:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5153: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5154: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   5155: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 5156: fi
1.14      bertrand 5157: 
1.15      bertrand 5158: ac_ext=c
                   5159: ac_cpp='$CPP $CPPFLAGS'
                   5160: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5161: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5162: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5163: 
                   5164: 
1.15      bertrand 5165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5166: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5167: 
                   5168: 
1.15      bertrand 5169: # Check whether --with-x was given.
                   5170: if test "${with_x+set}" = set; then :
                   5171:   withval=$with_x;
1.1       bertrand 5172: fi
1.14      bertrand 5173: 
1.15      bertrand 5174: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5175: if test "x$with_x" = xno; then
                   5176:   # The user explicitly disabled X.
                   5177:   have_x=disabled
1.1       bertrand 5178: else
1.15      bertrand 5179:   case $x_includes,$x_libraries in #(
1.36      bertrand 5180:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
1.15      bertrand 5181:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
                   5182:   $as_echo_n "(cached) " >&6
1.1       bertrand 5183: else
1.15      bertrand 5184:   # One or both of the vars are not set, and there is no cached value.
                   5185: ac_x_includes=no ac_x_libraries=no
                   5186: rm -f -r conftest.dir
                   5187: if mkdir conftest.dir; then
                   5188:   cd conftest.dir
                   5189:   cat >Imakefile <<'_ACEOF'
                   5190: incroot:
                   5191:    @echo incroot='${INCROOT}'
                   5192: usrlibdir:
                   5193:    @echo usrlibdir='${USRLIBDIR}'
                   5194: libdir:
                   5195:    @echo libdir='${LIBDIR}'
                   5196: _ACEOF
                   5197:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5198:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5199:     for ac_var in incroot usrlibdir libdir; do
                   5200:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5201:     done
                   5202:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5203:     for ac_extension in a so sl dylib la dll; do
                   5204:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5205:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5206:    ac_im_usrlibdir=$ac_im_libdir; break
                   5207:       fi
                   5208:     done
                   5209:     # Screen out bogus values from the imake configuration.  They are
                   5210:     # bogus both because they are the default anyway, and because
                   5211:     # using them would break gcc on systems where it needs fixed includes.
                   5212:     case $ac_im_incroot in
                   5213:    /usr/include) ac_x_includes= ;;
                   5214:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5215:     esac
                   5216:     case $ac_im_usrlibdir in
                   5217:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5218:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5219:     esac
                   5220:   fi
                   5221:   cd ..
                   5222:   rm -f -r conftest.dir
                   5223: fi
                   5224: 
                   5225: # Standard set of common directories for X headers.
                   5226: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5227: ac_x_header_dirs='
                   5228: /usr/X11/include
                   5229: /usr/X11R7/include
                   5230: /usr/X11R6/include
                   5231: /usr/X11R5/include
                   5232: /usr/X11R4/include
1.1       bertrand 5233: 
1.15      bertrand 5234: /usr/include/X11
                   5235: /usr/include/X11R7
                   5236: /usr/include/X11R6
                   5237: /usr/include/X11R5
                   5238: /usr/include/X11R4
1.1       bertrand 5239: 
1.15      bertrand 5240: /usr/local/X11/include
                   5241: /usr/local/X11R7/include
                   5242: /usr/local/X11R6/include
                   5243: /usr/local/X11R5/include
                   5244: /usr/local/X11R4/include
1.1       bertrand 5245: 
1.15      bertrand 5246: /usr/local/include/X11
                   5247: /usr/local/include/X11R7
                   5248: /usr/local/include/X11R6
                   5249: /usr/local/include/X11R5
                   5250: /usr/local/include/X11R4
1.1       bertrand 5251: 
1.15      bertrand 5252: /usr/X386/include
                   5253: /usr/x386/include
                   5254: /usr/XFree86/include/X11
1.1       bertrand 5255: 
1.15      bertrand 5256: /usr/include
                   5257: /usr/local/include
                   5258: /usr/unsupported/include
                   5259: /usr/athena/include
                   5260: /usr/local/x11r5/include
                   5261: /usr/lpp/Xamples/include
1.1       bertrand 5262: 
1.15      bertrand 5263: /usr/openwin/include
                   5264: /usr/openwin/share/include'
1.1       bertrand 5265: 
1.15      bertrand 5266: if test "$ac_x_includes" = no; then
                   5267:   # Guess where to find include files, by looking for Xlib.h.
                   5268:   # First, try using that file with no special directory specified.
                   5269:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5270: /* end confdefs.h.  */
                   5271: #include <X11/Xlib.h>
                   5272: _ACEOF
                   5273: if ac_fn_c_try_cpp "$LINENO"; then :
                   5274:   # We can compile using X headers with no special include directory.
                   5275: ac_x_includes=
1.1       bertrand 5276: else
1.15      bertrand 5277:   for ac_dir in $ac_x_header_dirs; do
                   5278:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5279:     ac_x_includes=$ac_dir
                   5280:     break
                   5281:   fi
                   5282: done
1.1       bertrand 5283: fi
1.36      bertrand 5284: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5285: fi # $ac_x_includes = no
1.1       bertrand 5286: 
1.15      bertrand 5287: if test "$ac_x_libraries" = no; then
                   5288:   # Check for the libraries.
                   5289:   # See if we find them without any special options.
                   5290:   # Don't add to $LIBS permanently.
                   5291:   ac_save_LIBS=$LIBS
                   5292:   LIBS="-lX11 $LIBS"
                   5293:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5294: /* end confdefs.h.  */
1.15      bertrand 5295: #include <X11/Xlib.h>
1.14      bertrand 5296: int
                   5297: main ()
                   5298: {
1.15      bertrand 5299: XrmInitialize ()
1.14      bertrand 5300:   ;
                   5301:   return 0;
                   5302: }
1.1       bertrand 5303: _ACEOF
1.15      bertrand 5304: if ac_fn_c_try_link "$LINENO"; then :
                   5305:   LIBS=$ac_save_LIBS
                   5306: # We can link X programs with no special library path.
                   5307: ac_x_libraries=
1.1       bertrand 5308: else
1.15      bertrand 5309:   LIBS=$ac_save_LIBS
                   5310: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5311: do
                   5312:   # Don't even attempt the hair of trying to link an X program!
                   5313:   for ac_extension in a so sl dylib la dll; do
                   5314:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5315:       ac_x_libraries=$ac_dir
                   5316:       break 2
                   5317:     fi
                   5318:   done
                   5319: done
                   5320: fi
                   5321: rm -f core conftest.err conftest.$ac_objext \
                   5322:     conftest$ac_exeext conftest.$ac_ext
                   5323: fi # $ac_x_libraries = no
1.1       bertrand 5324: 
1.15      bertrand 5325: case $ac_x_includes,$ac_x_libraries in #(
                   5326:   no,* | *,no | *\'*)
                   5327:     # Didn't find X, or a directory has "'" in its name.
                   5328:     ac_cv_have_x="have_x=no";; #(
                   5329:   *)
                   5330:     # Record where we found X for the cache.
                   5331:     ac_cv_have_x="have_x=yes\
                   5332:    ac_x_includes='$ac_x_includes'\
                   5333:    ac_x_libraries='$ac_x_libraries'"
                   5334: esac
1.1       bertrand 5335: fi
1.15      bertrand 5336: ;; #(
                   5337:     *) have_x=yes;;
                   5338:   esac
                   5339:   eval "$ac_cv_have_x"
                   5340: fi # $with_x != no
1.1       bertrand 5341: 
1.15      bertrand 5342: if test "$have_x" != yes; then
                   5343:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5344: $as_echo "$have_x" >&6; }
                   5345:   no_x=yes
1.14      bertrand 5346: else
1.15      bertrand 5347:   # If each of the values was on the command line, it overrides each guess.
                   5348:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5349:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5350:   # Update the cache value to reflect the command line values.
                   5351:   ac_cv_have_x="have_x=yes\
                   5352:    ac_x_includes='$x_includes'\
                   5353:    ac_x_libraries='$x_libraries'"
                   5354:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5355: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5356: fi
1.1       bertrand 5357: 
1.15      bertrand 5358: if test "$no_x" = yes; then
                   5359:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5360: 
1.15      bertrand 5361: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5362: 
1.15      bertrand 5363:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5364: else
1.15      bertrand 5365:   if test -n "$x_includes"; then
                   5366:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5367:   fi
                   5368: 
                   5369:   # It would also be nice to do this for all -L options, not just this one.
                   5370:   if test -n "$x_libraries"; then
                   5371:     X_LIBS="$X_LIBS -L$x_libraries"
                   5372:     # For Solaris; some versions of Sun CC require a space after -R and
                   5373:     # others require no space.  Words are not sufficient . . . .
                   5374:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5375: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5376:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5377:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5378:     ac_c_werror_flag=yes
                   5379:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5380: /* end confdefs.h.  */
1.1       bertrand 5381: 
1.15      bertrand 5382: int
                   5383: main ()
                   5384: {
1.1       bertrand 5385: 
1.15      bertrand 5386:   ;
                   5387:   return 0;
                   5388: }
                   5389: _ACEOF
                   5390: if ac_fn_c_try_link "$LINENO"; then :
                   5391:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5392: $as_echo "no" >&6; }
                   5393:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5394: else
1.15      bertrand 5395:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5396:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5397: /* end confdefs.h.  */
1.1       bertrand 5398: 
1.14      bertrand 5399: int
                   5400: main ()
                   5401: {
1.15      bertrand 5402: 
                   5403:   ;
1.14      bertrand 5404:   return 0;
                   5405: }
                   5406: _ACEOF
1.15      bertrand 5407: if ac_fn_c_try_link "$LINENO"; then :
                   5408:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5409: $as_echo "yes" >&6; }
                   5410:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5411: else
1.15      bertrand 5412:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5413: $as_echo "neither works" >&6; }
1.14      bertrand 5414: fi
1.15      bertrand 5415: rm -f core conftest.err conftest.$ac_objext \
                   5416:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5417: fi
1.15      bertrand 5418: rm -f core conftest.err conftest.$ac_objext \
                   5419:     conftest$ac_exeext conftest.$ac_ext
                   5420:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5421:     LIBS=$ac_xsave_LIBS
                   5422:   fi
1.1       bertrand 5423: 
1.15      bertrand 5424:   # Check for system-dependent libraries X programs must link with.
                   5425:   # Do this before checking for the system-independent R6 libraries
                   5426:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5427: 
1.15      bertrand 5428:   if test "$ISC" = yes; then
                   5429:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5430:   else
                   5431:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5432:     # libraries were built with DECnet support.  And Karl Berry says
                   5433:     # the Alpha needs dnet_stub (dnet does not exist).
                   5434:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5435:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5436: /* end confdefs.h.  */
1.1       bertrand 5437: 
1.15      bertrand 5438: /* Override any GCC internal prototype to avoid an error.
                   5439:    Use char because int might match the return type of a GCC
                   5440:    builtin and then its argument prototype would still apply.  */
                   5441: #ifdef __cplusplus
                   5442: extern "C"
                   5443: #endif
                   5444: char XOpenDisplay ();
                   5445: int
                   5446: main ()
                   5447: {
                   5448: return XOpenDisplay ();
                   5449:   ;
                   5450:   return 0;
                   5451: }
1.1       bertrand 5452: _ACEOF
1.15      bertrand 5453: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5454: 
                   5455: else
1.15      bertrand 5456:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5457: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
                   5458: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
                   5459:   $as_echo_n "(cached) " >&6
                   5460: else
                   5461:   ac_check_lib_save_LIBS=$LIBS
                   5462: LIBS="-ldnet  $LIBS"
                   5463: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5464: /* end confdefs.h.  */
1.14      bertrand 5465: 
1.15      bertrand 5466: /* Override any GCC internal prototype to avoid an error.
                   5467:    Use char because int might match the return type of a GCC
                   5468:    builtin and then its argument prototype would still apply.  */
                   5469: #ifdef __cplusplus
                   5470: extern "C"
                   5471: #endif
                   5472: char dnet_ntoa ();
                   5473: int
                   5474: main ()
                   5475: {
                   5476: return dnet_ntoa ();
                   5477:   ;
                   5478:   return 0;
                   5479: }
1.1       bertrand 5480: _ACEOF
1.15      bertrand 5481: if ac_fn_c_try_link "$LINENO"; then :
                   5482:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5483: else
1.15      bertrand 5484:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5485: fi
1.15      bertrand 5486: rm -f core conftest.err conftest.$ac_objext \
                   5487:     conftest$ac_exeext conftest.$ac_ext
                   5488: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5489: fi
1.15      bertrand 5490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5491: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
                   5492: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
                   5493:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5494: fi
                   5495: 
1.15      bertrand 5496:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5497:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5498: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
                   5499: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
                   5500:   $as_echo_n "(cached) " >&6
1.14      bertrand 5501: else
1.15      bertrand 5502:   ac_check_lib_save_LIBS=$LIBS
                   5503: LIBS="-ldnet_stub  $LIBS"
                   5504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5505: /* end confdefs.h.  */
1.15      bertrand 5506: 
                   5507: /* Override any GCC internal prototype to avoid an error.
                   5508:    Use char because int might match the return type of a GCC
                   5509:    builtin and then its argument prototype would still apply.  */
                   5510: #ifdef __cplusplus
                   5511: extern "C"
                   5512: #endif
                   5513: char dnet_ntoa ();
1.1       bertrand 5514: int
                   5515: main ()
                   5516: {
1.15      bertrand 5517: return dnet_ntoa ();
1.1       bertrand 5518:   ;
                   5519:   return 0;
                   5520: }
                   5521: _ACEOF
1.15      bertrand 5522: if ac_fn_c_try_link "$LINENO"; then :
                   5523:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5524: else
1.15      bertrand 5525:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5526: fi
                   5527: rm -f core conftest.err conftest.$ac_objext \
                   5528:     conftest$ac_exeext conftest.$ac_ext
                   5529: LIBS=$ac_check_lib_save_LIBS
                   5530: fi
                   5531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5532: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
                   5533: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
                   5534:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5535: fi
1.14      bertrand 5536: 
1.15      bertrand 5537:     fi
1.1       bertrand 5538: fi
1.15      bertrand 5539: rm -f core conftest.err conftest.$ac_objext \
                   5540:     conftest$ac_exeext conftest.$ac_ext
                   5541:     LIBS="$ac_xsave_LIBS"
                   5542: 
                   5543:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5544:     # to get the SysV transport functions.
                   5545:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5546:     # needs -lnsl.
                   5547:     # The nsl library prevents programs from opening the X display
                   5548:     # on Irix 5.2, according to T.E. Dickey.
                   5549:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5550:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5551:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
                   5552: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1       bertrand 5553: 
                   5554: fi
                   5555: 
1.15      bertrand 5556:     if test $ac_cv_func_gethostbyname = no; then
                   5557:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5558: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
                   5559: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
                   5560:   $as_echo_n "(cached) " >&6
1.1       bertrand 5561: else
1.15      bertrand 5562:   ac_check_lib_save_LIBS=$LIBS
                   5563: LIBS="-lnsl  $LIBS"
                   5564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5565: /* end confdefs.h.  */
1.15      bertrand 5566: 
                   5567: /* Override any GCC internal prototype to avoid an error.
                   5568:    Use char because int might match the return type of a GCC
                   5569:    builtin and then its argument prototype would still apply.  */
                   5570: #ifdef __cplusplus
                   5571: extern "C"
                   5572: #endif
                   5573: char gethostbyname ();
1.1       bertrand 5574: int
                   5575: main ()
                   5576: {
1.15      bertrand 5577: return gethostbyname ();
1.1       bertrand 5578:   ;
                   5579:   return 0;
                   5580: }
                   5581: _ACEOF
1.15      bertrand 5582: if ac_fn_c_try_link "$LINENO"; then :
                   5583:   ac_cv_lib_nsl_gethostbyname=yes
                   5584: else
                   5585:   ac_cv_lib_nsl_gethostbyname=no
                   5586: fi
                   5587: rm -f core conftest.err conftest.$ac_objext \
                   5588:     conftest$ac_exeext conftest.$ac_ext
                   5589: LIBS=$ac_check_lib_save_LIBS
                   5590: fi
                   5591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5592: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
                   5593: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
                   5594:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5595: fi
                   5596: 
                   5597:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5598:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5599: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
                   5600: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
                   5601:   $as_echo_n "(cached) " >&6
                   5602: else
                   5603:   ac_check_lib_save_LIBS=$LIBS
                   5604: LIBS="-lbsd  $LIBS"
                   5605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5606: /* end confdefs.h.  */
1.15      bertrand 5607: 
                   5608: /* Override any GCC internal prototype to avoid an error.
                   5609:    Use char because int might match the return type of a GCC
                   5610:    builtin and then its argument prototype would still apply.  */
                   5611: #ifdef __cplusplus
                   5612: extern "C"
                   5613: #endif
                   5614: char gethostbyname ();
1.1       bertrand 5615: int
                   5616: main ()
                   5617: {
1.15      bertrand 5618: return gethostbyname ();
1.1       bertrand 5619:   ;
                   5620:   return 0;
                   5621: }
                   5622: _ACEOF
1.15      bertrand 5623: if ac_fn_c_try_link "$LINENO"; then :
                   5624:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5625: else
1.15      bertrand 5626:   ac_cv_lib_bsd_gethostbyname=no
                   5627: fi
                   5628: rm -f core conftest.err conftest.$ac_objext \
                   5629:     conftest$ac_exeext conftest.$ac_ext
                   5630: LIBS=$ac_check_lib_save_LIBS
                   5631: fi
                   5632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5633: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
                   5634: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
                   5635:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5636: fi
                   5637: 
                   5638:       fi
                   5639:     fi
                   5640: 
                   5641:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5642:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5643:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5644:     # on later versions), says Simon Leinen: it contains gethostby*
                   5645:     # variants that don't use the name server (or something).  -lsocket
                   5646:     # must be given before -lnsl if both are needed.  We assume that
                   5647:     # if connect needs -lnsl, so does gethostbyname.
                   5648:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
                   5649: if test "x$ac_cv_func_connect" = x""yes; then :
1.14      bertrand 5650: 
1.1       bertrand 5651: fi
                   5652: 
1.15      bertrand 5653:     if test $ac_cv_func_connect = no; then
                   5654:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5655: $as_echo_n "checking for connect in -lsocket... " >&6; }
                   5656: if test "${ac_cv_lib_socket_connect+set}" = set; then :
                   5657:   $as_echo_n "(cached) " >&6
1.14      bertrand 5658: else
1.15      bertrand 5659:   ac_check_lib_save_LIBS=$LIBS
                   5660: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5662: /* end confdefs.h.  */
1.1       bertrand 5663: 
1.15      bertrand 5664: /* Override any GCC internal prototype to avoid an error.
                   5665:    Use char because int might match the return type of a GCC
                   5666:    builtin and then its argument prototype would still apply.  */
                   5667: #ifdef __cplusplus
                   5668: extern "C"
                   5669: #endif
                   5670: char connect ();
1.14      bertrand 5671: int
                   5672: main ()
                   5673: {
1.15      bertrand 5674: return connect ();
1.14      bertrand 5675:   ;
                   5676:   return 0;
                   5677: }
                   5678: _ACEOF
1.15      bertrand 5679: if ac_fn_c_try_link "$LINENO"; then :
                   5680:   ac_cv_lib_socket_connect=yes
                   5681: else
                   5682:   ac_cv_lib_socket_connect=no
                   5683: fi
                   5684: rm -f core conftest.err conftest.$ac_objext \
                   5685:     conftest$ac_exeext conftest.$ac_ext
                   5686: LIBS=$ac_check_lib_save_LIBS
                   5687: fi
                   5688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5689: $as_echo "$ac_cv_lib_socket_connect" >&6; }
                   5690: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
                   5691:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5692: fi
                   5693: 
                   5694:     fi
                   5695: 
                   5696:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5697:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
                   5698: if test "x$ac_cv_func_remove" = x""yes; then :
                   5699: 
                   5700: fi
                   5701: 
                   5702:     if test $ac_cv_func_remove = no; then
                   5703:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5704: $as_echo_n "checking for remove in -lposix... " >&6; }
                   5705: if test "${ac_cv_lib_posix_remove+set}" = set; then :
                   5706:   $as_echo_n "(cached) " >&6
                   5707: else
                   5708:   ac_check_lib_save_LIBS=$LIBS
                   5709: LIBS="-lposix  $LIBS"
                   5710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5711: /* end confdefs.h.  */
1.15      bertrand 5712: 
                   5713: /* Override any GCC internal prototype to avoid an error.
                   5714:    Use char because int might match the return type of a GCC
                   5715:    builtin and then its argument prototype would still apply.  */
                   5716: #ifdef __cplusplus
                   5717: extern "C"
                   5718: #endif
                   5719: char remove ();
1.1       bertrand 5720: int
                   5721: main ()
                   5722: {
1.15      bertrand 5723: return remove ();
1.1       bertrand 5724:   ;
                   5725:   return 0;
                   5726: }
                   5727: _ACEOF
1.15      bertrand 5728: if ac_fn_c_try_link "$LINENO"; then :
                   5729:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5730: else
1.15      bertrand 5731:   ac_cv_lib_posix_remove=no
                   5732: fi
                   5733: rm -f core conftest.err conftest.$ac_objext \
                   5734:     conftest$ac_exeext conftest.$ac_ext
                   5735: LIBS=$ac_check_lib_save_LIBS
                   5736: fi
                   5737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5738: $as_echo "$ac_cv_lib_posix_remove" >&6; }
                   5739: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
                   5740:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5741: fi
1.1       bertrand 5742: 
1.15      bertrand 5743:     fi
1.14      bertrand 5744: 
1.15      bertrand 5745:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5746:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
                   5747: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14      bertrand 5748: 
                   5749: fi
                   5750: 
1.15      bertrand 5751:     if test $ac_cv_func_shmat = no; then
                   5752:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5753: $as_echo_n "checking for shmat in -lipc... " >&6; }
                   5754: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
                   5755:   $as_echo_n "(cached) " >&6
                   5756: else
                   5757:   ac_check_lib_save_LIBS=$LIBS
                   5758: LIBS="-lipc  $LIBS"
                   5759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5760: /* end confdefs.h.  */
1.15      bertrand 5761: 
                   5762: /* Override any GCC internal prototype to avoid an error.
                   5763:    Use char because int might match the return type of a GCC
                   5764:    builtin and then its argument prototype would still apply.  */
                   5765: #ifdef __cplusplus
                   5766: extern "C"
                   5767: #endif
                   5768: char shmat ();
1.1       bertrand 5769: int
                   5770: main ()
                   5771: {
1.15      bertrand 5772: return shmat ();
1.1       bertrand 5773:   ;
                   5774:   return 0;
                   5775: }
                   5776: _ACEOF
1.15      bertrand 5777: if ac_fn_c_try_link "$LINENO"; then :
                   5778:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5779: else
1.15      bertrand 5780:   ac_cv_lib_ipc_shmat=no
                   5781: fi
                   5782: rm -f core conftest.err conftest.$ac_objext \
                   5783:     conftest$ac_exeext conftest.$ac_ext
                   5784: LIBS=$ac_check_lib_save_LIBS
                   5785: fi
                   5786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5787: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
                   5788: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
                   5789:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5790: fi
1.14      bertrand 5791: 
1.15      bertrand 5792:     fi
                   5793:   fi
1.1       bertrand 5794: 
1.15      bertrand 5795:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5796:   ac_save_LDFLAGS=$LDFLAGS
                   5797:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5798:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5799:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5800:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5801:   # These have to be linked with before -lX11, unlike the other
                   5802:   # libraries we check for below, so use a different variable.
                   5803:   # John Interrante, Karl Berry
                   5804:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5805: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
                   5806: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
                   5807:   $as_echo_n "(cached) " >&6
1.1       bertrand 5808: else
1.15      bertrand 5809:   ac_check_lib_save_LIBS=$LIBS
                   5810: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5812: /* end confdefs.h.  */
1.15      bertrand 5813: 
                   5814: /* Override any GCC internal prototype to avoid an error.
                   5815:    Use char because int might match the return type of a GCC
                   5816:    builtin and then its argument prototype would still apply.  */
                   5817: #ifdef __cplusplus
                   5818: extern "C"
                   5819: #endif
                   5820: char IceConnectionNumber ();
1.1       bertrand 5821: int
                   5822: main ()
                   5823: {
1.15      bertrand 5824: return IceConnectionNumber ();
1.1       bertrand 5825:   ;
                   5826:   return 0;
                   5827: }
                   5828: _ACEOF
1.15      bertrand 5829: if ac_fn_c_try_link "$LINENO"; then :
                   5830:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5831: else
1.15      bertrand 5832:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5833: fi
                   5834: rm -f core conftest.err conftest.$ac_objext \
                   5835:     conftest$ac_exeext conftest.$ac_ext
                   5836: LIBS=$ac_check_lib_save_LIBS
                   5837: fi
                   5838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5839: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
                   5840: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
                   5841:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5842: fi
                   5843: 
                   5844:   LDFLAGS=$ac_save_LDFLAGS
                   5845: 
                   5846: fi
                   5847: 
1.14      bertrand 5848: 
1.15      bertrand 5849: if test "$ac_x_includes" != "no"; then
                   5850:    if test x"$ac_x_includes" != x; then
                   5851:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5852:        includeX="-I$ac_x_includes"
                   5853:    fi
1.1       bertrand 5854: fi
1.15      bertrand 5855: if test "$ac_x_libraries" != "no"; then
                   5856:    if test x"$ac_x_libraries" != x; then
                   5857:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5858:    fi
1.1       bertrand 5859: fi
1.15      bertrand 5860: 
                   5861: # Check whether --enable-optimization was given.
                   5862: if test "${enable_optimization+set}" = set; then :
                   5863:   enableval=$enable_optimization;
                   5864: if test "$enableval" = "no"; then
                   5865:    CFLAGS=
                   5866:    FFLAGS=
                   5867:    CXXFLAGS=
                   5868:    FCFLAGS=
                   5869: else
                   5870:    CFLAGS="$CFLAGS $enable_optimization"
                   5871:    FFLAGS="$FFLAGS $enable_optimization"
                   5872:    FCFLAGS="$FCFLAGS $enable_optimization"
1.1       bertrand 5873: fi
1.15      bertrand 5874: else
1.14      bertrand 5875: 
1.15      bertrand 5876:    CFLAGS="$CFLAGS $OPTIMISATION_C"
                   5877:    FFLAGS="$FFLAGS $OPTIMISATION_F"
                   5878:    FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1       bertrand 5879: 
                   5880: 
1.15      bertrand 5881: fi
1.1       bertrand 5882: 
                   5883: 
1.36      bertrand 5884: # Check whether --enable-sysv-semaphores was given.
                   5885: if test "${enable_sysv_semaphores+set}" = set; then :
                   5886:   enableval=$enable_sysv_semaphores;
                   5887: if test "$enableval" = "no"; then
                   5888:    IPCS_SYSV=no
                   5889: else
                   5890:    IPCS_SYSV=yes
                   5891: fi
                   5892: else
                   5893:   IPCS_SYSV=no
                   5894: fi
                   5895: 
                   5896: 
1.30      bertrand 5897: # Check whether --enable-full-static was given.
                   5898: if test "${enable_full_static+set}" = set; then :
                   5899:   enableval=$enable_full_static;
                   5900: if test "$enableval" = "no"; then
                   5901:    STATIC=no
                   5902: else
                   5903:    STATIC=yes
                   5904: fi
                   5905: else
                   5906:   STATIC=no
                   5907: fi
                   5908: 
                   5909: 
1.15      bertrand 5910: # Check whether --enable-final-encoding was given.
                   5911: if test "${enable_final_encoding+set}" = set; then :
                   5912:   enableval=$enable_final_encoding;
                   5913: if test "$enableval" = "no"; then
                   5914:    FINAL_ENCODING="\$(shell locale charmap | \
                   5915:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 5916:    FORCED_FINAL_ENCODING=0
1.1       bertrand 5917: else
1.15      bertrand 5918:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 5919:    FORCED_FINAL_ENCODING=1
1.15      bertrand 5920: fi
1.1       bertrand 5921: else
1.35      bertrand 5922: 
                   5923: FORCED_FINAL_ENCODING=0
                   5924: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 5925:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   5926: fi
                   5927: 
1.14      bertrand 5928: 
1.15      bertrand 5929: # Check whether --enable-tex was given.
                   5930: if test "${enable_tex+set}" = set; then :
                   5931:   enableval=$enable_tex;
                   5932: if test "$enableval" = "no"; then
                   5933:    TEX_SUPPORT=no
                   5934: else
                   5935:    TEX_SUPPORT=yes
1.1       bertrand 5936: fi
1.15      bertrand 5937: else
                   5938:   TEX_SUPPORT=guessed
                   5939: fi
                   5940: 
1.14      bertrand 5941: 
1.15      bertrand 5942: # Check whether --enable-vim was given.
                   5943: if test "${enable_vim+set}" = set; then :
                   5944:   enableval=$enable_vim;
                   5945: if test "$enableval" = "no"; then
                   5946:    VIM_SUPPORT=no
                   5947: else
                   5948:    VIM_SUPPORT=yes
                   5949: fi
                   5950: else
                   5951:   VIM_SUPPORT=guessed
1.1       bertrand 5952: fi
                   5953: 
1.15      bertrand 5954: 
                   5955: # Check whether --enable-embedded-gnuplot was given.
                   5956: if test "${enable_embedded_gnuplot+set}" = set; then :
                   5957:   enableval=$enable_embedded_gnuplot;
                   5958: if test "$enableval" = "no"; then
                   5959:    MYGNUPLOT=no
                   5960: else
                   5961:    MYGNUPLOT=yes
                   5962: fi
1.1       bertrand 5963: else
                   5964: 
1.15      bertrand 5965: MYGNUPLOT=yes
                   5966: fi
                   5967: 
1.14      bertrand 5968: 
1.15      bertrand 5969: # Check whether --enable-gnuplot was given.
                   5970: if test "${enable_gnuplot+set}" = set; then :
                   5971:   enableval=$enable_gnuplot;
                   5972: if test "$enableval" = "no"; then
                   5973:    GNUPLOT_SUPPORT=no
                   5974:    MYGNUPLOT=no
                   5975:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5976: else
                   5977:    GNUPLOT_SUPPORT=yes
                   5978:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5979: fi
1.1       bertrand 5980: else
                   5981: 
1.15      bertrand 5982: if test "$MYGNUPLOT" = "yes"; then
                   5983:    GNUPLOT_SUPPORT=yes
                   5984:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5985: else
                   5986:    GNUPLOT_SUPPORT=guessed
                   5987:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5988: fi
1.1       bertrand 5989: fi
                   5990: 
1.15      bertrand 5991: 
                   5992: # Check whether --enable-motif was given.
                   5993: if test "${enable_motif+set}" = set; then :
                   5994:   enableval=$enable_motif;
                   5995: if test "$enableval" = "no"; then
                   5996:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5997: else
                   5998:    CFLAGS_ORIG=$CFLAGS
                   5999:    LIBS_ORIG=$LIBS
                   6000:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6001:    LIBS="$LIB $X_LIBS"
                   6002:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6003: $as_echo_n "checking for main in -lXm... " >&6; }
                   6004: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   6005:   $as_echo_n "(cached) " >&6
1.1       bertrand 6006: else
1.15      bertrand 6007:   ac_check_lib_save_LIBS=$LIBS
                   6008: LIBS="-lXm  $LIBS"
                   6009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6010: /* end confdefs.h.  */
1.14      bertrand 6011: 
                   6012: 
1.1       bertrand 6013: int
                   6014: main ()
                   6015: {
1.15      bertrand 6016: return main ();
1.1       bertrand 6017:   ;
                   6018:   return 0;
                   6019: }
                   6020: _ACEOF
1.15      bertrand 6021: if ac_fn_c_try_link "$LINENO"; then :
                   6022:   ac_cv_lib_Xm_main=yes
                   6023: else
                   6024:   ac_cv_lib_Xm_main=no
                   6025: fi
                   6026: rm -f core conftest.err conftest.$ac_objext \
                   6027:     conftest$ac_exeext conftest.$ac_ext
                   6028: LIBS=$ac_check_lib_save_LIBS
                   6029: fi
                   6030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6031: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6032: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6033:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6034: else
1.15      bertrand 6035:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6036: fi
1.14      bertrand 6037: 
1.15      bertrand 6038:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6039:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   6040: Motif flag is disabled.
                   6041: " >&5
                   6042: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   6043: Motif flag is disabled.
                   6044: " >&2;}
                   6045:    fi
                   6046:    LIBS=$LIBS_ORIG
                   6047:    CFLAGS=$CFLAGS_ORIG
                   6048: fi
                   6049: else
                   6050:   MOTIF_SUPPORT=guessed
1.1       bertrand 6051: fi
                   6052: 
1.15      bertrand 6053: 
                   6054: # Check whether --enable-experimental was given.
                   6055: if test "${enable_experimental+set}" = set; then :
                   6056:   enableval=$enable_experimental;
                   6057: if test "$enableval" = "no"; then
                   6058:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6059: else
                   6060:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6061: fi
1.14      bertrand 6062: else
1.15      bertrand 6063:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6064: fi
                   6065: 
1.1       bertrand 6066: 
1.15      bertrand 6067: # Check whether --enable-debug was given.
                   6068: if test "${enable_debug+set}" = set; then :
                   6069:   enableval=$enable_debug;
                   6070: if test "$enableval" = "no"; then
1.24      bertrand 6071:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6072: else
1.24      bertrand 6073:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6074: fi
                   6075: else
1.24      bertrand 6076:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6077: fi
1.1       bertrand 6078: 
1.15      bertrand 6079: 
                   6080: # Check whether --enable-profile was given.
                   6081: if test "${enable_profile+set}" = set; then :
                   6082:   enableval=$enable_profile;
                   6083: if test "$enableval" = "no"; then
                   6084:    PROFILAGE=""
                   6085: else
                   6086:    PROFILAGE="-pg"
                   6087: fi
                   6088: else
                   6089:   PROFILAGE=""
1.1       bertrand 6090: fi
                   6091: 
1.14      bertrand 6092: 
                   6093: 
1.15      bertrand 6094: 
                   6095: if test ! -d tools; then
                   6096:    mkdir tools
                   6097: fi
                   6098: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6099:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6100:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6101:    (cd "$srcdir/tools/"$NCURSES && \
                   6102:            for i in ../$NCURSES*.patch.gz;
                   6103:            do gunzip -c $i | patch -p1;
                   6104:            done);
1.15      bertrand 6105: fi
                   6106: if test ! -d "$srcdir"/tools/$READLINE; then
                   6107:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6108:            (cd "$srcdir/tools" && tar -xf -)
                   6109: fi
                   6110: if test ! -d "$srcdir"/tools/$UNITS; then
                   6111:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6112:            (cd "$srcdir/tools" && tar -xf -)
                   6113: fi
                   6114: if test ! -d "$srcdir"/tools/$GSL; then
                   6115:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6116:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6117:    if test $(uname) = "OS/2"; then
                   6118:        (cd "$srcdir"/tools/$GSL; \
                   6119:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6120:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6121:                \mv -f $TMP ltmain.sh)
                   6122:    fi
1.15      bertrand 6123: fi
                   6124: if test ! -d "$srcdir"/tools/$GPP; then
                   6125:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6126:            (cd "$srcdir/tools" && tar -xf -)
                   6127: fi
                   6128: if test ! -d "$srcdir"/tools/$FILE; then
                   6129:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6130:            (cd "$srcdir/tools" && tar -xf - )
                   6131:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6132: fi
                   6133: if test ! -d "$srcdir"/tools/$ICONV; then
                   6134:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6135:            (cd "$srcdir/tools" && tar -xf -)
                   6136: fi
                   6137: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6138:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6139:            (cd "$srcdir/tools" && tar -xf -)
                   6140: fi
                   6141: if test ! -d tools/$OPENSSL; then
                   6142:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6143:            (cd tools && tar -xf -)
1.1       bertrand 6144: fi
1.55      bertrand 6145: if test ! -d rplcas; then
                   6146:    mkdir rplcas
                   6147: fi
                   6148: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6149:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6150:            (cd "$srcdir/rplcas" && tar -xf -)
                   6151: fi
                   6152: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6153:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6154:            (cd "$srcdir/rplcas" && tar -xf -)
                   6155: fi
1.56    ! bertrand 6156: if test ! -d rplcas/$NTL; then
        !          6157:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
        !          6158:            (cd rplcas && tar -xf -)
        !          6159: fi
        !          6160: if test ! -d rplcas/$COCOA; then
        !          6161:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
        !          6162:            (cd rplcas && tar -xf -)
        !          6163: fi
        !          6164: if test ! -d rplcas/$PARI; then
        !          6165:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
        !          6166:            (cd rplcas && tar -xf -)
        !          6167: fi
        !          6168: if test ! -d "$srcdir"/rplcas/$GIAC; then
        !          6169:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
        !          6170:            (cd "$srcdir/rplcas" && tar -xf -)
        !          6171: fi
1.1       bertrand 6172: 
                   6173: 
                   6174: 
1.15      bertrand 6175: # Check whether --enable-final-run-path was given.
                   6176: if test "${enable_final_run_path+set}" = set; then :
                   6177:   enableval=$enable_final_run_path;
                   6178:    if test "x$enable_final_run_path" = "x"; then
                   6179:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6180: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6181:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6182:    else
                   6183:        RUNPATH="$enable_final_run_path"
                   6184:    fi
1.1       bertrand 6185: 
                   6186: else
1.15      bertrand 6187:   RUNPATH="\${prefix}"
1.1       bertrand 6188: 
                   6189: fi
                   6190: 
1.15      bertrand 6191: 
                   6192: 
                   6193: 
                   6194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6195: $as_echo_n "checking whether ln -s works... " >&6; }
                   6196: LN_S=$as_ln_s
                   6197: if test "$LN_S" = "ln -s"; then
                   6198:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6199: $as_echo "yes" >&6; }
                   6200: else
                   6201:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6202: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6203: fi
                   6204: 
1.15      bertrand 6205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6206: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6207: set x ${MAKE-make}
                   6208: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36      bertrand 6209: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15      bertrand 6210:   $as_echo_n "(cached) " >&6
1.1       bertrand 6211: else
1.15      bertrand 6212:   cat >conftest.make <<\_ACEOF
                   6213: SHELL = /bin/sh
                   6214: all:
                   6215:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6216: _ACEOF
1.36      bertrand 6217: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6218: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6219:   *@@@%%%=?*=@@@%%%*)
                   6220:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6221:   *)
                   6222:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6223: esac
1.15      bertrand 6224: rm -f conftest.make
                   6225: fi
                   6226: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6227:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6228: $as_echo "yes" >&6; }
                   6229:   SET_MAKE=
                   6230: else
                   6231:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6232: $as_echo "no" >&6; }
                   6233:   SET_MAKE="MAKE=${MAKE-make}"
                   6234: fi
1.1       bertrand 6235: 
1.15      bertrand 6236: if test -n "$ac_tool_prefix"; then
                   6237:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6238: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6240: $as_echo_n "checking for $ac_word... " >&6; }
                   6241: if test "${ac_cv_prog_RANLIB+set}" = set; then :
                   6242:   $as_echo_n "(cached) " >&6
                   6243: else
                   6244:   if test -n "$RANLIB"; then
                   6245:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6246: else
1.15      bertrand 6247: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6248: for as_dir in $PATH
                   6249: do
                   6250:   IFS=$as_save_IFS
                   6251:   test -z "$as_dir" && as_dir=.
                   6252:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6253:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6254:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6255:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6256:     break 2
                   6257:   fi
                   6258: done
                   6259:   done
                   6260: IFS=$as_save_IFS
1.1       bertrand 6261: 
                   6262: fi
1.15      bertrand 6263: fi
                   6264: RANLIB=$ac_cv_prog_RANLIB
                   6265: if test -n "$RANLIB"; then
                   6266:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6267: $as_echo "$RANLIB" >&6; }
                   6268: else
                   6269:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6270: $as_echo "no" >&6; }
                   6271: fi
                   6272: 
1.1       bertrand 6273: 
1.15      bertrand 6274: fi
                   6275: if test -z "$ac_cv_prog_RANLIB"; then
                   6276:   ac_ct_RANLIB=$RANLIB
                   6277:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6278: set dummy ranlib; ac_word=$2
                   6279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6280: $as_echo_n "checking for $ac_word... " >&6; }
                   6281: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
                   6282:   $as_echo_n "(cached) " >&6
                   6283: else
                   6284:   if test -n "$ac_ct_RANLIB"; then
                   6285:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6286: else
                   6287: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6288: for as_dir in $PATH
                   6289: do
                   6290:   IFS=$as_save_IFS
                   6291:   test -z "$as_dir" && as_dir=.
                   6292:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6293:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6294:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6295:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6296:     break 2
                   6297:   fi
                   6298: done
1.14      bertrand 6299:   done
1.15      bertrand 6300: IFS=$as_save_IFS
                   6301: 
                   6302: fi
                   6303: fi
                   6304: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6305: if test -n "$ac_ct_RANLIB"; then
                   6306:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6307: $as_echo "$ac_ct_RANLIB" >&6; }
                   6308: else
                   6309:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6310: $as_echo "no" >&6; }
                   6311: fi
                   6312: 
                   6313:   if test "x$ac_ct_RANLIB" = x; then
                   6314:     RANLIB=":"
                   6315:   else
                   6316:     case $cross_compiling:$ac_tool_warned in
                   6317: yes:)
                   6318: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6319: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6320: ac_tool_warned=yes ;;
                   6321: esac
                   6322:     RANLIB=$ac_ct_RANLIB
                   6323:   fi
1.14      bertrand 6324: else
1.15      bertrand 6325:   RANLIB="$ac_cv_prog_RANLIB"
                   6326: fi
1.1       bertrand 6327: 
                   6328: 
1.15      bertrand 6329: # Extract the first word of "nawk", so it can be a program name with args.
                   6330: set dummy nawk; ac_word=$2
                   6331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6332: $as_echo_n "checking for $ac_word... " >&6; }
                   6333: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6334:   $as_echo_n "(cached) " >&6
                   6335: else
                   6336:   if test -n "$AWK"; then
                   6337:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6338: else
                   6339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6340: for as_dir in $PATH
                   6341: do
                   6342:   IFS=$as_save_IFS
                   6343:   test -z "$as_dir" && as_dir=.
                   6344:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6345:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6346:     ac_cv_prog_AWK="yes"
                   6347:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6348:     break 2
                   6349:   fi
                   6350: done
                   6351:   done
                   6352: IFS=$as_save_IFS
1.1       bertrand 6353: 
1.15      bertrand 6354:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6355: fi
                   6356: fi
                   6357: AWK=$ac_cv_prog_AWK
                   6358: if test -n "$AWK"; then
                   6359:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6360: $as_echo "$AWK" >&6; }
1.1       bertrand 6361: else
1.15      bertrand 6362:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6363: $as_echo "no" >&6; }
                   6364: fi
                   6365: 
1.1       bertrand 6366: 
1.15      bertrand 6367: if test "$AWK" = no; then
1.39      bertrand 6368:    # Extract the first word of "gawk", so it can be a program name with args.
                   6369: set dummy gawk; ac_word=$2
                   6370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6371: $as_echo_n "checking for $ac_word... " >&6; }
                   6372: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6373:   $as_echo_n "(cached) " >&6
                   6374: else
                   6375:   if test -n "$AWK"; then
                   6376:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6377: else
                   6378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6379: for as_dir in $PATH
                   6380: do
                   6381:   IFS=$as_save_IFS
                   6382:   test -z "$as_dir" && as_dir=.
                   6383:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6384:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6385:     ac_cv_prog_AWK="yes"
                   6386:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6387:     break 2
                   6388:   fi
                   6389: done
                   6390:   done
                   6391: IFS=$as_save_IFS
                   6392: 
                   6393:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6394: fi
                   6395: fi
                   6396: AWK=$ac_cv_prog_AWK
                   6397: if test -n "$AWK"; then
                   6398:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6399: $as_echo "$AWK" >&6; }
                   6400: else
                   6401:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6402: $as_echo "no" >&6; }
                   6403: fi
                   6404: 
                   6405: 
                   6406:    if test "$AWK" = no; then
                   6407:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6408:    fi
1.1       bertrand 6409: fi
                   6410: 
1.15      bertrand 6411: # Extract the first word of "sed", so it can be a program name with args.
                   6412: set dummy sed; ac_word=$2
                   6413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6414: $as_echo_n "checking for $ac_word... " >&6; }
                   6415: if test "${ac_cv_prog_SED+set}" = set; then :
                   6416:   $as_echo_n "(cached) " >&6
                   6417: else
                   6418:   if test -n "$SED"; then
                   6419:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6420: else
                   6421: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6422: for as_dir in $PATH
                   6423: do
                   6424:   IFS=$as_save_IFS
                   6425:   test -z "$as_dir" && as_dir=.
                   6426:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6427:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6428:     ac_cv_prog_SED="yes"
                   6429:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6430:     break 2
                   6431:   fi
                   6432: done
1.14      bertrand 6433:   done
1.15      bertrand 6434: IFS=$as_save_IFS
1.1       bertrand 6435: 
1.15      bertrand 6436:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6437: fi
1.15      bertrand 6438: fi
                   6439: SED=$ac_cv_prog_SED
                   6440: if test -n "$SED"; then
                   6441:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6442: $as_echo "$SED" >&6; }
                   6443: else
                   6444:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6445: $as_echo "no" >&6; }
1.14      bertrand 6446: fi
1.1       bertrand 6447: 
                   6448: 
1.15      bertrand 6449: if test "$SED" = no; then
1.36      bertrand 6450:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6451: fi
1.14      bertrand 6452: 
1.15      bertrand 6453: if test "$TEX_SUPPORT" = guessed; then
                   6454:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6455: 
1.15      bertrand 6456:    # Extract the first word of "tex", so it can be a program name with args.
                   6457: set dummy tex; ac_word=$2
                   6458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6459: $as_echo_n "checking for $ac_word... " >&6; }
                   6460: if test "${ac_cv_prog_TEX+set}" = set; then :
                   6461:   $as_echo_n "(cached) " >&6
1.1       bertrand 6462: else
1.15      bertrand 6463:   if test -n "$TEX"; then
                   6464:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6465: else
1.15      bertrand 6466: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6467: for as_dir in $PATH
                   6468: do
                   6469:   IFS=$as_save_IFS
                   6470:   test -z "$as_dir" && as_dir=.
                   6471:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6472:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6473:     ac_cv_prog_TEX="yes"
                   6474:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6475:     break 2
                   6476:   fi
                   6477: done
                   6478:   done
                   6479: IFS=$as_save_IFS
1.1       bertrand 6480: 
1.15      bertrand 6481:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6482: fi
                   6483: fi
1.15      bertrand 6484: TEX=$ac_cv_prog_TEX
                   6485: if test -n "$TEX"; then
                   6486:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6487: $as_echo "$TEX" >&6; }
                   6488: else
                   6489:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6490: $as_echo "no" >&6; }
1.1       bertrand 6491: fi
1.14      bertrand 6492: 
                   6493: 
1.15      bertrand 6494:    if test "$TEX" = no; then
                   6495:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6496: Download at http://tex.loria.fr/
                   6497: " >&5
                   6498: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6499: Download at http://tex.loria.fr/
                   6500: " >&2;}
                   6501:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6502:    fi
1.14      bertrand 6503: 
1.15      bertrand 6504:    # Extract the first word of "latex", so it can be a program name with args.
                   6505: set dummy latex; ac_word=$2
                   6506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6507: $as_echo_n "checking for $ac_word... " >&6; }
                   6508: if test "${ac_cv_prog_LATEX+set}" = set; then :
                   6509:   $as_echo_n "(cached) " >&6
1.1       bertrand 6510: else
1.15      bertrand 6511:   if test -n "$LATEX"; then
                   6512:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6513: else
1.15      bertrand 6514: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6515: for as_dir in $PATH
                   6516: do
                   6517:   IFS=$as_save_IFS
                   6518:   test -z "$as_dir" && as_dir=.
                   6519:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6520:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6521:     ac_cv_prog_LATEX="yes"
                   6522:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6523:     break 2
                   6524:   fi
                   6525: done
                   6526:   done
                   6527: IFS=$as_save_IFS
1.1       bertrand 6528: 
1.15      bertrand 6529:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6530: fi
                   6531: fi
1.15      bertrand 6532: LATEX=$ac_cv_prog_LATEX
                   6533: if test -n "$LATEX"; then
                   6534:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6535: $as_echo "$LATEX" >&6; }
                   6536: else
                   6537:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6538: $as_echo "no" >&6; }
                   6539: fi
1.14      bertrand 6540: 
1.1       bertrand 6541: 
1.15      bertrand 6542:    if test "$LATEX" = no; then
                   6543:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6544: Download at http://tex.loria.fr/
                   6545: " >&5
                   6546: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6547: Download at http://tex.loria.fr/
                   6548: " >&2;}
                   6549:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6550:    fi
1.1       bertrand 6551: 
1.15      bertrand 6552:    # Extract the first word of "dvips", so it can be a program name with args.
                   6553: set dummy dvips; ac_word=$2
                   6554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6555: $as_echo_n "checking for $ac_word... " >&6; }
                   6556: if test "${ac_cv_prog_DVIPS+set}" = set; then :
                   6557:   $as_echo_n "(cached) " >&6
                   6558: else
                   6559:   if test -n "$DVIPS"; then
                   6560:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6561: else
                   6562: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6563: for as_dir in $PATH
                   6564: do
                   6565:   IFS=$as_save_IFS
                   6566:   test -z "$as_dir" && as_dir=.
                   6567:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6568:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6569:     ac_cv_prog_DVIPS="yes"
                   6570:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6571:     break 2
                   6572:   fi
                   6573: done
                   6574:   done
                   6575: IFS=$as_save_IFS
1.1       bertrand 6576: 
1.15      bertrand 6577:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6578: fi
1.1       bertrand 6579: fi
1.15      bertrand 6580: DVIPS=$ac_cv_prog_DVIPS
                   6581: if test -n "$DVIPS"; then
                   6582:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6583: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6584: else
1.15      bertrand 6585:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6586: $as_echo "no" >&6; }
                   6587: fi
1.1       bertrand 6588: 
                   6589: 
1.15      bertrand 6590:    if test "$DVIPS" = no; then
                   6591:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6592: Download at http://tex.loria.fr/
                   6593: " >&5
                   6594: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6595: Download at http://tex.loria.fr/
                   6596: " >&2;}
                   6597:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6598:    fi
1.1       bertrand 6599: 
1.15      bertrand 6600:    # Extract the first word of "gs", so it can be a program name with args.
                   6601: set dummy gs; ac_word=$2
                   6602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6603: $as_echo_n "checking for $ac_word... " >&6; }
                   6604: if test "${ac_cv_prog_GS+set}" = set; then :
                   6605:   $as_echo_n "(cached) " >&6
                   6606: else
                   6607:   if test -n "$GS"; then
                   6608:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6609: else
1.15      bertrand 6610: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6611: for as_dir in $PATH
                   6612: do
                   6613:   IFS=$as_save_IFS
                   6614:   test -z "$as_dir" && as_dir=.
                   6615:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6616:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6617:     ac_cv_prog_GS="yes"
                   6618:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6619:     break 2
                   6620:   fi
                   6621: done
                   6622:   done
                   6623: IFS=$as_save_IFS
1.1       bertrand 6624: 
1.15      bertrand 6625:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6626: fi
                   6627: fi
                   6628: GS=$ac_cv_prog_GS
                   6629: if test -n "$GS"; then
                   6630:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6631: $as_echo "$GS" >&6; }
                   6632: else
                   6633:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6634: $as_echo "no" >&6; }
1.1       bertrand 6635: fi
                   6636: 
1.15      bertrand 6637: 
                   6638:    if test "$GS" = no; then
                   6639:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6640: Download at http://ftp.lip6.fr/
                   6641: " >&5
                   6642: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6643: Download at http://ftp.lip6.fr/
                   6644: " >&2;}
                   6645:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6646:    fi
                   6647: 
                   6648:    # Extract the first word of "gv", so it can be a program name with args.
                   6649: set dummy gv; ac_word=$2
                   6650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6651: $as_echo_n "checking for $ac_word... " >&6; }
                   6652: if test "${ac_cv_prog_GV+set}" = set; then :
                   6653:   $as_echo_n "(cached) " >&6
                   6654: else
                   6655:   if test -n "$GV"; then
                   6656:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6657: else
                   6658: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6659: for as_dir in $PATH
                   6660: do
                   6661:   IFS=$as_save_IFS
                   6662:   test -z "$as_dir" && as_dir=.
                   6663:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6664:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6665:     ac_cv_prog_GV="yes"
                   6666:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6667:     break 2
                   6668:   fi
                   6669: done
1.14      bertrand 6670:   done
1.15      bertrand 6671: IFS=$as_save_IFS
1.1       bertrand 6672: 
1.15      bertrand 6673:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6674: fi
1.1       bertrand 6675: fi
1.15      bertrand 6676: GV=$ac_cv_prog_GV
                   6677: if test -n "$GV"; then
                   6678:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6679: $as_echo "$GV" >&6; }
                   6680: else
                   6681:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6682: $as_echo "no" >&6; }
1.1       bertrand 6683: fi
1.14      bertrand 6684: 
                   6685: 
1.15      bertrand 6686:    if test "$GV" = no; then
                   6687:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6688: Download at http://ftp.lip6.fr/
                   6689: " >&5
                   6690: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6691: Download at http://ftp.lip6.fr/
                   6692: " >&2;}
                   6693:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6694:    fi
1.1       bertrand 6695: else
1.15      bertrand 6696:    if test "$TEX_SUPPORT" = no; then
                   6697:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6698:    else
                   6699:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6700:    fi
1.1       bertrand 6701: fi
                   6702: 
1.15      bertrand 6703: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6704:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6705: set dummy gnuplot; ac_word=$2
                   6706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6707: $as_echo_n "checking for $ac_word... " >&6; }
                   6708: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
                   6709:   $as_echo_n "(cached) " >&6
1.14      bertrand 6710: else
1.15      bertrand 6711:   if test -n "$GNUPLOT_P"; then
                   6712:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6713: else
1.15      bertrand 6714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6715: for as_dir in $PATH
                   6716: do
                   6717:   IFS=$as_save_IFS
                   6718:   test -z "$as_dir" && as_dir=.
                   6719:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6720:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6721:     ac_cv_prog_GNUPLOT_P="yes"
                   6722:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6723:     break 2
                   6724:   fi
                   6725: done
                   6726:   done
                   6727: IFS=$as_save_IFS
1.1       bertrand 6728: 
1.15      bertrand 6729:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6730: fi
                   6731: fi
1.15      bertrand 6732: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6733: if test -n "$GNUPLOT_P"; then
                   6734:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6735: $as_echo "$GNUPLOT_P" >&6; }
                   6736: else
                   6737:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6738: $as_echo "no" >&6; }
1.1       bertrand 6739: fi
                   6740: 
                   6741: 
1.15      bertrand 6742:    if test "$GNUPLOT_P" = no; then
                   6743:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6744: Download at http://www.gnuplot.vt.edu/
                   6745: " >&5
                   6746: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6747: Download at http://www.gnuplot.vt.edu/
                   6748: " >&2;}
                   6749:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6750:    else
                   6751:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6752:    fi
                   6753: else
                   6754:    if test "$GNUPLOT_SUPPORT" = no; then
                   6755:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6756:    else
                   6757:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6758:    fi
                   6759: fi
1.1       bertrand 6760: 
1.15      bertrand 6761: if test "$VIM_SUPPORT" = guessed; then
                   6762:    # Extract the first word of "vim", so it can be a program name with args.
                   6763: set dummy vim; ac_word=$2
                   6764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6765: $as_echo_n "checking for $ac_word... " >&6; }
                   6766: if test "${ac_cv_prog_VIM+set}" = set; then :
                   6767:   $as_echo_n "(cached) " >&6
1.1       bertrand 6768: else
1.15      bertrand 6769:   if test -n "$VIM"; then
                   6770:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6771: else
1.15      bertrand 6772: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6773: for as_dir in $PATH
                   6774: do
                   6775:   IFS=$as_save_IFS
                   6776:   test -z "$as_dir" && as_dir=.
                   6777:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6778:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6779:     ac_cv_prog_VIM="yes"
                   6780:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6781:     break 2
                   6782:   fi
                   6783: done
                   6784:   done
                   6785: IFS=$as_save_IFS
1.1       bertrand 6786: 
1.15      bertrand 6787:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6788: fi
                   6789: fi
1.15      bertrand 6790: VIM=$ac_cv_prog_VIM
                   6791: if test -n "$VIM"; then
                   6792:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6793: $as_echo "$VIM" >&6; }
1.1       bertrand 6794: else
1.15      bertrand 6795:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6796: $as_echo "no" >&6; }
                   6797: fi
1.1       bertrand 6798: 
                   6799: 
1.15      bertrand 6800:    if test "$VIM" = no; then
                   6801:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6802: Download at http://www.vim.org/
                   6803: " >&5
                   6804: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6805: Download at http://www.vim.org/
                   6806: " >&2;}
                   6807:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6808:    else
                   6809:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6810:    fi
1.1       bertrand 6811: else
1.15      bertrand 6812:    if test "$VIM_SUPPORT" = no; then
                   6813:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6814:    else
                   6815:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6816:    fi
1.1       bertrand 6817: fi
                   6818: 
1.15      bertrand 6819: if test "$MOTIF_SUPPORT" = guessed; then
                   6820:    CFLAGS_ORIG=$CFLAGS
                   6821:    LIBS_ORIG=$LIBS
                   6822:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6823:    LIBS="$LIB $X_LIBS"
                   6824:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6825: $as_echo_n "checking for main in -lXm... " >&6; }
                   6826: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   6827:   $as_echo_n "(cached) " >&6
1.1       bertrand 6828: else
1.15      bertrand 6829:   ac_check_lib_save_LIBS=$LIBS
                   6830: LIBS="-lXm  $LIBS"
                   6831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6832: /* end confdefs.h.  */
1.1       bertrand 6833: 
                   6834: 
1.14      bertrand 6835: int
                   6836: main ()
                   6837: {
1.15      bertrand 6838: return main ();
1.14      bertrand 6839:   ;
                   6840:   return 0;
                   6841: }
                   6842: _ACEOF
1.15      bertrand 6843: if ac_fn_c_try_link "$LINENO"; then :
                   6844:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6845: else
1.15      bertrand 6846:   ac_cv_lib_Xm_main=no
                   6847: fi
                   6848: rm -f core conftest.err conftest.$ac_objext \
                   6849:     conftest$ac_exeext conftest.$ac_ext
                   6850: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6851: fi
1.15      bertrand 6852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6853: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6854: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6855:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6856: else
1.15      bertrand 6857:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6858: fi
1.14      bertrand 6859: 
1.15      bertrand 6860:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6861:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6862: Motif flag is disabled.
                   6863: " >&5
                   6864: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6865: Motif flag is disabled.
                   6866: " >&2;}
                   6867:    fi
                   6868:    LIBS=$LIBS_ORIG
                   6869:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6870: fi
                   6871: 
1.15      bertrand 6872: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6873:    CFLAGS_ORIG=$CFLAGS
                   6874:    LIBS_ORIG=$LIBS
                   6875:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6876:    LIBS="$LIB $X_LIBS"
                   6877:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6878: $as_echo_n "checking for main in -lXpm... " >&6; }
                   6879: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
                   6880:   $as_echo_n "(cached) " >&6
                   6881: else
                   6882:   ac_check_lib_save_LIBS=$LIBS
                   6883: LIBS="-lXpm  $LIBS"
                   6884: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6885: /* end confdefs.h.  */
                   6886: 
1.1       bertrand 6887: 
                   6888: int
                   6889: main ()
                   6890: {
1.15      bertrand 6891: return main ();
1.1       bertrand 6892:   ;
                   6893:   return 0;
                   6894: }
                   6895: _ACEOF
1.15      bertrand 6896: if ac_fn_c_try_link "$LINENO"; then :
                   6897:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 6898: else
1.15      bertrand 6899:   ac_cv_lib_Xpm_main=no
                   6900: fi
                   6901: rm -f core conftest.err conftest.$ac_objext \
                   6902:     conftest$ac_exeext conftest.$ac_ext
                   6903: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6904: fi
1.15      bertrand 6905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   6906: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
                   6907: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
                   6908:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6909: else
                   6910:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6911: fi
1.15      bertrand 6912: 
                   6913:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6914:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   6915:    else
                   6916:        libX=""
                   6917:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   6918: Motif flag is disabled.
                   6919: " >&5
                   6920: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   6921: Motif flag is disabled.
                   6922: " >&2;}
                   6923:    fi
                   6924:    LIBS=$LIBS_ORIG
                   6925:    CFLAGS=$CFLAGS_ORIG
                   6926: else
                   6927:    libX=""
1.1       bertrand 6928: fi
1.14      bertrand 6929: 
                   6930: 
                   6931: 
1.1       bertrand 6932: 
                   6933: 
1.15      bertrand 6934: 
                   6935: 
                   6936: 
                   6937: 
                   6938: 
                   6939: 
                   6940: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   6941: 
                   6942: 
                   6943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   6944: $as_echo_n "checking for main in -lm... " >&6; }
                   6945: if test "${ac_cv_lib_m_main+set}" = set; then :
                   6946:   $as_echo_n "(cached) " >&6
1.1       bertrand 6947: else
1.15      bertrand 6948:   ac_check_lib_save_LIBS=$LIBS
                   6949: LIBS="-lm  $LIBS"
                   6950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6951: /* end confdefs.h.  */
1.15      bertrand 6952: 
                   6953: 
1.1       bertrand 6954: int
                   6955: main ()
                   6956: {
1.15      bertrand 6957: return main ();
1.1       bertrand 6958:   ;
                   6959:   return 0;
                   6960: }
                   6961: _ACEOF
1.15      bertrand 6962: if ac_fn_c_try_link "$LINENO"; then :
                   6963:   ac_cv_lib_m_main=yes
1.1       bertrand 6964: else
1.15      bertrand 6965:   ac_cv_lib_m_main=no
                   6966: fi
                   6967: rm -f core conftest.err conftest.$ac_objext \
                   6968:     conftest$ac_exeext conftest.$ac_ext
                   6969: LIBS=$ac_check_lib_save_LIBS
                   6970: fi
                   6971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   6972: $as_echo "$ac_cv_lib_m_main" >&6; }
                   6973: if test "x$ac_cv_lib_m_main" = x""yes; then :
                   6974:   cat >>confdefs.h <<_ACEOF
                   6975: #define HAVE_LIBM 1
                   6976: _ACEOF
1.14      bertrand 6977: 
1.15      bertrand 6978:   LIBS="-lm $LIBS"
1.1       bertrand 6979: 
1.15      bertrand 6980: else
1.36      bertrand 6981:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 6982: fi
                   6983: 
1.15      bertrand 6984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   6985: $as_echo_n "checking for main in -lpthread... " >&6; }
                   6986: if test "${ac_cv_lib_pthread_main+set}" = set; then :
                   6987:   $as_echo_n "(cached) " >&6
1.1       bertrand 6988: else
1.15      bertrand 6989:   ac_check_lib_save_LIBS=$LIBS
                   6990: LIBS="-lpthread  $LIBS"
                   6991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6992: /* end confdefs.h.  */
1.15      bertrand 6993: 
                   6994: 
1.14      bertrand 6995: int
                   6996: main ()
                   6997: {
1.15      bertrand 6998: return main ();
1.14      bertrand 6999:   ;
                   7000:   return 0;
                   7001: }
                   7002: _ACEOF
1.15      bertrand 7003: if ac_fn_c_try_link "$LINENO"; then :
                   7004:   ac_cv_lib_pthread_main=yes
                   7005: else
                   7006:   ac_cv_lib_pthread_main=no
                   7007: fi
                   7008: rm -f core conftest.err conftest.$ac_objext \
                   7009:     conftest$ac_exeext conftest.$ac_ext
                   7010: LIBS=$ac_check_lib_save_LIBS
                   7011: fi
                   7012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7013: $as_echo "$ac_cv_lib_pthread_main" >&6; }
                   7014: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
                   7015:   cat >>confdefs.h <<_ACEOF
                   7016: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7017: _ACEOF
                   7018: 
1.15      bertrand 7019:   LIBS="-lpthread $LIBS"
                   7020: 
1.1       bertrand 7021: else
1.36      bertrand 7022:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7023: fi
1.14      bertrand 7024: 
1.1       bertrand 7025: 
1.33      bertrand 7026: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7027: #include <sys/sem.h>
                   7028: 
                   7029: "
                   7030: if test "x$ac_cv_type_union_semun" = x""yes; then :
                   7031:   SEMUN=-DUNION_SEMUN
                   7032: else
                   7033:   SEMUN=-UUNION_SEMUN
                   7034: fi
                   7035: 
                   7036: 
1.34      bertrand 7037: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7038: #include <sys/types.h>
1.34      bertrand 7039: #include <netinet/in.h>
                   7040: 
                   7041: "
                   7042: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
                   7043:   IPV6=-DIPV6
                   7044: else
                   7045:   IPV6=-UIPV6
                   7046: fi
                   7047: 
                   7048: 
1.15      bertrand 7049: if test "$CYGWIN" != yes; then
                   7050:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7051: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   7052: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
                   7053:   $as_echo_n "(cached) " >&6
1.1       bertrand 7054: else
1.15      bertrand 7055:   ac_check_lib_save_LIBS=$LIBS
                   7056: LIBS="-ldl  $LIBS"
                   7057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7058: /* end confdefs.h.  */
                   7059: 
1.15      bertrand 7060: /* Override any GCC internal prototype to avoid an error.
                   7061:    Use char because int might match the return type of a GCC
                   7062:    builtin and then its argument prototype would still apply.  */
                   7063: #ifdef __cplusplus
                   7064: extern "C"
                   7065: #endif
                   7066: char dlopen ();
1.1       bertrand 7067: int
                   7068: main ()
                   7069: {
1.15      bertrand 7070: return dlopen ();
1.1       bertrand 7071:   ;
                   7072:   return 0;
                   7073: }
                   7074: _ACEOF
1.15      bertrand 7075: if ac_fn_c_try_link "$LINENO"; then :
                   7076:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7077: else
1.15      bertrand 7078:   ac_cv_lib_dl_dlopen=no
                   7079: fi
                   7080: rm -f core conftest.err conftest.$ac_objext \
                   7081:     conftest$ac_exeext conftest.$ac_ext
                   7082: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7083: fi
1.15      bertrand 7084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7085: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   7086: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
                   7087:   LIBS="$LIBS -ldl"
1.14      bertrand 7088: else
1.15      bertrand 7089:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7090: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7091: fi
                   7092: 
1.14      bertrand 7093: fi
1.1       bertrand 7094: 
1.15      bertrand 7095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7096: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
                   7097: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
                   7098:   $as_echo_n "(cached) " >&6
                   7099: else
                   7100:   ac_check_lib_save_LIBS=$LIBS
                   7101: LIBS="-lrt  $LIBS"
                   7102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7103: /* end confdefs.h.  */
1.15      bertrand 7104: 
                   7105: /* Override any GCC internal prototype to avoid an error.
                   7106:    Use char because int might match the return type of a GCC
                   7107:    builtin and then its argument prototype would still apply.  */
                   7108: #ifdef __cplusplus
                   7109: extern "C"
                   7110: #endif
                   7111: char nanosleep ();
1.1       bertrand 7112: int
                   7113: main ()
                   7114: {
1.15      bertrand 7115: return nanosleep ();
1.1       bertrand 7116:   ;
                   7117:   return 0;
                   7118: }
                   7119: _ACEOF
1.15      bertrand 7120: if ac_fn_c_try_link "$LINENO"; then :
                   7121:   ac_cv_lib_rt_nanosleep=yes
                   7122: else
                   7123:   ac_cv_lib_rt_nanosleep=no
                   7124: fi
                   7125: rm -f core conftest.err conftest.$ac_objext \
                   7126:     conftest$ac_exeext conftest.$ac_ext
                   7127: LIBS=$ac_check_lib_save_LIBS
                   7128: fi
                   7129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7130: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
                   7131: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
                   7132:   LIBS="$LIBS -lrt"
1.1       bertrand 7133: else
1.15      bertrand 7134:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7135: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7136: fi
1.1       bertrand 7137: 
                   7138: 
1.15      bertrand 7139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7140: $as_echo_n "checking for bind in -lsocket... " >&6; }
                   7141: if test "${ac_cv_lib_socket_bind+set}" = set; then :
                   7142:   $as_echo_n "(cached) " >&6
1.1       bertrand 7143: else
1.15      bertrand 7144:   ac_check_lib_save_LIBS=$LIBS
                   7145: LIBS="-lsocket  $LIBS"
                   7146: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7147: /* end confdefs.h.  */
1.15      bertrand 7148: 
                   7149: /* Override any GCC internal prototype to avoid an error.
                   7150:    Use char because int might match the return type of a GCC
                   7151:    builtin and then its argument prototype would still apply.  */
                   7152: #ifdef __cplusplus
                   7153: extern "C"
                   7154: #endif
                   7155: char bind ();
1.1       bertrand 7156: int
                   7157: main ()
                   7158: {
1.15      bertrand 7159: return bind ();
1.1       bertrand 7160:   ;
                   7161:   return 0;
                   7162: }
                   7163: _ACEOF
1.15      bertrand 7164: if ac_fn_c_try_link "$LINENO"; then :
                   7165:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7166: else
1.15      bertrand 7167:   ac_cv_lib_socket_bind=no
1.1       bertrand 7168: fi
1.15      bertrand 7169: rm -f core conftest.err conftest.$ac_objext \
                   7170:     conftest$ac_exeext conftest.$ac_ext
                   7171: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7172: fi
1.15      bertrand 7173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7174: $as_echo "$ac_cv_lib_socket_bind" >&6; }
                   7175: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
                   7176:   LIBS="$LIBS -lsocket"
                   7177: else
                   7178:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7179: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7180: fi
                   7181: 
                   7182: 
1.15      bertrand 7183: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7184: 
                   7185: # Check whether --with-mysql was given.
                   7186: if test "${with_mysql+set}" = set; then :
                   7187:   withval=$with_mysql;
                   7188: else
                   7189:   with_mysql=check
                   7190: fi
1.14      bertrand 7191: 
                   7192: 
1.15      bertrand 7193: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7194:    libMySQLinc="-I/usr/include"
1.30      bertrand 7195:    libMySQLlib="/usr/lib"
1.14      bertrand 7196: 
1.15      bertrand 7197:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7198: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7199:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7200:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7201:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7202: /* end confdefs.h.  */
1.15      bertrand 7203: #include "mysql.h"
1.1       bertrand 7204: int
                   7205: main ()
                   7206: {
1.15      bertrand 7207: 
1.1       bertrand 7208:   ;
                   7209:   return 0;
                   7210: }
                   7211: _ACEOF
1.15      bertrand 7212: if ac_fn_c_try_compile "$LINENO"; then :
                   7213:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7214: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7215:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7216: else
1.15      bertrand 7217:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7218: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7219: fi
1.14      bertrand 7220: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7221:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7222: 
1.15      bertrand 7223:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7224:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7225: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7226:        saved_CFLAGS="$CFLAGS"
                   7227:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7228:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7229: /* end confdefs.h.  */
1.15      bertrand 7230: #include "mysql.h"
1.1       bertrand 7231: int
                   7232: main ()
                   7233: {
                   7234: 
                   7235:   ;
                   7236:   return 0;
                   7237: }
                   7238: _ACEOF
1.15      bertrand 7239: if ac_fn_c_try_compile "$LINENO"; then :
                   7240:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7241: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7242:                        libMySQLinc=$libMySQLinc
                   7243: else
                   7244:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7245: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7246: fi
                   7247: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7248:        CFLAGS=$saved_CFLAGS
                   7249:        libMySQLinc=$libMySQLinc/mysql
                   7250:    fi
                   7251: 
                   7252:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7253:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7254: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7255:        saved_CFLAGS="$CFLAGS"
                   7256:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7257:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7258: /* end confdefs.h.  */
1.15      bertrand 7259: #include "mysql.h"
1.1       bertrand 7260: int
                   7261: main ()
                   7262: {
                   7263: 
                   7264:   ;
                   7265:   return 0;
                   7266: }
                   7267: _ACEOF
1.15      bertrand 7268: if ac_fn_c_try_compile "$LINENO"; then :
                   7269:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7270: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7271:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7272: else
1.15      bertrand 7273:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7274: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7275: fi
                   7276: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7277:        CFLAGS=$saved_CFLAGS
                   7278:        libMySQLinc=$libMySQLinc/../local/include
                   7279:        libMySQLlib=$libMySQLlib/../local/lib
                   7280:    fi
1.1       bertrand 7281: 
1.15      bertrand 7282:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7283:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7284: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7285:        saved_CFLAGS="$CFLAGS"
                   7286:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7287:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7288: /* end confdefs.h.  */
1.15      bertrand 7289: #include "mysql.h"
1.1       bertrand 7290: int
                   7291: main ()
                   7292: {
                   7293: 
                   7294:   ;
                   7295:   return 0;
                   7296: }
                   7297: _ACEOF
1.15      bertrand 7298: if ac_fn_c_try_compile "$LINENO"; then :
                   7299:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7300: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7301:                        libMySQLinc=$libMySQLinc/mysql
                   7302: else
                   7303:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7304: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7305: fi
                   7306: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7307:        CFLAGS=$saved_CFLAGS
                   7308:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7309:        libMySQLlib=$libMySQLlib/../local/lib
                   7310:    fi
                   7311: else
                   7312:    if test "x$with_mysql" != xno; then
                   7313:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7314:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7315: 
                   7316:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7317: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7318:        saved_CFLAGS="$CFLAGS"
                   7319:        CFLAGS="$CFLAGS $libMySQLinc"
                   7320:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7321: /* end confdefs.h.  */
1.15      bertrand 7322: #include "mysql.h"
1.1       bertrand 7323: int
                   7324: main ()
                   7325: {
                   7326: 
                   7327:   ;
                   7328:   return 0;
                   7329: }
                   7330: _ACEOF
1.15      bertrand 7331: if ac_fn_c_try_compile "$LINENO"; then :
                   7332:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7333: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7334:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7335: else
1.15      bertrand 7336:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7337: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7338: fi
                   7339: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7340:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7341: 
1.15      bertrand 7342:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7343:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7344: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7345:            saved_CFLAGS="$CFLAGS"
                   7346:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7347:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7348: /* end confdefs.h.  */
1.15      bertrand 7349: #include "mysql.h"
1.1       bertrand 7350: int
                   7351: main ()
                   7352: {
                   7353: 
                   7354:   ;
                   7355:   return 0;
                   7356: }
                   7357: _ACEOF
1.15      bertrand 7358: if ac_fn_c_try_compile "$LINENO"; then :
                   7359:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7360: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7361:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7362: else
1.15      bertrand 7363:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7364: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7365: fi
                   7366: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7367:            CFLAGS=$saved_CFLAGS
                   7368:            libMySQLinc=$libMySQLinc/mysql
                   7369:        fi
                   7370:    else
                   7371:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7372:    fi
                   7373: fi
1.14      bertrand 7374: 
1.15      bertrand 7375: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7376:    MYSQL_LIB=no
1.14      bertrand 7377: 
1.15      bertrand 7378:    if test $MYSQL_LIB = no; then
                   7379:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7380: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7381:        saved_LIBS="$LIBS"
1.30      bertrand 7382:        if test $STATIC = no; then
                   7383:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7384:        else
                   7385:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7386:        fi
1.15      bertrand 7387:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7388: /* end confdefs.h.  */
1.15      bertrand 7389: #include "mysql.h"
1.1       bertrand 7390: int
                   7391: main ()
                   7392: {
1.15      bertrand 7393: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7394:   ;
                   7395:   return 0;
                   7396: }
                   7397: _ACEOF
1.15      bertrand 7398: if ac_fn_c_try_link "$LINENO"; then :
                   7399:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7400: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7401: else
1.15      bertrand 7402:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7403: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7404: fi
                   7405: rm -f core conftest.err conftest.$ac_objext \
                   7406:     conftest$ac_exeext conftest.$ac_ext
                   7407:        LIBS=$saved_LIBS;
1.30      bertrand 7408:        if test $STATIC = no; then
                   7409:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7410:        else
                   7411:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7412:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7413:        fi
1.15      bertrand 7414:    fi
1.14      bertrand 7415: 
1.15      bertrand 7416:    if test $MYSQL_LIB = no; then
                   7417:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7418:    fi
1.14      bertrand 7419: fi
1.15      bertrand 7420: 
                   7421: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7422:    libMySQLinc=
                   7423:    libMySQLlib=
1.1       bertrand 7424: fi
1.14      bertrand 7425: 
                   7426: 
                   7427: 
1.1       bertrand 7428: 
                   7429: 
1.15      bertrand 7430: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7431: 
                   7432: # Check whether --with-postgresql was given.
                   7433: if test "${with_postgresql+set}" = set; then :
                   7434:   withval=$with_postgresql;
1.14      bertrand 7435: else
1.15      bertrand 7436:   with_postgresql=check
                   7437: fi
                   7438: 
                   7439: 
                   7440: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7441: # no [--without], valeur [--with=valeur].
                   7442: 
                   7443: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7444:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7445:    libPgSQLlib="/usr/lib"
1.15      bertrand 7446: 
                   7447:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7448: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7449:    saved_CFLAGS="$CFLAGS"
                   7450:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7451:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7452: /* end confdefs.h.  */
1.15      bertrand 7453: #include "libpq-fe.h"
1.1       bertrand 7454: int
                   7455: main ()
                   7456: {
1.15      bertrand 7457: 
1.1       bertrand 7458:   ;
                   7459:   return 0;
                   7460: }
                   7461: _ACEOF
1.15      bertrand 7462: if ac_fn_c_try_compile "$LINENO"; then :
                   7463:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7464: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7465: else
1.15      bertrand 7466:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7467: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7468: fi
1.14      bertrand 7469: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7470:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7471: 
1.15      bertrand 7472:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7473:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7474: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7475:        saved_CFLAGS="$CFLAGS"
                   7476:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7477:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7478: /* end confdefs.h.  */
1.15      bertrand 7479: #include "libpq-fe.h"
1.1       bertrand 7480: int
                   7481: main ()
                   7482: {
                   7483: 
                   7484:   ;
                   7485:   return 0;
                   7486: }
                   7487: _ACEOF
1.15      bertrand 7488: if ac_fn_c_try_compile "$LINENO"; then :
                   7489:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7490: $as_echo "yes" >&6; };
                   7491:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7492: else
                   7493:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7494: $as_echo "no" >&6; };
                   7495:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7496: fi
                   7497: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7498:        CFLAGS=$saved_CFLAGS
                   7499:        libPgSQLinc=$libPgSQLinc/postgresql
                   7500:    fi
                   7501: 
                   7502:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7503:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7504: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7505:        saved_CFLAGS="$CFLAGS"
                   7506:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7507:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7508: /* end confdefs.h.  */
1.15      bertrand 7509: #include "libpq-fe.h"
1.1       bertrand 7510: int
                   7511: main ()
                   7512: {
                   7513: 
                   7514:   ;
                   7515:   return 0;
                   7516: }
                   7517: _ACEOF
1.15      bertrand 7518: if ac_fn_c_try_compile "$LINENO"; then :
                   7519:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7520: $as_echo "yes" >&6; };
                   7521:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7522: else
1.15      bertrand 7523:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7524: $as_echo "no" >&6; };
                   7525:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7526: fi
                   7527: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7528:        CFLAGS=$saved_CFLAGS
                   7529:        libPgSQLinc=$libPgSQLinc/pgsql
                   7530:    fi
1.1       bertrand 7531: 
1.15      bertrand 7532:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7533:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7534: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7535:        saved_CFLAGS="$CFLAGS"
                   7536:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7537:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7538: /* end confdefs.h.  */
1.15      bertrand 7539: #include "libpq-fe.h"
1.1       bertrand 7540: int
                   7541: main ()
                   7542: {
                   7543: 
                   7544:   ;
                   7545:   return 0;
                   7546: }
                   7547: _ACEOF
1.15      bertrand 7548: if ac_fn_c_try_compile "$LINENO"; then :
                   7549:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7550: $as_echo "yes" >&6; };
                   7551:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7552: else
                   7553:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7554: $as_echo "no" >&6; };
                   7555:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7556: fi
                   7557: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7558:        CFLAGS=$saved_CFLAGS
                   7559:        libPgSQLinc=$libPgSQLinc/../local/include
                   7560:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7561:    fi
                   7562: 
                   7563:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7564:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7565: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7566:        saved_CFLAGS="$CFLAGS"
                   7567:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7568:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7569: /* end confdefs.h.  */
1.15      bertrand 7570: #include "libpq-fe.h"
1.1       bertrand 7571: int
                   7572: main ()
                   7573: {
                   7574: 
                   7575:   ;
                   7576:   return 0;
                   7577: }
                   7578: _ACEOF
1.15      bertrand 7579: if ac_fn_c_try_compile "$LINENO"; then :
                   7580:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7581: $as_echo "yes" >&6; };
                   7582:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7583: else
1.15      bertrand 7584:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7585: $as_echo "no" >&6; };
                   7586:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7587: fi
                   7588: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7589:        CFLAGS=$saved_CFLAGS
                   7590:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7591:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7592:    fi
1.14      bertrand 7593: 
1.15      bertrand 7594:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7595:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7596: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7597:        saved_CFLAGS="$CFLAGS"
                   7598:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7599:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7600: /* end confdefs.h.  */
1.15      bertrand 7601: #include "libpq-fe.h"
1.1       bertrand 7602: int
                   7603: main ()
                   7604: {
                   7605: 
                   7606:   ;
                   7607:   return 0;
                   7608: }
                   7609: _ACEOF
1.15      bertrand 7610: if ac_fn_c_try_compile "$LINENO"; then :
                   7611:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7612: $as_echo "yes" >&6; };
                   7613:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7614: else
1.15      bertrand 7615:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7616: $as_echo "no" >&6; };
                   7617:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7618: fi
                   7619: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7620:        CFLAGS=$saved_CFLAGS
                   7621:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7622:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7623:    fi
1.14      bertrand 7624: else
1.15      bertrand 7625:    if test "x$with_postgresql" != xno; then
                   7626:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7627:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7628: 
                   7629:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7630: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7631:        saved_CFLAGS="$CFLAGS"
                   7632:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7633:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7634: /* end confdefs.h.  */
1.15      bertrand 7635: #include "libpq-fe.h"
1.1       bertrand 7636: int
                   7637: main ()
                   7638: {
                   7639: 
                   7640:   ;
                   7641:   return 0;
                   7642: }
                   7643: _ACEOF
1.15      bertrand 7644: if ac_fn_c_try_compile "$LINENO"; then :
                   7645:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7646: $as_echo "yes" >&6; };
                   7647:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7648: else
1.15      bertrand 7649:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7650: $as_echo "no" >&6; };
                   7651:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7652: fi
1.15      bertrand 7653: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7654:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7655: 
1.15      bertrand 7656:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7657:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7658: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7659:            saved_CFLAGS="$CFLAGS"
                   7660:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7661:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7662: /* end confdefs.h.  */
1.15      bertrand 7663: #include "libpq-fe.h"
1.1       bertrand 7664: int
                   7665: main ()
                   7666: {
1.15      bertrand 7667: 
1.1       bertrand 7668:   ;
                   7669:   return 0;
                   7670: }
                   7671: _ACEOF
1.15      bertrand 7672: if ac_fn_c_try_compile "$LINENO"; then :
                   7673:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7674: $as_echo "yes" >&6; };
                   7675:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7676: else
1.15      bertrand 7677:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7678: $as_echo "no" >&6; };
                   7679:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7680: fi
                   7681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7682:            CFLAGS=$saved_CFLAGS
                   7683:            libPgSQLinc=$libPgSQLinc/postgresql
                   7684:        fi
1.14      bertrand 7685: 
1.15      bertrand 7686:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7687:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7688: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7689:            saved_CFLAGS="$CFLAGS"
                   7690:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7691:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7692: /* end confdefs.h.  */
1.15      bertrand 7693: #include "libpq-fe.h"
1.1       bertrand 7694: int
                   7695: main ()
                   7696: {
1.15      bertrand 7697: 
1.1       bertrand 7698:   ;
                   7699:   return 0;
                   7700: }
                   7701: _ACEOF
1.15      bertrand 7702: if ac_fn_c_try_compile "$LINENO"; then :
                   7703:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7704: $as_echo "yes" >&6; };
                   7705:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7706: else
1.15      bertrand 7707:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7708: $as_echo "no" >&6; };
                   7709:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7710: fi
1.15      bertrand 7711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7712:            CFLAGS=$saved_CFLAGS
                   7713:            libPgSQLinc=$libPgSQLinc/pgsql
                   7714:        fi
                   7715:    else
                   7716:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7717:    fi
1.1       bertrand 7718: fi
                   7719: 
1.15      bertrand 7720: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7721:    POSTGRESQL_LIB=no
1.1       bertrand 7722: 
1.15      bertrand 7723:    if test $POSTGRESQL_LIB = no; then
                   7724:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7725: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7726:        saved_LIBS="$LIBS"
1.30      bertrand 7727:        if test $STATIC = no; then
                   7728:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7729:        else
                   7730:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7731:        fi
1.15      bertrand 7732:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7733: /* end confdefs.h.  */
1.15      bertrand 7734: #include "libpq-fe.h"
1.1       bertrand 7735: int
                   7736: main ()
                   7737: {
1.15      bertrand 7738: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7739:             PQconnectdb(conninfo);
1.1       bertrand 7740:   ;
                   7741:   return 0;
                   7742: }
                   7743: _ACEOF
1.15      bertrand 7744: if ac_fn_c_try_link "$LINENO"; then :
                   7745:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7746: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7747: else
1.15      bertrand 7748:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7749: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7750: fi
                   7751: rm -f core conftest.err conftest.$ac_objext \
                   7752:     conftest$ac_exeext conftest.$ac_ext
                   7753:        LIBS=$saved_LIBS;
1.30      bertrand 7754:        if test $STATIC = no; then
                   7755:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7756:        else
                   7757:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7758:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7759:        fi
1.15      bertrand 7760:    fi
                   7761: fi
                   7762: 
                   7763: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7764:    libPgSQLinc=
                   7765:    libPgSQLlib=
                   7766: fi
                   7767: 
                   7768: 
                   7769: 
                   7770: 
1.14      bertrand 7771: 
1.40      bertrand 7772: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7773: # no [--without], valeur [--with=valeur].
                   7774: 
                   7775: # Check whether --with-bourne_shell was given.
                   7776: if test "${with_bourne_shell+set}" = set; then :
                   7777:   withval=$with_bourne_shell;
                   7778: else
                   7779:   with_bourne_shell=no
                   7780: fi
                   7781: 
                   7782: 
                   7783: if test "x$with_bourne_shell" = xyes; then
                   7784:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7785: fi
                   7786: 
                   7787: if test "x$with_bourne_shell" = xno; then
                   7788:    if test $(uname) = "OS/2"; then
                   7789:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
                   7790:    fi
                   7791: 
                   7792:    BSH_PATH=
                   7793: else
                   7794:    if test ! -x $with_bourne_shell; then
                   7795:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7796:    fi
                   7797: 
                   7798:    if test $(uname) = "OS/2"; then
1.41      bertrand 7799:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7800:                sed -e '1,$s/\//\\\\\\\\/g')
                   7801:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7802:    else
                   7803:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7804: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7805:        BSH_PATH=
                   7806:    fi
                   7807: fi
                   7808: 
1.15      bertrand 7809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7810: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   7811: if test "${ac_cv_path_GREP+set}" = set; then :
                   7812:   $as_echo_n "(cached) " >&6
                   7813: else
                   7814:   if test -z "$GREP"; then
                   7815:   ac_path_GREP_found=false
                   7816:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7817:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7818: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7819: do
                   7820:   IFS=$as_save_IFS
                   7821:   test -z "$as_dir" && as_dir=.
                   7822:     for ac_prog in grep ggrep; do
                   7823:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7824:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7825:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7826: # Check for GNU ac_path_GREP and select it if it is found.
                   7827:   # Check for GNU $ac_path_GREP
                   7828: case `"$ac_path_GREP" --version 2>&1` in
                   7829: *GNU*)
                   7830:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7831: *)
                   7832:   ac_count=0
                   7833:   $as_echo_n 0123456789 >"conftest.in"
                   7834:   while :
                   7835:   do
                   7836:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7837:     mv "conftest.tmp" "conftest.in"
                   7838:     cp "conftest.in" "conftest.nl"
                   7839:     $as_echo 'GREP' >> "conftest.nl"
                   7840:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7841:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7842:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7843:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7844:       # Best one so far, save it but keep looking for a better one
                   7845:       ac_cv_path_GREP="$ac_path_GREP"
                   7846:       ac_path_GREP_max=$ac_count
                   7847:     fi
                   7848:     # 10*(2^10) chars as input seems more than enough
                   7849:     test $ac_count -gt 10 && break
                   7850:   done
                   7851:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7852: esac
1.14      bertrand 7853: 
1.15      bertrand 7854:       $ac_path_GREP_found && break 3
                   7855:     done
                   7856:   done
                   7857:   done
                   7858: IFS=$as_save_IFS
                   7859:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 7860:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7861:   fi
                   7862: else
                   7863:   ac_cv_path_GREP=$GREP
1.1       bertrand 7864: fi
                   7865: 
                   7866: fi
1.15      bertrand 7867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7868: $as_echo "$ac_cv_path_GREP" >&6; }
                   7869:  GREP="$ac_cv_path_GREP"
                   7870: 
                   7871: 
                   7872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7873: $as_echo_n "checking for egrep... " >&6; }
                   7874: if test "${ac_cv_path_EGREP+set}" = set; then :
                   7875:   $as_echo_n "(cached) " >&6
                   7876: else
                   7877:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7878:    then ac_cv_path_EGREP="$GREP -E"
                   7879:    else
                   7880:      if test -z "$EGREP"; then
                   7881:   ac_path_EGREP_found=false
                   7882:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7883:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7884: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7885: do
                   7886:   IFS=$as_save_IFS
                   7887:   test -z "$as_dir" && as_dir=.
                   7888:     for ac_prog in egrep; do
                   7889:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7890:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   7891:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   7892: # Check for GNU ac_path_EGREP and select it if it is found.
                   7893:   # Check for GNU $ac_path_EGREP
                   7894: case `"$ac_path_EGREP" --version 2>&1` in
                   7895: *GNU*)
                   7896:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   7897: *)
                   7898:   ac_count=0
                   7899:   $as_echo_n 0123456789 >"conftest.in"
                   7900:   while :
                   7901:   do
                   7902:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7903:     mv "conftest.tmp" "conftest.in"
                   7904:     cp "conftest.in" "conftest.nl"
                   7905:     $as_echo 'EGREP' >> "conftest.nl"
                   7906:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7907:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7908:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7909:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   7910:       # Best one so far, save it but keep looking for a better one
                   7911:       ac_cv_path_EGREP="$ac_path_EGREP"
                   7912:       ac_path_EGREP_max=$ac_count
                   7913:     fi
                   7914:     # 10*(2^10) chars as input seems more than enough
                   7915:     test $ac_count -gt 10 && break
                   7916:   done
                   7917:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7918: esac
                   7919: 
                   7920:       $ac_path_EGREP_found && break 3
                   7921:     done
                   7922:   done
                   7923:   done
                   7924: IFS=$as_save_IFS
                   7925:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 7926:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7927:   fi
1.1       bertrand 7928: else
1.15      bertrand 7929:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 7930: fi
                   7931: 
1.15      bertrand 7932:    fi
1.1       bertrand 7933: fi
1.15      bertrand 7934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   7935: $as_echo "$ac_cv_path_EGREP" >&6; }
                   7936:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 7937: 
                   7938: 
1.15      bertrand 7939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   7940: $as_echo_n "checking for ANSI C header files... " >&6; }
                   7941: if test "${ac_cv_header_stdc+set}" = set; then :
                   7942:   $as_echo_n "(cached) " >&6
1.1       bertrand 7943: else
1.15      bertrand 7944:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7945: /* end confdefs.h.  */
                   7946: #include <stdlib.h>
                   7947: #include <stdarg.h>
                   7948: #include <string.h>
                   7949: #include <float.h>
                   7950: 
                   7951: int
                   7952: main ()
                   7953: {
                   7954: 
                   7955:   ;
                   7956:   return 0;
                   7957: }
                   7958: _ACEOF
1.15      bertrand 7959: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 7960:   ac_cv_header_stdc=yes
                   7961: else
1.15      bertrand 7962:   ac_cv_header_stdc=no
1.1       bertrand 7963: fi
                   7964: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7965: 
                   7966: if test $ac_cv_header_stdc = yes; then
                   7967:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 7968:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7969: /* end confdefs.h.  */
                   7970: #include <string.h>
                   7971: 
                   7972: _ACEOF
                   7973: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7974:   $EGREP "memchr" >/dev/null 2>&1; then :
                   7975: 
1.1       bertrand 7976: else
                   7977:   ac_cv_header_stdc=no
                   7978: fi
                   7979: rm -f conftest*
                   7980: 
                   7981: fi
                   7982: 
                   7983: if test $ac_cv_header_stdc = yes; then
                   7984:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 7985:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7986: /* end confdefs.h.  */
                   7987: #include <stdlib.h>
                   7988: 
                   7989: _ACEOF
                   7990: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7991:   $EGREP "free" >/dev/null 2>&1; then :
                   7992: 
1.1       bertrand 7993: else
                   7994:   ac_cv_header_stdc=no
                   7995: fi
                   7996: rm -f conftest*
                   7997: 
                   7998: fi
                   7999: 
                   8000: if test $ac_cv_header_stdc = yes; then
                   8001:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8002:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8003:   :
                   8004: else
1.15      bertrand 8005:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8006: /* end confdefs.h.  */
                   8007: #include <ctype.h>
                   8008: #include <stdlib.h>
                   8009: #if ((' ' & 0x0FF) == 0x020)
                   8010: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8011: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8012: #else
                   8013: # define ISLOWER(c) \
                   8014:           (('a' <= (c) && (c) <= 'i') \
                   8015:             || ('j' <= (c) && (c) <= 'r') \
                   8016:             || ('s' <= (c) && (c) <= 'z'))
                   8017: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8018: #endif
                   8019: 
                   8020: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8021: int
                   8022: main ()
                   8023: {
                   8024:   int i;
                   8025:   for (i = 0; i < 256; i++)
                   8026:     if (XOR (islower (i), ISLOWER (i))
                   8027:    || toupper (i) != TOUPPER (i))
                   8028:       return 2;
                   8029:   return 0;
                   8030: }
                   8031: _ACEOF
1.15      bertrand 8032: if ac_fn_c_try_run "$LINENO"; then :
                   8033: 
1.14      bertrand 8034: else
1.15      bertrand 8035:   ac_cv_header_stdc=no
                   8036: fi
                   8037: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8038:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8039: fi
1.1       bertrand 8040: 
                   8041: fi
                   8042: fi
1.15      bertrand 8043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8044: $as_echo "$ac_cv_header_stdc" >&6; }
                   8045: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8046: 
1.15      bertrand 8047: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8048: 
1.1       bertrand 8049: fi
                   8050: 
1.15      bertrand 8051: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8052: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8053:          inttypes.h stdint.h unistd.h
                   8054: do :
                   8055:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8056: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8057: "
1.36      bertrand 8058: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8059:   cat >>confdefs.h <<_ACEOF
                   8060: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8061: _ACEOF
1.1       bertrand 8062: 
                   8063: fi
                   8064: 
1.15      bertrand 8065: done
                   8066: 
                   8067: 
                   8068: # The cast to long int works around a bug in the HP C Compiler
                   8069: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8070: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8071: # This bug is HP SR number 8606223364.
                   8072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8073: $as_echo_n "checking size of void *... " >&6; }
                   8074: if test "${ac_cv_sizeof_void_p+set}" = set; then :
                   8075:   $as_echo_n "(cached) " >&6
                   8076: else
                   8077:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8078: 
                   8079: else
1.15      bertrand 8080:   if test "$ac_cv_type_void_p" = yes; then
                   8081:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8082: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8083: as_fn_error 77 "cannot compute sizeof (void *)
                   8084: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8085:    else
                   8086:      ac_cv_sizeof_void_p=0
                   8087:    fi
                   8088: fi
1.1       bertrand 8089: 
                   8090: fi
1.15      bertrand 8091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8092: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8093: 
1.1       bertrand 8094: 
                   8095: 
1.15      bertrand 8096: cat >>confdefs.h <<_ACEOF
                   8097: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8098: _ACEOF
1.1       bertrand 8099: 
1.15      bertrand 8100: 
                   8101: # The cast to long int works around a bug in the HP C Compiler
                   8102: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8103: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8104: # This bug is HP SR number 8606223364.
                   8105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8106: $as_echo_n "checking size of char... " >&6; }
                   8107: if test "${ac_cv_sizeof_char+set}" = set; then :
                   8108:   $as_echo_n "(cached) " >&6
                   8109: else
                   8110:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8111: 
                   8112: else
                   8113:   if test "$ac_cv_type_char" = yes; then
                   8114:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8115: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8116: as_fn_error 77 "cannot compute sizeof (char)
                   8117: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8118:    else
                   8119:      ac_cv_sizeof_char=0
                   8120:    fi
                   8121: fi
                   8122: 
1.1       bertrand 8123: fi
1.15      bertrand 8124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8125: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8126: 
                   8127: 
                   8128: 
1.15      bertrand 8129: cat >>confdefs.h <<_ACEOF
                   8130: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8131: _ACEOF
1.1       bertrand 8132: 
                   8133: 
1.15      bertrand 8134: # The cast to long int works around a bug in the HP C Compiler
                   8135: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8136: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8137: # This bug is HP SR number 8606223364.
                   8138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8139: $as_echo_n "checking size of short int... " >&6; }
                   8140: if test "${ac_cv_sizeof_short_int+set}" = set; then :
                   8141:   $as_echo_n "(cached) " >&6
                   8142: else
                   8143:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8144: 
1.15      bertrand 8145: else
                   8146:   if test "$ac_cv_type_short_int" = yes; then
                   8147:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8148: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8149: as_fn_error 77 "cannot compute sizeof (short int)
                   8150: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8151:    else
                   8152:      ac_cv_sizeof_short_int=0
                   8153:    fi
                   8154: fi
1.1       bertrand 8155: 
1.15      bertrand 8156: fi
                   8157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8158: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8159: 
                   8160: 
                   8161: 
1.15      bertrand 8162: cat >>confdefs.h <<_ACEOF
                   8163: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8164: _ACEOF
1.1       bertrand 8165: 
                   8166: 
1.15      bertrand 8167: # The cast to long int works around a bug in the HP C Compiler
                   8168: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8169: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8170: # This bug is HP SR number 8606223364.
                   8171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8172: $as_echo_n "checking size of int... " >&6; }
                   8173: if test "${ac_cv_sizeof_int+set}" = set; then :
                   8174:   $as_echo_n "(cached) " >&6
                   8175: else
                   8176:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8177: 
1.15      bertrand 8178: else
                   8179:   if test "$ac_cv_type_int" = yes; then
                   8180:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8181: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8182: as_fn_error 77 "cannot compute sizeof (int)
                   8183: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8184:    else
                   8185:      ac_cv_sizeof_int=0
                   8186:    fi
                   8187: fi
1.1       bertrand 8188: 
1.15      bertrand 8189: fi
                   8190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8191: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8192: 
                   8193: 
                   8194: 
1.15      bertrand 8195: cat >>confdefs.h <<_ACEOF
                   8196: #define SIZEOF_INT $ac_cv_sizeof_int
                   8197: _ACEOF
1.1       bertrand 8198: 
                   8199: 
1.15      bertrand 8200: # The cast to long int works around a bug in the HP C Compiler
                   8201: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8202: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8203: # This bug is HP SR number 8606223364.
                   8204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8205: $as_echo_n "checking size of long int... " >&6; }
                   8206: if test "${ac_cv_sizeof_long_int+set}" = set; then :
                   8207:   $as_echo_n "(cached) " >&6
                   8208: else
                   8209:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8210: 
1.14      bertrand 8211: else
1.15      bertrand 8212:   if test "$ac_cv_type_long_int" = yes; then
                   8213:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8214: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8215: as_fn_error 77 "cannot compute sizeof (long int)
                   8216: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8217:    else
                   8218:      ac_cv_sizeof_long_int=0
                   8219:    fi
                   8220: fi
1.1       bertrand 8221: 
                   8222: fi
1.15      bertrand 8223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8224: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8225: 
1.1       bertrand 8226: 
                   8227: 
1.15      bertrand 8228: cat >>confdefs.h <<_ACEOF
                   8229: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8230: _ACEOF
1.15      bertrand 8231: 
                   8232: 
                   8233: # The cast to long int works around a bug in the HP C Compiler
                   8234: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8235: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8236: # This bug is HP SR number 8606223364.
                   8237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8238: $as_echo_n "checking size of long long int... " >&6; }
                   8239: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
                   8240:   $as_echo_n "(cached) " >&6
                   8241: else
                   8242:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8243: 
1.14      bertrand 8244: else
1.15      bertrand 8245:   if test "$ac_cv_type_long_long_int" = yes; then
                   8246:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8247: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8248: as_fn_error 77 "cannot compute sizeof (long long int)
                   8249: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8250:    else
                   8251:      ac_cv_sizeof_long_long_int=0
                   8252:    fi
                   8253: fi
1.1       bertrand 8254: 
1.14      bertrand 8255: fi
1.15      bertrand 8256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8257: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8258: 
                   8259: 
                   8260: 
                   8261: cat >>confdefs.h <<_ACEOF
                   8262: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8263: _ACEOF
1.1       bertrand 8264: 
                   8265: 
1.15      bertrand 8266: # The cast to long int works around a bug in the HP C Compiler
                   8267: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8268: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8269: # This bug is HP SR number 8606223364.
                   8270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8271: $as_echo_n "checking size of float... " >&6; }
                   8272: if test "${ac_cv_sizeof_float+set}" = set; then :
                   8273:   $as_echo_n "(cached) " >&6
                   8274: else
                   8275:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8276: 
                   8277: else
1.15      bertrand 8278:   if test "$ac_cv_type_float" = yes; then
                   8279:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8280: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8281: as_fn_error 77 "cannot compute sizeof (float)
                   8282: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8283:    else
                   8284:      ac_cv_sizeof_float=0
                   8285:    fi
1.14      bertrand 8286: fi
                   8287: 
1.1       bertrand 8288: fi
1.15      bertrand 8289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8290: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8291: 
                   8292: 
                   8293: 
                   8294: cat >>confdefs.h <<_ACEOF
                   8295: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8296: _ACEOF
1.1       bertrand 8297: 
                   8298: 
1.15      bertrand 8299: # The cast to long int works around a bug in the HP C Compiler
                   8300: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8301: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8302: # This bug is HP SR number 8606223364.
                   8303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8304: $as_echo_n "checking size of double... " >&6; }
                   8305: if test "${ac_cv_sizeof_double+set}" = set; then :
                   8306:   $as_echo_n "(cached) " >&6
                   8307: else
                   8308:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8309: 
1.15      bertrand 8310: else
                   8311:   if test "$ac_cv_type_double" = yes; then
                   8312:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8313: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8314: as_fn_error 77 "cannot compute sizeof (double)
                   8315: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8316:    else
                   8317:      ac_cv_sizeof_double=0
                   8318:    fi
                   8319: fi
1.1       bertrand 8320: 
1.15      bertrand 8321: fi
                   8322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8323: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8324: 
1.1       bertrand 8325: 
                   8326: 
1.15      bertrand 8327: cat >>confdefs.h <<_ACEOF
                   8328: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8329: _ACEOF
1.15      bertrand 8330: 
                   8331: 
                   8332: # The cast to long int works around a bug in the HP C Compiler
                   8333: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8334: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8335: # This bug is HP SR number 8606223364.
                   8336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8337: $as_echo_n "checking size of long double... " >&6; }
                   8338: if test "${ac_cv_sizeof_long_double+set}" = set; then :
                   8339:   $as_echo_n "(cached) " >&6
                   8340: else
                   8341:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8342: 
1.14      bertrand 8343: else
1.15      bertrand 8344:   if test "$ac_cv_type_long_double" = yes; then
                   8345:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8346: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8347: as_fn_error 77 "cannot compute sizeof (long double)
                   8348: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8349:    else
                   8350:      ac_cv_sizeof_long_double=0
                   8351:    fi
                   8352: fi
1.1       bertrand 8353: 
                   8354: fi
1.15      bertrand 8355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8356: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8357: 
1.1       bertrand 8358: 
                   8359: 
1.15      bertrand 8360: cat >>confdefs.h <<_ACEOF
                   8361: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8362: _ACEOF
                   8363: 
                   8364: 
1.15      bertrand 8365: 
                   8366: ac_header_dirent=no
                   8367: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8368:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8370: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.36      bertrand 8371: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
1.15      bertrand 8372:   $as_echo_n "(cached) " >&6
1.1       bertrand 8373: else
1.15      bertrand 8374:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8375: /* end confdefs.h.  */
                   8376: #include <sys/types.h>
1.15      bertrand 8377: #include <$ac_hdr>
1.1       bertrand 8378: 
1.15      bertrand 8379: int
                   8380: main ()
                   8381: {
                   8382: if ((DIR *) 0)
                   8383: return 0;
                   8384:   ;
                   8385:   return 0;
                   8386: }
1.1       bertrand 8387: _ACEOF
1.15      bertrand 8388: if ac_fn_c_try_compile "$LINENO"; then :
                   8389:   eval "$as_ac_Header=yes"
1.1       bertrand 8390: else
1.15      bertrand 8391:   eval "$as_ac_Header=no"
                   8392: fi
                   8393: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8394: fi
1.15      bertrand 8395: eval ac_res=\$$as_ac_Header
                   8396:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8397: $as_echo "$ac_res" >&6; }
1.36      bertrand 8398: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8399:   cat >>confdefs.h <<_ACEOF
                   8400: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8401: _ACEOF
1.1       bertrand 8402: 
1.15      bertrand 8403: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8404: fi
                   8405: 
1.15      bertrand 8406: done
                   8407: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8408: if test $ac_header_dirent = dirent.h; then
                   8409:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8410: $as_echo_n "checking for library containing opendir... " >&6; }
                   8411: if test "${ac_cv_search_opendir+set}" = set; then :
                   8412:   $as_echo_n "(cached) " >&6
                   8413: else
                   8414:   ac_func_search_save_LIBS=$LIBS
                   8415: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8416: /* end confdefs.h.  */
                   8417: 
                   8418: /* Override any GCC internal prototype to avoid an error.
                   8419:    Use char because int might match the return type of a GCC
                   8420:    builtin and then its argument prototype would still apply.  */
                   8421: #ifdef __cplusplus
                   8422: extern "C"
                   8423: #endif
                   8424: char opendir ();
                   8425: int
                   8426: main ()
                   8427: {
                   8428: return opendir ();
                   8429:   ;
                   8430:   return 0;
                   8431: }
1.14      bertrand 8432: _ACEOF
1.15      bertrand 8433: for ac_lib in '' dir; do
                   8434:   if test -z "$ac_lib"; then
                   8435:     ac_res="none required"
                   8436:   else
                   8437:     ac_res=-l$ac_lib
                   8438:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8439:   fi
                   8440:   if ac_fn_c_try_link "$LINENO"; then :
                   8441:   ac_cv_search_opendir=$ac_res
                   8442: fi
                   8443: rm -f core conftest.err conftest.$ac_objext \
                   8444:     conftest$ac_exeext
                   8445:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8446:   break
                   8447: fi
                   8448: done
                   8449: if test "${ac_cv_search_opendir+set}" = set; then :
1.1       bertrand 8450: 
1.15      bertrand 8451: else
                   8452:   ac_cv_search_opendir=no
                   8453: fi
                   8454: rm conftest.$ac_ext
                   8455: LIBS=$ac_func_search_save_LIBS
                   8456: fi
                   8457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8458: $as_echo "$ac_cv_search_opendir" >&6; }
                   8459: ac_res=$ac_cv_search_opendir
                   8460: if test "$ac_res" != no; then :
                   8461:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8462: 
1.14      bertrand 8463: fi
1.1       bertrand 8464: 
                   8465: else
1.15      bertrand 8466:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8467: $as_echo_n "checking for library containing opendir... " >&6; }
                   8468: if test "${ac_cv_search_opendir+set}" = set; then :
                   8469:   $as_echo_n "(cached) " >&6
                   8470: else
                   8471:   ac_func_search_save_LIBS=$LIBS
                   8472: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8473: /* end confdefs.h.  */
1.15      bertrand 8474: 
                   8475: /* Override any GCC internal prototype to avoid an error.
                   8476:    Use char because int might match the return type of a GCC
                   8477:    builtin and then its argument prototype would still apply.  */
                   8478: #ifdef __cplusplus
                   8479: extern "C"
                   8480: #endif
                   8481: char opendir ();
1.1       bertrand 8482: int
                   8483: main ()
                   8484: {
1.15      bertrand 8485: return opendir ();
1.1       bertrand 8486:   ;
                   8487:   return 0;
                   8488: }
                   8489: _ACEOF
1.15      bertrand 8490: for ac_lib in '' x; do
                   8491:   if test -z "$ac_lib"; then
                   8492:     ac_res="none required"
                   8493:   else
                   8494:     ac_res=-l$ac_lib
                   8495:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8496:   fi
                   8497:   if ac_fn_c_try_link "$LINENO"; then :
                   8498:   ac_cv_search_opendir=$ac_res
                   8499: fi
                   8500: rm -f core conftest.err conftest.$ac_objext \
                   8501:     conftest$ac_exeext
                   8502:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8503:   break
                   8504: fi
                   8505: done
                   8506: if test "${ac_cv_search_opendir+set}" = set; then :
                   8507: 
1.1       bertrand 8508: else
1.15      bertrand 8509:   ac_cv_search_opendir=no
                   8510: fi
                   8511: rm conftest.$ac_ext
                   8512: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8513: fi
1.15      bertrand 8514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8515: $as_echo "$ac_cv_search_opendir" >&6; }
                   8516: ac_res=$ac_cv_search_opendir
                   8517: if test "$ac_res" != no; then :
                   8518:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8519: 
1.1       bertrand 8520: fi
                   8521: 
                   8522: fi
                   8523: 
1.15      bertrand 8524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8525: $as_echo_n "checking for ANSI C header files... " >&6; }
                   8526: if test "${ac_cv_header_stdc+set}" = set; then :
                   8527:   $as_echo_n "(cached) " >&6
1.1       bertrand 8528: else
1.15      bertrand 8529:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8530: /* end confdefs.h.  */
1.15      bertrand 8531: #include <stdlib.h>
                   8532: #include <stdarg.h>
                   8533: #include <string.h>
                   8534: #include <float.h>
                   8535: 
1.1       bertrand 8536: int
                   8537: main ()
                   8538: {
1.15      bertrand 8539: 
1.1       bertrand 8540:   ;
                   8541:   return 0;
                   8542: }
                   8543: _ACEOF
1.15      bertrand 8544: if ac_fn_c_try_compile "$LINENO"; then :
                   8545:   ac_cv_header_stdc=yes
1.14      bertrand 8546: else
1.15      bertrand 8547:   ac_cv_header_stdc=no
                   8548: fi
                   8549: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8550: 
                   8551: if test $ac_cv_header_stdc = yes; then
                   8552:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8553:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8554: /* end confdefs.h.  */
                   8555: #include <string.h>
                   8556: 
                   8557: _ACEOF
                   8558: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8559:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8560: 
1.15      bertrand 8561: else
                   8562:   ac_cv_header_stdc=no
1.1       bertrand 8563: fi
1.15      bertrand 8564: rm -f conftest*
1.14      bertrand 8565: 
1.1       bertrand 8566: fi
                   8567: 
1.15      bertrand 8568: if test $ac_cv_header_stdc = yes; then
                   8569:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8570:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8571: /* end confdefs.h.  */
                   8572: #include <stdlib.h>
                   8573: 
1.14      bertrand 8574: _ACEOF
1.15      bertrand 8575: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8576:   $EGREP "free" >/dev/null 2>&1; then :
                   8577: 
                   8578: else
                   8579:   ac_cv_header_stdc=no
                   8580: fi
                   8581: rm -f conftest*
1.1       bertrand 8582: 
                   8583: fi
                   8584: 
1.15      bertrand 8585: if test $ac_cv_header_stdc = yes; then
                   8586:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8587:   if test "$cross_compiling" = yes; then :
                   8588:   :
1.1       bertrand 8589: else
1.15      bertrand 8590:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8591: /* end confdefs.h.  */
1.15      bertrand 8592: #include <ctype.h>
                   8593: #include <stdlib.h>
                   8594: #if ((' ' & 0x0FF) == 0x020)
                   8595: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8596: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8597: #else
                   8598: # define ISLOWER(c) \
                   8599:           (('a' <= (c) && (c) <= 'i') \
                   8600:             || ('j' <= (c) && (c) <= 'r') \
                   8601:             || ('s' <= (c) && (c) <= 'z'))
                   8602: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8603: #endif
1.1       bertrand 8604: 
1.15      bertrand 8605: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8606: int
                   8607: main ()
                   8608: {
1.15      bertrand 8609:   int i;
                   8610:   for (i = 0; i < 256; i++)
                   8611:     if (XOR (islower (i), ISLOWER (i))
                   8612:    || toupper (i) != TOUPPER (i))
                   8613:       return 2;
1.1       bertrand 8614:   return 0;
                   8615: }
                   8616: _ACEOF
1.15      bertrand 8617: if ac_fn_c_try_run "$LINENO"; then :
                   8618: 
1.14      bertrand 8619: else
1.15      bertrand 8620:   ac_cv_header_stdc=no
                   8621: fi
                   8622: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8623:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8624: fi
1.14      bertrand 8625: 
1.1       bertrand 8626: fi
                   8627: fi
1.15      bertrand 8628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8629: $as_echo "$ac_cv_header_stdc" >&6; }
                   8630: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8631: 
1.15      bertrand 8632: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8633: 
                   8634: fi
                   8635: 
1.15      bertrand 8636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8637: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   8638: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
                   8639:   $as_echo_n "(cached) " >&6
1.1       bertrand 8640: else
1.15      bertrand 8641:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8642: /* end confdefs.h.  */
1.14      bertrand 8643: #include <sys/types.h>
1.15      bertrand 8644: #include <sys/wait.h>
                   8645: #ifndef WEXITSTATUS
                   8646: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8647: #endif
                   8648: #ifndef WIFEXITED
                   8649: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8650: #endif
1.1       bertrand 8651: 
                   8652: int
                   8653: main ()
                   8654: {
1.15      bertrand 8655:   int s;
                   8656:   wait (&s);
                   8657:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8658:   ;
                   8659:   return 0;
                   8660: }
                   8661: _ACEOF
1.15      bertrand 8662: if ac_fn_c_try_compile "$LINENO"; then :
                   8663:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8664: else
1.15      bertrand 8665:   ac_cv_header_sys_wait_h=no
                   8666: fi
                   8667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8668: fi
                   8669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8670: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8671: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8672: 
1.15      bertrand 8673: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8674: 
                   8675: fi
                   8676: 
1.15      bertrand 8677: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8678:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8679:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8680: do :
                   8681:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8682: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8683: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8684:   cat >>confdefs.h <<_ACEOF
                   8685: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8686: _ACEOF
                   8687: 
                   8688: fi
                   8689: 
1.15      bertrand 8690: done
                   8691: 
1.1       bertrand 8692: 
1.15      bertrand 8693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8694: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   8695: if test "${ac_cv_c_const+set}" = set; then :
                   8696:   $as_echo_n "(cached) " >&6
1.1       bertrand 8697: else
1.15      bertrand 8698:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8699: /* end confdefs.h.  */
                   8700: 
                   8701: int
                   8702: main ()
                   8703: {
1.15      bertrand 8704: /* FIXME: Include the comments suggested by Paul. */
                   8705: #ifndef __cplusplus
                   8706:   /* Ultrix mips cc rejects this.  */
                   8707:   typedef int charset[2];
                   8708:   const charset cs;
                   8709:   /* SunOS 4.1.1 cc rejects this.  */
                   8710:   char const *const *pcpcc;
                   8711:   char **ppc;
                   8712:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8713:   struct point {int x, y;};
                   8714:   static struct point const zero = {0,0};
                   8715:   /* AIX XL C 1.02.0.0 rejects this.
                   8716:      It does not let you subtract one const X* pointer from another in
                   8717:      an arm of an if-expression whose if-part is not a constant
                   8718:      expression */
                   8719:   const char *g = "string";
                   8720:   pcpcc = &g + (g ? g-g : 0);
                   8721:   /* HPUX 7.0 cc rejects these. */
                   8722:   ++pcpcc;
                   8723:   ppc = (char**) pcpcc;
                   8724:   pcpcc = (char const *const *) ppc;
                   8725:   { /* SCO 3.2v4 cc rejects this.  */
                   8726:     char *t;
                   8727:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8728: 
                   8729:     *t++ = 0;
                   8730:     if (s) return 0;
                   8731:   }
                   8732:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8733:     int x[] = {25, 17};
                   8734:     const int *foo = &x[0];
                   8735:     ++foo;
                   8736:   }
                   8737:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8738:     typedef const int *iptr;
                   8739:     iptr p = 0;
                   8740:     ++p;
                   8741:   }
                   8742:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8743:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8744:     struct s { int j; const int *ap[3]; };
                   8745:     struct s *b; b->j = 5;
                   8746:   }
                   8747:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8748:     const int foo = 10;
                   8749:     if (!foo) return 0;
                   8750:   }
                   8751:   return !cs[0] && !zero.x;
                   8752: #endif
                   8753: 
1.14      bertrand 8754:   ;
1.1       bertrand 8755:   return 0;
                   8756: }
                   8757: _ACEOF
1.15      bertrand 8758: if ac_fn_c_try_compile "$LINENO"; then :
                   8759:   ac_cv_c_const=yes
1.14      bertrand 8760: else
1.15      bertrand 8761:   ac_cv_c_const=no
1.1       bertrand 8762: fi
1.14      bertrand 8763: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8764: fi
1.15      bertrand 8765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8766: $as_echo "$ac_cv_c_const" >&6; }
                   8767: if test $ac_cv_c_const = no; then
1.1       bertrand 8768: 
1.15      bertrand 8769: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8770: 
1.15      bertrand 8771: fi
1.1       bertrand 8772: 
1.15      bertrand 8773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8774: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   8775: if test "${ac_cv_type_uid_t+set}" = set; then :
                   8776:   $as_echo_n "(cached) " >&6
1.1       bertrand 8777: else
1.15      bertrand 8778:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8779: /* end confdefs.h.  */
1.15      bertrand 8780: #include <sys/types.h>
                   8781: 
1.1       bertrand 8782: _ACEOF
1.15      bertrand 8783: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8784:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8785:   ac_cv_type_uid_t=yes
1.1       bertrand 8786: else
1.15      bertrand 8787:   ac_cv_type_uid_t=no
                   8788: fi
                   8789: rm -f conftest*
1.14      bertrand 8790: 
1.1       bertrand 8791: fi
1.15      bertrand 8792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8793: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8794: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8795: 
1.15      bertrand 8796: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8797: 
                   8798: 
1.15      bertrand 8799: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8800: 
                   8801: fi
                   8802: 
1.15      bertrand 8803: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   8804: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1       bertrand 8805: 
                   8806: else
1.15      bertrand 8807: 
                   8808: cat >>confdefs.h <<_ACEOF
                   8809: #define pid_t int
1.14      bertrand 8810: _ACEOF
                   8811: 
1.15      bertrand 8812: fi
1.14      bertrand 8813: 
1.15      bertrand 8814: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   8815: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14      bertrand 8816: 
1.15      bertrand 8817: else
1.1       bertrand 8818: 
1.15      bertrand 8819: cat >>confdefs.h <<_ACEOF
                   8820: #define size_t unsigned int
1.1       bertrand 8821: _ACEOF
1.14      bertrand 8822: 
1.1       bertrand 8823: fi
                   8824: 
1.15      bertrand 8825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8826: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   8827: if test "${ac_cv_header_time+set}" = set; then :
                   8828:   $as_echo_n "(cached) " >&6
1.1       bertrand 8829: else
1.15      bertrand 8830:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8831: /* end confdefs.h.  */
1.15      bertrand 8832: #include <sys/types.h>
                   8833: #include <sys/time.h>
                   8834: #include <time.h>
1.1       bertrand 8835: 
1.14      bertrand 8836: int
                   8837: main ()
                   8838: {
1.15      bertrand 8839: if ((struct tm *) 0)
                   8840: return 0;
1.14      bertrand 8841:   ;
                   8842:   return 0;
                   8843: }
1.1       bertrand 8844: _ACEOF
1.15      bertrand 8845: if ac_fn_c_try_compile "$LINENO"; then :
                   8846:   ac_cv_header_time=yes
1.1       bertrand 8847: else
1.15      bertrand 8848:   ac_cv_header_time=no
1.1       bertrand 8849: fi
1.15      bertrand 8850: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8851: fi
1.15      bertrand 8852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8853: $as_echo "$ac_cv_header_time" >&6; }
                   8854: if test $ac_cv_header_time = yes; then
1.1       bertrand 8855: 
1.15      bertrand 8856: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8857: 
                   8858: fi
                   8859: 
1.15      bertrand 8860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8861: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   8862: if test "${ac_cv_struct_tm+set}" = set; then :
                   8863:   $as_echo_n "(cached) " >&6
1.1       bertrand 8864: else
1.15      bertrand 8865:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8866: /* end confdefs.h.  */
1.15      bertrand 8867: #include <sys/types.h>
                   8868: #include <time.h>
1.1       bertrand 8869: 
                   8870: int
                   8871: main ()
                   8872: {
1.15      bertrand 8873: struct tm tm;
                   8874:                     int *p = &tm.tm_sec;
                   8875:                     return !p;
1.1       bertrand 8876:   ;
                   8877:   return 0;
                   8878: }
                   8879: _ACEOF
1.15      bertrand 8880: if ac_fn_c_try_compile "$LINENO"; then :
                   8881:   ac_cv_struct_tm=time.h
1.1       bertrand 8882: else
1.15      bertrand 8883:   ac_cv_struct_tm=sys/time.h
                   8884: fi
                   8885: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8886: fi
                   8887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8888: $as_echo "$ac_cv_struct_tm" >&6; }
                   8889: if test $ac_cv_struct_tm = sys/time.h; then
                   8890: 
                   8891: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 8892: 
1.1       bertrand 8893: fi
                   8894: 
                   8895: 
1.15      bertrand 8896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   8897: $as_echo_n "checking return type of signal handlers... " >&6; }
                   8898: if test "${ac_cv_type_signal+set}" = set; then :
                   8899:   $as_echo_n "(cached) " >&6
1.1       bertrand 8900: else
1.15      bertrand 8901:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8902: /* end confdefs.h.  */
1.15      bertrand 8903: #include <sys/types.h>
                   8904: #include <signal.h>
1.1       bertrand 8905: 
                   8906: int
                   8907: main ()
                   8908: {
1.15      bertrand 8909: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 8910:   ;
                   8911:   return 0;
                   8912: }
                   8913: _ACEOF
1.15      bertrand 8914: if ac_fn_c_try_compile "$LINENO"; then :
                   8915:   ac_cv_type_signal=int
1.1       bertrand 8916: else
1.15      bertrand 8917:   ac_cv_type_signal=void
1.1       bertrand 8918: fi
1.15      bertrand 8919: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8920: fi
1.15      bertrand 8921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   8922: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 8923: 
1.15      bertrand 8924: cat >>confdefs.h <<_ACEOF
                   8925: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 8926: _ACEOF
1.1       bertrand 8927: 
1.15      bertrand 8928: 
1.35      bertrand 8929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
                   8930: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
                   8931: if test "$cross_compiling" = yes; then :
                   8932:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8933: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8934: as_fn_error $? "cannot run test program while cross compiling
                   8935: See \`config.log' for more details" "$LINENO" 5 ; }
1.35      bertrand 8936: else
                   8937:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8938: /* end confdefs.h.  */
                   8939: #include <unistd.h>
                   8940: #include <signal.h>
                   8941: int flag;
                   8942: void handler(int signal, siginfo_t *siginfo, void *context)
1.39      bertrand 8943: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35      bertrand 8944: int
                   8945: main ()
                   8946: {
                   8947: struct sigaction    action;
                   8948: action.sa_sigaction = handler;
                   8949: action.sa_flags = SA_SIGINFO;
                   8950: sigaction(SIGUSR1, &action, NULL);
                   8951: raise(SIGUSR1);
                   8952: return(flag);
                   8953:   ;
                   8954:   return 0;
                   8955: }
                   8956: _ACEOF
                   8957: if ac_fn_c_try_run "$LINENO"; then :
                   8958:   BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8959: $as_echo "no" >&6; }
                   8960: else
                   8961:   BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   8962: $as_echo "yes" >&6; }
                   8963: fi
                   8964: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8965:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8966: fi
                   8967: 
                   8968: 
1.15      bertrand 8969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   8970: $as_echo_n "checking for working strcoll... " >&6; }
                   8971: if test "${ac_cv_func_strcoll_works+set}" = set; then :
                   8972:   $as_echo_n "(cached) " >&6
                   8973: else
                   8974:   if test "$cross_compiling" = yes; then :
                   8975:   ac_cv_func_strcoll_works=no
                   8976: else
                   8977:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8978: /* end confdefs.h.  */
                   8979: $ac_includes_default
                   8980: int
                   8981: main ()
                   8982: {
                   8983: return (strcoll ("abc", "def") >= 0 ||
                   8984:     strcoll ("ABC", "DEF") >= 0 ||
                   8985:     strcoll ("123", "456") >= 0)
                   8986:   ;
                   8987:   return 0;
                   8988: }
                   8989: _ACEOF
                   8990: if ac_fn_c_try_run "$LINENO"; then :
                   8991:   ac_cv_func_strcoll_works=yes
                   8992: else
                   8993:   ac_cv_func_strcoll_works=no
                   8994: fi
                   8995: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8996:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 8997: fi
1.1       bertrand 8998: 
                   8999: fi
1.15      bertrand 9000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9001: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9002: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9003: 
1.15      bertrand 9004: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9005: 
1.15      bertrand 9006: fi
1.1       bertrand 9007: 
1.15      bertrand 9008: for ac_func in strftime
                   9009: do :
                   9010:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   9011: if test "x$ac_cv_func_strftime" = x""yes; then :
                   9012:   cat >>confdefs.h <<_ACEOF
                   9013: #define HAVE_STRFTIME 1
                   9014: _ACEOF
1.1       bertrand 9015: 
                   9016: else
1.15      bertrand 9017:   # strftime is in -lintl on SCO UNIX.
                   9018: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9019: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   9020: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
                   9021:   $as_echo_n "(cached) " >&6
                   9022: else
                   9023:   ac_check_lib_save_LIBS=$LIBS
                   9024: LIBS="-lintl  $LIBS"
                   9025: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9026: /* end confdefs.h.  */
                   9027: 
                   9028: /* Override any GCC internal prototype to avoid an error.
                   9029:    Use char because int might match the return type of a GCC
                   9030:    builtin and then its argument prototype would still apply.  */
                   9031: #ifdef __cplusplus
                   9032: extern "C"
                   9033: #endif
1.15      bertrand 9034: char strftime ();
1.1       bertrand 9035: int
                   9036: main ()
                   9037: {
1.15      bertrand 9038: return strftime ();
1.1       bertrand 9039:   ;
                   9040:   return 0;
                   9041: }
                   9042: _ACEOF
1.15      bertrand 9043: if ac_fn_c_try_link "$LINENO"; then :
                   9044:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9045: else
1.15      bertrand 9046:   ac_cv_lib_intl_strftime=no
                   9047: fi
                   9048: rm -f core conftest.err conftest.$ac_objext \
                   9049:     conftest$ac_exeext conftest.$ac_ext
                   9050: LIBS=$ac_check_lib_save_LIBS
                   9051: fi
                   9052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9053: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   9054: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
                   9055:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9056: 
                   9057: LIBS="-lintl $LIBS"
                   9058: fi
                   9059: 
                   9060: fi
                   9061: done
                   9062: 
                   9063: for ac_func in vprintf
                   9064: do :
                   9065:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   9066: if test "x$ac_cv_func_vprintf" = x""yes; then :
                   9067:   cat >>confdefs.h <<_ACEOF
                   9068: #define HAVE_VPRINTF 1
                   9069: _ACEOF
                   9070: 
                   9071: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   9072: if test "x$ac_cv_func__doprnt" = x""yes; then :
                   9073: 
                   9074: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9075: 
                   9076: fi
                   9077: 
                   9078: fi
1.15      bertrand 9079: done
                   9080: 
                   9081: 
                   9082: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9083:        strerror strspn strstr strtod
                   9084: do :
                   9085:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9086: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9087: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9088:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9089: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9090: _ACEOF
                   9091: 
                   9092: fi
                   9093: done
                   9094: 
                   9095: 
1.15      bertrand 9096: 
                   9097: # Check whether --with-openssl_arch was given.
                   9098: if test "${with_openssl_arch+set}" = set; then :
                   9099:   withval=$with_openssl_arch;
                   9100: else
                   9101:   with_openssl_arch=none
                   9102: fi
                   9103: 
                   9104: 
1.31      bertrand 9105: if test $(uname) = "OS/2"; then
1.34      bertrand 9106:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9107: else
1.31      bertrand 9108:    if test "x$with_openssl_arch" = xnone; then
                   9109:        (cd tools/$OPENSSL && ./config)
                   9110:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9111:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9112:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9113:    elif test "x$with_openssl_arch" = xlist; then
                   9114:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9115:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9116:    else
                   9117:        (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
                   9118:    fi
1.15      bertrand 9119: fi
1.1       bertrand 9120: 
1.34      bertrand 9121: 
                   9122: 
                   9123: subdirs="$subdirs tools/$NCURSES"
                   9124: 
                   9125: subdirs="$subdirs tools/$READLINE"
                   9126: 
                   9127: subdirs="$subdirs tools/$GSL"
                   9128: 
                   9129: subdirs="$subdirs tools/$GPP"
                   9130: 
                   9131: subdirs="$subdirs tools/$FILE"
                   9132: 
                   9133: subdirs="$subdirs tools/$ICONV"
                   9134: 
                   9135: subdirs="$subdirs tools/$SQLITE"
                   9136: 
                   9137: subdirs="$subdirs tools/$UNITS"
                   9138: 
                   9139: 
1.1       bertrand 9140: if test "$MYGNUPLOT" = "yes"; then
                   9141:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9142:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9143:                (cd "$srcdir/tools" && tar -xf -)
                   9144:    fi
                   9145:    subdirs="$subdirs tools/$GNUPLOT"
                   9146: 
                   9147:    GNUPLOT_COMPILATION=$GNUPLOT
                   9148: else
                   9149:    GNUPLOT_COMPILATION=
                   9150: fi
                   9151: 
                   9152: 
                   9153: 
                   9154: case $host_cpu in
                   9155: 
                   9156:     i?86)
                   9157:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9158:            -Wno-pointer-sign"
                   9159:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9160:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9161:    break ;;
                   9162: 
                   9163:    x86_64*)
                   9164:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9165:            -Wno-pointer-sign"
                   9166:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9167:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9168:    break ;;
                   9169: 
                   9170:     alpha*)
                   9171:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   9172:            -Wno-pointer-sign"
                   9173:    FFLAGS="$FFLAGS -mieee -Wall"
                   9174:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   9175:    break ;;
                   9176: 
                   9177:     sparc*)
                   9178:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   9179:            -Wno-pointer-sign"
                   9180:    FFLAGS="$FFLAGS -Wall"
                   9181:    FCFLAGS="$FCFLAGS -Wall"
                   9182:    break ;;
                   9183: 
                   9184: esac
                   9185: 
1.8       bertrand 9186: case $host_os in
                   9187: 
                   9188:    cygwin*)
                   9189:        OS=Cygwin
                   9190:    break ;;
                   9191: 
                   9192:    interix*)
                   9193:        OS=Interix
                   9194:    break ;;
                   9195: 
                   9196:    *)
                   9197:        OS=$(uname)
                   9198:    break ;;
                   9199: 
                   9200: esac
                   9201: 
                   9202: 
                   9203: 
1.1       bertrand 9204: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9205: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9206: MALLOC=
1.1       bertrand 9207: 
1.22      bertrand 9208: case $OS in
1.17      bertrand 9209: 
                   9210:     Darwin)
1.31      bertrand 9211:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9212:        NESTED_FUNCTIONS=-fnested-functions
                   9213:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9214:        IPCS_SYSV=-UIPCS_SYSV
1.23      bertrand 9215:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9216:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49      bertrand 9217:                --disable-shared --enable-static --enable-threads"
1.33      bertrand 9218:        C_STANDARD=-std=gnu99
1.17      bertrand 9219:    break ;;
                   9220: 
1.31      bertrand 9221:     Cygwin)
                   9222:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9223:        NESTED_FUNCTIONS=
                   9224:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9225:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9226:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49      bertrand 9227:                --disable-shared --enable-static --enable-threads"
1.33      bertrand 9228:        C_STANDARD=-std=gnu99
1.17      bertrand 9229:    break ;;
                   9230: 
1.34      bertrand 9231:    Interix)
                   9232:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9233:        NESTED_FUNCTIONS=
                   9234:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9235:        IPCS_SYSV=-UIPCS_SYSV
1.34      bertrand 9236:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49      bertrand 9237:                --disable-shared --enable-static --enable-threads"
1.34      bertrand 9238:        C_STANDARD=-std=gnu99
                   9239:    break;;
                   9240: 
1.31      bertrand 9241:     AIX)
                   9242:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9243:        NESTED_FUNCTIONS=
                   9244:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9245:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9246:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49      bertrand 9247:                --disable-shared --enable-static --enable-threads"
1.33      bertrand 9248:        C_STANDARD=-std=gnu99
1.18      bertrand 9249:    break ;;
                   9250: 
1.31      bertrand 9251:     OS/2)
1.37      bertrand 9252:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9253:            FINAL_ENCODING=CP850; \
                   9254:        fi;
1.31      bertrand 9255:        OS=OS2
                   9256:        NESTED_FUNCTIONS=
                   9257:        EXPORT_DYNAMIC=-Zmap
                   9258:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9259:        IPCS_SYSV=-DIPCS_SYSV
1.31      bertrand 9260:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9261:                --without-cairo --disable-shared --enable-static \
                   9262:                --enable-threads"
1.33      bertrand 9263:        C_STANDARD=
1.31      bertrand 9264:    break;;
                   9265: 
1.35      bertrand 9266:    OpenBSD)
1.37      bertrand 9267:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9268:            FINAL_ENCODING=UTF-8; \
                   9269:        fi;
                   9270:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9271:        NESTED_FUNCTIONS=
                   9272:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9273:        IPCS_SYSV=-DIPCS_SYSV
1.35      bertrand 9274:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49      bertrand 9275:                --disable-shared --enable-static --enable-threads"
1.35      bertrand 9276:        C_STANDARD=-std=gnu99
                   9277:    break;;
                   9278: 
1.49      bertrand 9279:     SunOS)
                   9280:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9281:        NESTED_FUNCTIONS=
                   9282:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9283: 
                   9284:        if test $IPCS_SYSV = no; then
                   9285:            IPCS_SYSV=-UIPCS_SYSV
                   9286:        else
                   9287:            IPCS_SYSV=-DIPCS_SYSV
                   9288:        fi
                   9289: 
                   9290:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9291:                --disable-shared --enable-static --enable-threads"
                   9292:        C_STANDARD=-std=gnu99
                   9293:        MALLOC=-lumem
                   9294:    break ;;
                   9295: 
1.17      bertrand 9296:     *)
1.31      bertrand 9297:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9298:        NESTED_FUNCTIONS=
                   9299:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9300: 
                   9301:        if test $IPCS_SYSV = no; then
                   9302:            IPCS_SYSV=-UIPCS_SYSV
                   9303:        else
                   9304:            IPCS_SYSV=-DIPCS_SYSV
                   9305:        fi
                   9306: 
1.31      bertrand 9307:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49      bertrand 9308:                --disable-shared --enable-static --enable-threads"
1.33      bertrand 9309:        C_STANDARD=-std=gnu99
1.17      bertrand 9310:    break ;;
                   9311: 
                   9312: esac
                   9313: 
                   9314: 
                   9315: 
                   9316: 
1.1       bertrand 9317: 
                   9318: 
                   9319: 
                   9320: 
                   9321: 
                   9322: 
                   9323: 
                   9324: 
                   9325: 
                   9326: 
                   9327: 
                   9328: 
                   9329: 
                   9330: 
                   9331: 
                   9332: 
                   9333: 
                   9334: 
                   9335: 
1.9       bertrand 9336: 
1.24      bertrand 9337: 
1.30      bertrand 9338: 
1.33      bertrand 9339: 
                   9340: 
                   9341: 
1.34      bertrand 9342: 
1.35      bertrand 9343: 
1.49      bertrand 9344: 
1.55      bertrand 9345: 
                   9346: 
1.56    ! bertrand 9347: 
        !          9348: 
        !          9349: 
        !          9350: 
1.1       bertrand 9351: ac_config_files="$ac_config_files Makefile"
                   9352: 
                   9353: ac_config_files="$ac_config_files COPYING"
                   9354: 
                   9355: ac_config_files="$ac_config_files tools/Makefile"
                   9356: 
                   9357: ac_config_files="$ac_config_files src/Makefile"
                   9358: 
                   9359: ac_config_files="$ac_config_files man/Makefile"
                   9360: 
                   9361: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9362: 
                   9363: ac_config_files="$ac_config_files doc/Makefile"
                   9364: 
                   9365: ac_config_files="$ac_config_files scripts/Makefile"
                   9366: 
                   9367: ac_config_files="$ac_config_files scripts/mkrplso"
                   9368: 
                   9369: ac_config_files="$ac_config_files scripts/rplcc"
                   9370: 
                   9371: ac_config_files="$ac_config_files scripts/rpllink"
                   9372: 
                   9373: ac_config_files="$ac_config_files rpltags/Makefile"
                   9374: 
                   9375: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9376: 
1.9       bertrand 9377: ac_config_files="$ac_config_files rplsums/Makefile"
                   9378: 
1.55      bertrand 9379: ac_config_files="$ac_config_files rplcas/Makefile"
                   9380: 
1.39      bertrand 9381: ac_config_files="$ac_config_files rplawk/Makefile"
                   9382: 
1.1       bertrand 9383: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9384: 
                   9385: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9386: 
                   9387: 
                   9388: ac_config_files="$ac_config_files man/rpl.1"
                   9389: 
                   9390: ac_config_files="$ac_config_files man/rplcc.1"
                   9391: 
                   9392: ac_config_files="$ac_config_files man/rpllink.1"
                   9393: 
                   9394: ac_config_files="$ac_config_files man/rpltags.1"
                   9395: 
                   9396: ac_config_files="$ac_config_files man/mkrplso.1"
                   9397: 
                   9398: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9399: 
                   9400: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9401: 
                   9402: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9403: 
                   9404: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9405: 
                   9406: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9407: 
                   9408: 
                   9409: cat >confcache <<\_ACEOF
                   9410: # This file is a shell script that caches the results of configure
                   9411: # tests run on this system so they can be shared between configure
                   9412: # scripts and configure runs, see configure's option --config-cache.
                   9413: # It is not useful on other systems.  If it contains results you don't
                   9414: # want to keep, you may remove or edit it.
                   9415: #
                   9416: # config.status only pays attention to the cache file if you give it
                   9417: # the --recheck option to rerun configure.
                   9418: #
                   9419: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9420: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9421: # following values.
                   9422: 
                   9423: _ACEOF
                   9424: 
                   9425: # The following way of writing the cache mishandles newlines in values,
                   9426: # but we know of no workaround that is simple, portable, and efficient.
                   9427: # So, we kill variables containing newlines.
                   9428: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9429: # and sets the high bit in the cache file unless we assign to the vars.
                   9430: (
                   9431:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9432:     eval ac_val=\$$ac_var
                   9433:     case $ac_val in #(
                   9434:     *${as_nl}*)
                   9435:       case $ac_var in #(
1.15      bertrand 9436:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9437: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9438:       esac
                   9439:       case $ac_var in #(
                   9440:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9441:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9442:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9443:       esac ;;
                   9444:     esac
                   9445:   done
                   9446: 
                   9447:   (set) 2>&1 |
                   9448:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9449:     *${as_nl}ac_space=\ *)
1.15      bertrand 9450:       # `set' does not quote correctly, so add quotes: double-quote
                   9451:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9452:       sed -n \
                   9453:    "s/'/'\\\\''/g;
                   9454:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9455:       ;; #(
                   9456:     *)
                   9457:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9458:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9459:       ;;
                   9460:     esac |
                   9461:     sort
                   9462: ) |
                   9463:   sed '
                   9464:      /^ac_cv_env_/b end
                   9465:      t clear
                   9466:      :clear
                   9467:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9468:      t end
                   9469:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9470:      :end' >>confcache
                   9471: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9472:   if test -w "$cache_file"; then
                   9473:     test "x$cache_file" != "x/dev/null" &&
1.15      bertrand 9474:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9475: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1       bertrand 9476:     cat confcache >$cache_file
                   9477:   else
1.15      bertrand 9478:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9479: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9480:   fi
                   9481: fi
                   9482: rm -f confcache
                   9483: 
                   9484: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9485: # Let make expand exec_prefix.
                   9486: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9487: 
                   9488: DEFS=-DHAVE_CONFIG_H
                   9489: 
                   9490: ac_libobjs=
                   9491: ac_ltlibobjs=
1.36      bertrand 9492: U=
1.1       bertrand 9493: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9494:   # 1. Remove the extension, and $U if already installed.
                   9495:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9496:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9497:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9498:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9499:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9500:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9501: done
                   9502: LIBOBJS=$ac_libobjs
                   9503: 
                   9504: LTLIBOBJS=$ac_ltlibobjs
                   9505: 
                   9506: 
1.15      bertrand 9507:  if test -n "$EXEEXT"; then
                   9508:   am__EXEEXT_TRUE=
                   9509:   am__EXEEXT_FALSE='#'
                   9510: else
                   9511:   am__EXEEXT_TRUE='#'
                   9512:   am__EXEEXT_FALSE=
                   9513: fi
                   9514: 
1.1       bertrand 9515: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9516:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9517: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9518: fi
                   9519: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9520:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9521: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9522: fi
                   9523: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9524:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9525: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9526: fi
                   9527: 
                   9528: : ${CONFIG_STATUS=./config.status}
1.15      bertrand 9529: ac_write_fail=0
1.1       bertrand 9530: ac_clean_files_save=$ac_clean_files
                   9531: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9532: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9533: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9534: as_write_fail=0
                   9535: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9536: #! $SHELL
                   9537: # Generated by $as_me.
                   9538: # Run this file to recreate the current configuration.
                   9539: # Compiler output produced by configure, useful for debugging
                   9540: # configure, is in config.log if it exists.
                   9541: 
                   9542: debug=false
                   9543: ac_cs_recheck=false
                   9544: ac_cs_silent=false
1.15      bertrand 9545: 
1.14      bertrand 9546: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9547: export SHELL
                   9548: _ASEOF
                   9549: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9550: ## -------------------- ##
                   9551: ## M4sh Initialization. ##
                   9552: ## -------------------- ##
1.1       bertrand 9553: 
                   9554: # Be more Bourne compatible
                   9555: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9556: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9557:   emulate sh
                   9558:   NULLCMD=:
1.15      bertrand 9559:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9560:   # is contrary to our usage.  Disable this feature.
                   9561:   alias -g '${1+"$@"}'='"$@"'
                   9562:   setopt NO_GLOB_SUBST
                   9563: else
1.15      bertrand 9564:   case `(set -o) 2>/dev/null` in #(
                   9565:   *posix*) :
                   9566:     set -o posix ;; #(
                   9567:   *) :
                   9568:      ;;
1.1       bertrand 9569: esac
                   9570: fi
                   9571: 
                   9572: 
1.15      bertrand 9573: as_nl='
                   9574: '
                   9575: export as_nl
                   9576: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9577: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9578: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9579: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9580: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9581: # but without wasting forks for bash or zsh.
                   9582: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9583:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9584:   as_echo='print -r --'
                   9585:   as_echo_n='print -rn --'
                   9586: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9587:   as_echo='printf %s\n'
                   9588:   as_echo_n='printf %s'
                   9589: else
                   9590:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9591:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9592:     as_echo_n='/usr/ucb/echo -n'
                   9593:   else
                   9594:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9595:     as_echo_n_body='eval
                   9596:       arg=$1;
                   9597:       case $arg in #(
                   9598:       *"$as_nl"*)
                   9599:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9600:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9601:       esac;
                   9602:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9603:     '
                   9604:     export as_echo_n_body
                   9605:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9606:   fi
                   9607:   export as_echo_body
                   9608:   as_echo='sh -c $as_echo_body as_echo'
                   9609: fi
1.14      bertrand 9610: 
                   9611: # The user is always right.
                   9612: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9613:   PATH_SEPARATOR=:
                   9614:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9615:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9616:       PATH_SEPARATOR=';'
                   9617:   }
1.1       bertrand 9618: fi
                   9619: 
                   9620: 
                   9621: # IFS
                   9622: # We need space, tab and new line, in precisely that order.  Quoting is
                   9623: # there to prevent editors from complaining about space-tab.
                   9624: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9625: # splitting by setting IFS to empty value.)
                   9626: IFS=" ""   $as_nl"
                   9627: 
                   9628: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand 9629: case $0 in #((
1.1       bertrand 9630:   *[\\/]* ) as_myself=$0 ;;
                   9631:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9632: for as_dir in $PATH
                   9633: do
                   9634:   IFS=$as_save_IFS
                   9635:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9636:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9637:   done
1.1       bertrand 9638: IFS=$as_save_IFS
                   9639: 
                   9640:      ;;
                   9641: esac
                   9642: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9643: # in which case we are not to be found in the path.
                   9644: if test "x$as_myself" = x; then
                   9645:   as_myself=$0
                   9646: fi
                   9647: if test ! -f "$as_myself"; then
1.15      bertrand 9648:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9649:   exit 1
1.1       bertrand 9650: fi
                   9651: 
1.15      bertrand 9652: # Unset variables that we do not need and which cause bugs (e.g. in
                   9653: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9654: # suppresses any "Segmentation fault" message there.  '((' could
                   9655: # trigger a bug in pdksh 5.2.14.
                   9656: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9657: do eval test x\${$as_var+set} = xset \
                   9658:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9659: done
                   9660: PS1='$ '
                   9661: PS2='> '
                   9662: PS4='+ '
                   9663: 
                   9664: # NLS nuisances.
1.15      bertrand 9665: LC_ALL=C
                   9666: export LC_ALL
                   9667: LANGUAGE=C
                   9668: export LANGUAGE
                   9669: 
                   9670: # CDPATH.
                   9671: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9672: 
                   9673: 
1.36      bertrand 9674: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9675: # ----------------------------------------
1.15      bertrand 9676: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9677: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9678: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9679: as_fn_error ()
                   9680: {
1.36      bertrand 9681:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9682:   if test "$4"; then
                   9683:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9684:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9685:   fi
1.36      bertrand 9686:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9687:   as_fn_exit $as_status
                   9688: } # as_fn_error
                   9689: 
                   9690: 
                   9691: # as_fn_set_status STATUS
                   9692: # -----------------------
                   9693: # Set $? to STATUS, without forking.
                   9694: as_fn_set_status ()
                   9695: {
                   9696:   return $1
                   9697: } # as_fn_set_status
                   9698: 
                   9699: # as_fn_exit STATUS
                   9700: # -----------------
                   9701: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9702: as_fn_exit ()
                   9703: {
                   9704:   set +e
                   9705:   as_fn_set_status $1
                   9706:   exit $1
                   9707: } # as_fn_exit
                   9708: 
                   9709: # as_fn_unset VAR
                   9710: # ---------------
                   9711: # Portably unset VAR.
                   9712: as_fn_unset ()
                   9713: {
                   9714:   { eval $1=; unset $1;}
                   9715: }
                   9716: as_unset=as_fn_unset
                   9717: # as_fn_append VAR VALUE
                   9718: # ----------------------
                   9719: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9720: # advantage of any shell optimizations that allow amortized linear growth over
                   9721: # repeated appends, instead of the typical quadratic growth present in naive
                   9722: # implementations.
                   9723: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9724:   eval 'as_fn_append ()
                   9725:   {
                   9726:     eval $1+=\$2
                   9727:   }'
                   9728: else
                   9729:   as_fn_append ()
                   9730:   {
                   9731:     eval $1=\$$1\$2
                   9732:   }
                   9733: fi # as_fn_append
                   9734: 
                   9735: # as_fn_arith ARG...
                   9736: # ------------------
                   9737: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9738: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9739: # must be portable across $(()) and expr.
                   9740: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9741:   eval 'as_fn_arith ()
                   9742:   {
                   9743:     as_val=$(( $* ))
                   9744:   }'
                   9745: else
                   9746:   as_fn_arith ()
                   9747:   {
                   9748:     as_val=`expr "$@" || test $? -eq 1`
                   9749:   }
                   9750: fi # as_fn_arith
                   9751: 
1.1       bertrand 9752: 
                   9753: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9754:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9755:   as_expr=expr
                   9756: else
                   9757:   as_expr=false
                   9758: fi
                   9759: 
                   9760: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9761:   as_basename=basename
                   9762: else
                   9763:   as_basename=false
                   9764: fi
                   9765: 
1.15      bertrand 9766: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9767:   as_dirname=dirname
                   9768: else
                   9769:   as_dirname=false
                   9770: fi
1.1       bertrand 9771: 
                   9772: as_me=`$as_basename -- "$0" ||
                   9773: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9774:     X"$0" : 'X\(//\)$' \| \
                   9775:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9776: $as_echo X/"$0" |
1.1       bertrand 9777:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9778:        s//\1/
                   9779:        q
                   9780:      }
                   9781:      /^X\/\(\/\/\)$/{
                   9782:        s//\1/
                   9783:        q
                   9784:      }
                   9785:      /^X\/\(\/\).*/{
                   9786:        s//\1/
                   9787:        q
                   9788:      }
1.14      bertrand 9789:      s/.*/./; q'`
                   9790: 
1.15      bertrand 9791: # Avoid depending upon Character Ranges.
                   9792: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9793: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9794: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9795: as_cr_digits='0123456789'
                   9796: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9797: 
                   9798: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9799: case `echo -n x` in #(((((
1.1       bertrand 9800: -n*)
1.15      bertrand 9801:   case `echo 'xy\c'` in
1.1       bertrand 9802:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9803:   xy)  ECHO_C='\c';;
                   9804:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9805:        ECHO_T='    ';;
1.1       bertrand 9806:   esac;;
                   9807: *)
                   9808:   ECHO_N='-n';;
                   9809: esac
                   9810: 
                   9811: rm -f conf$$ conf$$.exe conf$$.file
                   9812: if test -d conf$$.dir; then
                   9813:   rm -f conf$$.dir/conf$$.file
                   9814: else
                   9815:   rm -f conf$$.dir
1.15      bertrand 9816:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9817: fi
1.15      bertrand 9818: if (echo >conf$$.file) 2>/dev/null; then
                   9819:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9820:     as_ln_s='ln -s'
                   9821:     # ... but there are two gotchas:
                   9822:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9823:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9824:     # In both cases, we have to default to `cp -p'.
                   9825:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9826:       as_ln_s='cp -p'
                   9827:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9828:     as_ln_s=ln
                   9829:   else
1.1       bertrand 9830:     as_ln_s='cp -p'
1.15      bertrand 9831:   fi
1.1       bertrand 9832: else
                   9833:   as_ln_s='cp -p'
                   9834: fi
                   9835: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9836: rmdir conf$$.dir 2>/dev/null
                   9837: 
1.15      bertrand 9838: 
                   9839: # as_fn_mkdir_p
                   9840: # -------------
                   9841: # Create "$as_dir" as a directory, including parents if necessary.
                   9842: as_fn_mkdir_p ()
                   9843: {
                   9844: 
                   9845:   case $as_dir in #(
                   9846:   -*) as_dir=./$as_dir;;
                   9847:   esac
                   9848:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9849:     as_dirs=
                   9850:     while :; do
                   9851:       case $as_dir in #(
                   9852:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9853:       *) as_qdir=$as_dir;;
                   9854:       esac
                   9855:       as_dirs="'$as_qdir' $as_dirs"
                   9856:       as_dir=`$as_dirname -- "$as_dir" ||
                   9857: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   9858:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   9859:     X"$as_dir" : 'X\(//\)$' \| \
                   9860:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   9861: $as_echo X"$as_dir" |
                   9862:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9863:        s//\1/
                   9864:        q
                   9865:      }
                   9866:      /^X\(\/\/\)[^/].*/{
                   9867:        s//\1/
                   9868:        q
                   9869:      }
                   9870:      /^X\(\/\/\)$/{
                   9871:        s//\1/
                   9872:        q
                   9873:      }
                   9874:      /^X\(\/\).*/{
                   9875:        s//\1/
                   9876:        q
                   9877:      }
                   9878:      s/.*/./; q'`
                   9879:       test -d "$as_dir" && break
                   9880:     done
                   9881:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 9882:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 9883: 
                   9884: 
                   9885: } # as_fn_mkdir_p
1.1       bertrand 9886: if mkdir -p . 2>/dev/null; then
1.15      bertrand 9887:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 9888: else
                   9889:   test -d ./-p && rmdir ./-p
                   9890:   as_mkdir_p=false
                   9891: fi
                   9892: 
                   9893: if test -x / >/dev/null 2>&1; then
                   9894:   as_test_x='test -x'
                   9895: else
                   9896:   if ls -dL / >/dev/null 2>&1; then
                   9897:     as_ls_L_option=L
                   9898:   else
                   9899:     as_ls_L_option=
                   9900:   fi
                   9901:   as_test_x='
                   9902:     eval sh -c '\''
                   9903:       if test -d "$1"; then
1.15      bertrand 9904:    test -d "$1/.";
1.1       bertrand 9905:       else
1.15      bertrand 9906:    case $1 in #(
                   9907:    -*)set "./$1";;
1.1       bertrand 9908:    esac;
1.15      bertrand 9909:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 9910:    ???[sx]*):;;*)false;;esac;fi
                   9911:     '\'' sh
                   9912:   '
                   9913: fi
                   9914: as_executable_p=$as_test_x
                   9915: 
                   9916: # Sed expression to map a string onto a valid CPP name.
                   9917: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   9918: 
                   9919: # Sed expression to map a string onto a valid variable name.
                   9920: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   9921: 
                   9922: 
                   9923: exec 6>&1
1.15      bertrand 9924: ## ----------------------------------- ##
                   9925: ## Main body of $CONFIG_STATUS script. ##
                   9926: ## ----------------------------------- ##
                   9927: _ASEOF
                   9928: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 9929: 
1.15      bertrand 9930: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9931: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 9932: # report actual input values of CONFIG_FILES etc. instead of their
                   9933: # values after options handling.
                   9934: ac_log="
1.53      bertrand 9935: This file was extended by rpl $as_me 4.1.0.prerelease.0, which was
1.36      bertrand 9936: generated by GNU Autoconf 2.67.  Invocation command line was
1.1       bertrand 9937: 
                   9938:   CONFIG_FILES    = $CONFIG_FILES
                   9939:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9940:   CONFIG_LINKS    = $CONFIG_LINKS
                   9941:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9942:   $ $0 $@
                   9943: 
                   9944: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9945: "
                   9946: 
                   9947: _ACEOF
                   9948: 
1.15      bertrand 9949: case $ac_config_files in *"
                   9950: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   9951: esac
                   9952: 
                   9953: case $ac_config_headers in *"
                   9954: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   9955: esac
                   9956: 
                   9957: 
                   9958: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9959: # Files that config.status was made for.
                   9960: config_files="$ac_config_files"
                   9961: config_headers="$ac_config_headers"
                   9962: config_commands="$ac_config_commands"
                   9963: 
                   9964: _ACEOF
                   9965: 
1.15      bertrand 9966: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9967: ac_cs_usage="\
1.15      bertrand 9968: \`$as_me' instantiates files and other configuration actions
                   9969: from templates according to the current configuration.  Unless the files
                   9970: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 9971: 
1.15      bertrand 9972: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 9973: 
                   9974:   -h, --help       print this help, then exit
                   9975:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 9976:       --config     print configuration, then exit
                   9977:   -q, --quiet, --silent
                   9978:                    do not print progress messages
1.1       bertrand 9979:   -d, --debug      don't remove temporary files
                   9980:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 9981:       --file=FILE[:TEMPLATE]
                   9982:                    instantiate the configuration file FILE
                   9983:       --header=FILE[:TEMPLATE]
                   9984:                    instantiate the configuration header FILE
1.1       bertrand 9985: 
                   9986: Configuration files:
                   9987: $config_files
                   9988: 
                   9989: Configuration headers:
                   9990: $config_headers
                   9991: 
                   9992: Configuration commands:
                   9993: $config_commands
                   9994: 
1.15      bertrand 9995: Report bugs to the package provider."
1.1       bertrand 9996: 
                   9997: _ACEOF
1.15      bertrand 9998: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9999: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10000: ac_cs_version="\\
1.53      bertrand 10001: rpl config.status 4.1.0.prerelease.0
1.36      bertrand 10002: configured by $0, generated by GNU Autoconf 2.67,
1.15      bertrand 10003:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10004: 
1.36      bertrand 10005: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10006: This config.status script is free software; the Free Software Foundation
                   10007: gives unlimited permission to copy, distribute and modify it."
                   10008: 
                   10009: ac_pwd='$ac_pwd'
                   10010: srcdir='$srcdir'
                   10011: INSTALL='$INSTALL'
                   10012: MKDIR_P='$MKDIR_P'
1.15      bertrand 10013: AWK='$AWK'
                   10014: test -n "\$AWK" || AWK=awk
1.1       bertrand 10015: _ACEOF
                   10016: 
1.15      bertrand 10017: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10018: # The default lists apply if the user does not specify any file.
1.1       bertrand 10019: ac_need_defaults=:
                   10020: while test $# != 0
                   10021: do
                   10022:   case $1 in
1.36      bertrand 10023:   --*=?*)
1.1       bertrand 10024:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10025:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10026:     ac_shift=:
                   10027:     ;;
1.36      bertrand 10028:   --*=)
                   10029:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10030:     ac_optarg=
                   10031:     ac_shift=:
                   10032:     ;;
1.1       bertrand 10033:   *)
                   10034:     ac_option=$1
                   10035:     ac_optarg=$2
                   10036:     ac_shift=shift
                   10037:     ;;
                   10038:   esac
                   10039: 
                   10040:   case $ac_option in
                   10041:   # Handling of the options.
                   10042:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10043:     ac_cs_recheck=: ;;
                   10044:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10045:     $as_echo "$ac_cs_version"; exit ;;
                   10046:   --config | --confi | --conf | --con | --co | --c )
                   10047:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10048:   --debug | --debu | --deb | --de | --d | -d )
                   10049:     debug=: ;;
                   10050:   --file | --fil | --fi | --f )
                   10051:     $ac_shift
1.15      bertrand 10052:     case $ac_optarg in
                   10053:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10054:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10055:     esac
                   10056:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10057:     ac_need_defaults=false;;
                   10058:   --header | --heade | --head | --hea )
                   10059:     $ac_shift
1.15      bertrand 10060:     case $ac_optarg in
                   10061:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10062:     esac
                   10063:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10064:     ac_need_defaults=false;;
                   10065:   --he | --h)
                   10066:     # Conflict between --help and --header
1.36      bertrand 10067:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10068: Try \`$0 --help' for more information.";;
1.1       bertrand 10069:   --help | --hel | -h )
1.15      bertrand 10070:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10071:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10072:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10073:     ac_cs_silent=: ;;
                   10074: 
                   10075:   # This is an error.
1.36      bertrand 10076:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10077: Try \`$0 --help' for more information." ;;
1.1       bertrand 10078: 
1.15      bertrand 10079:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10080:      ac_need_defaults=false ;;
                   10081: 
                   10082:   esac
                   10083:   shift
                   10084: done
                   10085: 
                   10086: ac_configure_extra_args=
                   10087: 
                   10088: if $ac_cs_silent; then
                   10089:   exec 6>/dev/null
                   10090:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10091: fi
                   10092: 
                   10093: _ACEOF
1.15      bertrand 10094: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10095: if \$ac_cs_recheck; then
1.15      bertrand 10096:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10097:   shift
                   10098:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10099:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10100:   export CONFIG_SHELL
1.15      bertrand 10101:   exec "\$@"
1.1       bertrand 10102: fi
                   10103: 
                   10104: _ACEOF
1.15      bertrand 10105: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10106: exec 5>>config.log
                   10107: {
                   10108:   echo
                   10109:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10110: ## Running $as_me. ##
                   10111: _ASBOX
1.15      bertrand 10112:   $as_echo "$ac_log"
1.1       bertrand 10113: } >&5
                   10114: 
                   10115: _ACEOF
1.15      bertrand 10116: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10117: #
                   10118: # INIT-COMMANDS
                   10119: #
                   10120: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10121: 
                   10122: _ACEOF
                   10123: 
1.15      bertrand 10124: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10125: 
                   10126: # Handling of arguments.
                   10127: for ac_config_target in $ac_config_targets
                   10128: do
                   10129:   case $ac_config_target in
                   10130:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10131:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10132:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10133:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10134:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10135:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10136:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10137:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10138:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10139:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10140:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10141:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10142:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10143:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10144:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10145:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10146:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10147:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10148:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10149:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10150:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10151:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10152:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10153:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10154:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10155:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10156:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10157:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10158:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10159:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10160: 
1.36      bertrand 10161:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1.1       bertrand 10162:   esac
                   10163: done
                   10164: 
                   10165: 
                   10166: # If the user did not use the arguments to specify the items to instantiate,
                   10167: # then the envvar interface is used.  Set only those that are not.
                   10168: # We use the long form for the default assignment because of an extremely
                   10169: # bizarre bug on SunOS 4.1.3.
                   10170: if $ac_need_defaults; then
                   10171:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10172:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10173:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10174: fi
                   10175: 
                   10176: # Have a temporary directory for convenience.  Make it in the build tree
                   10177: # simply because there is no reason against having it here, and in addition,
                   10178: # creating and moving files from /tmp can sometimes cause problems.
                   10179: # Hook for its removal unless debugging.
                   10180: # Note that there is a small window in which the directory will not be cleaned:
                   10181: # after its creation but before its name has been assigned to `$tmp'.
                   10182: $debug ||
                   10183: {
                   10184:   tmp=
                   10185:   trap 'exit_status=$?
                   10186:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   10187: ' 0
1.15      bertrand 10188:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10189: }
                   10190: # Create a (secure) tmp directory for tmp files.
                   10191: 
                   10192: {
                   10193:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   10194:   test -n "$tmp" && test -d "$tmp"
                   10195: }  ||
                   10196: {
                   10197:   tmp=./conf$$-$RANDOM
                   10198:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10199: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.15      bertrand 10200: 
                   10201: # Set up the scripts for CONFIG_FILES section.
                   10202: # No need to generate them if there are no CONFIG_FILES.
                   10203: # This happens for instance with `./config.status config.h'.
                   10204: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10205: 
1.1       bertrand 10206: 
1.15      bertrand 10207: ac_cr=`echo X | tr X '\015'`
                   10208: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10209: # But we know of no other shell where ac_cr would be empty at this
                   10210: # point, so we can use a bashism as a fallback.
                   10211: if test "x$ac_cr" = x; then
                   10212:   eval ac_cr=\$\'\\r\'
                   10213: fi
                   10214: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10215: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10216:   ac_cs_awk_cr='\\r'
1.15      bertrand 10217: else
                   10218:   ac_cs_awk_cr=$ac_cr
                   10219: fi
1.1       bertrand 10220: 
1.15      bertrand 10221: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14      bertrand 10222: _ACEOF
                   10223: 
                   10224: 
1.15      bertrand 10225: {
                   10226:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10227:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10228:   echo "_ACEOF"
                   10229: } >conf$$subs.sh ||
1.36      bertrand 10230:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10231: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10232: ac_delim='%!_!# '
                   10233: for ac_last_try in false false false false false :; do
1.15      bertrand 10234:   . ./conf$$subs.sh ||
1.36      bertrand 10235:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10236: 
1.15      bertrand 10237:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10238:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10239:     break
                   10240:   elif $ac_last_try; then
1.36      bertrand 10241:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10242:   else
                   10243:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10244:   fi
                   10245: done
1.15      bertrand 10246: rm -f conf$$subs.sh
1.1       bertrand 10247: 
1.15      bertrand 10248: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10249: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
                   10250: _ACEOF
                   10251: sed -n '
                   10252: h
                   10253: s/^/S["/; s/!.*/"]=/
                   10254: p
                   10255: g
                   10256: s/^[^!]*!//
                   10257: :repl
                   10258: t repl
                   10259: s/'"$ac_delim"'$//
                   10260: t delim
                   10261: :nl
                   10262: h
                   10263: s/\(.\{148\}\)..*/\1/
                   10264: t more1
                   10265: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10266: p
                   10267: n
                   10268: b repl
                   10269: :more1
                   10270: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10271: p
                   10272: g
                   10273: s/.\{148\}//
                   10274: t nl
                   10275: :delim
                   10276: h
                   10277: s/\(.\{148\}\)..*/\1/
                   10278: t more2
                   10279: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10280: p
                   10281: b
                   10282: :more2
                   10283: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10284: p
                   10285: g
                   10286: s/.\{148\}//
                   10287: t delim
                   10288: ' <conf$$subs.awk | sed '
                   10289: /^[^""]/{
                   10290:   N
                   10291:   s/\n//
                   10292: }
                   10293: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10294: rm -f conf$$subs.awk
                   10295: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10296: _ACAWK
                   10297: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
                   10298:   for (key in S) S_is_set[key] = 1
                   10299:   FS = ""
1.1       bertrand 10300: 
1.15      bertrand 10301: }
                   10302: {
                   10303:   line = $ 0
                   10304:   nfields = split(line, field, "@")
                   10305:   substed = 0
                   10306:   len = length(field[1])
                   10307:   for (i = 2; i < nfields; i++) {
                   10308:     key = field[i]
                   10309:     keylen = length(key)
                   10310:     if (S_is_set[key]) {
                   10311:       value = S[key]
                   10312:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10313:       len += length(value) + length(field[++i])
                   10314:       substed = 1
                   10315:     } else
                   10316:       len += 1 + keylen
                   10317:   }
1.1       bertrand 10318: 
1.15      bertrand 10319:   print line
                   10320: }
1.1       bertrand 10321: 
1.15      bertrand 10322: _ACAWK
1.14      bertrand 10323: _ACEOF
1.15      bertrand 10324: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10325: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10326:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10327: else
                   10328:   cat
                   10329: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
1.36      bertrand 10330:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10331: _ACEOF
                   10332: 
1.36      bertrand 10333: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10334: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10335: # trailing colons and then remove the whole line if VPATH becomes empty
                   10336: # (actually we leave an empty line to preserve line numbers).
                   10337: if test "x$srcdir" = x.; then
1.36      bertrand 10338:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10339: h
                   10340: s///
                   10341: s/^/:/
                   10342: s/[     ]*$/:/
                   10343: s/:\$(srcdir):/:/g
                   10344: s/:\${srcdir}:/:/g
                   10345: s/:@srcdir@:/:/g
                   10346: s/^:*//
1.1       bertrand 10347: s/:*$//
1.36      bertrand 10348: x
                   10349: s/\(=[  ]*\).*/\1/
                   10350: G
                   10351: s/\n//
1.1       bertrand 10352: s/^[^=]*=[  ]*$//
                   10353: }'
                   10354: fi
                   10355: 
1.15      bertrand 10356: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10357: fi # test -n "$CONFIG_FILES"
                   10358: 
1.15      bertrand 10359: # Set up the scripts for CONFIG_HEADERS section.
                   10360: # No need to generate them if there are no CONFIG_HEADERS.
                   10361: # This happens for instance with `./config.status Makefile'.
                   10362: if test -n "$CONFIG_HEADERS"; then
                   10363: cat >"$tmp/defines.awk" <<\_ACAWK ||
                   10364: BEGIN {
                   10365: _ACEOF
                   10366: 
                   10367: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10368: # here-document in config.status, that substitutes the proper values into
                   10369: # config.h.in to produce config.h.
                   10370: 
                   10371: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10372: # handling of long lines.
                   10373: ac_delim='%!_!# '
                   10374: for ac_last_try in false false :; do
                   10375:   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
                   10376:   if test -z "$ac_t"; then
                   10377:     break
                   10378:   elif $ac_last_try; then
1.36      bertrand 10379:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10380:   else
                   10381:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10382:   fi
                   10383: done
                   10384: 
                   10385: # For the awk script, D is an array of macro values keyed by name,
                   10386: # likewise P contains macro parameters if any.  Preserve backslash
                   10387: # newline sequences.
                   10388: 
                   10389: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10390: sed -n '
                   10391: s/.\{148\}/&'"$ac_delim"'/g
                   10392: t rset
                   10393: :rset
                   10394: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10395: t def
                   10396: d
                   10397: :def
                   10398: s/\\$//
                   10399: t bsnl
                   10400: s/["\\]/\\&/g
                   10401: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10402: D["\1"]=" \3"/p
                   10403: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10404: d
                   10405: :bsnl
                   10406: s/["\\]/\\&/g
                   10407: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10408: D["\1"]=" \3\\\\\\n"\\/p
                   10409: t cont
                   10410: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10411: t cont
                   10412: d
                   10413: :cont
                   10414: n
                   10415: s/.\{148\}/&'"$ac_delim"'/g
                   10416: t clear
                   10417: :clear
                   10418: s/\\$//
                   10419: t bsnlc
                   10420: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10421: d
                   10422: :bsnlc
                   10423: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10424: b cont
                   10425: ' <confdefs.h | sed '
                   10426: s/'"$ac_delim"'/"\\\
                   10427: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10428: 
                   10429: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10430:   for (key in D) D_is_set[key] = 1
                   10431:   FS = ""
                   10432: }
                   10433: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10434:   line = \$ 0
                   10435:   split(line, arg, " ")
                   10436:   if (arg[1] == "#") {
                   10437:     defundef = arg[2]
                   10438:     mac1 = arg[3]
                   10439:   } else {
                   10440:     defundef = substr(arg[1], 2)
                   10441:     mac1 = arg[2]
                   10442:   }
                   10443:   split(mac1, mac2, "(") #)
                   10444:   macro = mac2[1]
                   10445:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10446:   if (D_is_set[macro]) {
                   10447:     # Preserve the white space surrounding the "#".
                   10448:     print prefix "define", macro P[macro] D[macro]
                   10449:     next
                   10450:   } else {
                   10451:     # Replace #undef with comments.  This is necessary, for example,
                   10452:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10453:     # on some systems where configure will not decide to define it.
                   10454:     if (defundef == "undef") {
                   10455:       print "/*", prefix defundef, macro, "*/"
                   10456:       next
                   10457:     }
                   10458:   }
                   10459: }
                   10460: { print }
                   10461: _ACAWK
                   10462: _ACEOF
                   10463: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10464:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10465: fi # test -n "$CONFIG_HEADERS"
                   10466: 
1.1       bertrand 10467: 
1.15      bertrand 10468: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10469: shift
                   10470: for ac_tag
1.1       bertrand 10471: do
                   10472:   case $ac_tag in
                   10473:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10474:   esac
                   10475:   case $ac_mode$ac_tag in
                   10476:   :[FHL]*:*);;
1.36      bertrand 10477:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
1.1       bertrand 10478:   :[FH]-) ac_tag=-:-;;
                   10479:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10480:   esac
                   10481:   ac_save_IFS=$IFS
                   10482:   IFS=:
                   10483:   set x $ac_tag
                   10484:   IFS=$ac_save_IFS
                   10485:   shift
                   10486:   ac_file=$1
                   10487:   shift
                   10488: 
                   10489:   case $ac_mode in
                   10490:   :L) ac_source=$1;;
                   10491:   :[FH])
                   10492:     ac_file_inputs=
                   10493:     for ac_f
                   10494:     do
                   10495:       case $ac_f in
                   10496:       -) ac_f="$tmp/stdin";;
                   10497:       *) # Look for the file first in the build tree, then in the source tree
                   10498:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10499:     # because $ac_f cannot contain `:'.
                   10500:     test -f "$ac_f" ||
                   10501:       case $ac_f in
                   10502:       [\\/$]*) false;;
                   10503:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10504:       esac ||
1.36      bertrand 10505:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
1.1       bertrand 10506:       esac
1.15      bertrand 10507:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10508:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10509:     done
                   10510: 
                   10511:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10512:     # use $as_me), people would be surprised to read:
                   10513:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10514:     configure_input='Generated from '`
                   10515:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10516:    `' by configure.'
1.1       bertrand 10517:     if test x"$ac_file" != x-; then
                   10518:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10519:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10520: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10521:     fi
1.15      bertrand 10522:     # Neutralize special characters interpreted by sed in replacement strings.
                   10523:     case $configure_input in #(
                   10524:     *\&* | *\|* | *\\* )
                   10525:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10526:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10527:     *) ac_sed_conf_input=$configure_input;;
                   10528:     esac
1.1       bertrand 10529: 
                   10530:     case $ac_tag in
1.15      bertrand 10531:     *:-:* | *:-) cat >"$tmp/stdin" \
1.36      bertrand 10532:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
1.1       bertrand 10533:     esac
                   10534:     ;;
                   10535:   esac
                   10536: 
                   10537:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10538: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10539:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10540:     X"$ac_file" : 'X\(//\)$' \| \
                   10541:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10542: $as_echo X"$ac_file" |
1.1       bertrand 10543:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10544:        s//\1/
                   10545:        q
                   10546:      }
                   10547:      /^X\(\/\/\)[^/].*/{
                   10548:        s//\1/
                   10549:        q
                   10550:      }
                   10551:      /^X\(\/\/\)$/{
                   10552:        s//\1/
                   10553:        q
                   10554:      }
                   10555:      /^X\(\/\).*/{
                   10556:        s//\1/
                   10557:        q
                   10558:      }
                   10559:      s/.*/./; q'`
1.15      bertrand 10560:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10561:   ac_builddir=.
                   10562: 
                   10563: case "$ac_dir" in
                   10564: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10565: *)
1.15      bertrand 10566:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10567:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10568:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10569:   case $ac_top_builddir_sub in
                   10570:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10571:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10572:   esac ;;
                   10573: esac
                   10574: ac_abs_top_builddir=$ac_pwd
                   10575: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10576: # for backward compatibility:
                   10577: ac_top_builddir=$ac_top_build_prefix
                   10578: 
                   10579: case $srcdir in
                   10580:   .)  # We are building in place.
                   10581:     ac_srcdir=.
                   10582:     ac_top_srcdir=$ac_top_builddir_sub
                   10583:     ac_abs_top_srcdir=$ac_pwd ;;
                   10584:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10585:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10586:     ac_top_srcdir=$srcdir
                   10587:     ac_abs_top_srcdir=$srcdir ;;
                   10588:   *) # Relative name.
                   10589:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10590:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10591:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10592: esac
                   10593: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10594: 
                   10595: 
                   10596:   case $ac_mode in
                   10597:   :F)
                   10598:   #
                   10599:   # CONFIG_FILE
                   10600:   #
                   10601: 
                   10602:   case $INSTALL in
                   10603:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10604:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10605:   esac
                   10606:   ac_MKDIR_P=$MKDIR_P
                   10607:   case $MKDIR_P in
                   10608:   [\\/$]* | ?:[\\/]* ) ;;
                   10609:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10610:   esac
                   10611: _ACEOF
                   10612: 
1.15      bertrand 10613: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10614: # If the template does not know about datarootdir, expand it.
                   10615: # FIXME: This hack should be removed a few years after 2.60.
                   10616: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10617: ac_sed_dataroot='
                   10618: /datarootdir/ {
1.1       bertrand 10619:   p
                   10620:   q
                   10621: }
                   10622: /@datadir@/p
                   10623: /@docdir@/p
                   10624: /@infodir@/p
                   10625: /@localedir@/p
1.15      bertrand 10626: /@mandir@/p'
                   10627: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10628: *datarootdir*) ac_datarootdir_seen=yes;;
                   10629: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10630:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10631: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10632: _ACEOF
1.15      bertrand 10633: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10634:   ac_datarootdir_hack='
                   10635:   s&@datadir@&$datadir&g
                   10636:   s&@docdir@&$docdir&g
                   10637:   s&@infodir@&$infodir&g
                   10638:   s&@localedir@&$localedir&g
                   10639:   s&@mandir@&$mandir&g
1.15      bertrand 10640:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10641: esac
                   10642: _ACEOF
                   10643: 
                   10644: # Neutralize VPATH when `$srcdir' = `.'.
                   10645: # Shell code in configure.ac might set extrasub.
                   10646: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10647: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10648: ac_sed_extra="$ac_vpsub
1.1       bertrand 10649: $extrasub
                   10650: _ACEOF
1.15      bertrand 10651: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10652: :t
                   10653: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10654: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10655: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10656: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10657: s&@srcdir@&$ac_srcdir&;t t
                   10658: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10659: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10660: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10661: s&@builddir@&$ac_builddir&;t t
                   10662: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10663: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10664: s&@INSTALL@&$ac_INSTALL&;t t
                   10665: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10666: $ac_datarootdir_hack
1.15      bertrand 10667: "
                   10668: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1.36      bertrand 10669:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10670: 
                   10671: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10672:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   10673:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10674:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10675: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10676: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10677: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10678: 
                   10679:   rm -f "$tmp/stdin"
                   10680:   case $ac_file in
1.15      bertrand 10681:   -) cat "$tmp/out" && rm -f "$tmp/out";;
                   10682:   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
                   10683:   esac \
1.36      bertrand 10684:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10685:  ;;
                   10686:   :H)
                   10687:   #
                   10688:   # CONFIG_HEADER
                   10689:   #
                   10690:   if test x"$ac_file" != x-; then
1.15      bertrand 10691:     {
                   10692:       $as_echo "/* $configure_input  */" \
                   10693:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
                   10694:     } >"$tmp/config.h" \
1.36      bertrand 10695:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.15      bertrand 10696:     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
                   10697:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10698: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10699:     else
1.15      bertrand 10700:       rm -f "$ac_file"
                   10701:       mv "$tmp/config.h" "$ac_file" \
1.36      bertrand 10702:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10703:     fi
                   10704:   else
1.15      bertrand 10705:     $as_echo "/* $configure_input  */" \
                   10706:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10707:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10708:   fi
1.15      bertrand 10709: # Compute "$ac_file"'s index in $config_headers.
                   10710: _am_arg="$ac_file"
1.1       bertrand 10711: _am_stamp_count=1
                   10712: for _am_header in $config_headers :; do
                   10713:   case $_am_header in
                   10714:     $_am_arg | $_am_arg:* )
                   10715:       break ;;
                   10716:     * )
                   10717:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10718:   esac
                   10719: done
                   10720: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10721: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10722:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10723:     X"$_am_arg" : 'X\(//\)$' \| \
                   10724:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10725: $as_echo X"$_am_arg" |
1.1       bertrand 10726:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10727:        s//\1/
                   10728:        q
                   10729:      }
                   10730:      /^X\(\/\/\)[^/].*/{
                   10731:        s//\1/
                   10732:        q
                   10733:      }
                   10734:      /^X\(\/\/\)$/{
                   10735:        s//\1/
                   10736:        q
                   10737:      }
                   10738:      /^X\(\/\).*/{
                   10739:        s//\1/
                   10740:        q
                   10741:      }
                   10742:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10743:  ;;
                   10744: 
1.15      bertrand 10745:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10746: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10747:  ;;
                   10748:   esac
                   10749: 
                   10750: 
                   10751:   case $ac_file$ac_mode in
1.15      bertrand 10752:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10753:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10754:   # are listed without --file.  Let's play safe and only enable the eval
                   10755:   # if we detect the quoting.
                   10756:   case $CONFIG_FILES in
                   10757:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10758:   *)   set x $CONFIG_FILES ;;
                   10759:   esac
                   10760:   shift
                   10761:   for mf
                   10762:   do
                   10763:     # Strip MF so we end up with the name of the file.
                   10764:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10765:     # Check whether this is an Automake generated Makefile or not.
                   10766:     # We used to match only the files named `Makefile.in', but
                   10767:     # some people rename them; so instead we look at the file content.
                   10768:     # Grep'ing the first line is not enough: some people post-process
                   10769:     # each Makefile.in and add a new line on top of each file to say so.
                   10770:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10771:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10772:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10773:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10774: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10775:     X"$mf" : 'X\(//\)[^/]' \| \
                   10776:     X"$mf" : 'X\(//\)$' \| \
                   10777:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10778: $as_echo X"$mf" |
1.1       bertrand 10779:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10780:        s//\1/
                   10781:        q
                   10782:      }
                   10783:      /^X\(\/\/\)[^/].*/{
                   10784:        s//\1/
                   10785:        q
                   10786:      }
                   10787:      /^X\(\/\/\)$/{
                   10788:        s//\1/
                   10789:        q
                   10790:      }
                   10791:      /^X\(\/\).*/{
                   10792:        s//\1/
                   10793:        q
                   10794:      }
                   10795:      s/.*/./; q'`
1.15      bertrand 10796:     else
                   10797:       continue
                   10798:     fi
                   10799:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10800:     # from the Makefile without running `make'.
                   10801:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10802:     test -z "$DEPDIR" && continue
                   10803:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10804:     test -z "am__include" && continue
                   10805:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10806:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10807:     U=`sed -n 's/^U = //p' < "$mf"`
                   10808:     # Find all dependency output files, they are included files with
                   10809:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10810:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10811:     # expansion.
                   10812:     for file in `sed -n "
                   10813:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10814:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10815:       # Make sure the directory exists.
                   10816:       test -f "$dirpart/$file" && continue
                   10817:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10818: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10819:     X"$file" : 'X\(//\)[^/]' \| \
                   10820:     X"$file" : 'X\(//\)$' \| \
                   10821:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10822: $as_echo X"$file" |
1.1       bertrand 10823:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10824:        s//\1/
                   10825:        q
                   10826:      }
                   10827:      /^X\(\/\/\)[^/].*/{
                   10828:        s//\1/
                   10829:        q
                   10830:      }
                   10831:      /^X\(\/\/\)$/{
                   10832:        s//\1/
                   10833:        q
                   10834:      }
                   10835:      /^X\(\/\).*/{
                   10836:        s//\1/
                   10837:        q
                   10838:      }
                   10839:      s/.*/./; q'`
1.15      bertrand 10840:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10841:       # echo "creating $dirpart/$file"
                   10842:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10843:     done
                   10844:   done
1.15      bertrand 10845: }
1.1       bertrand 10846:  ;;
                   10847: 
                   10848:   esac
                   10849: done # for ac_tag
                   10850: 
                   10851: 
1.15      bertrand 10852: as_fn_exit 0
1.1       bertrand 10853: _ACEOF
                   10854: ac_clean_files=$ac_clean_files_save
                   10855: 
1.15      bertrand 10856: test $ac_write_fail = 0 ||
1.36      bertrand 10857:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 10858: 
1.1       bertrand 10859: 
                   10860: # configure is writing to config.log, and then calls config.status.
                   10861: # config.status does its own redirection, appending to config.log.
                   10862: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10863: # by configure, so config.status won't be able to write to it; its
                   10864: # output is simply discarded.  So we exec the FD to /dev/null,
                   10865: # effectively closing config.log, so it can be properly (re)opened and
                   10866: # appended to by config.status.  When coming back to configure, we
                   10867: # need to make the FD available again.
                   10868: if test "$no_create" != yes; then
                   10869:   ac_cs_success=:
                   10870:   ac_config_status_args=
                   10871:   test "$silent" = yes &&
                   10872:     ac_config_status_args="$ac_config_status_args --quiet"
                   10873:   exec 5>/dev/null
                   10874:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   10875:   exec 5>>config.log
                   10876:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10877:   # would make configure fail if this is the last instruction.
1.36      bertrand 10878:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 10879: fi
                   10880: 
                   10881: #
                   10882: # CONFIG_SUBDIRS section.
                   10883: #
                   10884: if test "$no_recursion" != yes; then
                   10885: 
1.15      bertrand 10886:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   10887:   # so they do not pile up.
1.1       bertrand 10888:   ac_sub_configure_args=
                   10889:   ac_prev=
                   10890:   eval "set x $ac_configure_args"
                   10891:   shift
                   10892:   for ac_arg
                   10893:   do
                   10894:     if test -n "$ac_prev"; then
                   10895:       ac_prev=
                   10896:       continue
                   10897:     fi
                   10898:     case $ac_arg in
                   10899:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   10900:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   10901:       ac_prev=cache_file ;;
                   10902:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   10903:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   10904:     | --c=*)
                   10905:       ;;
                   10906:     --config-cache | -C)
                   10907:       ;;
                   10908:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   10909:       ac_prev=srcdir ;;
                   10910:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   10911:       ;;
                   10912:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   10913:       ac_prev=prefix ;;
                   10914:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   10915:       ;;
1.15      bertrand 10916:     --disable-option-checking)
                   10917:       ;;
1.1       bertrand 10918:     *)
                   10919:       case $ac_arg in
1.15      bertrand 10920:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10921:       esac
1.15      bertrand 10922:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 10923:     esac
                   10924:   done
                   10925: 
                   10926:   # Always prepend --prefix to ensure using the same prefix
                   10927:   # in subdir configurations.
                   10928:   ac_arg="--prefix=$prefix"
                   10929:   case $ac_arg in
1.15      bertrand 10930:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10931:   esac
                   10932:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   10933: 
                   10934:   # Pass --silent
                   10935:   if test "$silent" = yes; then
                   10936:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   10937:   fi
                   10938: 
1.15      bertrand 10939:   # Always prepend --disable-option-checking to silence warnings, since
                   10940:   # different subdirs can have different --enable and --with options.
                   10941:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   10942: 
1.1       bertrand 10943:   ac_popdir=`pwd`
                   10944:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   10945: 
                   10946:     # Do not complain, so a configure script can configure whichever
                   10947:     # parts of a large source tree are present.
                   10948:     test -d "$srcdir/$ac_dir" || continue
                   10949: 
                   10950:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 10951:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   10952:     $as_echo "$ac_msg" >&6
                   10953:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10954:     ac_builddir=.
                   10955: 
                   10956: case "$ac_dir" in
                   10957: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10958: *)
1.15      bertrand 10959:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10960:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10961:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10962:   case $ac_top_builddir_sub in
                   10963:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10964:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10965:   esac ;;
                   10966: esac
                   10967: ac_abs_top_builddir=$ac_pwd
                   10968: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10969: # for backward compatibility:
                   10970: ac_top_builddir=$ac_top_build_prefix
                   10971: 
                   10972: case $srcdir in
                   10973:   .)  # We are building in place.
                   10974:     ac_srcdir=.
                   10975:     ac_top_srcdir=$ac_top_builddir_sub
                   10976:     ac_abs_top_srcdir=$ac_pwd ;;
                   10977:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10978:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10979:     ac_top_srcdir=$srcdir
                   10980:     ac_abs_top_srcdir=$srcdir ;;
                   10981:   *) # Relative name.
                   10982:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10983:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10984:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10985: esac
                   10986: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10987: 
                   10988: 
                   10989:     cd "$ac_dir"
                   10990: 
                   10991:     # Check for guested configure; otherwise get Cygnus style configure.
                   10992:     if test -f "$ac_srcdir/configure.gnu"; then
                   10993:       ac_sub_configure=$ac_srcdir/configure.gnu
                   10994:     elif test -f "$ac_srcdir/configure"; then
                   10995:       ac_sub_configure=$ac_srcdir/configure
                   10996:     elif test -f "$ac_srcdir/configure.in"; then
                   10997:       # This should be Cygnus configure.
                   10998:       ac_sub_configure=$ac_aux_dir/configure
                   10999:     else
1.15      bertrand 11000:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11001: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11002:       ac_sub_configure=
                   11003:     fi
                   11004: 
                   11005:     # The recursion is here.
                   11006:     if test -n "$ac_sub_configure"; then
                   11007:       # Make the cache file name correct relative to the subdirectory.
                   11008:       case $cache_file in
                   11009:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11010:       *) # Relative name.
                   11011:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11012:       esac
                   11013: 
1.15      bertrand 11014:       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
                   11015: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1       bertrand 11016:       # The eval makes quoting arguments work.
                   11017:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11018:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11019:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11020:     fi
                   11021: 
                   11022:     cd "$ac_popdir"
                   11023:   done
                   11024: fi
1.15      bertrand 11025: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11026:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11027: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11028: fi
1.1       bertrand 11029: 

CVSweb interface <joel.bertrand@systella.fr>