1da0c48c4Sopenharmony_ci# $HOME/.login* or similar files may first set $DEBUGINFOD_URLS.
2da0c48c4Sopenharmony_ci# If $DEBUGINFOD_URLS is not set there, we set it from system *.url files.
3da0c48c4Sopenharmony_ci# $HOME/.*rc or similar files may then amend $DEBUGINFOD_URLS.
4da0c48c4Sopenharmony_ci# See also [man debuginfod-client-config] for other environment variables
5da0c48c4Sopenharmony_ci# such as $DEBUGINFOD_MAXSIZE, $DEBUGINFOD_MAXTIME, $DEBUGINFOD_PROGRESS.
6da0c48c4Sopenharmony_ci
7da0c48c4Sopenharmony_ciif (! $?DEBUGINFOD_URLS) then
8da0c48c4Sopenharmony_ci    set prefix="@prefix@"
9da0c48c4Sopenharmony_ci    set DEBUGINFOD_URLS=`sh -c 'cat /dev/null "$0"/*.urls 2>/dev/null; :' "@sysconfdir@/debuginfod" | tr '\n' ' '`
10da0c48c4Sopenharmony_ci    if ( "$DEBUGINFOD_URLS" != "" ) then
11da0c48c4Sopenharmony_ci        setenv DEBUGINFOD_URLS "$DEBUGINFOD_URLS"
12da0c48c4Sopenharmony_ci    else
13da0c48c4Sopenharmony_ci        unset DEBUGINFOD_URLS
14da0c48c4Sopenharmony_ci    endif
15da0c48c4Sopenharmony_ci    unset prefix
16da0c48c4Sopenharmony_ciendif
17